@claude-flow/cli 3.7.0-alpha.10 → 3.7.0-alpha.12

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 (428) hide show
  1. package/.claude/agents/analysis/analyze-code-quality.md +178 -178
  2. package/.claude/agents/analysis/code-analyzer.md +209 -209
  3. package/.claude/agents/analysis/code-review/analyze-code-quality.md +178 -178
  4. package/.claude/agents/architecture/arch-system-design.md +156 -156
  5. package/.claude/agents/architecture/system-design/arch-system-design.md +154 -154
  6. package/.claude/agents/browser/browser-agent.yaml +182 -182
  7. package/.claude/agents/consensus/byzantine-coordinator.md +62 -62
  8. package/.claude/agents/consensus/crdt-synchronizer.md +996 -996
  9. package/.claude/agents/consensus/gossip-coordinator.md +62 -62
  10. package/.claude/agents/consensus/performance-benchmarker.md +850 -850
  11. package/.claude/agents/consensus/quorum-manager.md +822 -822
  12. package/.claude/agents/consensus/raft-manager.md +62 -62
  13. package/.claude/agents/consensus/security-manager.md +621 -621
  14. package/.claude/agents/core/coder.md +452 -452
  15. package/.claude/agents/core/planner.md +374 -374
  16. package/.claude/agents/core/researcher.md +368 -368
  17. package/.claude/agents/core/reviewer.md +519 -519
  18. package/.claude/agents/core/tester.md +511 -511
  19. package/.claude/agents/custom/test-long-runner.md +44 -44
  20. package/.claude/agents/data/data-ml-model.md +444 -444
  21. package/.claude/agents/data/ml/data-ml-model.md +192 -192
  22. package/.claude/agents/development/backend/dev-backend-api.md +141 -141
  23. package/.claude/agents/development/dev-backend-api.md +344 -344
  24. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +163 -163
  25. package/.claude/agents/devops/ops-cicd-github.md +164 -164
  26. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +173 -173
  27. package/.claude/agents/documentation/docs-api-openapi.md +354 -354
  28. package/.claude/agents/flow-nexus/app-store.md +87 -87
  29. package/.claude/agents/flow-nexus/authentication.md +68 -68
  30. package/.claude/agents/flow-nexus/challenges.md +80 -80
  31. package/.claude/agents/flow-nexus/neural-network.md +87 -87
  32. package/.claude/agents/flow-nexus/payments.md +82 -82
  33. package/.claude/agents/flow-nexus/sandbox.md +75 -75
  34. package/.claude/agents/flow-nexus/swarm.md +75 -75
  35. package/.claude/agents/flow-nexus/user-tools.md +95 -95
  36. package/.claude/agents/flow-nexus/workflow.md +83 -83
  37. package/.claude/agents/github/code-review-swarm.md +377 -377
  38. package/.claude/agents/github/github-modes.md +172 -172
  39. package/.claude/agents/github/issue-tracker.md +575 -575
  40. package/.claude/agents/github/multi-repo-swarm.md +552 -552
  41. package/.claude/agents/github/pr-manager.md +437 -437
  42. package/.claude/agents/github/project-board-sync.md +508 -508
  43. package/.claude/agents/github/release-manager.md +604 -604
  44. package/.claude/agents/github/release-swarm.md +582 -582
  45. package/.claude/agents/github/repo-architect.md +397 -397
  46. package/.claude/agents/github/swarm-issue.md +572 -572
  47. package/.claude/agents/github/swarm-pr.md +427 -427
  48. package/.claude/agents/github/sync-coordinator.md +451 -451
  49. package/.claude/agents/github/workflow-automation.md +902 -902
  50. package/.claude/agents/goal/agent.md +815 -815
  51. package/.claude/agents/goal/goal-planner.md +72 -72
  52. package/.claude/agents/optimization/benchmark-suite.md +664 -664
  53. package/.claude/agents/optimization/load-balancer.md +430 -430
  54. package/.claude/agents/optimization/performance-monitor.md +671 -671
  55. package/.claude/agents/optimization/resource-allocator.md +673 -673
  56. package/.claude/agents/optimization/topology-optimizer.md +807 -807
  57. package/.claude/agents/payments/agentic-payments.md +126 -126
  58. package/.claude/agents/sona/sona-learning-optimizer.md +74 -74
  59. package/.claude/agents/sparc/architecture.md +698 -698
  60. package/.claude/agents/sparc/pseudocode.md +519 -519
  61. package/.claude/agents/sparc/refinement.md +801 -801
  62. package/.claude/agents/sparc/specification.md +477 -477
  63. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +224 -224
  64. package/.claude/agents/specialized/spec-mobile-react-native.md +226 -226
  65. package/.claude/agents/sublinear/consensus-coordinator.md +337 -337
  66. package/.claude/agents/sublinear/matrix-optimizer.md +184 -184
  67. package/.claude/agents/sublinear/pagerank-analyzer.md +298 -298
  68. package/.claude/agents/sublinear/performance-optimizer.md +367 -367
  69. package/.claude/agents/sublinear/trading-predictor.md +245 -245
  70. package/.claude/agents/swarm/adaptive-coordinator.md +1126 -1126
  71. package/.claude/agents/swarm/hierarchical-coordinator.md +709 -709
  72. package/.claude/agents/swarm/mesh-coordinator.md +962 -962
  73. package/.claude/agents/templates/automation-smart-agent.md +204 -204
  74. package/.claude/agents/templates/base-template-generator.md +289 -289
  75. package/.claude/agents/templates/coordinator-swarm-init.md +89 -89
  76. package/.claude/agents/templates/github-pr-manager.md +176 -176
  77. package/.claude/agents/templates/implementer-sparc-coder.md +258 -258
  78. package/.claude/agents/templates/memory-coordinator.md +186 -186
  79. package/.claude/agents/templates/orchestrator-task.md +138 -138
  80. package/.claude/agents/templates/performance-analyzer.md +198 -198
  81. package/.claude/agents/templates/sparc-coordinator.md +513 -513
  82. package/.claude/agents/testing/production-validator.md +394 -394
  83. package/.claude/agents/testing/tdd-london-swarm.md +243 -243
  84. package/.claude/agents/v3/adr-architect.md +184 -184
  85. package/.claude/agents/v3/aidefence-guardian.md +282 -282
  86. package/.claude/agents/v3/claims-authorizer.md +208 -208
  87. package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -993
  88. package/.claude/agents/v3/ddd-domain-expert.md +220 -220
  89. package/.claude/agents/v3/injection-analyst.md +236 -236
  90. package/.claude/agents/v3/memory-specialist.md +995 -995
  91. package/.claude/agents/v3/performance-engineer.md +1233 -1233
  92. package/.claude/agents/v3/pii-detector.md +151 -151
  93. package/.claude/agents/v3/reasoningbank-learner.md +213 -213
  94. package/.claude/agents/v3/security-architect-aidefence.md +410 -410
  95. package/.claude/agents/v3/security-architect.md +867 -867
  96. package/.claude/agents/v3/security-auditor.md +771 -771
  97. package/.claude/agents/v3/sparc-orchestrator.md +182 -182
  98. package/.claude/agents/v3/swarm-memory-manager.md +157 -157
  99. package/.claude/agents/v3/v3-integration-architect.md +205 -205
  100. package/.claude/commands/agents/README.md +50 -50
  101. package/.claude/commands/agents/agent-capabilities.md +140 -140
  102. package/.claude/commands/agents/agent-coordination.md +28 -28
  103. package/.claude/commands/agents/agent-spawning.md +28 -28
  104. package/.claude/commands/agents/agent-types.md +216 -216
  105. package/.claude/commands/agents/health.md +139 -139
  106. package/.claude/commands/agents/list.md +100 -100
  107. package/.claude/commands/agents/logs.md +130 -130
  108. package/.claude/commands/agents/metrics.md +122 -122
  109. package/.claude/commands/agents/pool.md +127 -127
  110. package/.claude/commands/agents/spawn.md +140 -140
  111. package/.claude/commands/agents/status.md +115 -115
  112. package/.claude/commands/agents/stop.md +102 -102
  113. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +53 -53
  114. package/.claude/commands/analysis/README.md +9 -9
  115. package/.claude/commands/analysis/bottleneck-detect.md +162 -162
  116. package/.claude/commands/analysis/performance-bottlenecks.md +58 -58
  117. package/.claude/commands/analysis/performance-report.md +25 -25
  118. package/.claude/commands/analysis/token-efficiency.md +44 -44
  119. package/.claude/commands/analysis/token-usage.md +25 -25
  120. package/.claude/commands/automation/README.md +9 -9
  121. package/.claude/commands/automation/auto-agent.md +122 -122
  122. package/.claude/commands/automation/self-healing.md +105 -105
  123. package/.claude/commands/automation/session-memory.md +89 -89
  124. package/.claude/commands/automation/smart-agents.md +72 -72
  125. package/.claude/commands/automation/smart-spawn.md +25 -25
  126. package/.claude/commands/automation/workflow-select.md +25 -25
  127. package/.claude/commands/claude-flow-help.md +103 -103
  128. package/.claude/commands/claude-flow-memory.md +107 -107
  129. package/.claude/commands/claude-flow-swarm.md +205 -205
  130. package/.claude/commands/coordination/README.md +9 -9
  131. package/.claude/commands/coordination/agent-spawn.md +25 -25
  132. package/.claude/commands/coordination/init.md +44 -44
  133. package/.claude/commands/coordination/orchestrate.md +43 -43
  134. package/.claude/commands/coordination/spawn.md +45 -45
  135. package/.claude/commands/coordination/swarm-init.md +85 -85
  136. package/.claude/commands/coordination/task-orchestrate.md +25 -25
  137. package/.claude/commands/flow-nexus/app-store.md +123 -123
  138. package/.claude/commands/flow-nexus/challenges.md +119 -119
  139. package/.claude/commands/flow-nexus/login-registration.md +64 -64
  140. package/.claude/commands/flow-nexus/neural-network.md +133 -133
  141. package/.claude/commands/flow-nexus/payments.md +115 -115
  142. package/.claude/commands/flow-nexus/sandbox.md +82 -82
  143. package/.claude/commands/flow-nexus/swarm.md +86 -86
  144. package/.claude/commands/flow-nexus/user-tools.md +151 -151
  145. package/.claude/commands/flow-nexus/workflow.md +114 -114
  146. package/.claude/commands/github/README.md +11 -11
  147. package/.claude/commands/github/code-review-swarm.md +513 -513
  148. package/.claude/commands/github/code-review.md +25 -25
  149. package/.claude/commands/github/github-modes.md +146 -146
  150. package/.claude/commands/github/github-swarm.md +121 -121
  151. package/.claude/commands/github/issue-tracker.md +291 -291
  152. package/.claude/commands/github/issue-triage.md +25 -25
  153. package/.claude/commands/github/multi-repo-swarm.md +518 -518
  154. package/.claude/commands/github/pr-enhance.md +26 -26
  155. package/.claude/commands/github/pr-manager.md +169 -169
  156. package/.claude/commands/github/project-board-sync.md +470 -470
  157. package/.claude/commands/github/release-manager.md +337 -337
  158. package/.claude/commands/github/release-swarm.md +543 -543
  159. package/.claude/commands/github/repo-analyze.md +25 -25
  160. package/.claude/commands/github/repo-architect.md +366 -366
  161. package/.claude/commands/github/swarm-issue.md +481 -481
  162. package/.claude/commands/github/swarm-pr.md +284 -284
  163. package/.claude/commands/github/sync-coordinator.md +300 -300
  164. package/.claude/commands/github/workflow-automation.md +441 -441
  165. package/.claude/commands/hive-mind/README.md +17 -17
  166. package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -8
  167. package/.claude/commands/hive-mind/hive-mind-init.md +18 -18
  168. package/.claude/commands/hive-mind/hive-mind-memory.md +8 -8
  169. package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -8
  170. package/.claude/commands/hive-mind/hive-mind-resume.md +8 -8
  171. package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -8
  172. package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -21
  173. package/.claude/commands/hive-mind/hive-mind-status.md +8 -8
  174. package/.claude/commands/hive-mind/hive-mind-stop.md +8 -8
  175. package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -8
  176. package/.claude/commands/hive-mind/hive-mind.md +27 -27
  177. package/.claude/commands/hooks/README.md +11 -11
  178. package/.claude/commands/hooks/overview.md +57 -57
  179. package/.claude/commands/hooks/post-edit.md +117 -117
  180. package/.claude/commands/hooks/post-task.md +112 -112
  181. package/.claude/commands/hooks/pre-edit.md +113 -113
  182. package/.claude/commands/hooks/pre-task.md +111 -111
  183. package/.claude/commands/hooks/session-end.md +118 -118
  184. package/.claude/commands/hooks/setup.md +102 -102
  185. package/.claude/commands/memory/README.md +9 -9
  186. package/.claude/commands/memory/memory-persist.md +25 -25
  187. package/.claude/commands/memory/memory-search.md +25 -25
  188. package/.claude/commands/memory/memory-usage.md +25 -25
  189. package/.claude/commands/memory/neural.md +47 -47
  190. package/.claude/commands/monitoring/README.md +9 -9
  191. package/.claude/commands/monitoring/agent-metrics.md +25 -25
  192. package/.claude/commands/monitoring/agents.md +44 -44
  193. package/.claude/commands/monitoring/real-time-view.md +25 -25
  194. package/.claude/commands/monitoring/status.md +46 -46
  195. package/.claude/commands/monitoring/swarm-monitor.md +25 -25
  196. package/.claude/commands/optimization/README.md +9 -9
  197. package/.claude/commands/optimization/auto-topology.md +61 -61
  198. package/.claude/commands/optimization/cache-manage.md +25 -25
  199. package/.claude/commands/optimization/parallel-execute.md +25 -25
  200. package/.claude/commands/optimization/parallel-execution.md +49 -49
  201. package/.claude/commands/optimization/topology-optimize.md +25 -25
  202. package/.claude/commands/pair/README.md +260 -260
  203. package/.claude/commands/pair/commands.md +545 -545
  204. package/.claude/commands/pair/config.md +509 -509
  205. package/.claude/commands/pair/examples.md +511 -511
  206. package/.claude/commands/pair/modes.md +347 -347
  207. package/.claude/commands/pair/session.md +406 -406
  208. package/.claude/commands/pair/start.md +208 -208
  209. package/.claude/commands/sparc/analyzer.md +51 -51
  210. package/.claude/commands/sparc/architect.md +53 -53
  211. package/.claude/commands/sparc/ask.md +97 -97
  212. package/.claude/commands/sparc/batch-executor.md +54 -54
  213. package/.claude/commands/sparc/code.md +89 -89
  214. package/.claude/commands/sparc/coder.md +54 -54
  215. package/.claude/commands/sparc/debug.md +83 -83
  216. package/.claude/commands/sparc/debugger.md +54 -54
  217. package/.claude/commands/sparc/designer.md +53 -53
  218. package/.claude/commands/sparc/devops.md +109 -109
  219. package/.claude/commands/sparc/docs-writer.md +80 -80
  220. package/.claude/commands/sparc/documenter.md +54 -54
  221. package/.claude/commands/sparc/innovator.md +54 -54
  222. package/.claude/commands/sparc/integration.md +83 -83
  223. package/.claude/commands/sparc/mcp.md +117 -117
  224. package/.claude/commands/sparc/memory-manager.md +54 -54
  225. package/.claude/commands/sparc/optimizer.md +54 -54
  226. package/.claude/commands/sparc/orchestrator.md +131 -131
  227. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -83
  228. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -83
  229. package/.claude/commands/sparc/researcher.md +54 -54
  230. package/.claude/commands/sparc/reviewer.md +54 -54
  231. package/.claude/commands/sparc/security-review.md +80 -80
  232. package/.claude/commands/sparc/sparc-modes.md +174 -174
  233. package/.claude/commands/sparc/sparc.md +111 -111
  234. package/.claude/commands/sparc/spec-pseudocode.md +80 -80
  235. package/.claude/commands/sparc/supabase-admin.md +348 -348
  236. package/.claude/commands/sparc/swarm-coordinator.md +54 -54
  237. package/.claude/commands/sparc/tdd.md +54 -54
  238. package/.claude/commands/sparc/tester.md +54 -54
  239. package/.claude/commands/sparc/tutorial.md +79 -79
  240. package/.claude/commands/sparc/workflow-manager.md +54 -54
  241. package/.claude/commands/sparc.md +166 -166
  242. package/.claude/commands/stream-chain/pipeline.md +120 -120
  243. package/.claude/commands/stream-chain/run.md +69 -69
  244. package/.claude/commands/swarm/README.md +15 -15
  245. package/.claude/commands/swarm/analysis.md +95 -95
  246. package/.claude/commands/swarm/development.md +96 -96
  247. package/.claude/commands/swarm/examples.md +168 -168
  248. package/.claude/commands/swarm/maintenance.md +102 -102
  249. package/.claude/commands/swarm/optimization.md +117 -117
  250. package/.claude/commands/swarm/research.md +136 -136
  251. package/.claude/commands/swarm/swarm-analysis.md +8 -8
  252. package/.claude/commands/swarm/swarm-background.md +8 -8
  253. package/.claude/commands/swarm/swarm-init.md +19 -19
  254. package/.claude/commands/swarm/swarm-modes.md +8 -8
  255. package/.claude/commands/swarm/swarm-monitor.md +8 -8
  256. package/.claude/commands/swarm/swarm-spawn.md +19 -19
  257. package/.claude/commands/swarm/swarm-status.md +8 -8
  258. package/.claude/commands/swarm/swarm-strategies.md +8 -8
  259. package/.claude/commands/swarm/swarm.md +87 -87
  260. package/.claude/commands/swarm/testing.md +131 -131
  261. package/.claude/commands/training/README.md +9 -9
  262. package/.claude/commands/training/model-update.md +25 -25
  263. package/.claude/commands/training/neural-patterns.md +107 -107
  264. package/.claude/commands/training/neural-train.md +75 -75
  265. package/.claude/commands/training/pattern-learn.md +25 -25
  266. package/.claude/commands/training/specialization.md +62 -62
  267. package/.claude/commands/truth/start.md +142 -142
  268. package/.claude/commands/verify/check.md +49 -49
  269. package/.claude/commands/verify/start.md +127 -127
  270. package/.claude/commands/workflows/README.md +9 -9
  271. package/.claude/commands/workflows/development.md +77 -77
  272. package/.claude/commands/workflows/research.md +62 -62
  273. package/.claude/commands/workflows/workflow-create.md +25 -25
  274. package/.claude/commands/workflows/workflow-execute.md +25 -25
  275. package/.claude/commands/workflows/workflow-export.md +25 -25
  276. package/.claude/helpers/README.md +96 -96
  277. package/.claude/helpers/adr-compliance.sh +186 -186
  278. package/.claude/helpers/auto-commit.sh +178 -178
  279. package/.claude/helpers/auto-memory-hook.mjs +368 -368
  280. package/.claude/helpers/checkpoint-manager.sh +251 -251
  281. package/.claude/helpers/daemon-manager.sh +252 -252
  282. package/.claude/helpers/ddd-tracker.sh +144 -144
  283. package/.claude/helpers/github-safe.js +121 -121
  284. package/.claude/helpers/github-setup.sh +28 -28
  285. package/.claude/helpers/guidance-hook.sh +13 -13
  286. package/.claude/helpers/guidance-hooks.sh +102 -102
  287. package/.claude/helpers/health-monitor.sh +108 -108
  288. package/.claude/helpers/hook-handler.cjs +278 -278
  289. package/.claude/helpers/intelligence.cjs +1031 -1031
  290. package/.claude/helpers/learning-hooks.sh +329 -329
  291. package/.claude/helpers/learning-optimizer.sh +127 -127
  292. package/.claude/helpers/learning-service.mjs +1144 -1144
  293. package/.claude/helpers/memory.js +83 -83
  294. package/.claude/helpers/metrics-db.mjs +488 -488
  295. package/.claude/helpers/pattern-consolidator.sh +86 -86
  296. package/.claude/helpers/perf-worker.sh +160 -160
  297. package/.claude/helpers/post-commit +16 -16
  298. package/.claude/helpers/pre-commit +26 -26
  299. package/.claude/helpers/quick-start.sh +19 -19
  300. package/.claude/helpers/router.js +66 -66
  301. package/.claude/helpers/security-scanner.sh +127 -127
  302. package/.claude/helpers/session.js +135 -135
  303. package/.claude/helpers/setup-mcp.sh +18 -18
  304. package/.claude/helpers/standard-checkpoint-hooks.sh +189 -189
  305. package/.claude/helpers/statusline-hook.sh +21 -21
  306. package/.claude/helpers/statusline.cjs +575 -575
  307. package/.claude/helpers/statusline.js +321 -321
  308. package/.claude/helpers/swarm-comms.sh +353 -353
  309. package/.claude/helpers/swarm-hooks.sh +761 -761
  310. package/.claude/helpers/swarm-monitor.sh +210 -210
  311. package/.claude/helpers/sync-v3-metrics.sh +245 -245
  312. package/.claude/helpers/update-v3-progress.sh +165 -165
  313. package/.claude/helpers/v3-quick-status.sh +57 -57
  314. package/.claude/helpers/v3.sh +110 -110
  315. package/.claude/helpers/validate-v3-config.sh +215 -215
  316. package/.claude/helpers/worker-manager.sh +170 -170
  317. package/.claude/settings.json +182 -182
  318. package/README.md +393 -393
  319. package/bin/cli.js +220 -220
  320. package/bin/mcp-server.js +224 -224
  321. package/bin/preinstall.cjs +2 -2
  322. package/dist/src/commands/completions.js +409 -409
  323. package/dist/src/commands/doctor.d.ts.map +1 -1
  324. package/dist/src/commands/doctor.js +57 -17
  325. package/dist/src/commands/doctor.js.map +1 -1
  326. package/dist/src/commands/embeddings.js +26 -26
  327. package/dist/src/commands/hive-mind.js +97 -97
  328. package/dist/src/commands/hooks.js +9 -9
  329. package/dist/src/commands/memory.d.ts.map +1 -1
  330. package/dist/src/commands/memory.js +22 -3
  331. package/dist/src/commands/memory.js.map +1 -1
  332. package/dist/src/commands/ruvector/backup.js +23 -23
  333. package/dist/src/commands/ruvector/benchmark.js +31 -31
  334. package/dist/src/commands/ruvector/import.js +14 -14
  335. package/dist/src/commands/ruvector/init.js +115 -115
  336. package/dist/src/commands/ruvector/migrate.js +99 -99
  337. package/dist/src/commands/ruvector/optimize.js +51 -51
  338. package/dist/src/commands/ruvector/setup.js +624 -624
  339. package/dist/src/commands/ruvector/status.js +38 -38
  340. package/dist/src/config-adapter.js +1 -1
  341. package/dist/src/config-adapter.js.map +1 -1
  342. package/dist/src/index.d.ts.map +1 -1
  343. package/dist/src/index.js +14 -12
  344. package/dist/src/index.js.map +1 -1
  345. package/dist/src/init/claudemd-generator.js +226 -226
  346. package/dist/src/init/executor.d.ts.map +1 -1
  347. package/dist/src/init/executor.js +490 -456
  348. package/dist/src/init/executor.js.map +1 -1
  349. package/dist/src/init/helpers-generator.js +645 -645
  350. package/dist/src/init/mcp-generator.js +4 -4
  351. package/dist/src/init/mcp-generator.js.map +1 -1
  352. package/dist/src/init/statusline-generator.js +858 -858
  353. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  354. package/dist/src/mcp-tools/hooks-tools.js +44 -5
  355. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  356. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  357. package/dist/src/mcp-tools/memory-tools.js +71 -46
  358. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  359. package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
  360. package/dist/src/mcp-tools/system-tools.js +36 -11
  361. package/dist/src/mcp-tools/system-tools.js.map +1 -1
  362. package/dist/src/memory/memory-bridge.js +84 -84
  363. package/dist/src/memory/memory-initializer.js +360 -360
  364. package/dist/src/memory/rabitq-index.js +5 -5
  365. package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
  366. package/dist/src/memory/sona-optimizer.js +0 -1
  367. package/dist/src/memory/sona-optimizer.js.map +1 -1
  368. package/dist/src/runtime/headless.js +28 -28
  369. package/dist/src/services/event-stream.d.ts.map +1 -0
  370. package/dist/src/services/event-stream.js.map +1 -0
  371. package/dist/src/services/headless-worker-executor.js +84 -84
  372. package/dist/src/services/loop-worker-runner.d.ts.map +1 -0
  373. package/dist/src/services/loop-worker-runner.js.map +1 -0
  374. package/dist/src/services/runtime-capabilities.d.ts.map +1 -0
  375. package/dist/src/services/runtime-capabilities.js.map +1 -0
  376. package/dist/src/services/worker-daemon.d.ts +14 -2
  377. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  378. package/dist/src/services/worker-daemon.js +128 -10
  379. package/dist/src/services/worker-daemon.js.map +1 -1
  380. package/dist/src/transfer/deploy-seraphine.js +23 -23
  381. package/dist/tsconfig.tsbuildinfo +1 -1
  382. package/package.json +4 -3
  383. package/scripts/deploy-ipfs-node.sh +153 -153
  384. package/scripts/postinstall.cjs +153 -153
  385. package/scripts/publish-registry.ts +345 -345
  386. package/scripts/publish.sh +57 -57
  387. package/scripts/setup-ipfs-registry.md +366 -366
  388. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  389. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  390. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  391. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  392. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  393. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  394. package/.claude/skills/aidefence-scan.md +0 -151
  395. package/.claude/skills/aidefence.yaml +0 -297
  396. package/.claude/skills/browser/SKILL.md +0 -204
  397. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  398. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  399. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  400. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  401. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  402. package/.claude/skills/github-project-management/SKILL.md +0 -1290
  403. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  404. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  405. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  406. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  407. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  408. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  409. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  410. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  411. package/.claude/skills/secure-review.md +0 -181
  412. package/.claude/skills/skill-builder/SKILL.md +0 -910
  413. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  414. package/.claude/skills/stream-chain/SKILL.md +0 -563
  415. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  416. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  417. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  418. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  419. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  420. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  421. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  422. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  423. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  424. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  425. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  426. package/.claude/skills/verification-quality/SKILL.md +0 -649
  427. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  428. package/.claude/skills/worker-integration/skill.md +0 -154
