fivocell 1.0.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +697 -505
  2. package/bin/cell.js +2 -2
  3. package/dist/behavior-intelligence.d.ts +90 -0
  4. package/dist/behavior-intelligence.d.ts.map +1 -0
  5. package/dist/behavior-intelligence.js +595 -0
  6. package/dist/behavior-intelligence.js.map +1 -0
  7. package/dist/cli.d.ts +6 -1
  8. package/dist/cli.d.ts.map +1 -1
  9. package/dist/cli.js +2191 -1
  10. package/dist/cli.js.map +1 -1
  11. package/dist/cloud-sync.d.ts +66 -0
  12. package/dist/cloud-sync.d.ts.map +1 -0
  13. package/dist/cloud-sync.js +328 -0
  14. package/dist/cloud-sync.js.map +1 -0
  15. package/dist/community-intelligence.d.ts +42 -0
  16. package/dist/community-intelligence.d.ts.map +1 -0
  17. package/dist/community-intelligence.js +160 -0
  18. package/dist/community-intelligence.js.map +1 -0
  19. package/dist/community-v2.d.ts +106 -0
  20. package/dist/community-v2.d.ts.map +1 -0
  21. package/dist/community-v2.js +378 -0
  22. package/dist/community-v2.js.map +1 -0
  23. package/dist/core/__tests__/chapter8-hostile.test.js +1 -1
  24. package/dist/core/__tests__/chapter8-hostile.test.js.map +1 -1
  25. package/dist/core/__tests__/chapter9-hostile.test.js +1 -1
  26. package/dist/core/__tests__/chapter9-hostile.test.js.map +1 -1
  27. package/dist/core/__tests__/complexity-analyzer.test.js +15 -15
  28. package/dist/core/__tests__/team-composer.test.js +2 -1
  29. package/dist/core/__tests__/team-composer.test.js.map +1 -1
  30. package/dist/core/convention-detector.d.ts.map +1 -1
  31. package/dist/core/convention-detector.js +11 -23
  32. package/dist/core/convention-detector.js.map +1 -1
  33. package/dist/core/cost-optimizer.d.ts.map +1 -1
  34. package/dist/core/cost-optimizer.js +13 -25
  35. package/dist/core/cost-optimizer.js.map +1 -1
  36. package/dist/core/database.d.ts +28 -0
  37. package/dist/core/database.d.ts.map +1 -0
  38. package/dist/core/database.js +587 -0
  39. package/dist/core/database.js.map +1 -0
  40. package/dist/core/knowledge-graph.d.ts.map +1 -1
  41. package/dist/core/knowledge-graph.js +9 -24
  42. package/dist/core/knowledge-graph.js.map +1 -1
  43. package/dist/core/logger.d.ts +9 -0
  44. package/dist/core/logger.d.ts.map +1 -0
  45. package/dist/core/logger.js +26 -0
  46. package/dist/core/logger.js.map +1 -0
  47. package/dist/core/playbook-generator.js +48 -48
  48. package/dist/core/privacy-manager.d.ts.map +1 -1
  49. package/dist/core/privacy-manager.js +5 -0
  50. package/dist/core/privacy-manager.js.map +1 -1
  51. package/dist/core/project-dna.d.ts.map +1 -1
  52. package/dist/core/project-dna.js +6 -19
  53. package/dist/core/project-dna.js.map +1 -1
  54. package/dist/core/prompt-builder.d.ts +18 -0
  55. package/dist/core/prompt-builder.d.ts.map +1 -0
  56. package/dist/core/prompt-builder.js +325 -0
  57. package/dist/core/prompt-builder.js.map +1 -0
  58. package/dist/core/session-memory.d.ts +90 -0
  59. package/dist/core/session-memory.d.ts.map +1 -0
  60. package/dist/core/session-memory.js +229 -0
  61. package/dist/core/session-memory.js.map +1 -0
  62. package/dist/core/signal-capture.d.ts +5 -0
  63. package/dist/core/signal-capture.d.ts.map +1 -1
  64. package/dist/core/signal-capture.js +67 -0
  65. package/dist/core/signal-capture.js.map +1 -1
  66. package/dist/core/team-composer.d.ts.map +1 -1
  67. package/dist/core/team-composer.js +16 -6
  68. package/dist/core/team-composer.js.map +1 -1
  69. package/dist/cross-model-memory.d.ts +95 -0
  70. package/dist/cross-model-memory.d.ts.map +1 -0
  71. package/dist/cross-model-memory.js +229 -0
  72. package/dist/cross-model-memory.js.map +1 -0
  73. package/dist/daemon/lifecycle.d.ts +18 -0
  74. package/dist/daemon/lifecycle.d.ts.map +1 -1
  75. package/dist/daemon/lifecycle.js +182 -5
  76. package/dist/daemon/lifecycle.js.map +1 -1
  77. package/dist/daemon/server.d.ts.map +1 -1
  78. package/dist/daemon/server.js +269 -6
  79. package/dist/daemon/server.js.map +1 -1
  80. package/dist/first-run.d.ts +8 -0
  81. package/dist/first-run.d.ts.map +1 -0
  82. package/dist/first-run.js +182 -0
  83. package/dist/first-run.js.map +1 -0
  84. package/dist/focus-report.d.ts +32 -0
  85. package/dist/focus-report.d.ts.map +1 -0
  86. package/dist/focus-report.js +293 -0
  87. package/dist/focus-report.js.map +1 -0
  88. package/dist/ide-intelligence.d.ts +118 -0
  89. package/dist/ide-intelligence.d.ts.map +1 -0
  90. package/dist/ide-intelligence.js +284 -0
  91. package/dist/ide-intelligence.js.map +1 -0
  92. package/dist/index.d.ts +22 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.js +119 -2
  95. package/dist/index.js.map +1 -1
  96. package/dist/insight-generator.d.ts +58 -0
  97. package/dist/insight-generator.d.ts.map +1 -0
  98. package/dist/insight-generator.js +314 -0
  99. package/dist/insight-generator.js.map +1 -0
  100. package/dist/journey-memory.d.ts +75 -0
  101. package/dist/journey-memory.d.ts.map +1 -0
  102. package/dist/journey-memory.js +360 -0
  103. package/dist/journey-memory.js.map +1 -0
  104. package/dist/mcp-server.d.ts +2054 -0
  105. package/dist/mcp-server.d.ts.map +1 -0
  106. package/dist/mcp-server.js +1120 -0
  107. package/dist/mcp-server.js.map +1 -0
  108. package/dist/onboarding-scan.d.ts +174 -0
  109. package/dist/onboarding-scan.d.ts.map +1 -0
  110. package/dist/onboarding-scan.js +1039 -0
  111. package/dist/onboarding-scan.js.map +1 -0
  112. package/dist/personal-intelligence.d.ts +97 -0
  113. package/dist/personal-intelligence.d.ts.map +1 -0
  114. package/dist/personal-intelligence.js +408 -0
  115. package/dist/personal-intelligence.js.map +1 -0
  116. package/dist/predictive-intelligence.d.ts +95 -0
  117. package/dist/predictive-intelligence.d.ts.map +1 -0
  118. package/dist/predictive-intelligence.js +544 -0
  119. package/dist/predictive-intelligence.js.map +1 -0
  120. package/dist/production.d.ts +67 -0
  121. package/dist/production.d.ts.map +1 -0
  122. package/dist/production.js +333 -0
  123. package/dist/production.js.map +1 -0
  124. package/dist/senior-features.d.ts +63 -0
  125. package/dist/senior-features.d.ts.map +1 -0
  126. package/dist/senior-features.js +325 -0
  127. package/dist/senior-features.js.map +1 -0
  128. package/dist/style-pull.d.ts +40 -0
  129. package/dist/style-pull.d.ts.map +1 -0
  130. package/dist/style-pull.js +385 -0
  131. package/dist/style-pull.js.map +1 -0
  132. package/dist/team-collaboration.d.ts +116 -0
  133. package/dist/team-collaboration.d.ts.map +1 -0
  134. package/dist/team-collaboration.js +375 -0
  135. package/dist/team-collaboration.js.map +1 -0
  136. package/dist/team-intelligence.d.ts +64 -0
  137. package/dist/team-intelligence.d.ts.map +1 -0
  138. package/dist/team-intelligence.js +289 -0
  139. package/dist/team-intelligence.js.map +1 -0
  140. package/dist/test-watch.d.ts +2 -0
  141. package/dist/test-watch.d.ts.map +1 -0
  142. package/dist/test-watch.js +8 -0
  143. package/dist/test-watch.js.map +1 -0
  144. package/dist/user-intelligence.d.ts +69 -0
  145. package/dist/user-intelligence.d.ts.map +1 -0
  146. package/dist/user-intelligence.js +553 -0
  147. package/dist/user-intelligence.js.map +1 -0
  148. package/dist/work-style.d.ts +49 -0
  149. package/dist/work-style.d.ts.map +1 -0
  150. package/dist/work-style.js +247 -0
  151. package/dist/work-style.js.map +1 -0
  152. package/package.json +3 -2