@@ -707,30 +707,64 @@ function detectExistingRufloMCP(targetDir) {
707
707
  candidates.add(path.join(home, '.claude', 'mcp.json'));
708
708
  }
709
709
  // Walk parents of targetDir up to root, checking for .mcp.json at each
710
- let dir = path.resolve(targetDir);
710
+ const targetResolved = path.resolve(targetDir);
711
+ let dir = targetResolved;
712
+ const targetAncestors = new Set();
711
713
  while (true) {
712
714
  candidates.add(path.join(dir, '.mcp.json'));
715
+ targetAncestors.add(normalizeProjectKey(dir));
713
716
  const parent = path.dirname(dir);
714
717
  if (parent === dir)
715
718
  break;
716
719
  dir = parent;
717
720
  }
718
721
  // Skip the targetDir itself — that's the one we're about to write
719
- candidates.delete(path.join(path.resolve(targetDir), '.mcp.json'));
722
+ candidates.delete(path.join(targetResolved, '.mcp.json'));
720
723
  for (const candidate of candidates) {
721
724
  if (!fs.existsSync(candidate))
722
725
  continue;
723
726
  try {
724
727
  const parsed = JSON.parse(fs.readFileSync(candidate, 'utf-8'));
725
- if (parsed && typeof parsed === 'object' && parsed.mcpServers && typeof parsed.mcpServers === 'object') {
728
+ if (!parsed || typeof parsed !== 'object')
729
+ continue;
730
+ // (a) Top-level mcpServers (legacy / global form)
731
+ if (parsed.mcpServers && typeof parsed.mcpServers === 'object') {
726
732
  if ('ruflo' in parsed.mcpServers)
727
733
  return candidate;
728
734
  }
735
+ // (b) #1840: Claude Code project-scoped registrations under
736
+ // parsed.projects[<projectPath>].mcpServers.ruflo. Match by
737
+ // normalized path against targetDir or any of its ancestors so
738
+ // a `claude mcp add ruflo` in this repo is detected even when
739
+ // Claude stored the key with different casing/slash style.
740
+ if (parsed.projects && typeof parsed.projects === 'object') {
741
+ for (const [projectKey, projectVal] of Object.entries(parsed.projects)) {
742
+ if (!projectVal || typeof projectVal !== 'object')
743
+ continue;
744
+ const projectMcp = projectVal.mcpServers;
745
+ if (!projectMcp || typeof projectMcp !== 'object')
746
+ continue;
747
+ if (!('ruflo' in projectMcp))
748
+ continue;
749
+ if (targetAncestors.has(normalizeProjectKey(projectKey))) {
750
+ return `${candidate} (projects[${projectKey}])`;
751
+ }
752
+ }
753
+ }
729
754
  }
730
755
  catch { /* malformed JSON — ignore */ }
731
756
  }
732
757
  return null;
733
758
  }
759
+ /**
760
+ * Normalize a project path key for cross-platform comparison.
761
+ * Claude Code stores Windows paths like "C:/Users/.../Project" while
762
+ * Node's `path.resolve()` may emit "C:\Users\...\Project". Lowercase +
763
+ * forward-slash gives a stable comparison key on both platforms.
764
+ */
765
+ function normalizeProjectKey(p) {
766
+ return path.resolve(p).replace(/\\/g, '/').toLowerCase();
767
+ }
734
768
  /**
735
769
  * Write .mcp.json
736
770
  */
@@ -1118,61 +1152,61 @@ async function writeRuntimeConfig(targetDir, options, result) {
1118
1152
  result.skipped.push('.claude-flow/config.yaml');
1119
1153
  return;
1120
1154
  }
1121
- const config = `# RuFlo V3 Runtime Configuration
1122
- # Generated: ${new Date().toISOString()}
1123
-
1124
- version: "3.0.0"
1125
-
1126
- swarm:
1127
- topology: ${options.runtime.topology}
1128
- maxAgents: ${options.runtime.maxAgents}
1129
- autoScale: true
1130
- coordinationStrategy: consensus
1131
-
1132
- memory:
1133
- backend: ${options.runtime.memoryBackend}
1134
- enableHNSW: ${options.runtime.enableHNSW}
1135
- persistPath: .claude-flow/data
1136
- cacheSize: 100
1137
- # ADR-049: Self-Learning Memory
1138
- learningBridge:
1139
- enabled: ${options.runtime.enableLearningBridge ?? options.runtime.enableNeural}
1140
- sonaMode: balanced
1141
- confidenceDecayRate: 0.005
1142
- accessBoostAmount: 0.03
1143
- consolidationThreshold: 10
1144
- memoryGraph:
1145
- enabled: ${options.runtime.enableMemoryGraph ?? true}
1146
- pageRankDamping: 0.85
1147
- maxNodes: 5000
1148
- similarityThreshold: 0.8
1149
- agentScopes:
1150
- enabled: ${options.runtime.enableAgentScopes ?? true}
1151
- defaultScope: project
1152
-
1153
- neural:
1154
- enabled: ${options.runtime.enableNeural}
1155
- modelPath: .claude-flow/neural
1156
-
1157
- hooks:
1158
- enabled: true
1159
- autoExecute: true
1160
-
1161
- mcp:
1162
- autoStart: ${options.mcp.autoStart}
1163
- port: ${options.mcp.port}
1155
+ const config = `# RuFlo V3 Runtime Configuration
1156
+ # Generated: ${new Date().toISOString()}
1157
+
1158
+ version: "3.0.0"
1159
+
1160
+ swarm:
1161
+ topology: ${options.runtime.topology}
1162
+ maxAgents: ${options.runtime.maxAgents}
1163
+ autoScale: true
1164
+ coordinationStrategy: consensus
1165
+
1166
+ memory:
1167
+ backend: ${options.runtime.memoryBackend}
1168
+ enableHNSW: ${options.runtime.enableHNSW}
1169
+ persistPath: .claude-flow/data
1170
+ cacheSize: 100
1171
+ # ADR-049: Self-Learning Memory
1172
+ learningBridge:
1173
+ enabled: ${options.runtime.enableLearningBridge ?? options.runtime.enableNeural}
1174
+ sonaMode: balanced
1175
+ confidenceDecayRate: 0.005
1176
+ accessBoostAmount: 0.03
1177
+ consolidationThreshold: 10
1178
+ memoryGraph:
1179
+ enabled: ${options.runtime.enableMemoryGraph ?? true}
1180
+ pageRankDamping: 0.85
1181
+ maxNodes: 5000
1182
+ similarityThreshold: 0.8
1183
+ agentScopes:
1184
+ enabled: ${options.runtime.enableAgentScopes ?? true}
1185
+ defaultScope: project
1186
+
1187
+ neural:
1188
+ enabled: ${options.runtime.enableNeural}
1189
+ modelPath: .claude-flow/neural
1190
+
1191
+ hooks:
1192
+ enabled: true
1193
+ autoExecute: true
1194
+
1195
+ mcp:
1196
+ autoStart: ${options.mcp.autoStart}
1197
+ port: ${options.mcp.port}
1164
1198
  `;
1165
1199
  fs.writeFileSync(configPath, config, 'utf-8');
1166
1200
  result.created.files.push('.claude-flow/config.yaml');
1167
1201
  // Write .gitignore
1168
1202
  const gitignorePath = path.join(targetDir, '.claude-flow', '.gitignore');
1169
- const gitignore = `# Claude Flow runtime files
1170
- data/
1171
- logs/
1172
- sessions/
1173
- neural/
1174
- *.log
1175
- *.tmp
1203
+ const gitignore = `# Claude Flow runtime files
1204
+ data/
1205
+ logs/
1206
+ sessions/
1207
+ neural/
1208
+ *.log
1209
+ *.tmp
1176
1210
  `;