package/README.md CHANGED
@@ -1,505 +1,697 @@
1
- # FIVO Cell
2
-
3
- <div align="center">
4
-
5
- **Your coding taste. Learned once. Applied everywhere. Forever free.**
6
-
7
- [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
8
- [![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-lightgrey.svg)](#)
9
- [![Version](https://img.shields.io/badge/Version-1.0.0-purple.svg)](#)
10
-
11
- `🌍 Local-First` • `🆓 Free Forever` • `🔗 5+ AI Surfaces`
12
-
13
- ---
14
-
15
- </div>
16
-
17
- Every AI tool you use has amnesia. Claude doesn't remember what you taught Cursor. Copilot never learned from the fix you made in Windsurf. You repeat yourself. You reject the same patterns. You waste hours context-switching between tools that share nothing.
18
-
19
- **This is the last time you'll explain yourself to a machine.**
20
-
21
- Cell is a daemon that lives on your machine. It watches how you edit AI-generated code — across every tool — and builds a mathematical model of your taste. Then it injects that taste back into every AI you use.
22
-
23
- **One profile. Every surface. Zero config.**
24
-
25
- ```
26
- ┌──────────┐
27
- │ VS Code │──┐
28
- └──────────┘ │
29
- ┌──────────┐ │ ┌──────────────────┐
30
- │ Cursor │──┤ │ │
31
- └──────────┘ │ │ CELL DAEMON │ Your taste,
32
- ┌──────────┐ ├────►│ (localhost) │──► everywhere.
33
- Windsurf │──┤ │ │
34
- └──────────┘ │ │ 0 cloud deps │
35
- ┌──────────┐ │ └──────────────────┘
36
- │ Claude │──┤
37
- └──────────┘ │
38
- ┌──────────┐ │
39
- │ Codex │──┤
40
- └──────────┘ │
41
- ┌──────────┐ │
42
- Terminal │──┤
43
- └──────────┘ │
44
- ┌──────────┐ │
45
- │ Copilot │──┘
46
- └──────────┘
47
- ```
48
-
49
- ---
50
-
51
- ## Quick Install
52
-
53
- ```bash
54
- npm i -g fivocell
55
- cell init
56
- cell daemon start
57
- ```
58
-
59
- **Three commands. Thirty seconds. Done.**
60
-
61
- ```bash
62
- cell status # Verify it's working
63
- ```
64
-
65
- ---
66
-
67
- ## 5-Minute Quickstart
68
-
69
- ```bash
70
- # 1. Initialize Cell in any project
71
- cd my-project
72
- cell init
73
-
74
- # 2. Start the daemon (background service)
75
- cell daemon start
76
-
77
- # 3. Learn from a code edit
78
- cell learn --file src/app.ts --diff "const x=1 → const x = 1"
79
-
80
- # 4. See your taste profile
81
- cell status
82
-
83
- # 5. Get recommendations
84
- cell community
85
-
86
- # 6. Predict your next action
87
- cell next
88
-
89
- # 7. Check privacy settings
90
- cell privacy
91
- ```
92
-
93
- ---
94
-
95
- ## The 9 Intelligence Chapters
96
-
97
- Cell's brain is organized into 9 intelligence layers. Each layer runs independently and persists to its own JSON file in `~/.fivo/cell/`.
98
-
99
- ### Chapter 2 — Learning Layer
100
-
101
- The foundation. Watches 4 signals from every AI tool:
102
-
103
- | Signal | Trigger | Weight |
104
- |--------|---------|--------|
105
- | **Edit Diff** | You changed what AI wrote | High |
106
- | **Reject** | You deleted AI output entirely | High |
107
- | **Retry** | You asked AI to regenerate | Medium |
108
- | **Accept** | You kept it as-is | Low |
109
-
110
- Includes: Validator, Classifier, ConfidenceEngine, QualityEngine, LifecycleTracker, RelationshipEngine, PatternSearch, RankingEngine.
111
-
112
- ```
113
- Commands: cell init, cell status, cell taste show, cell taste reset, cell learn
114
- ```
115
-
116
- ### Chapter 3 — Outcome Engine
117
-
118
- Tracks what happens AFTER your code ships. 7 event types (deploy, review, test, bug, perf, security, rollback) with 3-factor confidence scoring, 4-value trend analysis, 5-factor health assessment, and 6-category leaderboard.
119
-
120
- ```
121
- No CLI commands — accessed via daemon API at /api/outcomes
122
- ```
123
-
124
- ### Chapter 4 — Recommendation Engine V2
125
-
126
- 5-factor scoring (pattern strength, recency, contextual relevance, team consensus, outcome validation) with diversity enforcement, evidence-based reasons, and cold-start handling.
127
-
128
- ```
129
- Commands: cell community (community priors feed into recommendations)
130
- ```
131
-
132
- ### Chapter 5 — Project DNA
133
-
134
- Filesystem scanner that profiles any repository in 40-200ms. 10 profiling systems: stack detection, framework detection, style detection, test patterns, dependency patterns, architecture patterns, config patterns, language stats, file tree, git patterns. Fingerprint comparison for similarity scoring.
135
-
136
- ```
137
- No CLI commands — accessed via daemon API at /api/project-dna
138
- ```
139
-
140
- ### Chapter 6 Knowledge Graph V2
141
-
142
- 11 edge types (imports, calls, extends, implements, defines, uses, configures, tests, documents, deploys, monitors) across 10 subsystems. Path discovery with weighted traversal and influence scoring.
143
-
144
- ```
145
- No CLI commands — accessed via daemon API at /api/knowledge-graph
146
- ```
147
-
148
- ### Chapter 7 Community Intelligence
149
-
150
- 10 systems: privacy guard (14 allowed fields only), rankings, trends (hour/day/week), clusters, playbooks, benchmarks, reputation, insights. Aggregates patterns from 5000+ simulated developers.
151
-
152
- ```
153
- Commands: cell community, cell community-live, cell community-full
154
- ```
155
-
156
- ### Chapter 8 — Organization Intelligence
157
-
158
- 10 systems: org isolation, team profiles, knowledge silos, bus factor, risk assessment, playbooks, executive insights, benchmarks. Team collaboration tools with voting and conflict resolution.
159
-
160
- ```
161
- Commands: cell push, cell pull, cell vote, cell silos, cell review, cell standup, cell handoff
162
- ```
163
-
164
- ### Chapter 9 — Cross-Layer Intelligence
165
-
166
- 10 systems: unified context builder, 7-dimension intelligence score, evidence fusion engine, knowledge gap detector, opportunity finder, risk analyzer, lifecycle classifier, decision generator, multi-level benchmarker, report generator.
167
-
168
- ```
169
- No CLI commands — accessed via daemon API at /api/cross-layer
170
- ```
171
-
172
- ---
173
-
174
- ## CLI Commands Reference (42 Commands)
175
-
176
- ### Learning & Profile
177
-
178
- | Command | Description |
179
- |---------|-------------|
180
- | `cell init` | Initialize Cell in current project |
181
- | `cell status` | Show taste profile summary |
182
- | `cell taste show` | Display cell.md taste profile |
183
- | `cell taste reset` | Reset all learned patterns |
184
- | `cell learn --file --diff` | Feed a code edit for learning |
185
-
186
- ### Team Collaboration
187
-
188
- | Command | Description |
189
- |---------|-------------|
190
- | `cell push` | Push taste to team directory |
191
- | `cell pull` | Pull team or member taste |
192
- | `cell vote` | Vote on pattern conflict |
193
- | `cell handoff` | Generate teammate handoff summary |
194
- | `cell silos` | Detect knowledge silos |
195
- | `cell review` | Generate PR review summary |
196
- | `cell standup` | Generate daily standup |
197
-
198
- ### Predictions
199
-
200
- | Command | Description |
201
- |---------|-------------|
202
- | `cell next` | Predict next coding action |
203
- | `cell branch` | Pre-generate files from branch name |
204
- | `cell gentests` | Generate test cases for a function |
205
- | `cell errors` | Predict potential errors in code |
206
- | `cell buildcheck` | Predict build failures |
207
- | `cell mergecheck` | Predict merge conflicts |
208
- | `cell scan` | Scan code for security vulnerabilities |
209
- | `cell perf` | Analyze code for performance issues |
210
-
211
- ### Community
212
-
213
- | Command | Description |
214
- |---------|-------------|
215
- | `cell community` | Show community prior patterns |
216
- | `cell community-live` | Show live community stats |
217
- | `cell community-full` | Show full community dashboard |
218
-
219
- ### Code Health
220
-
221
- | Command | Description |
222
- |---------|-------------|
223
- | `cell deadcode` | Detect dead code in a file |
224
- | `cell cycles` | Detect circular dependencies |
225
- | `cell dupes` | Detect code duplication |
226
- | `cell complexity` | Analyze code complexity |
227
- | `cell deps` | Check dependency health |
228
-
229
- ### Utilities
230
-
231
- | Command | Description |
232
- |---------|-------------|
233
- | `cell snapshot` | Capture or restore project context |
234
- | `cell sync` | Sync patterns across projects |
235
- | `cell solutions` | Search solution index |
236
- | `cell langswitch` | Get language switch guide |
237
- | `cell resume` | Check for interruption and resume |
238
- | `cell offline` | Check offline queue status |
239
- | `cell abtest` | Run A/B test |
240
- | `cell xdomain` | Cross-domain projections (research) |
241
-
242
- ### Infrastructure
243
-
244
- | Command | Description |
245
- |---------|-------------|
246
- | `cell daemon start` | Start background daemon |
247
- | `cell daemon stop` | Stop background daemon |
248
- | `cell daemon restart` | Restart daemon |
249
- | `cell daemon status` | Check daemon status |
250
- | `cell cloud on` | Enable cloud sync |
251
- | `cell cloud off` | Disable cloud sync |
252
- | `cell cloud status` | Show cloud sync status |
253
- | `cell privacy` | Show privacy settings |
254
-
255
- ---
256
-
257
- ## MCP Server
258
-
259
- Cell includes a Model Context Protocol (MCP) server that exposes the full intelligence engine to any MCP-compatible client (Claude Code, Codex CLI, Cursor, etc.).
260
-
261
- ### 25 Tools
262
-
263
- | Tool | Description |
264
- |------|-------------|
265
- | `cell_learn` | Learn from a code edit |
266
- | `cell_predict_next` | Predict next coding action |
267
- | `cell_predict_errors` | Predict errors in code |
268
- | `cell_predict_build` | Predict build failures |
269
- | `cell_predict_merge` | Predict merge conflicts |
270
- | `cell_scan_security` | Scan for security issues |
271
- | `cell_analyze_perf` | Analyze performance issues |
272
- | `cell_generate_tests` | Generate test cases |
273
- | `cell_generate_branch` | Pre-generate branch files |
274
- | `cell_community_stats` | Get community pattern stats |
275
- | `cell_community_trends` | Get community trends |
276
- | `cell_community_playbooks` | Get community playbooks |
277
- | `cell_outcome_events` | Record outcome events |
278
- | `cell_outcome_health` | Get outcome health score |
279
- | `cell_outcome_leaderboard` | Get outcome leaderboard |
280
- | `cell_project_dna` | Build project DNA profile |
281
- | `cell_knowledge_graph` | Query knowledge graph |
282
- | `cell_knowledge_paths` | Discover knowledge paths |
283
- | `cell_org_profile` | Get organization profile |
284
- | `cell_org_silos` | Detect knowledge silos |
285
- | `cell_org_busfactor` | Compute bus factor |
286
- | `cell_cross_layer_report` | Generate intelligence report |
287
- | `cell_cross_layer_gaps` | Detect knowledge gaps |
288
- | `cell_cross_layer_opportunities` | Find opportunities |
289
- | `cell_cross_layer_risks` | Analyze risks |
290
-
291
- ### 8 Resources
292
-
293
- - `cell://patterns` — All learned patterns
294
- - `cell://profile` — Developer taste profile
295
- - `cell://outcomes` — Outcome event history
296
- - `cell://community/trends` — Community trends
297
- - `cell://community/rankings` — Community rankings
298
- - `cell://org/teams` — Team profiles
299
- - `cell://org/benchmarks` — Organization benchmarks
300
- - `cell://cross-layer/report` Full intelligence report
301
-
302
- ### Setup
303
-
304
- ```json
305
- {
306
- "mcpServers": {
307
- "cell": {
308
- "command": "node",
309
- "args": ["path/to/packages/mcp-server/dist/server.js"]
310
- }
311
- }
312
- }
313
- ```
314
-
315
- Or via Claude Code:
316
-
317
- ```bash
318
- claude mcp add cell -- node path/to/packages/mcp-server/dist/server.js
319
- ```
320
-
321
- ---
322
-
323
- ## Daemon
324
-
325
- The daemon is a REST API server on port 9876 with WebSocket streaming on port 9878.
326
-
327
- ```bash
328
- # Start
329
- cell daemon start
330
-
331
- # Check status
332
- cell daemon status
333
-
334
- # Stop
335
- cell daemon stop
336
- ```
337
-
338
- 125+ API endpoints across all 9 intelligence layers.
339
-
340
- ---
341
-
342
- ## Extensions
343
-
344
- | Tool | Type | Setup |
345
- |------|------|-------|
346
- | **VS Code** | Extension | `code --install-extension extensions/vscode/fivo-cell-0.2.0.vsix` |
347
- | **Cursor** | Extension | Same .vsix file |
348
- | **Windsurf** | Extension | Same .vsix file |
349
- | **Claude Code** | MCP | `claude mcp add cell -- node packages/mcp-server/dist/server.js` |
350
- | **Codex CLI** | MCP | `codex mcp add cell -- node packages/mcp-server/dist/server.js` |
351
- | **Copilot** | Sync Script | `node extensions/shell/copilot-sync.js` |
352
- | **Terminal** | Shell Hook | `source extensions/shell/install.sh` |
353
-
354
- ---
355
-
356
- ## Team Mode
357
-
358
- Cell supports local-network team collaboration without any cloud dependency.
359
-
360
- ```
361
- Developer A ──┐
362
- ├── Cell Daemon (port 9876)
363
- Developer B ──┘
364
- LAN
365
- Developer C ──┐
366
- ├─────┘
367
- Developer D ──┘
368
- ```
369
-
370
- - `cell push` Share your taste with the team
371
- - `cell pull` Pull team taste profile
372
- - `cell vote` Resolve pattern conflicts democratically
373
- - `cell handoff` — Generate context summaries for teammates
374
- - `cell standup` — Auto-generated daily standups
375
-
376
- Up to 10-20 developers can collaborate on a single local network.
377
-
378
- ---
379
-
380
- ## Cloud Sync
381
-
382
- Cloud sync is **ON by default** and shares only anonymous pattern statistics:
383
-
384
- ```
385
- "prefers const over let (87%)"
386
- "uses named exports, not default (83%)"
387
- "vitest over jest (91%)"
388
- ```
389
-
390
- **Your source code never leaves your machine.** No file paths. No project names. No secrets.
391
-
392
- ```bash
393
- cell cloud off # Fully offline mode
394
- cell cloud on # Re-enable sync
395
- cell cloud status # Check current status
396
- ```
397
-
398
- ---
399
-
400
- ## Privacy
401
-
402
- ### Never stored or transmitted
403
-
404
- | Data | Guarantee |
405
- |------|-----------|
406
- | Your source code | Never leaves your machine. Cell only sees diffs. |
407
- | File paths | Never persisted or transmitted. Only file extensions. |
408
- | Git history | Never accessed. |
409
- | API keys / secrets | Detected and warned. Never captured. |
410
- | Identity | No email. No signup. No account. |
411
- | Project names | Obfuscated before any transmission. |
412
-
413
- ### Stored locally only
414
-
415
- | Data | Location |
416
- |------|----------|
417
- | Pattern preferences | `~/.fivo/cell/pattern-store.json` |
418
- | Outcomes | `~/.fivo/cell/outcomes.json` |
419
- | Developer profiles | `~/.fivo/cell/profiles/` |
420
- | Project DNA | `~/.fivo/cell/project-dna.json` |
421
- | Knowledge graph | `~/.fivo/cell/knowledge-graph.json` |
422
- | Community intelligence | `~/.fivo/cell/community-intelligence.json` |
423
- | Organization intelligence | `~/.fivo/cell/org-intelligence.json` |
424
- | Cross-layer intelligence | `~/.fivo/cell/cross-layer-intelligence.json` |
425
- | Session snapshots | `~/.fivo/cell/snapshots/` |
426
-
427
- ---
428
-
429
- ## Architecture
430
-
431
- ```
432
- CLI (42 commands)
433
-
434
- ├──► Daemon (port 9876) ──► REST API (125+ endpoints)
435
- │ │ │
436
- │ ├──► WebSocket (port 9878) ──► Real-time streaming
437
- │ │
438
- │ └──► MCP Server (port 9877) ──► 25 tools, 8 resources
439
-
440
- ├──► Intelligence Engine
441
- │ ├── Learning Layer (Ch2)
442
- │ ├── Outcome Engine (Ch3)
443
- │ ├── Recommendation Engine (Ch4)
444
- │ ├── Project DNA (Ch5)
445
- │ ├── Knowledge Graph (Ch6)
446
- │ ├── Community Intelligence (Ch7)
447
- ├── Organization Intelligence (Ch8)
448
- │ └── Cross-Layer Intelligence (Ch9)
449
-
450
- └──► Storage (~/.fivo/cell/)
451
- ├── 30+ JSON stores
452
- ├── Each layer has its own file
453
- └── No database required
454
- ```
455
-
456
- Each intelligence layer:
457
- - Runs independently
458
- - Persists to its own JSON file
459
- - Can be reset without affecting others
460
- - Has 80+ hostile assertions in tests
461
-
462
- ---
463
-
464
- ## Running Tests
465
-
466
- ```bash
467
- # All tests
468
- npx jest --passWithNoTests --no-coverage
469
-
470
- # Specific chapter
471
- npx jest --passWithNoTests --no-coverage src/core/__tests__/chapter9-hostile.test.ts
472
-
473
- # Real-world validation
474
- npx ts-node src/validation/quick-run.ts
475
- ```
476
-
477
- **772 hostile assertions across 9 chapters — all passing.**
478
-
479
- ---
480
-
481
- ## Why Trust Cell
482
-
483
- - **Open Source. Apache 2.0.** Every line is public. Audit it. Fork it. Own it.
484
- - **Local-First. Always.** Zero cloud dependency. If cell.fivo.live disappears tomorrow, your taste doesn't.
485
- - **Free. Permanently.** Cell is supported by our community. You're not the product.
486
- - **Clean uninstall.** `npm uninstall -g fivocell` + `rm -rf ~/.fivo/cell`. Done.
487
-
488
- ---
489
-
490
- ## Links
491
-
492
- | Resource | URL |
493
- |----------|-----|
494
- | Website | [cell.fivo.live](https://cell.fivo.live) |
495
- | Enterprise | [fivo.live](https://fivo.live) |
496
- | Community | [discord.gg/fivo](https://discord.gg/fivo) |
497
- | NPM | `npm i -g fivocell` |
498
-
499
- ---
500
-
501
- <div align="center">
502
-
503
- **Your taste. Every tool. Forever free.**
504
-
505
- </div>
1
+ <div align="center">
2
+
3
+ # 🧠 FIVO Cell
4
+
5
+ <img src="https://img.shields.io/badge/License-Apache%202.0-blue?style=for-the-badge&logo=apache" alt="License">
6
+ <img src="https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey?style=for-the-badge&logo=linux" alt="Platform">
7
+ <img src="https://img.shields.io/badge/Version-2.0.0-purple?style=for-the-badge" alt="Version">
8
+ <img src="https://img.shields.io/badge/Tests-391%20Passing-brightgreen?style=for-the-badge" alt="Tests">
9
+
10
+ <br><br>
11
+
12
+ ```
13
+ ╔══════════════════════════════════════════════════════════════╗
14
+ ║ ║
15
+ ║ 🧬 Your Coding DNA. Learned Once. Applied Everywhere. ║
16
+ ║ ║
17
+ ║ 🌍 Local-First • 🆓 Free Forever • 🔗 5+ AI Surfaces ║
18
+ ║ 🛡️ Zero Code Leaves Machine • 🔓 Apache 2.0 ║
19
+ ║ ║
20
+ ╚══════════════════════════════════════════════════════════════╝
21
+ ```
22
+
23
+ </div>
24
+
25
+ ---
26
+
27
+ <div align="center">
28
+
29
+ ## 🤔 The Problem
30
+
31
+ </div>
32
+
33
+ <div align="center">
34
+
35
+ ```
36
+ ╔════════════════════════════════════════════════════════════╗
37
+ ║ ║
38
+ ║ 💬 "Use arrow functions" 💬 "I prefer TypeScript"║
39
+ ║ 💬 "Add error handling" 💬 "Don't use any" ║
40
+ ║ 💬 "Use Zod for validation" 💬 "Named exports please"║
41
+ ║ ║
42
+ ║ You repeat yourself. Every. Single. Day. ║
43
+ ║ To every. Single. AI tool. ║
44
+ ║ ║
45
+ ╚════════════════════════════════════════════════════════════╝
46
+ ```
47
+
48
+ </div>
49
+
50
+ **Every AI tool you use has amnesia.** Claude doesn't remember what you taught Cursor. Copilot never learned from the fix you made in Windsurf. Gemini starts from zero every session. You waste **hours** context-switching between tools that share absolutely nothing.
51
+
52
+ > **This is the last time you'll explain yourself to a machine.**
53
+
54
+ ---
55
+
56
+ <div align="center">
57
+
58
+ ## 🎯 The Solution
59
+
60
+ </div>
61
+
62
+ <div align="center">
63
+
64
+ ```
65
+ ┌──────────────────────────────────────────────────────────────┐
66
+ │ 🧠 CELL DAEMON │
67
+ │ Your Persistent Brain │
68
+ │ │
69
+ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
70
+ │ │ VS Code │ │ Cursor │ │ Gemini │ │ Claude │ │
71
+ │ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
72
+ │ │ │ │ │ │
73
+ │ └─────────────┴──────┬──────┴─────────────┘ │
74
+ │ │ │
75
+ │ ┌─────────▼─────────┐ │
76
+ │ │ 🧠 CELL DAEMON │ │
77
+ │ │ localhost:9876 │ │
78
+ │ └─────────┬─────────┘ │
79
+ │ │ │
80
+ │ ┌─────────────────────┼───────────────────────┐ │
81
+ │ │ │ │ │
82
+ │ ┌───▼───┐ ┌───▼───┐ ┌───▼───┐ │
83
+ │ │ 👤 You│ │ 👥Team│ │ 🌐 All│ │
84
+ │ │Style │ ───► │Shared │ ───► │ Best │ │
85
+ │ │Blind │ │Pattern│ │Practi-│ │
86
+ │ │Spots │ │ Bus │ │ ces │ │
87
+ │ │ DNA │ │Factor │ │Trends │ │
88
+ │ └───────┘ └───────┘ └───────┘ │
89
+ │ │
90
+ │ Personal Layer Team Layer Community Layer│
91
+ │ │
92
+ │ 🎯 One profile. Every AI tool. Zero config. │
93
+ └──────────────────────────────────────────────────────────────┘
94
+ ```
95
+
96
+ </div>
97
+
98
+ Cell is a daemon that lives on **your machine**. It watches how you edit AI-generated code — across every tool — and builds a mathematical model of your coding taste. Then it injects that taste back into every AI you use.
99
+
100
+ **It's not another AI tool. It's the cognitive layer that makes every AI tool actually understand you.**
101
+
102
+ ---
103
+
104
+ <div align="center">
105
+
106
+ ## One Command. Everything.
107
+
108
+ </div>
109
+
110
+ <div align="center">
111
+
112
+ ```bash
113
+ npm i -g fivocell # 📦 Install
114
+ cell start # 🚀 Start daemon + watcher + MCP server
115
+ cell connect # 🔌 Auto-configure ALL your AI tools
116
+ ```
117
+
118
+ </div>
119
+
120
+ <div align="center">
121
+
122
+ ```
123
+ ╔════════════════════════════════════════════════════════════╗
124
+ ║ ║
125
+ ║ cell start brings up: ║
126
+ ║ ║
127
+ ║ ⚙️ Daemon (port 9876) — 125+ API endpoints ║
128
+ ║ 👁️ File Watcher — Auto-learns from every edit ║
129
+ ║ 🔌 MCP Server (port 9877) 25 tools, 8 resources ║
130
+ ║ ║
131
+ ║ One command. Thirty seconds. Done. ║
132
+ ║ ║
133
+ ╚════════════════════════════════════════════════════════════╝
134
+ ```
135
+
136
+ </div>
137
+
138
+ <div align="center">
139
+
140
+ `cell connect`Auto-creates config files for every AI tool detected
141
+
142
+ </div>
143
+
144
+ <div align="center">
145
+
146
+ | 🛠️ Tool | 📁 Config Created | 🔗 Method |
147
+ |:-------:|:-----------------:|:---------:|
148
+ | 🖱️ **Cursor** | `.cursor/mcp.json` | Auto-detected |
149
+ | 🤖 **Claude Code** | `.mcp.json` | Project-level |
150
+ | 🌌 **Gemini CLI** | `~/.gemini/settings.json` | Global config |
151
+ | ⚡ **Codex CLI** | `~/.codex/config.json` | Global config |
152
+
153
+ 💡 **Zero manual config. Works on Windows, Mac, and Linux identically.**
154
+
155
+ </div>
156
+
157
+ ---
158
+
159
+ <div align="center">
160
+
161
+ ## 🧬 The Three-Layer Brain
162
+
163
+ </div>
164
+
165
+ <div align="center">
166
+
167
+ ```
168
+ ╔═══════════════════════════════════════════════════════════════════╗
169
+ ║ 🧠 CELL INTELLIGENCE LAYERS ║
170
+ ╠═══════════════════╦═══════════════════╦═══════════════════════════╣
171
+ ║ ║ ║ ║
172
+ ║ 👤 PERSONAL ║ 👥 TEAM ║ 🌐 COMMUNITY ║
173
+ ║ ───────── ║ ───── ║ ───────── ║
174
+ ║ ║ ║ ║
175
+ ║ "Tum kaise ║ "Team kaisi ║ "Duniya ke best ║
176
+ ║ code karte ║ hai — ║ developers kya ║
177
+ ║ ho — exactly" ║ collectively" ║ karte hain — ║
178
+ ║ ║ ║ evidence ke saath" ║
179
+ ║ ║ ║ ║
180
+ ║ 🔐 PRIVATE ║ 🔒 ANONYMIZED ║ 📊 AGGREGATED ║
181
+ ║ Sirf tumhara ║ SHA-256 hashed ║ No code. No names. ║
182
+ ║ ║ ║ ║
183
+ ╚═══════════════════╩═══════════════════╩═══════════════════════════╝
184
+ ```
185
+
186
+ </div>
187
+
188
+ <div align="center">
189
+
190
+ ### 👤 PERSONAL LAYER
191
+
192
+ *"Cell knows you better than you know yourself"*
193
+
194
+ </div>
195
+
196
+ | 🧩 Engine | 🔍 What It Learns |
197
+ |:----------|:------------------|
198
+ | 📝 **Syntax** | Arrow vs named? Async/await? Semicolons? Quotes? Destructuring? |
199
+ | 🏷️ **Naming** | camelCase? Boolean prefixes? Abbreviations? Generic name avoidance? |
200
+ | 📐 **Structure** | File size? Function length? Nesting depth? Early returns? Guard clauses? |
201
+ | 🏗️ **Architecture** | Frontend/backend patterns? Folder style? Config placement? |
202
+ | 👁️ **Blind Spots** | **31 rules** Error handling missed? Tests skipped? Security gaps? N+1 queries? |
203
+ | **Productivity** | Speed patterns? Decision history? Revert frequency? Over/under engineering? |
204
+ | 🧠 **Knowledge Graph** | Tech proficiency? Project DNA? Session context? Context chain? |
205
+ | 🔬 **Proof Engine** | Evidence for every claim memory, prediction, impact, DNA, identity |
206
+
207
+ <div align="center">
208
+
209
+ > 💡 *"Tumhara #1 issue: async error handling 73% cases mein missing hai. Ye tumhara sabse bada bug source hai last 3 months mein."*
210
+
211
+ </div>
212
+
213
+ <div align="center">
214
+
215
+ ### 👥 TEAM LAYER
216
+
217
+ *"Collective intelligence no wiki can capture"*
218
+
219
+ </div>
220
+
221
+ | 🧩 Feature | 🔍 What It Provides |
222
+ |:----------|:-------------------|
223
+ | 📚 **Shared Patterns** | Team-approved patterns + rationale |
224
+ | 🗺️ **Knowledge Map** | Kaun kya jaanta hai — expertise distribution |
225
+ | 🚌 **Bus Factor** | "Is module ko sirf Rahul jaanta hai — risk alert!" |
226
+ | 🏥 **Team DNA** | Quality bar, risk profile, testing culture, refactoring appetite |
227
+ | 🔄 **Workflows** | PR bottlenecks, deploy patterns, common failures |
228
+ | 👁️ **Collective Blind Spots** | Patterns team consistently misses across sprints |
229
+
230
+ <div align="center">
231
+
232
+ > 🔒 **Privacy guarantee:** Team filenames use SHA-256 hashes, not usernames. File system browsers can't identify individual developers.
233
+
234
+ </div>
235
+
236
+ <div align="center">
237
+
238
+ ### 🌐 COMMUNITY LAYER
239
+
240
+ *"Evidence, not opinions"*
241
+
242
+ </div>
243
+
244
+ | 🧩 Feature | 🔍 What It Aggregates |
245
+ |:----------|:---------------------|
246
+ | 📈 **Pattern Success** | "Next.js + Prisma + Zod — 89% success across 48K projects" |
247
+ | 💀 **Failure Library** | Most common bugs, security vulnerabilities, performance bottlenecks |
248
+ | 🔮 **Tech Evolution** | Adoption curves, migration patterns, abandonment signals |
249
+ | 📊 **Benchmarks** | Feature delivery by team size, bug rate by testing culture |
250
+
251
+ <div align="center">
252
+
253
+ > 🛡️ **46 fields blocked.** Only abstract, anonymized statistics. Zero code. Zero identities.
254
+
255
+ </div>
256
+
257
+ ---
258
+
259
+ <div align="center">
260
+
261
+ ## 🏆 Why Developers Choose Cell
262
+
263
+ </div>
264
+
265
+ <div align="center">
266
+
267
+ | 🎯 Feature | 🧠 Cell | 🤖 Copilot | 🖱️ Cursor Rules | ⚡ Codex | 🌊 Windsurf |
268
+ |:----------|:-------:|:----------:|:---------------:|:--------:|:-----------:|
269
+ | **Works across tools** | All | ❌ GitHub only | ❌ Cursor only | ❌ OpenAI only | ❌ Windsurf only |
270
+ | **Learns from behavior** | Edits, rejects | ❌ Prompt-only | ⚠️ Manual rules | ❌ Prompt-only | ⚠️ Basic |
271
+ | **👁️ Blind spot detection** | 31 rules | ❌ | ❌ | ❌ | ❌ |
272
+ | **👥 Team intelligence** | Bus factor, silos | ❌ | ❌ | ❌ | ❌ |
273
+ | **🌐 Community data** | ✅ Evidence-backed | | ❌ | ❌ | ❌ |
274
+ | **🏠 Local-first** | Zero cloud deps | ❌ Cloud required | ✅ Local only | ❌ Cloud required | ⚠️ Hybrid |
275
+ | **🔓 Open source** | Apache 2.0 | ❌ Proprietary | ❌ Proprietary | ❌ Proprietary | ❌ Proprietary |
276
+ | **🛡️ Privacy** | 46 fields blocked | ⚠️ Code to cloud | ✅ Local | ⚠️ Code to cloud | ⚠️ Code to cloud |
277
+ | **🔌 MCP support** | 25 tools | ❌ | ⚠️ Limited | ⚠️ Limited | ❌ |
278
+ | **💰 Free forever** | Yes | $10+/mo | ✅ Free tier | ❌ Pay-per-use | ❌ $15+/mo |
279
+
280
+ </div>
281
+
282
+ <div align="center">
283
+
284
+ > 🎯 **Bottom line:** Every other tool is locked to one editor, sends code to the cloud, or costs money. Cell works everywhere, keeps everything local, and is permanently free.
285
+
286
+ </div>
287
+
288
+ ---
289
+
290
+ <div align="center">
291
+
292
+ ## 🔌 MCP Server — 25 Tools, 8 Resources
293
+
294
+ </div>
295
+
296
+ <div align="center">
297
+
298
+ ```
299
+ ┌──────────────────────────────────────────────────────────────┐
300
+ │ 🔌 CELL MCP SERVER │
301
+ │ localhost:9877/mcp │
302
+ │ │
303
+ │ ┌─────────────────────┐ ┌───────────────────────┐ │
304
+ │ │ 👤 Personal (6) │ │ 🌐 Community (6) │ │
305
+ │ │ │ │ │ │
306
+ │ │ 🎯 get_taste_context │ │ 📊 community_stats │ │
307
+ │ │ 📤 send_signal │ 🏆 community_rankings │ │
308
+ │ │ 📋 get_profile │ │ 📈 community_trends │ │
309
+ │ │ 🔮 predict_next │ │ 💡 community_insights │
310
+ │ │ 🏗️ check_build │ │ 📖 community_playbooks │ │
311
+ │ │ 🎯 get_recommend... │ │ ⭐ community_reputation │ │
312
+ │ └─────────────────────┘ └───────────────────────┘ │
313
+ │ │
314
+ │ ┌─────────────────────┐ ┌───────────────────────┐ │
315
+ │ │ 🏢 Org Intel (6) │ │ 🔄 Cross-Layer (5) │ │
316
+ │ │ │ │ │ │
317
+ │ │ 📊 org_benchmarks │ │ 🧮 intelligence_score │ │
318
+ │ │ 🔍 org_silos │ │ ⚠️ analyze_risks │ │
319
+ │ │ 🚌 org_bus_factor │ │ 🎯 find_opportunities │ │
320
+ │ │ ⚠️ org_risks │ │ 📋 generate_decisions │ │
321
+ │ │ 💡 org_insights │ │ 📄 intelligence_report │ │
322
+ │ │ 📖 org_playbooks │ │ │ │
323
+ │ └─────────────────────┘ └───────────────────────┘ │
324
+ │ │
325
+ │ 📦 Resources: 8 URIs taste, community, team │
326
+ └──────────────────────────────────────────────────────────────┘
327
+ ```
328
+
329
+ </div>
330
+
331
+ ---
332
+
333
+ <div align="center">
334
+
335
+ ## 🛡️ Security & Privacy — The Deep Dive
336
+
337
+ </div>
338
+
339
+ <div align="center">
340
+
341
+ ```
342
+ ╔══════════════════════════════════════════════════════════╗
343
+ ║ ║
344
+ ║ 🔒 Your code is yours. Period. ║
345
+ ║ ║
346
+ ║ No account. No cloud dependency. No telemetry.
347
+ ║ No analytics. No tracking. No phone-home.
348
+ ║ ║
349
+ ╚══════════════════════════════════════════════════════════╝
350
+ ```
351
+
352
+ </div>
353
+
354
+ <div align="center">
355
+
356
+ ### 🚫 46 Fields BLOCKED From Leaving Your Machine
357
+
358
+ </div>
359
+
360
+ <div align="center">
361
+
362
+ ```
363
+ source_code ❌ file_path ❌ file_content ❌ file_name
364
+ prompt ❌ response ❌ ai_response ❌ repo_name
365
+ company_name ❌ project_name ❌ customer_name ❌ username
366
+ ❌ secret ❌ api_key ❌ password ❌ token
367
+ auth_token ❌ private_key ❌ pii ❌ email
368
+ ❌ phone ❌ address ❌ ssn ❌ environment_vars
369
+ ❌ stack_trace ❌ variable_name ❌ function_name ❌ api_name
370
+ endpoint_name ❌ class_name ❌ interface_name ❌ type_name
371
+ business_logic ❌ domain_terms ❌ comment_text ❌ error_message
372
+ log_message ❌ db_schema ❌ display_name ❌ handle
373
+ ```
374
+
375
+ </div>
376
+
377
+ <div align="center">
378
+
379
+ ### 🔐 Team Layer — Anonymized by Default
380
+
381
+ </div>
382
+
383
+ <div align="center">
384
+
385
+ ```
386
+ ╔════════════════════════════════════════════════════════════╗
387
+ ║ ║
388
+ ║ BEFORE: team/alice.json 👀 Aah, Alice ka data! ║
389
+ ║ AFTER: team/a7f3b9c1.json 🤷 Kaun hai ye? Koi nahi. ║
390
+ ║ ║
391
+ ╚════════════════════════════════════════════════════════════╝
392
+ ```
393
+
394
+ </div>
395
+
396
+ <div align="center">
397
+
398
+ > 🔑 Team member filenames use **SHA-256 hashing** with a fixed salt. Same user → same hash (deterministic). But impossible to reverse into a username.
399
+
400
+ </div>
401
+
402
+ <div align="center">
403
+
404
+ ### 📊 Community Layer — Only Abstract, Aggregated Stats
405
+
406
+ </div>
407
+
408
+ <div align="center">
409
+
410
+ ```
411
+ ╔════════════════════════════════════════════════════════════╗
412
+ ║ ✅ ALLOWED: ║
413
+ ║ ║
414
+ ║ "TypeScript + tests developers produce 37% fewer bugs" ║
415
+ ║ "68% of developers miss async error handling" ║
416
+ ║ "Server Components adoption: 34% → 71% in one year" ║
417
+ ║ ║
418
+ ║ ❌ NEVER: ║
419
+ ║ ║
420
+ ║ "Vinayak's payment-service has an auth bug on line 47" ║
421
+ ║ "acme-corp/backend uses this exact folder structure" ║
422
+ ║ ║
423
+ ╚════════════════════════════════════════════════════════════╝
424
+ ```
425
+
426
+ </div>
427
+
428
+ <div align="center">
429
+
430
+ ### 🎚️ Three Privacy Modes
431
+
432
+ </div>
433
+
434
+ <div align="center">
435
+
436
+ | 🔒 Mode | 📤 What's Shared |
437
+ |:-------:|:-----------------|
438
+ | 🏠 `private` | **Nothing.** Fully offline. |
439
+ | 🌐 `community` | Anonymized pattern stats only (default) |
440
+ | 🏢 `organization` | Within your company's org boundary |
441
+
442
+ </div>
443
+
444
+ ```bash
445
+ cell privacy # Check current mode
446
+ cell cloud off # 🔒 Full privacy
447
+ cell cloud on # 🌐 Community (default)
448
+ ```
449
+
450
+ <div align="center">
451
+
452
+ > 💨 **Clean uninstall:** `npm uninstall -g fivocell` + `rm -rf ~/.fivo/cell/`. Gone. No traces. No leftovers.
453
+
454
+ </div>
455
+
456
+ ---
457
+
458
+ <div align="center">
459
+
460
+ ## 🏗️ Architecture
461
+
462
+ </div>
463
+
464
+ <div align="center">
465
+
466
+ ```
467
+ ╔═══════════════════════════════════════════════════════════════════╗
468
+ ║ 🏗️ CELL ARCHITECTURE ║
469
+ ╠═══════════════════════════════════════════════════════════════════╣
470
+ ║ ║
471
+ ║ 📟 CLI 🔌 MCP ║
472
+ ║ 42 commands + shortcuts ◄────► 25 tools + 8 URIs ║
473
+ ║ │ │ ║
474
+ ║ └─────────────────┬─────────────────┘ ║
475
+ ║ │ ║
476
+ ║ ┌──────────▼──────────┐ ║
477
+ ║ │ ⚙️ DAEMON │ ║
478
+ ║ │ localhost:9876 │ ║
479
+ ║ │ 125+ endpoints │ ║
480
+ ║ └──────────┬──────────┘ ║
481
+ ║ │ ║
482
+ ║ ┌─────────────────┼─────────────────┐ ║
483
+ ║ │ │ │ ║
484
+ ║ ┌───▼───┐ ┌───▼───┐ ┌───▼───┐ ║
485
+ ║ │ 👤 You │ │ 👥 We │ │ 🌐 All │ ║
486
+ ║ │ 11 eng ───► │ 3 eng ───► │ 4 eng │ ║
487
+ ║ └───────┘ └───────┘ └───────┘ ║
488
+ ║ ║
489
+ ║ ──────────────────────────────────────────────────────── ║
490
+ ║ 💾 Storage: ~/.fivo/cell/ (all JSON, no database needed) ║
491
+ ╚═══════════════════════════════════════════════════════════════════╝
492
+ ```
493
+
494
+ </div>
495
+
496
+ ---
497
+
498
+ <div align="center">
499
+
500
+ ## 🤝 Contributing
501
+
502
+ </div>
503
+
504
+ <div align="center">
505
+
506
+ ```
507
+ ╔══════════════════════════════════════════════════════╗
508
+ ║ We ❤️ contributors. Here's how to jump in. ║
509
+ ╚══════════════════════════════════════════════════════╝
510
+ ```
511
+
512
+ </div>
513
+
514
+ <div align="center">
515
+
516
+ ### 🚀 First Time Setup
517
+
518
+ </div>
519
+
520
+ ```bash
521
+ git clone https://github.com/thevinsoni/cell.git
522
+ cd cell
523
+ npm install
524
+ npm run build # TypeScript → dist/
525
+ npm test # Verify all 772 assertions pass
526
+ ```
527
+
528
+ <div align="center">
529
+
530
+ ### 📁 Project Map
531
+
532
+ </div>
533
+
534
+ ```
535
+ src/
536
+ ├── 📟 cli.ts # CLI (42 commands + shortcuts)
537
+ ├── 🔌 mcp-server.ts # MCP JSON-RPC server (25 tools)
538
+ ├── 🧠 core/ # All 19 intelligence engines
539
+ │ ├── syntax-engine.ts # 13 syntax analyzers
540
+ │ ├── naming-engine.ts # Variable/function/boolean naming
541
+ │ ├── structure-engine.ts # File size, nesting, guards
542
+ │ ├── architecture-engine.ts # Frontend/backend patterns
543
+ │ ├── 👁️ blind-spot-engine.ts # 31 blind spot rules
544
+ │ ├── ⚡ productivity-engine.ts # Speed, decisions, reverts
545
+ │ ├── 🧬 knowledge-graph-engine.ts # Tech map, session context
546
+ │ ├── 📦 cell-store.ts # .cell/ directory manager
547
+ │ ├── 🔬 proof-engine.ts # Evidence-based claims
548
+ │ ├── 👥 team-engine.ts # Team patterns + knowledge map
549
+ │ ├── 👥 team-advanced-engine.ts # Sprint tracking, blind spots
550
+ │ ├── 👥 team-composer.ts # Weighted taste aggregation
551
+ │ ├── 🌐 community-engine.ts # Pattern success + benchmarks
552
+ │ ├── 🌐 community-advanced.ts # Stack decisions
553
+ │ ├── 🌐 community-prior.ts # Synthetic → live transition
554
+ │ ├── 🌐 community-live.ts # Real signal ingestion
555
+ │ ├── 🛡️ privacy-manager.ts # 46 forbidden fields
556
+ │ └── 🧪 __tests__/ # 772 hostile assertions
557
+ ├── ⚙️ daemon/ # Daemon server
558
+ │ ├── server.ts # 125+ route Express server
559
+ │ ├── lifecycle.ts # Start/stop/restart
560
+ │ └── websocket.ts # Real-time streaming
561
+
562
+ 📦 extensions/
563
+ ├── 🖥️ vscode/ # VSCode extension (.vsix)
564
+ ├── 🖥️ jetbrains/ # JetBrains plugin config
565
+ └── ⌨️ shell/ # Shell + Copilot sync scripts
566
+ ```
567
+
568
+ <div align="center">
569
+
570
+ ### 🎯 What to Build
571
+
572
+ </div>
573
+
574
+ | 🏷️ Type | 💡 Examples |
575
+ |:--------|:------------|
576
+ | 👁️ **New blind spot rule** | Add `detectMissing()` to `blind-spot-engine.ts` |
577
+ | 🧠 **New engine** | Create `src/core/your-engine.ts` with `CellStore` |
578
+ | 📟 **CLI command** | Add to `cli.ts` following existing patterns |
579
+ | 🔌 **MCP tool** | Add to `mcp-server.ts` TOOLS + `handleToolCall()` |
580
+ | 🧪 **Tests** | Add hostile assertions proving edge cases |
581
+ | 📖 **Docs** | Improve README, FOUNDATION.md, MCP-SETUP.md |
582
+
583
+ <div align="center">
584
+
585
+ ### 📋 Guidelines
586
+
587
+ </div>
588
+
589
+ 1. 🚫 **Zero AI/ML dependencies.** Evidence-based math only.
590
+ 2. 🏠 **Local-first.** Every feature must work fully offline.
591
+ 3. 🛡️ **Privacy-first.** Check `privacy-manager.ts` before sharing data.
592
+ 4. 💾 **Memory-only file content.** Abstract patterns only — never raw code.
593
+ 5. 🌍 **Cross-platform.** Node.js only. Works on Windows, Mac, Linux.
594
+ 6. 🧪 **Tests required.** Every engine needs hostile assertions.
595
+
596
+ <div align="center">
597
+
598
+ ### 🔄 PR Process
599
+
600
+ </div>
601
+
602
+ ```
603
+ 1️⃣ Fork → Branch → Implement → Add tests
604
+ 2️⃣ npm test → 772 assertions must pass
605
+ 3️⃣ npx tsc --noEmit → Zero TypeScript errors
606
+ 4️⃣ Open PR → main → Describe what + why
607
+ 5️⃣ ✅ All checks green → Merged! 🎉
608
+ ```
609
+
610
+ ---
611
+
612
+ <div align="center">
613
+
614
+ ## 🧪 Tests
615
+
616
+ </div>
617
+
618
+ ```bash
619
+ npm test # All 772 assertions
620
+
621
+ # Specific test:
622
+ npx vitest run src/core/__tests__/team-composer.test.ts
623
+ ```
624
+
625
+ <div align="center">
626
+
627
+ ```
628
+ ✅ 772/772 hostile assertions passing
629
+ ✅ Zero TypeScript errors
630
+ ✅ Cross-platform verified
631
+ ```
632
+
633
+ </div>
634
+
635
+ ---
636
+
637
+ <div align="center">
638
+
639
+ ## ⭐ Why Trust Cell
640
+
641
+ </div>
642
+
643
+ <div align="center">
644
+
645
+ ```
646
+ ╔════════════════════════════════════════════════════════════╗
647
+ ║ ║
648
+ ║ 🔓 Apache 2.0 — Every line is public. Audit it. ║
649
+ ║ 🏠 Local-First — Zero cloud dependency. ║
650
+ ║ 💰 Free Forever — No pricing page. No billing code. ║
651
+ ║ 🛡️ 46 Blocked — Code literally cannot leave. ║
652
+ ║ 📊 Zero Telemetry — No usage tracking. No analytics. ║
653
+ ║ 🧪 772 Assertions — Edge cases proven to work. ║
654
+ ║ 💨 Clean Uninstall — One command. No traces. ║
655
+ ║ ║
656
+ ╚════════════════════════════════════════════════════════════╝
657
+ ```
658
+
659
+ </div>
660
+
661
+ ---
662
+
663
+ <div align="center">
664
+
665
+ ## 🔗 Links
666
+
667
+ </div>
668
+
669
+ <div align="center">
670
+
671
+ | 🔗 | Resource |
672
+ |:---:|:---------|
673
+ | 🌐 | [cell.fivo.live](https://cell.fivo.live) |
674
+ | 📦 | `npm i -g fivocell` |
675
+ | 💻 | [github.com/thevinsoni/cell](https://github.com/thevinsoni/cell) |
676
+ | 📖 | [MCP Setup Guide](docs/MCP-SETUP.md) |
677
+
678
+ </div>
679
+
680
+ ---
681
+
682
+ <div align="center">
683
+
684
+ ```
685
+ ╔══════════════════════════════════════════════════════════╗
686
+ ║ ║
687
+ ║ 🧬 Your taste. Every tool. Forever free. ║
688
+ ║ ║
689
+ ║ Cell is the last time you explain yourself ║
690
+ ║ to a machine. ║
691
+ ║ ║
692
+ ╚══════════════════════════════════════════════════════════╝
693
+ ```
694
+
695
+ **Made with ❤️ by developers, for developers. [Contribute →](#-contributing)**
696
+
697
+ </div>