1177
1211
  if (!fs.existsSync(gitignorePath) || options.force) {
1178
1212
  fs.writeFileSync(gitignorePath, gitignore, 'utf-8');
@@ -1298,409 +1332,409 @@ async function writeCapabilitiesDoc(targetDir, options, result) {
1298
1332
  result.skipped.push('.claude-flow/CAPABILITIES.md');
1299
1333
  return;
1300
1334
  }
1301
- const capabilities = `# RuFlo V3 - Complete Capabilities Reference
1302
- > Generated: ${new Date().toISOString()}
1303
- > Full documentation: https://github.com/ruvnet/claude-flow
1304
-
1305
- ## 📋 Table of Contents
1306
-
1307
- 1. [Overview](#overview)
1308
- 2. [Swarm Orchestration](#swarm-orchestration)
1309
- 3. [Available Agents (60+)](#available-agents)
1310
- 4. [CLI Commands (26 Commands, 140+ Subcommands)](#cli-commands)
1311
- 5. [Hooks System (27 Hooks + 12 Workers)](#hooks-system)
1312
- 6. [Memory & Intelligence (RuVector)](#memory--intelligence)
1313
- 7. [Hive-Mind Consensus](#hive-mind-consensus)
1314
- 8. [Performance Targets](#performance-targets)
1315
- 9. [Integration Ecosystem](#integration-ecosystem)
1316
-
1317
- ---
1318
-
1319
- ## Overview
1320
-
1321
- RuFlo V3 is a domain-driven design architecture for multi-agent AI coordination with:
1322
-
1323
- - **15-Agent Swarm Coordination** with hierarchical and mesh topologies
1324
- - **HNSW Vector Search** - 150x-12,500x faster pattern retrieval
1325
- - **SONA Neural Learning** - Self-optimizing with <0.05ms adaptation
1326
- - **Byzantine Fault Tolerance** - Queen-led consensus mechanisms
1327
- - **MCP Server Integration** - Model Context Protocol support
1328
-
1329
- ### Current Configuration
1330
- | Setting | Value |
1331
- |---------|-------|
1332
- | Topology | ${options.runtime.topology} |
1333
- | Max Agents | ${options.runtime.maxAgents} |
1334
- | Memory Backend | ${options.runtime.memoryBackend} |
1335
- | HNSW Indexing | ${options.runtime.enableHNSW ? 'Enabled' : 'Disabled'} |
1336
- | Neural Learning | ${options.runtime.enableNeural ? 'Enabled' : 'Disabled'} |
1337
- | LearningBridge | ${options.runtime.enableLearningBridge ? 'Enabled (SONA + ReasoningBank)' : 'Disabled'} |
1338
- | Knowledge Graph | ${options.runtime.enableMemoryGraph ? 'Enabled (PageRank + Communities)' : 'Disabled'} |
1339
- | Agent Scopes | ${options.runtime.enableAgentScopes ? 'Enabled (project/local/user)' : 'Disabled'} |
1340
-
1341
- ---
1342
-
1343
- ## Swarm Orchestration
1344
-
1345
- ### Topologies
1346
- | Topology | Description | Best For |
1347
- |----------|-------------|----------|
1348
- | \`hierarchical\` | Queen controls workers directly | Anti-drift, tight control |
1349
- | \`mesh\` | Fully connected peer network | Distributed tasks |
1350
- | \`hierarchical-mesh\` | V3 hybrid (recommended) | 10+ agents |
1351
- | \`ring\` | Circular communication | Sequential workflows |
1352
- | \`star\` | Central coordinator | Simple coordination |
1353
- | \`adaptive\` | Dynamic based on load | Variable workloads |
1354
-
1355
- ### Strategies
1356
- - \`balanced\` - Even distribution across agents
1357
- - \`specialized\` - Clear roles, no overlap (anti-drift)
1358
- - \`adaptive\` - Dynamic task routing
1359
-
1360
- ### Quick Commands
1361
- \`\`\`bash
1362
- # Initialize swarm
1363
- npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized
1364
-
1365
- # Check status
1366
- npx @claude-flow/cli@latest swarm status
1367
-
1368
- # Monitor activity
1369
- npx @claude-flow/cli@latest swarm monitor
1370
- \`\`\`
1371
-
1372
- ---
1373
-
1374
- ## Available Agents
1375
-
1376
- ### Core Development (5)
1377
- \`coder\`, \`reviewer\`, \`tester\`, \`planner\`, \`researcher\`
1378
-
1379
- ### V3 Specialized (4)
1380
- \`security-architect\`, \`security-auditor\`, \`memory-specialist\`, \`performance-engineer\`
1381
-
1382
- ### Swarm Coordination (5)
1383
- \`hierarchical-coordinator\`, \`mesh-coordinator\`, \`adaptive-coordinator\`, \`collective-intelligence-coordinator\`, \`swarm-memory-manager\`
1384
-
1385
- ### Consensus & Distributed (7)
1386
- \`byzantine-coordinator\`, \`raft-manager\`, \`gossip-coordinator\`, \`consensus-builder\`, \`crdt-synchronizer\`, \`quorum-manager\`, \`security-manager\`
1387
-
1388
- ### Performance & Optimization (5)
1389
- \`perf-analyzer\`, \`performance-benchmarker\`, \`task-orchestrator\`, \`memory-coordinator\`, \`smart-agent\`
1390
-
1391
- ### GitHub & Repository (9)
1392
- \`github-modes\`, \`pr-manager\`, \`code-review-swarm\`, \`issue-tracker\`, \`release-manager\`, \`workflow-automation\`, \`project-board-sync\`, \`repo-architect\`, \`multi-repo-swarm\`
1393
-
1394
- ### SPARC Methodology (6)
1395
- \`sparc-coord\`, \`sparc-coder\`, \`specification\`, \`pseudocode\`, \`architecture\`, \`refinement\`
1396
-
1397
- ### Specialized Development (8)
1398
- \`backend-dev\`, \`mobile-dev\`, \`ml-developer\`, \`cicd-engineer\`, \`api-docs\`, \`system-architect\`, \`code-analyzer\`, \`base-template-generator\`
1399
-
1400
- ### Testing & Validation (2)
1401
- \`tdd-london-swarm\`, \`production-validator\`
1402
-
1403
- ### Agent Routing by Task
1404
- | Task Type | Recommended Agents | Topology |
1405
- |-----------|-------------------|----------|
1406
- | Bug Fix | researcher, coder, tester | mesh |
1407
- | New Feature | coordinator, architect, coder, tester, reviewer | hierarchical |
1408
- | Refactoring | architect, coder, reviewer | mesh |
1409
- | Performance | researcher, perf-engineer, coder | hierarchical |
1410
- | Security | security-architect, auditor, reviewer | hierarchical |
1411
- | Docs | researcher, api-docs | mesh |
1412
-
1413
- ---
1414
-
1415
- ## CLI Commands
1416
-
1417
- ### Core Commands (12)
1418
- | Command | Subcommands | Description |
1419
- |---------|-------------|-------------|
1420
- | \`init\` | 4 | Project initialization |
1421
- | \`agent\` | 8 | Agent lifecycle management |
1422
- | \`swarm\` | 6 | Multi-agent coordination |
1423
- | \`memory\` | 11 | AgentDB with HNSW search |
1424
- | \`mcp\` | 9 | MCP server management |
1425
- | \`task\` | 6 | Task assignment |
1426
- | \`session\` | 7 | Session persistence |
1427
- | \`config\` | 7 | Configuration |
1428
- | \`status\` | 3 | System monitoring |
1429
- | \`workflow\` | 6 | Workflow templates |
1430
- | \`hooks\` | 17 | Self-learning hooks |
1431
- | \`hive-mind\` | 6 | Consensus coordination |
1432
-
1433
- ### Advanced Commands (14)
1434
- | Command | Subcommands | Description |
1435
- |---------|-------------|-------------|
1436
- | \`daemon\` | 5 | Background workers |
1437
- | \`neural\` | 5 | Pattern training |
1438
- | \`security\` | 6 | Security scanning |
1439
- | \`performance\` | 5 | Profiling & benchmarks |
1440
- | \`providers\` | 5 | AI provider config |
1441
- | \`plugins\` | 5 | Plugin management |
1442
- | \`deployment\` | 5 | Deploy management |
1443
- | \`embeddings\` | 4 | Vector embeddings |
1444
- | \`claims\` | 4 | Authorization |
1445
- | \`migrate\` | 5 | V2→V3 migration |
1446
- | \`process\` | 4 | Process management |
1447
- | \`doctor\` | 1 | Health diagnostics |
1448
- | \`completions\` | 4 | Shell completions |
1449
-
1450
- ### Example Commands
1451
- \`\`\`bash
1452
- # Initialize
1453
- npx @claude-flow/cli@latest init --wizard
1454
-
1455
- # Spawn agent
1456
- npx @claude-flow/cli@latest agent spawn -t coder --name my-coder
1457
-
1458
- # Memory operations
1459
- npx @claude-flow/cli@latest memory store --key "pattern" --value "data" --namespace patterns
1460
- npx @claude-flow/cli@latest memory search --query "authentication"
1461
-
1462
- # Diagnostics
1463
- npx @claude-flow/cli@latest doctor --fix
1464
- \`\`\`
1465
-
1466
- ---
1467
-
1468
- ## Hooks System
1469
-
1470
- ### 27 Available Hooks
1471
-
1472
- #### Core Hooks (6)
1473
- | Hook | Description |
1474
- |------|-------------|
1475
- | \`pre-edit\` | Context before file edits |
1476
- | \`post-edit\` | Record edit outcomes |
1477
- | \`pre-command\` | Risk assessment |
1478
- | \`post-command\` | Command metrics |
1479
- | \`pre-task\` | Task start + agent suggestions |
1480
- | \`post-task\` | Task completion learning |
1481
-
1482
- #### Session Hooks (4)
1483
- | Hook | Description |
1484
- |------|-------------|
1485
- | \`session-start\` | Start/restore session |
1486
- | \`session-end\` | Persist state |
1487
- | \`session-restore\` | Restore previous |
1488
- | \`notify\` | Cross-agent notifications |
1489
-
1490
- #### Intelligence Hooks (5)
1491
- | Hook | Description |
1492
- |------|-------------|
1493
- | \`route\` | Optimal agent routing |
1494
- | \`explain\` | Routing decisions |
1495
- | \`pretrain\` | Bootstrap intelligence |
1496
- | \`build-agents\` | Generate configs |
1497
- | \`transfer\` | Pattern transfer |
1498
-
1499
- #### Coverage Hooks (3)
1500
- | Hook | Description |
1501
- |------|-------------|
1502
- | \`coverage-route\` | Coverage-based routing |
1503
- | \`coverage-suggest\` | Improvement suggestions |
1504
- | \`coverage-gaps\` | Gap analysis |
1505
-
1506
- ### 12 Background Workers
1507
- | Worker | Priority | Purpose |
1508
- |--------|----------|---------|
1509
- | \`ultralearn\` | normal | Deep knowledge |
1510
- | \`optimize\` | high | Performance |
1511
- | \`consolidate\` | low | Memory consolidation |
1512
- | \`predict\` | normal | Predictive preload |
1513
- | \`audit\` | critical | Security |
1514
- | \`map\` | normal | Codebase mapping |
1515
- | \`preload\` | low | Resource preload |
1516
- | \`deepdive\` | normal | Deep analysis |
1517
- | \`document\` | normal | Auto-docs |
1518
- | \`refactor\` | normal | Suggestions |
1519
- | \`benchmark\` | normal | Benchmarking |
1520
- | \`testgaps\` | normal | Coverage gaps |
1521
-
1522
- ---
1523
-
1524
- ## Memory & Intelligence
1525
-
1526
- ### RuVector Intelligence System
1527
- - **SONA**: Self-Optimizing Neural Architecture (<0.05ms)
1528
- - **MoE**: Mixture of Experts routing
1529
- - **HNSW**: 150x-12,500x faster search
1530
- - **EWC++**: Prevents catastrophic forgetting
1531
- - **Flash Attention**: 2.49x-7.47x speedup
1532
- - **Int8 Quantization**: 3.92x memory reduction
1533
-
1534
- ### 4-Step Intelligence Pipeline
1535
- 1. **RETRIEVE** - HNSW pattern search
1536
- 2. **JUDGE** - Success/failure verdicts
1537
- 3. **DISTILL** - LoRA learning extraction
1538
- 4. **CONSOLIDATE** - EWC++ preservation
1539
-
1540
- ### Self-Learning Memory (ADR-049)
1541
-
1542
- | Component | Status | Description |
1543
- |-----------|--------|-------------|
1544
- | **LearningBridge** | ${options.runtime.enableLearningBridge ? '✅ Enabled' : '⏸ Disabled'} | Connects insights to SONA/ReasoningBank neural pipeline |
1545
- | **MemoryGraph** | ${options.runtime.enableMemoryGraph ? '✅ Enabled' : '⏸ Disabled'} | PageRank knowledge graph + community detection |
1546
- | **AgentMemoryScope** | ${options.runtime.enableAgentScopes ? '✅ Enabled' : '⏸ Disabled'} | 3-scope agent memory (project/local/user) |
1547
-
1548
- **LearningBridge** - Insights trigger learning trajectories. Confidence evolves: +0.03 on access, -0.005/hour decay. Consolidation runs the JUDGE/DISTILL/CONSOLIDATE pipeline.
1549
-
1550
- **MemoryGraph** - Builds a knowledge graph from entry references. PageRank identifies influential insights. Communities group related knowledge. Graph-aware ranking blends vector + structural scores.
1551
-
1552
- **AgentMemoryScope** - Maps Claude Code 3-scope directories:
1553
- - \`project\`: \`<gitRoot>/.claude/agent-memory/<agent>/\`
1554
- - \`local\`: \`<gitRoot>/.claude/agent-memory-local/<agent>/\`
1555
- - \`user\`: \`~/.claude/agent-memory/<agent>/\`
1556
-
1557
- High-confidence insights (>0.8) can transfer between agents.
1558
-
1559
- ### Memory Commands
1560
- \`\`\`bash
1561
- # Store pattern
1562
- npx @claude-flow/cli@latest memory store --key "name" --value "data" --namespace patterns
1563
-
1564
- # Semantic search
1565
- npx @claude-flow/cli@latest memory search --query "authentication"
1566
-
1567
- # List entries
1568
- npx @claude-flow/cli@latest memory list --namespace patterns
1569
-
1570
- # Initialize database
1571
- npx @claude-flow/cli@latest memory init --force
1572
- \`\`\`
1573
-
1574
- ---
1575
-
1576
- ## Hive-Mind Consensus
1577
-
1578
- ### Queen Types
1579
- | Type | Role |
1580
- |------|------|
1581
- | Strategic Queen | Long-term planning |
1582
- | Tactical Queen | Execution coordination |
1583
- | Adaptive Queen | Dynamic optimization |
1584
-
1585
- ### Worker Types (8)
1586
- \`researcher\`, \`coder\`, \`analyst\`, \`tester\`, \`architect\`, \`reviewer\`, \`optimizer\`, \`documenter\`
1587
-
1588
- ### Consensus Mechanisms
1589
- | Mechanism | Fault Tolerance | Use Case |
1590
- |-----------|-----------------|----------|
1591
- | \`byzantine\` | f < n/3 faulty | Adversarial |
1592
- | \`raft\` | f < n/2 failed | Leader-based |
1593
- | \`gossip\` | Eventually consistent | Large scale |
1594
- | \`crdt\` | Conflict-free | Distributed |
1595
- | \`quorum\` | Configurable | Flexible |
1596
-
1597
- ### Hive-Mind Commands
1598
- \`\`\`bash
1599
- # Initialize
1600
- npx @claude-flow/cli@latest hive-mind init --queen-type strategic
1601
-
1602
- # Status
1603
- npx @claude-flow/cli@latest hive-mind status
1604
-
1605
- # Spawn workers
1606
- npx @claude-flow/cli@latest hive-mind spawn --count 5 --type worker
1607
-
1608
- # Consensus
1609
- npx @claude-flow/cli@latest hive-mind consensus --propose "task"
1610
- \`\`\`
1611
-
1612
- ---
1613
-
1614
- ## Performance Targets
1615
-
1616
- | Metric | Target | Status |
1617
- |--------|--------|--------|
1618
- | HNSW Search | 150x-12,500x faster | ✅ Implemented |
1619
- | Memory Reduction | 50-75% | ✅ Implemented (3.92x) |
1620
- | SONA Integration | Pattern learning | ✅ Implemented |
1621
- | Flash Attention | 2.49x-7.47x | 🔄 In Progress |
1622
- | MCP Response | <100ms | ✅ Achieved |
1623
- | CLI Startup | <500ms | ✅ Achieved |
1624
- | SONA Adaptation | <0.05ms | 🔄 In Progress |
1625
- | Graph Build (1k) | <200ms | ✅ 2.78ms (71.9x headroom) |
1626
- | PageRank (1k) | <100ms | ✅ 12.21ms (8.2x headroom) |
1627
- | Insight Recording | <5ms/each | ✅ 0.12ms (41x headroom) |
1628
- | Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
1629
- | Knowledge Transfer | <100ms | ✅ 1.25ms (80x headroom) |
1630
-
1631
- ---
1632
-
1633
- ## Integration Ecosystem
1634
-
1635
- ### Integrated Packages
1636
- | Package | Version | Purpose |
1637
- |---------|---------|---------|
1638
- | agentic-flow | 3.0.0-alpha.1 | Core coordination + ReasoningBank + Router |
1639
- | agentdb | 3.0.0-alpha.10 | Vector database + 8 controllers |
1640
- | @ruvector/attention | 0.1.3 | Flash attention |
1641
- | @ruvector/sona | 0.1.5 | Neural learning |
1642
-
1643
- ### Optional Integrations
1644
- | Package | Command |
1645
- |---------|---------|
1646
- | ruv-swarm | \`npx ruv-swarm mcp start\` |
1647
- | flow-nexus | \`npx flow-nexus@latest mcp start\` |
1648
- | agentic-jujutsu | \`npx agentic-jujutsu@latest\` |
1649
-
1650
- ### MCP Server Setup
1651
- \`\`\`bash
1652
- # Add Ruflo MCP
1653
- claude mcp add ruflo -- npx -y ruflo@latest
1654
-
1655
- # Optional servers
1656
- claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
1657
- claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start
1658
- \`\`\`
1659
-
1660
- ---
1661
-
1662
- ## Quick Reference
1663
-
1664
- ### Essential Commands
1665
- \`\`\`bash
1666
- # Setup
1667
- npx ruflo@latest init --wizard
1668
- npx ruflo@latest daemon start
1669
- npx ruflo@latest doctor --fix
1670
-
1671
- # Swarm
1672
- npx ruflo@latest swarm init --topology hierarchical --max-agents 8
1673
- npx ruflo@latest swarm status
1674
-
1675
- # Agents
1676
- npx ruflo@latest agent spawn -t coder
1677
- npx ruflo@latest agent list
1678
-
1679
- # Memory
1680
- npx ruflo@latest memory search --query "patterns"
1681
-
1682
- # Hooks
1683
- npx ruflo@latest hooks pre-task --description "task"
1684
- npx ruflo@latest hooks worker dispatch --trigger optimize
1685
- \`\`\`
1686
-
1687
- ### File Structure
1688
- \`\`\`
1689
- .claude-flow/
1690
- ├── config.yaml # Runtime configuration
1691
- ├── CAPABILITIES.md # This file
1692
- ├── data/ # Memory storage
1693
- ├── logs/ # Operation logs
1694
- ├── sessions/ # Session state
1695
- ├── hooks/ # Custom hooks
1696
- ├── agents/ # Agent configs
1697
- └── workflows/ # Workflow templates
1698
- \`\`\`
1699
-
1700
- ---
1701
-
1702
- **Full Documentation**: https://github.com/ruvnet/claude-flow
1703
- **Issues**: https://github.com/ruvnet/claude-flow/issues
1335
+ const capabilities = `# RuFlo V3 - Complete Capabilities Reference
1336
+ > Generated: ${new Date().toISOString()}
1337
+ > Full documentation: https://github.com/ruvnet/claude-flow
1338
+
1339
+ ## 📋 Table of Contents
1340
+
1341
+ 1. [Overview](#overview)
1342
+ 2. [Swarm Orchestration](#swarm-orchestration)
1343
+ 3. [Available Agents (60+)](#available-agents)
1344
+ 4. [CLI Commands (26 Commands, 140+ Subcommands)](#cli-commands)
1345
+ 5. [Hooks System (27 Hooks + 12 Workers)](#hooks-system)
1346
+ 6. [Memory & Intelligence (RuVector)](#memory--intelligence)
1347
+ 7. [Hive-Mind Consensus](#hive-mind-consensus)
1348
+ 8. [Performance Targets](#performance-targets)
1349
+ 9. [Integration Ecosystem](#integration-ecosystem)
1350
+
1351
+ ---
1352
+
1353
+ ## Overview
1354
+
1355
+ RuFlo V3 is a domain-driven design architecture for multi-agent AI coordination with:
1356
+
1357
+ - **15-Agent Swarm Coordination** with hierarchical and mesh topologies
1358
+ - **HNSW Vector Search** - 150x-12,500x faster pattern retrieval
1359
+ - **SONA Neural Learning** - Self-optimizing with <0.05ms adaptation
1360
+ - **Byzantine Fault Tolerance** - Queen-led consensus mechanisms
1361
+ - **MCP Server Integration** - Model Context Protocol support
1362
+
1363
+ ### Current Configuration
1364
+ | Setting | Value |
1365
+ |---------|-------|
1366
+ | Topology | ${options.runtime.topology} |
1367
+ | Max Agents | ${options.runtime.maxAgents} |
1368
+ | Memory Backend | ${options.runtime.memoryBackend} |
1369
+ | HNSW Indexing | ${options.runtime.enableHNSW ? 'Enabled' : 'Disabled'} |
1370
+ | Neural Learning | ${options.runtime.enableNeural ? 'Enabled' : 'Disabled'} |
1371
+ | LearningBridge | ${options.runtime.enableLearningBridge ? 'Enabled (SONA + ReasoningBank)' : 'Disabled'} |
1372
+ | Knowledge Graph | ${options.runtime.enableMemoryGraph ? 'Enabled (PageRank + Communities)' : 'Disabled'} |
1373
+ | Agent Scopes | ${options.runtime.enableAgentScopes ? 'Enabled (project/local/user)' : 'Disabled'} |
1374
+
1375
+ ---
1376
+
1377
+ ## Swarm Orchestration
1378
+
1379
+ ### Topologies
1380
+ | Topology | Description | Best For |
1381
+ |----------|-------------|----------|
1382
+ | \`hierarchical\` | Queen controls workers directly | Anti-drift, tight control |
1383
+ | \`mesh\` | Fully connected peer network | Distributed tasks |
1384
+ | \`hierarchical-mesh\` | V3 hybrid (recommended) | 10+ agents |
1385
+ | \`ring\` | Circular communication | Sequential workflows |
1386
+ | \`star\` | Central coordinator | Simple coordination |
1387
+ | \`adaptive\` | Dynamic based on load | Variable workloads |
1388
+
1389
+ ### Strategies
1390
+ - \`balanced\` - Even distribution across agents
1391
+ - \`specialized\` - Clear roles, no overlap (anti-drift)
1392
+ - \`adaptive\` - Dynamic task routing
1393
+
1394
+ ### Quick Commands
1395
+ \`\`\`bash
1396
+ # Initialize swarm
1397
+ npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized
1398
+
1399
+ # Check status
1400
+ npx @claude-flow/cli@latest swarm status
1401
+
1402
+ # Monitor activity
1403
+ npx @claude-flow/cli@latest swarm monitor
1404
+ \`\`\`
1405
+
1406
+ ---
1407
+
1408
+ ## Available Agents
1409
+
1410
+ ### Core Development (5)
1411
+ \`coder\`, \`reviewer\`, \`tester\`, \`planner\`, \`researcher\`
1412
+
1413
+ ### V3 Specialized (4)
1414
+ \`security-architect\`, \`security-auditor\`, \`memory-specialist\`, \`performance-engineer\`
1415
+
1416
+ ### Swarm Coordination (5)
1417
+ \`hierarchical-coordinator\`, \`mesh-coordinator\`, \`adaptive-coordinator\`, \`collective-intelligence-coordinator\`, \`swarm-memory-manager\`
1418
+
1419
+ ### Consensus & Distributed (7)
1420
+ \`byzantine-coordinator\`, \`raft-manager\`, \`gossip-coordinator\`, \`consensus-builder\`, \`crdt-synchronizer\`, \`quorum-manager\`, \`security-manager\`
1421
+
1422
+ ### Performance & Optimization (5)
1423
+ \`perf-analyzer\`, \`performance-benchmarker\`, \`task-orchestrator\`, \`memory-coordinator\`, \`smart-agent\`
1424
+
1425
+ ### GitHub & Repository (9)
1426
+ \`github-modes\`, \`pr-manager\`, \`code-review-swarm\`, \`issue-tracker\`, \`release-manager\`, \`workflow-automation\`, \`project-board-sync\`, \`repo-architect\`, \`multi-repo-swarm\`
1427
+
1428
+ ### SPARC Methodology (6)
1429
+ \`sparc-coord\`, \`sparc-coder\`, \`specification\`, \`pseudocode\`, \`architecture\`, \`refinement\`
1430
+
1431
+ ### Specialized Development (8)
1432
+ \`backend-dev\`, \`mobile-dev\`, \`ml-developer\`, \`cicd-engineer\`, \`api-docs\`, \`system-architect\`, \`code-analyzer\`, \`base-template-generator\`
1433
+
1434
+ ### Testing & Validation (2)
1435
+ \`tdd-london-swarm\`, \`production-validator\`
1436
+
1437
+ ### Agent Routing by Task
1438
+ | Task Type | Recommended Agents | Topology |
1439
+ |-----------|-------------------|----------|
1440
+ | Bug Fix | researcher, coder, tester | mesh |
1441
+ | New Feature | coordinator, architect, coder, tester, reviewer | hierarchical |
1442
+ | Refactoring | architect, coder, reviewer | mesh |
1443
+ | Performance | researcher, perf-engineer, coder | hierarchical |
1444
+ | Security | security-architect, auditor, reviewer | hierarchical |
1445
+ | Docs | researcher, api-docs | mesh |
1446
+
1447
+ ---
1448
+
1449
+ ## CLI Commands
1450
+
1451
+ ### Core Commands (12)
1452
+ | Command | Subcommands | Description |
1453
+ |---------|-------------|-------------|
1454
+ | \`init\` | 4 | Project initialization |
1455
+ | \`agent\` | 8 | Agent lifecycle management |
1456
+ | \`swarm\` | 6 | Multi-agent coordination |
1457
+ | \`memory\` | 11 | AgentDB with HNSW search |
1458
+ | \`mcp\` | 9 | MCP server management |
1459
+ | \`task\` | 6 | Task assignment |
1460
+ | \`session\` | 7 | Session persistence |
1461
+ | \`config\` | 7 | Configuration |
1462
+ | \`status\` | 3 | System monitoring |
1463
+ | \`workflow\` | 6 | Workflow templates |
1464
+ | \`hooks\` | 17 | Self-learning hooks |
1465
+ | \`hive-mind\` | 6 | Consensus coordination |
1466
+
1467
+ ### Advanced Commands (14)
1468
+ | Command | Subcommands | Description |
1469
+ |---------|-------------|-------------|
1470
+ | \`daemon\` | 5 | Background workers |
1471
+ | \`neural\` | 5 | Pattern training |
1472
+ | \`security\` | 6 | Security scanning |
1473
+ | \`performance\` | 5 | Profiling & benchmarks |
1474
+ | \`providers\` | 5 | AI provider config |
1475
+ | \`plugins\` | 5 | Plugin management |
1476
+ | \`deployment\` | 5 | Deploy management |
1477
+ | \`embeddings\` | 4 | Vector embeddings |
1478
+ | \`claims\` | 4 | Authorization |
1479
+ | \`migrate\` | 5 | V2→V3 migration |
1480
+ | \`process\` | 4 | Process management |
1481
+ | \`doctor\` | 1 | Health diagnostics |
1482
+ | \`completions\` | 4 | Shell completions |
1483
+
1484
+ ### Example Commands
1485
+ \`\`\`bash
1486
+ # Initialize
1487
+ npx @claude-flow/cli@latest init --wizard
1488
+
1489
+ # Spawn agent
1490
+ npx @claude-flow/cli@latest agent spawn -t coder --name my-coder
1491
+
1492
+ # Memory operations
1493
+ npx @claude-flow/cli@latest memory store --key "pattern" --value "data" --namespace patterns
1494
+ npx @claude-flow/cli@latest memory search --query "authentication"
1495
+
1496
+ # Diagnostics
1497
+ npx @claude-flow/cli@latest doctor --fix
1498
+ \`\`\`
1499
+
1500
+ ---
1501
+
1502
+ ## Hooks System
1503
+
1504
+ ### 27 Available Hooks
1505
+
1506
+ #### Core Hooks (6)
1507
+ | Hook | Description |
1508
+ |------|-------------|
1509
+ | \`pre-edit\` | Context before file edits |
1510
+ | \`post-edit\` | Record edit outcomes |
1511
+ | \`pre-command\` | Risk assessment |
1512
+ | \`post-command\` | Command metrics |
1513
+ | \`pre-task\` | Task start + agent suggestions |
1514
+ | \`post-task\` | Task completion learning |
1515
+
1516
+ #### Session Hooks (4)
1517
+ | Hook | Description |
1518
+ |------|-------------|
1519
+ | \`session-start\` | Start/restore session |
1520
+ | \`session-end\` | Persist state |
1521
+ | \`session-restore\` | Restore previous |
1522
+ | \`notify\` | Cross-agent notifications |
1523
+
1524
+ #### Intelligence Hooks (5)
1525
+ | Hook | Description |
1526
+ |------|-------------|
1527
+ | \`route\` | Optimal agent routing |
1528
+ | \`explain\` | Routing decisions |
1529
+ | \`pretrain\` | Bootstrap intelligence |
1530
+ | \`build-agents\` | Generate configs |
1531
+ | \`transfer\` | Pattern transfer |
1532
+
1533
+ #### Coverage Hooks (3)
1534
+ | Hook | Description |
1535
+ |------|-------------|
1536
+ | \`coverage-route\` | Coverage-based routing |
1537
+ | \`coverage-suggest\` | Improvement suggestions |
1538
+ | \`coverage-gaps\` | Gap analysis |
1539
+
1540
+ ### 12 Background Workers
1541
+ | Worker | Priority | Purpose |
1542
+ |--------|----------|---------|
1543
+ | \`ultralearn\` | normal | Deep knowledge |
1544
+ | \`optimize\` | high | Performance |
1545
+ | \`consolidate\` | low | Memory consolidation |
1546
+ | \`predict\` | normal | Predictive preload |
1547
+ | \`audit\` | critical | Security |
1548
+ | \`map\` | normal | Codebase mapping |
1549
+ | \`preload\` | low | Resource preload |
1550
+ | \`deepdive\` | normal | Deep analysis |
1551
+ | \`document\` | normal | Auto-docs |
1552
+ | \`refactor\` | normal | Suggestions |
1553
+ | \`benchmark\` | normal | Benchmarking |
1554
+ | \`testgaps\` | normal | Coverage gaps |
1555
+
1556
+ ---
1557
+
1558
+ ## Memory & Intelligence
1559
+
1560
+ ### RuVector Intelligence System
1561
+ - **SONA**: Self-Optimizing Neural Architecture (<0.05ms)
1562
+ - **MoE**: Mixture of Experts routing
1563
+ - **HNSW**: 150x-12,500x faster search
1564
+ - **EWC++**: Prevents catastrophic forgetting
1565
+ - **Flash Attention**: 2.49x-7.47x speedup
1566
+ - **Int8 Quantization**: 3.92x memory reduction
1567
+
1568
+ ### 4-Step Intelligence Pipeline
1569
+ 1. **RETRIEVE** - HNSW pattern search
1570
+ 2. **JUDGE** - Success/failure verdicts
1571
+ 3. **DISTILL** - LoRA learning extraction
1572
+ 4. **CONSOLIDATE** - EWC++ preservation
1573
+
1574
+ ### Self-Learning Memory (ADR-049)
1575
+
1576
+ | Component | Status | Description |
1577
+ |-----------|--------|-------------|
1578
+ | **LearningBridge** | ${options.runtime.enableLearningBridge ? '✅ Enabled' : '⏸ Disabled'} | Connects insights to SONA/ReasoningBank neural pipeline |
1579
+ | **MemoryGraph** | ${options.runtime.enableMemoryGraph ? '✅ Enabled' : '⏸ Disabled'} | PageRank knowledge graph + community detection |
1580
+ | **AgentMemoryScope** | ${options.runtime.enableAgentScopes ? '✅ Enabled' : '⏸ Disabled'} | 3-scope agent memory (project/local/user) |
1581
+
1582
+ **LearningBridge** - Insights trigger learning trajectories. Confidence evolves: +0.03 on access, -0.005/hour decay. Consolidation runs the JUDGE/DISTILL/CONSOLIDATE pipeline.
1583
+
1584
+ **MemoryGraph** - Builds a knowledge graph from entry references. PageRank identifies influential insights. Communities group related knowledge. Graph-aware ranking blends vector + structural scores.
1585
+
1586
+ **AgentMemoryScope** - Maps Claude Code 3-scope directories:
1587
+ - \`project\`: \`<gitRoot>/.claude/agent-memory/<agent>/\`
1588
+ - \`local\`: \`<gitRoot>/.claude/agent-memory-local/<agent>/\`
1589
+ - \`user\`: \`~/.claude/agent-memory/<agent>/\`
1590
+
1591
+ High-confidence insights (>0.8) can transfer between agents.
1592
+
1593
+ ### Memory Commands
1594
+ \`\`\`bash
1595
+ # Store pattern
1596
+ npx @claude-flow/cli@latest memory store --key "name" --value "data" --namespace patterns
1597
+
1598
+ # Semantic search
1599
+ npx @claude-flow/cli@latest memory search --query "authentication"
1600
+
1601
+ # List entries
1602
+ npx @claude-flow/cli@latest memory list --namespace patterns
1603
+
1604
+ # Initialize database
1605
+ npx @claude-flow/cli@latest memory init --force
1606
+ \`\`\`
1607
+
1608
+ ---
1609
+
1610
+ ## Hive-Mind Consensus
1611
+
1612
+ ### Queen Types
1613
+ | Type | Role |
1614
+ |------|------|
1615
+ | Strategic Queen | Long-term planning |
1616
+ | Tactical Queen | Execution coordination |
1617
+ | Adaptive Queen | Dynamic optimization |
1618
+
1619
+ ### Worker Types (8)
1620
+ \`researcher\`, \`coder\`, \`analyst\`, \`tester\`, \`architect\`, \`reviewer\`, \`optimizer\`, \`documenter\`
1621
+
1622
+ ### Consensus Mechanisms
1623
+ | Mechanism | Fault Tolerance | Use Case |
1624
+ |-----------|-----------------|----------|
1625
+ | \`byzantine\` | f < n/3 faulty | Adversarial |
1626
+ | \`raft\` | f < n/2 failed | Leader-based |
1627
+ | \`gossip\` | Eventually consistent | Large scale |
1628
+ | \`crdt\` | Conflict-free | Distributed |
1629
+ | \`quorum\` | Configurable | Flexible |
1630
+
1631
+ ### Hive-Mind Commands
1632
+ \`\`\`bash
1633
+ # Initialize
1634
+ npx @claude-flow/cli@latest hive-mind init --queen-type strategic
1635
+
1636
+ # Status
1637
+ npx @claude-flow/cli@latest hive-mind status
1638
+
1639
+ # Spawn workers
1640
+ npx @claude-flow/cli@latest hive-mind spawn --count 5 --type worker
1641
+
1642
+ # Consensus
1643
+ npx @claude-flow/cli@latest hive-mind consensus --propose "task"
1644
+ \`\`\`
1645
+
1646
+ ---
1647
+
1648
+ ## Performance Targets
1649
+
1650
+ | Metric | Target | Status |
1651
+ |--------|--------|--------|
1652
+ | HNSW Search | 150x-12,500x faster | ✅ Implemented |
1653
+ | Memory Reduction | 50-75% | ✅ Implemented (3.92x) |
1654
+ | SONA Integration | Pattern learning | ✅ Implemented |
1655
+ | Flash Attention | 2.49x-7.47x | 🔄 In Progress |
1656
+ | MCP Response | <100ms | ✅ Achieved |
1657
+ | CLI Startup | <500ms | ✅ Achieved |
1658
+ | SONA Adaptation | <0.05ms | 🔄 In Progress |
1659
+ | Graph Build (1k) | <200ms | ✅ 2.78ms (71.9x headroom) |
1660
+ | PageRank (1k) | <100ms | ✅ 12.21ms (8.2x headroom) |
1661
+ | Insight Recording | <5ms/each | ✅ 0.12ms (41x headroom) |
1662
+ | Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
1663
+ | Knowledge Transfer | <100ms | ✅ 1.25ms (80x headroom) |
1664
+
1665
+ ---
1666
+
1667
+ ## Integration Ecosystem
1668
+
1669
+ ### Integrated Packages
1670
+ | Package | Version | Purpose |
1671
+ |---------|---------|---------|
1672
+ | agentic-flow | 3.0.0-alpha.1 | Core coordination + ReasoningBank + Router |
1673
+ | agentdb | 3.0.0-alpha.10 | Vector database + 8 controllers |
1674
+ | @ruvector/attention | 0.1.3 | Flash attention |
1675
+ | @ruvector/sona | 0.1.5 | Neural learning |
1676
+
1677
+ ### Optional Integrations
1678
+ | Package | Command |
1679
+ |---------|---------|
1680
+ | ruv-swarm | \`npx ruv-swarm mcp start\` |
1681
+ | flow-nexus | \`npx flow-nexus@latest mcp start\` |
1682
+ | agentic-jujutsu | \`npx agentic-jujutsu@latest\` |
1683
+
1684
+ ### MCP Server Setup
1685
+ \`\`\`bash
1686
+ # Add Ruflo MCP
1687
+ claude mcp add ruflo -- npx -y ruflo@latest
1688
+
1689
+ # Optional servers
1690
+ claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
1691
+ claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start
1692
+ \`\`\`
1693
+
1694
+ ---
1695
+
1696
+ ## Quick Reference
1697
+
1698
+ ### Essential Commands
1699
+ \`\`\`bash
1700
+ # Setup
1701
+ npx ruflo@latest init --wizard
1702
+ npx ruflo@latest daemon start
1703
+ npx ruflo@latest doctor --fix
1704
+
1705
+ # Swarm
1706
+ npx ruflo@latest swarm init --topology hierarchical --max-agents 8
1707
+ npx ruflo@latest swarm status
1708
+
1709
+ # Agents
1710
+ npx ruflo@latest agent spawn -t coder
1711
+ npx ruflo@latest agent list
1712
+
1713
+ # Memory
1714
+ npx ruflo@latest memory search --query "patterns"
1715
+
1716
+ # Hooks
1717
+ npx ruflo@latest hooks pre-task --description "task"
1718
+ npx ruflo@latest hooks worker dispatch --trigger optimize
1719
+ \`\`\`
1720
+
1721
+ ### File Structure
1722
+ \`\`\`
1723
+ .claude-flow/
1724
+ ├── config.yaml # Runtime configuration
1725
+ ├── CAPABILITIES.md # This file
1726
+ ├── data/ # Memory storage
1727
+ ├── logs/ # Operation logs
1728
+ ├── sessions/ # Session state
1729
+ ├── hooks/ # Custom hooks
1730
+ ├── agents/ # Agent configs
1731
+ └── workflows/ # Workflow templates
1732
+ \`\`\`
1733
+
1734
+ ---
1735
+
1736
+ **Full Documentation**: https://github.com/ruvnet/claude-flow
1737
+ **Issues**: https://github.com/ruvnet/claude-flow/issues
1704
1738
  `;
1705
1739
  fs.writeFileSync(capabilitiesPath, capabilities, 'utf-8');
1706
1740
  result.created.files.push('.claude-flow/CAPABILITIES.md');