claude-flow 3.0.0-alpha.7 → 3.0.0-alpha.9

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 (924) hide show
  1. package/README.md +991 -900
  2. package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts.map +1 -1
  3. package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.js +182 -8
  4. package/dist/src/commands/daemon.js.map +1 -0
  5. package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts +1 -1
  6. package/{v3/@claude-flow/cli/dist → dist}/src/index.d.ts.map +1 -1
  7. package/{v3/@claude-flow/cli/dist → dist}/src/index.js +21 -0
  8. package/dist/src/index.js.map +1 -0
  9. package/{v3/@claude-flow/cli/dist → dist}/src/output.d.ts +16 -0
  10. package/dist/src/output.d.ts.map +1 -0
  11. package/{v3/@claude-flow/cli/dist → dist}/src/output.js +42 -0
  12. package/dist/src/output.js.map +1 -0
  13. package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.d.ts +29 -2
  14. package/dist/src/services/worker-daemon.d.ts.map +1 -0
  15. package/{v3/@claude-flow/cli/dist → dist}/src/services/worker-daemon.js +123 -20
  16. package/dist/src/services/worker-daemon.js.map +1 -0
  17. package/dist/tsconfig.tsbuildinfo +1 -0
  18. package/package.json +13 -57
  19. package/src/commands/agent.ts +955 -0
  20. package/src/commands/config.ts +452 -0
  21. package/src/commands/daemon.ts +598 -0
  22. package/src/commands/hive-mind.ts +928 -0
  23. package/src/commands/hooks.ts +2603 -0
  24. package/src/commands/index.ts +118 -0
  25. package/src/commands/init.ts +597 -0
  26. package/src/commands/mcp.ts +753 -0
  27. package/src/commands/memory.ts +1161 -0
  28. package/src/commands/migrate.ts +447 -0
  29. package/src/commands/process.ts +695 -0
  30. package/src/commands/session.ts +891 -0
  31. package/src/commands/start.ts +457 -0
  32. package/src/commands/status.ts +736 -0
  33. package/src/commands/swarm.ts +648 -0
  34. package/src/commands/task.ts +792 -0
  35. package/src/commands/workflow.ts +742 -0
  36. package/src/config-adapter.ts +210 -0
  37. package/src/index.ts +427 -0
  38. package/src/infrastructure/in-memory-repositories.ts +310 -0
  39. package/src/init/claudemd-generator.ts +631 -0
  40. package/src/init/executor.ts +762 -0
  41. package/src/init/helpers-generator.ts +628 -0
  42. package/src/init/index.ts +60 -0
  43. package/src/init/mcp-generator.ts +83 -0
  44. package/src/init/settings-generator.ts +284 -0
  45. package/src/init/statusline-generator.ts +211 -0
  46. package/src/init/types.ts +447 -0
  47. package/src/mcp-client.ts +241 -0
  48. package/src/mcp-server.ts +577 -0
  49. package/src/mcp-tools/agent-tools.ts +466 -0
  50. package/src/mcp-tools/config-tools.ts +370 -0
  51. package/src/mcp-tools/hive-mind-tools.ts +521 -0
  52. package/src/mcp-tools/hooks-tools.ts +1888 -0
  53. package/src/mcp-tools/index.ts +16 -0
  54. package/src/mcp-tools/memory-tools.ts +270 -0
  55. package/src/mcp-tools/session-tools.ts +359 -0
  56. package/src/mcp-tools/swarm-tools.ts +105 -0
  57. package/src/mcp-tools/task-tools.ts +347 -0
  58. package/src/mcp-tools/types.ts +33 -0
  59. package/src/mcp-tools/workflow-tools.ts +573 -0
  60. package/src/output.ts +639 -0
  61. package/src/parser.ts +417 -0
  62. package/src/prompt.ts +619 -0
  63. package/src/services/index.ts +15 -0
  64. package/src/services/worker-daemon.ts +726 -0
  65. package/src/types.ts +287 -0
  66. package/.claude/.claude-flow/metrics/system-metrics.json +0 -2606
  67. package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
  68. package/.claude/agents/README.md +0 -89
  69. package/.claude/agents/analysis/analyze-code-quality.md +0 -180
  70. package/.claude/agents/analysis/code-analyzer.md +0 -209
  71. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
  72. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
  73. package/.claude/agents/base-template-generator.md +0 -42
  74. package/.claude/agents/consensus/README.md +0 -253
  75. package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
  76. package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
  77. package/.claude/agents/consensus/gossip-coordinator.md +0 -63
  78. package/.claude/agents/consensus/performance-benchmarker.md +0 -851
  79. package/.claude/agents/consensus/quorum-manager.md +0 -823
  80. package/.claude/agents/consensus/raft-manager.md +0 -63
  81. package/.claude/agents/consensus/security-manager.md +0 -622
  82. package/.claude/agents/core/coder.md +0 -266
  83. package/.claude/agents/core/planner.md +0 -168
  84. package/.claude/agents/core/researcher.md +0 -190
  85. package/.claude/agents/core/reviewer.md +0 -326
  86. package/.claude/agents/core/tester.md +0 -319
  87. package/.claude/agents/custom/test-long-runner.md +0 -44
  88. package/.claude/agents/data/ml/data-ml-model.md +0 -193
  89. package/.claude/agents/database-specialist.yaml +0 -21
  90. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  91. package/.claude/agents/development/dev-backend-api.md +0 -345
  92. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
  93. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
  94. package/.claude/agents/flow-nexus/app-store.md +0 -88
  95. package/.claude/agents/flow-nexus/authentication.md +0 -69
  96. package/.claude/agents/flow-nexus/challenges.md +0 -81
  97. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  98. package/.claude/agents/flow-nexus/payments.md +0 -83
  99. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  100. package/.claude/agents/flow-nexus/swarm.md +0 -76
  101. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  102. package/.claude/agents/flow-nexus/workflow.md +0 -84
  103. package/.claude/agents/github/code-review-swarm.md +0 -538
  104. package/.claude/agents/github/github-modes.md +0 -173
  105. package/.claude/agents/github/issue-tracker.md +0 -319
  106. package/.claude/agents/github/multi-repo-swarm.md +0 -553
  107. package/.claude/agents/github/pr-manager.md +0 -191
  108. package/.claude/agents/github/project-board-sync.md +0 -509
  109. package/.claude/agents/github/release-manager.md +0 -367
  110. package/.claude/agents/github/release-swarm.md +0 -583
  111. package/.claude/agents/github/repo-architect.md +0 -398
  112. package/.claude/agents/github/swarm-issue.md +0 -573
  113. package/.claude/agents/github/swarm-pr.md +0 -428
  114. package/.claude/agents/github/sync-coordinator.md +0 -452
  115. package/.claude/agents/github/workflow-automation.md +0 -635
  116. package/.claude/agents/goal/agent.md +0 -816
  117. package/.claude/agents/goal/code-goal-planner.md +0 -446
  118. package/.claude/agents/goal/goal-planner.md +0 -168
  119. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  120. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  121. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  122. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  123. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  124. package/.claude/agents/index.yaml +0 -17
  125. package/.claude/agents/neural/safla-neural.md +0 -74
  126. package/.claude/agents/optimization/README.md +0 -250
  127. package/.claude/agents/optimization/benchmark-suite.md +0 -665
  128. package/.claude/agents/optimization/load-balancer.md +0 -431
  129. package/.claude/agents/optimization/performance-monitor.md +0 -672
  130. package/.claude/agents/optimization/resource-allocator.md +0 -674
  131. package/.claude/agents/optimization/topology-optimizer.md +0 -808
  132. package/.claude/agents/payments/agentic-payments.md +0 -126
  133. package/.claude/agents/project-coordinator.yaml +0 -15
  134. package/.claude/agents/python-specialist.yaml +0 -21
  135. package/.claude/agents/reasoning/agent.md +0 -816
  136. package/.claude/agents/reasoning/goal-planner.md +0 -73
  137. package/.claude/agents/security-auditor.yaml +0 -20
  138. package/.claude/agents/sona/sona-learning-optimizer.md +0 -496
  139. package/.claude/agents/sparc/architecture.md +0 -472
  140. package/.claude/agents/sparc/pseudocode.md +0 -318
  141. package/.claude/agents/sparc/refinement.md +0 -525
  142. package/.claude/agents/sparc/specification.md +0 -276
  143. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
  144. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  145. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  146. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  147. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  148. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  149. package/.claude/agents/swarm/README.md +0 -190
  150. package/.claude/agents/swarm/adaptive-coordinator.md +0 -396
  151. package/.claude/agents/swarm/hierarchical-coordinator.md +0 -327
  152. package/.claude/agents/swarm/mesh-coordinator.md +0 -392
  153. package/.claude/agents/templates/automation-smart-agent.md +0 -205
  154. package/.claude/agents/templates/coordinator-swarm-init.md +0 -105
  155. package/.claude/agents/templates/github-pr-manager.md +0 -177
  156. package/.claude/agents/templates/implementer-sparc-coder.md +0 -259
  157. package/.claude/agents/templates/memory-coordinator.md +0 -187
  158. package/.claude/agents/templates/migration-plan.md +0 -746
  159. package/.claude/agents/templates/orchestrator-task.md +0 -139
  160. package/.claude/agents/templates/performance-analyzer.md +0 -199
  161. package/.claude/agents/templates/sparc-coordinator.md +0 -183
  162. package/.claude/agents/testing/production-validator.md +0 -395
  163. package/.claude/agents/testing/tdd-london-swarm.md +0 -244
  164. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  165. package/.claude/agents/testing/validation/production-validator.md +0 -395
  166. package/.claude/agents/typescript-specialist.yaml +0 -21
  167. package/.claude/agents/v3/database-specialist.yaml +0 -21
  168. package/.claude/agents/v3/index.yaml +0 -17
  169. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  170. package/.claude/agents/v3/python-specialist.yaml +0 -21
  171. package/.claude/agents/v3/test-architect.yaml +0 -20
  172. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  173. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  174. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  175. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  176. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  177. package/.claude/agents/v3/v3-security-architect.md +0 -174
  178. package/.claude/checkpoints/1767754460.json +0 -8
  179. package/.claude/commands/agents/README.md +0 -10
  180. package/.claude/commands/agents/agent-capabilities.md +0 -21
  181. package/.claude/commands/agents/agent-coordination.md +0 -28
  182. package/.claude/commands/agents/agent-spawning.md +0 -28
  183. package/.claude/commands/agents/agent-types.md +0 -26
  184. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  185. package/.claude/commands/analysis/README.md +0 -9
  186. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  187. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  188. package/.claude/commands/analysis/performance-report.md +0 -25
  189. package/.claude/commands/analysis/token-efficiency.md +0 -45
  190. package/.claude/commands/analysis/token-usage.md +0 -25
  191. package/.claude/commands/automation/README.md +0 -9
  192. package/.claude/commands/automation/auto-agent.md +0 -122
  193. package/.claude/commands/automation/self-healing.md +0 -106
  194. package/.claude/commands/automation/session-memory.md +0 -90
  195. package/.claude/commands/automation/smart-agents.md +0 -73
  196. package/.claude/commands/automation/smart-spawn.md +0 -25
  197. package/.claude/commands/automation/workflow-select.md +0 -25
  198. package/.claude/commands/claude-flow-help.md +0 -103
  199. package/.claude/commands/claude-flow-memory.md +0 -107
  200. package/.claude/commands/claude-flow-swarm.md +0 -205
  201. package/.claude/commands/coordination/README.md +0 -9
  202. package/.claude/commands/coordination/agent-spawn.md +0 -25
  203. package/.claude/commands/coordination/init.md +0 -44
  204. package/.claude/commands/coordination/orchestrate.md +0 -43
  205. package/.claude/commands/coordination/spawn.md +0 -45
  206. package/.claude/commands/coordination/swarm-init.md +0 -85
  207. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  208. package/.claude/commands/flow-nexus/app-store.md +0 -124
  209. package/.claude/commands/flow-nexus/challenges.md +0 -120
  210. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  211. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  212. package/.claude/commands/flow-nexus/payments.md +0 -116
  213. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  214. package/.claude/commands/flow-nexus/swarm.md +0 -87
  215. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  216. package/.claude/commands/flow-nexus/workflow.md +0 -115
  217. package/.claude/commands/github/README.md +0 -11
  218. package/.claude/commands/github/code-review-swarm.md +0 -514
  219. package/.claude/commands/github/code-review.md +0 -25
  220. package/.claude/commands/github/github-modes.md +0 -147
  221. package/.claude/commands/github/github-swarm.md +0 -121
  222. package/.claude/commands/github/issue-tracker.md +0 -292
  223. package/.claude/commands/github/issue-triage.md +0 -25
  224. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  225. package/.claude/commands/github/pr-enhance.md +0 -26
  226. package/.claude/commands/github/pr-manager.md +0 -170
  227. package/.claude/commands/github/project-board-sync.md +0 -471
  228. package/.claude/commands/github/release-manager.md +0 -338
  229. package/.claude/commands/github/release-swarm.md +0 -544
  230. package/.claude/commands/github/repo-analyze.md +0 -25
  231. package/.claude/commands/github/repo-architect.md +0 -367
  232. package/.claude/commands/github/swarm-issue.md +0 -482
  233. package/.claude/commands/github/swarm-pr.md +0 -285
  234. package/.claude/commands/github/sync-coordinator.md +0 -301
  235. package/.claude/commands/github/workflow-automation.md +0 -442
  236. package/.claude/commands/hive-mind/README.md +0 -17
  237. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  238. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  239. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  240. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  241. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  242. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  243. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  244. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  245. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  246. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  247. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  248. package/.claude/commands/hooks/README.md +0 -11
  249. package/.claude/commands/hooks/overview.md +0 -58
  250. package/.claude/commands/hooks/post-edit.md +0 -117
  251. package/.claude/commands/hooks/post-task.md +0 -112
  252. package/.claude/commands/hooks/pre-edit.md +0 -113
  253. package/.claude/commands/hooks/pre-task.md +0 -111
  254. package/.claude/commands/hooks/session-end.md +0 -118
  255. package/.claude/commands/hooks/setup.md +0 -103
  256. package/.claude/commands/memory/README.md +0 -9
  257. package/.claude/commands/memory/memory-persist.md +0 -25
  258. package/.claude/commands/memory/memory-search.md +0 -25
  259. package/.claude/commands/memory/memory-usage.md +0 -25
  260. package/.claude/commands/memory/neural.md +0 -47
  261. package/.claude/commands/monitoring/README.md +0 -9
  262. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  263. package/.claude/commands/monitoring/agents.md +0 -44
  264. package/.claude/commands/monitoring/real-time-view.md +0 -25
  265. package/.claude/commands/monitoring/status.md +0 -46
  266. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  267. package/.claude/commands/optimization/README.md +0 -9
  268. package/.claude/commands/optimization/auto-topology.md +0 -62
  269. package/.claude/commands/optimization/cache-manage.md +0 -25
  270. package/.claude/commands/optimization/parallel-execute.md +0 -25
  271. package/.claude/commands/optimization/parallel-execution.md +0 -50
  272. package/.claude/commands/optimization/topology-optimize.md +0 -25
  273. package/.claude/commands/pair/README.md +0 -261
  274. package/.claude/commands/pair/commands.md +0 -546
  275. package/.claude/commands/pair/config.md +0 -510
  276. package/.claude/commands/pair/examples.md +0 -512
  277. package/.claude/commands/pair/modes.md +0 -348
  278. package/.claude/commands/pair/session.md +0 -407
  279. package/.claude/commands/pair/start.md +0 -209
  280. package/.claude/commands/sparc/analyzer.md +0 -52
  281. package/.claude/commands/sparc/architect.md +0 -53
  282. package/.claude/commands/sparc/ask.md +0 -97
  283. package/.claude/commands/sparc/batch-executor.md +0 -54
  284. package/.claude/commands/sparc/code.md +0 -89
  285. package/.claude/commands/sparc/coder.md +0 -54
  286. package/.claude/commands/sparc/debug.md +0 -83
  287. package/.claude/commands/sparc/debugger.md +0 -54
  288. package/.claude/commands/sparc/designer.md +0 -53
  289. package/.claude/commands/sparc/devops.md +0 -109
  290. package/.claude/commands/sparc/docs-writer.md +0 -80
  291. package/.claude/commands/sparc/documenter.md +0 -54
  292. package/.claude/commands/sparc/innovator.md +0 -54
  293. package/.claude/commands/sparc/integration.md +0 -83
  294. package/.claude/commands/sparc/mcp.md +0 -117
  295. package/.claude/commands/sparc/memory-manager.md +0 -54
  296. package/.claude/commands/sparc/optimizer.md +0 -54
  297. package/.claude/commands/sparc/orchestrator.md +0 -132
  298. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
  299. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
  300. package/.claude/commands/sparc/researcher.md +0 -54
  301. package/.claude/commands/sparc/reviewer.md +0 -54
  302. package/.claude/commands/sparc/security-review.md +0 -80
  303. package/.claude/commands/sparc/sparc-modes.md +0 -174
  304. package/.claude/commands/sparc/sparc.md +0 -111
  305. package/.claude/commands/sparc/spec-pseudocode.md +0 -80
  306. package/.claude/commands/sparc/supabase-admin.md +0 -348
  307. package/.claude/commands/sparc/swarm-coordinator.md +0 -54
  308. package/.claude/commands/sparc/tdd.md +0 -54
  309. package/.claude/commands/sparc/tester.md +0 -54
  310. package/.claude/commands/sparc/tutorial.md +0 -79
  311. package/.claude/commands/sparc/workflow-manager.md +0 -54
  312. package/.claude/commands/sparc.md +0 -166
  313. package/.claude/commands/stream-chain/pipeline.md +0 -121
  314. package/.claude/commands/stream-chain/run.md +0 -70
  315. package/.claude/commands/swarm/README.md +0 -15
  316. package/.claude/commands/swarm/analysis.md +0 -95
  317. package/.claude/commands/swarm/development.md +0 -96
  318. package/.claude/commands/swarm/examples.md +0 -168
  319. package/.claude/commands/swarm/maintenance.md +0 -102
  320. package/.claude/commands/swarm/optimization.md +0 -117
  321. package/.claude/commands/swarm/research.md +0 -136
  322. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  323. package/.claude/commands/swarm/swarm-background.md +0 -8
  324. package/.claude/commands/swarm/swarm-init.md +0 -19
  325. package/.claude/commands/swarm/swarm-modes.md +0 -8
  326. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  327. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  328. package/.claude/commands/swarm/swarm-status.md +0 -8
  329. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  330. package/.claude/commands/swarm/swarm.md +0 -27
  331. package/.claude/commands/swarm/testing.md +0 -131
  332. package/.claude/commands/training/README.md +0 -9
  333. package/.claude/commands/training/model-update.md +0 -25
  334. package/.claude/commands/training/neural-patterns.md +0 -74
  335. package/.claude/commands/training/neural-train.md +0 -25
  336. package/.claude/commands/training/pattern-learn.md +0 -25
  337. package/.claude/commands/training/specialization.md +0 -63
  338. package/.claude/commands/truth/start.md +0 -143
  339. package/.claude/commands/verify/check.md +0 -50
  340. package/.claude/commands/verify/start.md +0 -128
  341. package/.claude/commands/workflows/README.md +0 -9
  342. package/.claude/commands/workflows/development.md +0 -78
  343. package/.claude/commands/workflows/research.md +0 -63
  344. package/.claude/commands/workflows/workflow-create.md +0 -25
  345. package/.claude/commands/workflows/workflow-execute.md +0 -25
  346. package/.claude/commands/workflows/workflow-export.md +0 -25
  347. package/.claude/config/v3-dependency-optimization.json +0 -266
  348. package/.claude/config/v3-performance-targets.json +0 -251
  349. package/.claude/helpers/README.md +0 -97
  350. package/.claude/helpers/adr-compliance.sh +0 -186
  351. package/.claude/helpers/auto-commit.sh +0 -178
  352. package/.claude/helpers/checkpoint-manager.sh +0 -251
  353. package/.claude/helpers/daemon-manager.sh +0 -252
  354. package/.claude/helpers/ddd-tracker.sh +0 -144
  355. package/.claude/helpers/github-safe.js +0 -106
  356. package/.claude/helpers/github-setup.sh +0 -28
  357. package/.claude/helpers/guidance-hook.sh +0 -13
  358. package/.claude/helpers/guidance-hooks.sh +0 -102
  359. package/.claude/helpers/health-monitor.sh +0 -108
  360. package/.claude/helpers/learning-hooks.sh +0 -329
  361. package/.claude/helpers/learning-optimizer.sh +0 -127
  362. package/.claude/helpers/learning-service.mjs +0 -1097
  363. package/.claude/helpers/metrics-db.mjs +0 -474
  364. package/.claude/helpers/pattern-consolidator.sh +0 -86
  365. package/.claude/helpers/perf-worker.sh +0 -160
  366. package/.claude/helpers/quick-start.sh +0 -19
  367. package/.claude/helpers/security-scanner.sh +0 -127
  368. package/.claude/helpers/setup-mcp.sh +0 -18
  369. package/.claude/helpers/standard-checkpoint-hooks.sh +0 -189
  370. package/.claude/helpers/swarm-comms.sh +0 -353
  371. package/.claude/helpers/swarm-hooks.sh +0 -761
  372. package/.claude/helpers/swarm-monitor.sh +0 -211
  373. package/.claude/helpers/sync-v3-metrics.sh +0 -245
  374. package/.claude/helpers/update-v3-progress.sh +0 -166
  375. package/.claude/helpers/v3-quick-status.sh +0 -58
  376. package/.claude/helpers/v3.sh +0 -111
  377. package/.claude/helpers/validate-v3-config.sh +0 -216
  378. package/.claude/helpers/worker-manager.sh +0 -170
  379. package/.claude/mcp.json +0 -13
  380. package/.claude/settings.json +0 -526
  381. package/.claude/settings.local.json +0 -10
  382. package/.claude/skills/.claude-flow/metrics/agent-metrics.json +0 -1
  383. package/.claude/skills/.claude-flow/metrics/performance.json +0 -87
  384. package/.claude/skills/.claude-flow/metrics/task-metrics.json +0 -10
  385. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  386. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  387. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  388. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  389. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  390. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  391. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  392. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  393. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  394. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  395. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  396. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  397. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  398. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  399. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  400. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  401. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  402. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  403. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  404. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  405. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
  406. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
  407. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
  408. package/.claude/skills/skill-builder/SKILL.md +0 -910
  409. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  410. package/.claude/skills/stream-chain/SKILL.md +0 -563
  411. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  412. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  413. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  414. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  415. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  416. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  417. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  418. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  419. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  420. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  421. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  422. package/.claude/skills/verification-quality/SKILL.md +0 -649
  423. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  424. package/.claude/skills/worker-integration/skill.md +0 -154
  425. package/.claude/statusline-command.sh +0 -176
  426. package/.claude/statusline.mjs +0 -109
  427. package/.claude/statusline.sh +0 -375
  428. package/.claude-plugin/README.md +0 -720
  429. package/.claude-plugin/docs/INSTALLATION.md +0 -261
  430. package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
  431. package/.claude-plugin/docs/QUICKSTART.md +0 -361
  432. package/.claude-plugin/docs/STRUCTURE.md +0 -128
  433. package/.claude-plugin/hooks/hooks.json +0 -74
  434. package/.claude-plugin/marketplace.json +0 -96
  435. package/.claude-plugin/plugin.json +0 -71
  436. package/.claude-plugin/scripts/install.sh +0 -234
  437. package/.claude-plugin/scripts/uninstall.sh +0 -36
  438. package/.claude-plugin/scripts/verify.sh +0 -108
  439. package/v3/@claude-flow/cli/README.md +0 -1186
  440. package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +0 -1
  441. package/v3/@claude-flow/cli/dist/src/index.js.map +0 -1
  442. package/v3/@claude-flow/cli/dist/src/output.d.ts.map +0 -1
  443. package/v3/@claude-flow/cli/dist/src/output.js.map +0 -1
  444. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +0 -1
  445. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +0 -1
  446. package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +0 -1
  447. package/v3/@claude-flow/cli/package.json +0 -29
  448. package/v3/@claude-flow/shared/README.md +0 -323
  449. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  450. package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +0 -1
  451. package/v3/@claude-flow/shared/dist/core/config/defaults.js +0 -186
  452. package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +0 -1
  453. package/v3/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  454. package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +0 -1
  455. package/v3/@claude-flow/shared/dist/core/config/index.js +0 -12
  456. package/v3/@claude-flow/shared/dist/core/config/index.js.map +0 -1
  457. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  458. package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +0 -1
  459. package/v3/@claude-flow/shared/dist/core/config/loader.js +0 -222
  460. package/v3/@claude-flow/shared/dist/core/config/loader.js.map +0 -1
  461. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  462. package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +0 -1
  463. package/v3/@claude-flow/shared/dist/core/config/schema.js +0 -158
  464. package/v3/@claude-flow/shared/dist/core/config/schema.js.map +0 -1
  465. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  466. package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +0 -1
  467. package/v3/@claude-flow/shared/dist/core/config/validator.js +0 -147
  468. package/v3/@claude-flow/shared/dist/core/config/validator.js.map +0 -1
  469. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  470. package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +0 -1
  471. package/v3/@claude-flow/shared/dist/core/event-bus.js +0 -197
  472. package/v3/@claude-flow/shared/dist/core/event-bus.js.map +0 -1
  473. package/v3/@claude-flow/shared/dist/core/index.d.ts +0 -15
  474. package/v3/@claude-flow/shared/dist/core/index.d.ts.map +0 -1
  475. package/v3/@claude-flow/shared/dist/core/index.js +0 -19
  476. package/v3/@claude-flow/shared/dist/core/index.js.map +0 -1
  477. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  478. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +0 -1
  479. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
  480. package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +0 -1
  481. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  482. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +0 -1
  483. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
  484. package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +0 -1
  485. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  486. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +0 -1
  487. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
  488. package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +0 -1
  489. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  490. package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +0 -1
  491. package/v3/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
  492. package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +0 -1
  493. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  494. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +0 -1
  495. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
  496. package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +0 -1
  497. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  498. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +0 -1
  499. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
  500. package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +0 -1
  501. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  502. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +0 -1
  503. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
  504. package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +0 -1
  505. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  506. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +0 -1
  507. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
  508. package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +0 -1
  509. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  510. package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +0 -1
  511. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
  512. package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +0 -1
  513. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  514. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +0 -1
  515. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
  516. package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +0 -1
  517. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  518. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +0 -1
  519. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
  520. package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +0 -1
  521. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  522. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +0 -1
  523. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
  524. package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +0 -1
  525. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  526. package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +0 -1
  527. package/v3/@claude-flow/shared/dist/events/domain-events.js +0 -165
  528. package/v3/@claude-flow/shared/dist/events/domain-events.js.map +0 -1
  529. package/v3/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  530. package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +0 -1
  531. package/v3/@claude-flow/shared/dist/events/event-store.js +0 -416
  532. package/v3/@claude-flow/shared/dist/events/event-store.js.map +0 -1
  533. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  534. package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +0 -1
  535. package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
  536. package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +0 -1
  537. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  538. package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +0 -1
  539. package/v3/@claude-flow/shared/dist/events/example-usage.js +0 -193
  540. package/v3/@claude-flow/shared/dist/events/example-usage.js.map +0 -1
  541. package/v3/@claude-flow/shared/dist/events/index.d.ts +0 -19
  542. package/v3/@claude-flow/shared/dist/events/index.d.ts.map +0 -1
  543. package/v3/@claude-flow/shared/dist/events/index.js +0 -20
  544. package/v3/@claude-flow/shared/dist/events/index.js.map +0 -1
  545. package/v3/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  546. package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +0 -1
  547. package/v3/@claude-flow/shared/dist/events/projections.js +0 -421
  548. package/v3/@claude-flow/shared/dist/events/projections.js.map +0 -1
  549. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  550. package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +0 -1
  551. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
  552. package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +0 -1
  553. package/v3/@claude-flow/shared/dist/events.d.ts +0 -80
  554. package/v3/@claude-flow/shared/dist/events.d.ts.map +0 -1
  555. package/v3/@claude-flow/shared/dist/events.js +0 -249
  556. package/v3/@claude-flow/shared/dist/events.js.map +0 -1
  557. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  558. package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +0 -1
  559. package/v3/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
  560. package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +0 -1
  561. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  562. package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +0 -1
  563. package/v3/@claude-flow/shared/dist/hooks/executor.js +0 -264
  564. package/v3/@claude-flow/shared/dist/hooks/executor.js.map +0 -1
  565. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  566. package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +0 -1
  567. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
  568. package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +0 -1
  569. package/v3/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  570. package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +0 -1
  571. package/v3/@claude-flow/shared/dist/hooks/index.js +0 -51
  572. package/v3/@claude-flow/shared/dist/hooks/index.js.map +0 -1
  573. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  574. package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +0 -1
  575. package/v3/@claude-flow/shared/dist/hooks/registry.js +0 -277
  576. package/v3/@claude-flow/shared/dist/hooks/registry.js.map +0 -1
  577. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  578. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +0 -1
  579. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
  580. package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +0 -1
  581. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  582. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +0 -1
  583. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
  584. package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +0 -1
  585. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  586. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +0 -1
  587. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
  588. package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +0 -1
  589. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  590. package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +0 -1
  591. package/v3/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
  592. package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +0 -1
  593. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  594. package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +0 -1
  595. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
  596. package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +0 -1
  597. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  598. package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +0 -1
  599. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
  600. package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +0 -1
  601. package/v3/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  602. package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +0 -1
  603. package/v3/@claude-flow/shared/dist/hooks/types.js +0 -62
  604. package/v3/@claude-flow/shared/dist/hooks/types.js.map +0 -1
  605. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  606. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +0 -1
  607. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
  608. package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +0 -1
  609. package/v3/@claude-flow/shared/dist/index.d.ts +0 -19
  610. package/v3/@claude-flow/shared/dist/index.d.ts.map +0 -1
  611. package/v3/@claude-flow/shared/dist/index.js +0 -46
  612. package/v3/@claude-flow/shared/dist/index.js.map +0 -1
  613. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  614. package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +0 -1
  615. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
  616. package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +0 -1
  617. package/v3/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  618. package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +0 -1
  619. package/v3/@claude-flow/shared/dist/mcp/index.js +0 -84
  620. package/v3/@claude-flow/shared/dist/mcp/index.js.map +0 -1
  621. package/v3/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  622. package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +0 -1
  623. package/v3/@claude-flow/shared/dist/mcp/server.js +0 -593
  624. package/v3/@claude-flow/shared/dist/mcp/server.js.map +0 -1
  625. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  626. package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +0 -1
  627. package/v3/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
  628. package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +0 -1
  629. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  630. package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +0 -1
  631. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
  632. package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +0 -1
  633. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  634. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +0 -1
  635. package/v3/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
  636. package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +0 -1
  637. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  638. package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +0 -1
  639. package/v3/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
  640. package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +0 -1
  641. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  642. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +0 -1
  643. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
  644. package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +0 -1
  645. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  646. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +0 -1
  647. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
  648. package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +0 -1
  649. package/v3/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  650. package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +0 -1
  651. package/v3/@claude-flow/shared/dist/mcp/types.js +0 -54
  652. package/v3/@claude-flow/shared/dist/mcp/types.js.map +0 -1
  653. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  654. package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +0 -1
  655. package/v3/@claude-flow/shared/dist/plugin-interface.js +0 -23
  656. package/v3/@claude-flow/shared/dist/plugin-interface.js.map +0 -1
  657. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  658. package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +0 -1
  659. package/v3/@claude-flow/shared/dist/plugin-loader.js +0 -434
  660. package/v3/@claude-flow/shared/dist/plugin-loader.js.map +0 -1
  661. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  662. package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +0 -1
  663. package/v3/@claude-flow/shared/dist/plugin-registry.js +0 -457
  664. package/v3/@claude-flow/shared/dist/plugin-registry.js.map +0 -1
  665. package/v3/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  666. package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +0 -1
  667. package/v3/@claude-flow/shared/dist/plugins/index.js +0 -10
  668. package/v3/@claude-flow/shared/dist/plugins/index.js.map +0 -1
  669. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  670. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +0 -1
  671. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
  672. package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +0 -1
  673. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  674. package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +0 -1
  675. package/v3/@claude-flow/shared/dist/plugins/official/index.js +0 -10
  676. package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +0 -1
  677. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  678. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +0 -1
  679. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
  680. package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +0 -1
  681. package/v3/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  682. package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +0 -1
  683. package/v3/@claude-flow/shared/dist/plugins/types.js +0 -9
  684. package/v3/@claude-flow/shared/dist/plugins/types.js.map +0 -1
  685. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  686. package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +0 -1
  687. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
  688. package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +0 -1
  689. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  690. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +0 -1
  691. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
  692. package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +0 -1
  693. package/v3/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  694. package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +0 -1
  695. package/v3/@claude-flow/shared/dist/resilience/index.js +0 -19
  696. package/v3/@claude-flow/shared/dist/resilience/index.js.map +0 -1
  697. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  698. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +0 -1
  699. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
  700. package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +0 -1
  701. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  702. package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +0 -1
  703. package/v3/@claude-flow/shared/dist/resilience/retry.js +0 -159
  704. package/v3/@claude-flow/shared/dist/resilience/retry.js.map +0 -1
  705. package/v3/@claude-flow/shared/dist/security/index.d.ts +0 -10
  706. package/v3/@claude-flow/shared/dist/security/index.d.ts.map +0 -1
  707. package/v3/@claude-flow/shared/dist/security/index.js +0 -12
  708. package/v3/@claude-flow/shared/dist/security/index.js.map +0 -1
  709. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  710. package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +0 -1
  711. package/v3/@claude-flow/shared/dist/security/input-validation.js +0 -201
  712. package/v3/@claude-flow/shared/dist/security/input-validation.js.map +0 -1
  713. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  714. package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +0 -1
  715. package/v3/@claude-flow/shared/dist/security/secure-random.js +0 -142
  716. package/v3/@claude-flow/shared/dist/security/secure-random.js.map +0 -1
  717. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  718. package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +0 -1
  719. package/v3/@claude-flow/shared/dist/types/agent.types.js +0 -6
  720. package/v3/@claude-flow/shared/dist/types/agent.types.js.map +0 -1
  721. package/v3/@claude-flow/shared/dist/types/index.d.ts +0 -11
  722. package/v3/@claude-flow/shared/dist/types/index.d.ts.map +0 -1
  723. package/v3/@claude-flow/shared/dist/types/index.js +0 -17
  724. package/v3/@claude-flow/shared/dist/types/index.js.map +0 -1
  725. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  726. package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +0 -1
  727. package/v3/@claude-flow/shared/dist/types/mcp.types.js +0 -7
  728. package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +0 -1
  729. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  730. package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +0 -1
  731. package/v3/@claude-flow/shared/dist/types/memory.types.js +0 -7
  732. package/v3/@claude-flow/shared/dist/types/memory.types.js.map +0 -1
  733. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  734. package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +0 -1
  735. package/v3/@claude-flow/shared/dist/types/swarm.types.js +0 -65
  736. package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +0 -1
  737. package/v3/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  738. package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +0 -1
  739. package/v3/@claude-flow/shared/dist/types/task.types.js +0 -32
  740. package/v3/@claude-flow/shared/dist/types/task.types.js.map +0 -1
  741. package/v3/@claude-flow/shared/dist/types.d.ts +0 -197
  742. package/v3/@claude-flow/shared/dist/types.d.ts.map +0 -1
  743. package/v3/@claude-flow/shared/dist/types.js +0 -21
  744. package/v3/@claude-flow/shared/dist/types.js.map +0 -1
  745. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
  746. package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +0 -1
  747. package/v3/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
  748. package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +0 -1
  749. package/v3/@claude-flow/shared/package.json +0 -34
  750. package/v3/README.md +0 -493
  751. /package/{v3/@claude-flow/cli/bin → bin}/cli.js +0 -0
  752. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts +0 -0
  753. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.d.ts.map +0 -0
  754. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js +0 -0
  755. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/agent.js.map +0 -0
  756. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts +0 -0
  757. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.d.ts.map +0 -0
  758. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js +0 -0
  759. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/config.js.map +0 -0
  760. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/daemon.d.ts +0 -0
  761. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts +0 -0
  762. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.d.ts.map +0 -0
  763. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js +0 -0
  764. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hive-mind.js.map +0 -0
  765. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts +0 -0
  766. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.d.ts.map +0 -0
  767. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js +0 -0
  768. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/hooks.js.map +0 -0
  769. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts +0 -0
  770. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.d.ts.map +0 -0
  771. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js +0 -0
  772. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/index.js.map +0 -0
  773. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts +0 -0
  774. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.d.ts.map +0 -0
  775. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js +0 -0
  776. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/init.js.map +0 -0
  777. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts +0 -0
  778. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.d.ts.map +0 -0
  779. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js +0 -0
  780. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/mcp.js.map +0 -0
  781. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts +0 -0
  782. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.d.ts.map +0 -0
  783. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js +0 -0
  784. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/memory.js.map +0 -0
  785. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts +0 -0
  786. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.d.ts.map +0 -0
  787. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js +0 -0
  788. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/migrate.js.map +0 -0
  789. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts +0 -0
  790. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.d.ts.map +0 -0
  791. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js +0 -0
  792. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/process.js.map +0 -0
  793. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts +0 -0
  794. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.d.ts.map +0 -0
  795. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js +0 -0
  796. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/session.js.map +0 -0
  797. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts +0 -0
  798. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.d.ts.map +0 -0
  799. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js +0 -0
  800. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/start.js.map +0 -0
  801. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts +0 -0
  802. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.d.ts.map +0 -0
  803. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js +0 -0
  804. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/status.js.map +0 -0
  805. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts +0 -0
  806. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.d.ts.map +0 -0
  807. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js +0 -0
  808. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/swarm.js.map +0 -0
  809. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts +0 -0
  810. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.d.ts.map +0 -0
  811. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js +0 -0
  812. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/task.js.map +0 -0
  813. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts +0 -0
  814. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.d.ts.map +0 -0
  815. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js +0 -0
  816. /package/{v3/@claude-flow/cli/dist → dist}/src/commands/workflow.js.map +0 -0
  817. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts +0 -0
  818. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.d.ts.map +0 -0
  819. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js +0 -0
  820. /package/{v3/@claude-flow/cli/dist → dist}/src/config-adapter.js.map +0 -0
  821. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts +0 -0
  822. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.d.ts.map +0 -0
  823. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js +0 -0
  824. /package/{v3/@claude-flow/cli/dist → dist}/src/infrastructure/in-memory-repositories.js.map +0 -0
  825. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts +0 -0
  826. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.d.ts.map +0 -0
  827. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js +0 -0
  828. /package/{v3/@claude-flow/cli/dist → dist}/src/init/claudemd-generator.js.map +0 -0
  829. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts +0 -0
  830. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.d.ts.map +0 -0
  831. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js +0 -0
  832. /package/{v3/@claude-flow/cli/dist → dist}/src/init/executor.js.map +0 -0
  833. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts +0 -0
  834. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.d.ts.map +0 -0
  835. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js +0 -0
  836. /package/{v3/@claude-flow/cli/dist → dist}/src/init/helpers-generator.js.map +0 -0
  837. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts +0 -0
  838. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.d.ts.map +0 -0
  839. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js +0 -0
  840. /package/{v3/@claude-flow/cli/dist → dist}/src/init/index.js.map +0 -0
  841. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts +0 -0
  842. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.d.ts.map +0 -0
  843. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js +0 -0
  844. /package/{v3/@claude-flow/cli/dist → dist}/src/init/mcp-generator.js.map +0 -0
  845. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts +0 -0
  846. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.d.ts.map +0 -0
  847. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js +0 -0
  848. /package/{v3/@claude-flow/cli/dist → dist}/src/init/settings-generator.js.map +0 -0
  849. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts +0 -0
  850. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.d.ts.map +0 -0
  851. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js +0 -0
  852. /package/{v3/@claude-flow/cli/dist → dist}/src/init/statusline-generator.js.map +0 -0
  853. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts +0 -0
  854. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.d.ts.map +0 -0
  855. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js +0 -0
  856. /package/{v3/@claude-flow/cli/dist → dist}/src/init/types.js.map +0 -0
  857. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts +0 -0
  858. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.d.ts.map +0 -0
  859. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js +0 -0
  860. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-client.js.map +0 -0
  861. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts +0 -0
  862. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.d.ts.map +0 -0
  863. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js +0 -0
  864. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-server.js.map +0 -0
  865. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts +0 -0
  866. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.d.ts.map +0 -0
  867. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js +0 -0
  868. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/agent-tools.js.map +0 -0
  869. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts +0 -0
  870. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.d.ts.map +0 -0
  871. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js +0 -0
  872. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/config-tools.js.map +0 -0
  873. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts +0 -0
  874. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.d.ts.map +0 -0
  875. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js +0 -0
  876. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hive-mind-tools.js.map +0 -0
  877. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts +0 -0
  878. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.d.ts.map +0 -0
  879. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js +0 -0
  880. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/hooks-tools.js.map +0 -0
  881. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts +0 -0
  882. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.d.ts.map +0 -0
  883. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js +0 -0
  884. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/index.js.map +0 -0
  885. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts +0 -0
  886. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.d.ts.map +0 -0
  887. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js +0 -0
  888. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/memory-tools.js.map +0 -0
  889. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts +0 -0
  890. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.d.ts.map +0 -0
  891. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js +0 -0
  892. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/session-tools.js.map +0 -0
  893. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts +0 -0
  894. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.d.ts.map +0 -0
  895. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js +0 -0
  896. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/swarm-tools.js.map +0 -0
  897. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts +0 -0
  898. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.d.ts.map +0 -0
  899. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js +0 -0
  900. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/task-tools.js.map +0 -0
  901. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts +0 -0
  902. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.d.ts.map +0 -0
  903. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js +0 -0
  904. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/types.js.map +0 -0
  905. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts +0 -0
  906. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.d.ts.map +0 -0
  907. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js +0 -0
  908. /package/{v3/@claude-flow/cli/dist → dist}/src/mcp-tools/workflow-tools.js.map +0 -0
  909. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts +0 -0
  910. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.d.ts.map +0 -0
  911. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js +0 -0
  912. /package/{v3/@claude-flow/cli/dist → dist}/src/parser.js.map +0 -0
  913. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts +0 -0
  914. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.d.ts.map +0 -0
  915. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js +0 -0
  916. /package/{v3/@claude-flow/cli/dist → dist}/src/prompt.js.map +0 -0
  917. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts +0 -0
  918. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.d.ts.map +0 -0
  919. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js +0 -0
  920. /package/{v3/@claude-flow/cli/dist → dist}/src/services/index.js.map +0 -0
  921. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts +0 -0
  922. /package/{v3/@claude-flow/cli/dist → dist}/src/types.d.ts.map +0 -0
  923. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js +0 -0
  924. /package/{v3/@claude-flow/cli/dist → dist}/src/types.js.map +0 -0
package/README.md CHANGED
@@ -1,1095 +1,1186 @@
1
- # Claude-Flow v3: Enterprise AI Orchestration Platform
1
+ # @claude-flow/cli
2
2
 
3
- <div align="center">
3
+ [![npm version](https://img.shields.io/npm/v/@claude-flow/cli.svg)](https://www.npmjs.com/package/@claude-flow/cli)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@claude-flow/cli.svg)](https://www.npmjs.com/package/@claude-flow/cli)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)
7
+ [![Node.js](https://img.shields.io/badge/Node.js-20+-green.svg)](https://nodejs.org/)
8
+ [![Commands](https://img.shields.io/badge/Commands-14+-orange.svg)](https://github.com/ruvnet/claude-flow)
9
+ [![Subcommands](https://img.shields.io/badge/Subcommands-92+-purple.svg)](https://github.com/ruvnet/claude-flow)
4
10
 
5
- [![Star on GitHub](https://img.shields.io/github/stars/ruvnet/claude-flow?style=for-the-badge&logo=github&color=gold)](https://github.com/ruvnet/claude-flow)
6
- [![Downloads](https://img.shields.io/npm/dt/claude-flow?style=for-the-badge&logo=npm&color=blue&label=Downloads)](https://www.npmjs.com/package/claude-flow)
7
- [![Latest Release](https://img.shields.io/npm/v/claude-flow/alpha?style=for-the-badge&logo=npm&color=green&label=v2.7.0-alpha.10)](https://www.npmjs.com/package/claude-flow)
8
- [![Claude Code](https://img.shields.io/badge/Claude%20Code-SDK%20Integrated-green?style=for-the-badge&logo=anthropic)](https://github.com/ruvnet/claude-flow)
9
- [![Agentics Foundation](https://img.shields.io/badge/Agentics-Foundation-crimson?style=for-the-badge&logo=openai)](https://discord.com/invite/dfxmpwkG2D)
10
- [![MIT License](https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/licenses/MIT)
11
+ > Modern CLI module for Claude Flow V3 - comprehensive command-line interface with 14 commands, 92+ subcommands, interactive prompts, self-learning hooks, background workers, hive-mind coordination, and beautiful output formatting.
11
12
 
12
- **Production-ready multi-agent AI orchestration for Claude Code**
13
+ ## Features
13
14
 
14
- *Deploy 54+ specialized agents in coordinated swarms with self-learning capabilities, fault-tolerant consensus, and enterprise-grade security.*
15
+ ### Core Capabilities
16
+ - **14 Main Commands** - Complete CLI coverage for all Claude Flow operations
17
+ - **92+ Subcommands** - Fine-grained control over every aspect of the system
18
+ - **Advanced Argument Parsing** - Full support for flags, options, subcommands, and positional arguments
19
+ - **Interactive Prompts** - Rich interactive mode with confirmations, selections, and input validation
20
+ - **Beautiful Output** - Colored output, tables, progress bars, spinners, and multiple formats (text, JSON, table)
15
21
 
16
- </div>
22
+ ### V3-Specific Features
23
+ - **Self-Learning Hooks** - 17 hook subcommands + 12 background workers with pattern learning and neural integration
24
+ - **Hive-Mind Coordination** - Queen-led Byzantine fault-tolerant multi-agent consensus
25
+ - **15-Agent Swarm** - V3 hierarchical mesh coordination with domain specialization
26
+ - **AgentDB Integration** - 150x-12,500x faster vector search with HNSW indexing
27
+ - **SONA Learning** - Sub-0.05ms adaptation with Mixture of Experts routing
17
28
 
18
- ## Overview
29
+ ### Developer Experience
30
+ - **Type-Safe** - Full TypeScript support with comprehensive type definitions
31
+ - **Global Options** - Built-in `--help`, `--version`, `--verbose`, `--quiet`, `--format`
32
+ - **Auto-Completion** - Shell completion support for commands and options
33
+ - **Migration Tools** - Built-in V2 to V3 migration with rollback support
19
34
 
20
- Claude-Flow is a comprehensive AI agent orchestration framework that transforms Claude Code into a powerful multi-agent development platform. It enables teams to deploy, coordinate, and optimize specialized AI agents working together on complex software engineering tasks.
35
+ ## Installation
21
36
 
22
- ### Claude Code: With vs Without Claude-Flow
37
+ ```bash
38
+ npm install @claude-flow/cli
39
+ ```
23
40
 
24
- | Capability | Claude Code Alone | Claude Code + Claude-Flow |
25
- |------------|-------------------|---------------------------|
26
- | **Agent Collaboration** | Agents work in isolation, no shared context | Agents collaborate via swarms with shared memory and consensus |
27
- | **Coordination** | Manual orchestration between tasks | Queen-led hierarchy with 5 consensus algorithms (Raft, Byzantine, Gossip) |
28
- | **Memory** | Session-only, no persistence | HNSW vector memory with 150x-12,500x faster retrieval |
29
- | **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation, improves over time |
30
- | **Task Routing** | You decide which agent to use | Intelligent routing based on learned patterns (89% accuracy) |
31
- | **Complex Tasks** | Manual breakdown required | Automatic decomposition across 5 domains (Security, Core, Integration, Support) |
32
- | **Background Workers** | Nothing runs automatically | 12 context-triggered workers auto-dispatch on file changes, patterns, sessions |
33
- | **LLM Provider** | Anthropic only | 6 providers with automatic failover and cost-based routing (85% savings) |
34
- | **Security** | Standard protections | CVE-hardened with bcrypt, input validation, path traversal prevention |
35
- | **Performance** | Baseline | 2.8-4.4x faster tasks, 4-32x memory reduction via quantization |
41
+ Or use globally:
36
42
 
37
- ### Key Capabilities
43
+ ```bash
44
+ npm install -g @claude-flow/cli
45
+ claude-flow --version
46
+ ```
38
47
 
39
- - **54+ Specialized Agents** - Ready-to-use AI agents for coding, code review, testing, security audits, documentation, and DevOps tasks. Each agent is optimized for its specific role.
48
+ ## Quick Start
40
49
 
41
- - **Coordinated Agent Teams** - Run unlimited agents simultaneously in organized swarms. Agents can spawn sub-workers, communicate, share context, and divide work automatically using patterns like hierarchical (queen/workers) or mesh (peer-to-peer).
50
+ ```bash
51
+ # Initialize a new project
52
+ claude-flow init --wizard
42
53
 
43
- - **Learns From Your Workflow** - The system remembers what works. Successful patterns are stored and reused, routing similar tasks to the best-performing agents. Gets smarter over time.
54
+ # Start MCP server
55
+ claude-flow mcp start
44
56
 
45
- - **Works With Any LLM** - Switch between Claude, GPT-4, Gemini, Cohere, or local models like Llama. Automatic failover if one provider is unavailable. Smart routing picks the cheapest option that meets quality requirements.
57
+ # Spawn an agent
58
+ claude-flow agent spawn -t coder --name my-coder
46
59
 
47
- - **Plugs Into Claude Code** - Native integration via MCP (Model Context Protocol). Use claude-flow commands directly in your Claude Code sessions with full tool access.
60
+ # Initialize a swarm
61
+ claude-flow swarm init --v3-mode
48
62
 
49
- - **Production-Ready Security** - Built-in protection against common vulnerabilities: input validation, path traversal prevention, command injection blocking, and safe credential handling.
63
+ # Search memory
64
+ claude-flow memory search -q "authentication patterns"
65
+
66
+ # Check system status
67
+ claude-flow status --watch
68
+ ```
69
+
70
+ ## Complete Command Reference
71
+
72
+ ### Overview
73
+
74
+ | Command | Subcommands | Description |
75
+ |---------|-------------|-------------|
76
+ | `init` | 4 | Project initialization with wizard, presets, and configuration |
77
+ | `agent` | 8 | Agent lifecycle management (spawn, list, status, stop, metrics, pool, health, logs) |
78
+ | `swarm` | 6 | Multi-agent swarm coordination and orchestration |
79
+ | `memory` | 11 | AgentDB memory operations with vector search |
80
+ | `mcp` | 9 | MCP server management and tool execution |
81
+ | `task` | 6 | Task creation, assignment, and lifecycle management |
82
+ | `session` | 7 | Session state management and persistence |
83
+ | `config` | 7 | Configuration management and provider setup |
84
+ | `status` | 3 | System status monitoring with watch mode |
85
+ | `start` | 3 | Service startup and quick launch |
86
+ | `workflow` | 6 | Workflow execution and template management |
87
+ | `hooks` | 17 | Self-learning hooks with neural pattern recognition + 12 background workers |
88
+ | `hive-mind` | 6 | Queen-led consensus-based multi-agent coordination |
89
+ | `migrate` | 5 | V2 to V3 migration with rollback support |
50
90
 
51
91
  ---
52
92
 
53
- ## Quick Start
93
+ ### `init` - Project Initialization
94
+
95
+ Initialize Claude Flow V3 with interactive wizard or presets.
96
+
97
+ ```bash
98
+ claude-flow init [subcommand] [options]
99
+ ```
100
+
101
+ #### Subcommands
54
102
 
55
- ### Prerequisites
103
+ | Subcommand | Description |
104
+ |------------|-------------|
105
+ | `wizard` | Interactive setup wizard with step-by-step configuration |
106
+ | `check` | Validate current configuration and environment |
107
+ | `skills` | List and manage available skills |
108
+ | `hooks` | Configure and validate hooks integration |
56
109
 
57
- - **Node.js 18+** or **Bun 1.0+** (Bun is faster)
58
- - **npm 9+** / **pnpm** / **bun** package manager
110
+ #### Options
59
111
 
60
- **IMPORTANT**: Claude Code must be installed first:
112
+ | Option | Short | Description | Default |
113
+ |--------|-------|-------------|---------|
114
+ | `--preset` | `-p` | Configuration preset (minimal, default, full, custom) | `default` |
115
+ | `--force` | `-f` | Overwrite existing configuration | `false` |
116
+ | `--skip-deps` | | Skip dependency installation | `false` |
117
+ | `--topology` | `-t` | Swarm topology (hierarchical, mesh, hybrid) | `hierarchical` |
118
+ | `--max-agents` | `-m` | Maximum concurrent agents | `15` |
119
+ | `--memory-backend` | | Memory backend (agentdb, sqlite, hybrid) | `hybrid` |
120
+ | `--enable-hnsw` | | Enable HNSW indexing (150x faster) | `true` |
121
+ | `--enable-neural` | | Enable SONA neural learning | `true` |
122
+
123
+ #### Examples
61
124
 
62
125
  ```bash
63
- # 1. Install Claude Code globally
64
- npm install -g @anthropic-ai/claude-code
126
+ # Interactive wizard
127
+ claude-flow init --wizard
128
+
129
+ # Quick setup with defaults
130
+ claude-flow init --preset default
131
+
132
+ # Full V3 setup with all features
133
+ claude-flow init --preset full --enable-hnsw --enable-neural
65
134
 
66
- # 2. (Optional) Skip permissions check for faster setup
67
- claude --dangerously-skip-permissions
135
+ # Validate configuration
136
+ claude-flow init check
68
137
  ```
69
138
 
70
- ### Installation
139
+ ---
140
+
141
+ ### `agent` - Agent Management
142
+
143
+ Spawn, manage, and monitor AI agents with various specializations.
71
144
 
72
145
  ```bash
73
- # With npm/npx (Node.js)
74
- npm install claude-flow@v3alpha
75
- npx claude-flow@v3alpha init
146
+ claude-flow agent <subcommand> [options]
147
+ ```
148
+
149
+ #### Subcommands
150
+
151
+ | Subcommand | Aliases | Description |
152
+ |------------|---------|-------------|
153
+ | `spawn` | | Spawn a new agent with specified type and configuration |
154
+ | `list` | `ls` | List all active agents with filtering options |
155
+ | `status` | | Show detailed status and metrics for an agent |
156
+ | `stop` | `kill` | Stop a running agent (graceful or forced) |
157
+ | `metrics` | | Show agent performance metrics over time |
158
+ | `pool` | | Manage agent pool for auto-scaling |
159
+ | `health` | | Show agent health and resource metrics |
160
+ | `logs` | | View agent activity logs with filtering |
161
+
162
+ #### Agent Types
163
+
164
+ | Type | Description | Capabilities |
165
+ |------|-------------|--------------|
166
+ | `coder` | Code development with neural patterns | code-generation, refactoring, debugging, testing |
167
+ | `researcher` | Research with web access and data analysis | web-search, data-analysis, summarization, citation |
168
+ | `tester` | Comprehensive testing with automation | unit-testing, integration-testing, coverage-analysis |
169
+ | `reviewer` | Code review with security and quality checks | code-review, security-audit, quality-check |
170
+ | `architect` | System design with enterprise patterns | system-design, pattern-analysis, scalability |
171
+ | `coordinator` | Multi-agent orchestration and workflow | task-orchestration, agent-management, workflow-control |
172
+ | `security-architect` | Security architecture and threat modeling | threat-modeling, security-patterns, compliance |
173
+ | `security-auditor` | CVE remediation and security testing | vulnerability-scan, penetration-testing |
174
+ | `memory-specialist` | AgentDB unification (150x-12,500x faster) | vector-search, agentdb, caching, optimization |
175
+ | `performance-engineer` | 2.49x-7.47x optimization targets | benchmarking, profiling, optimization |
176
+
177
+ #### Spawn Options
178
+
179
+ | Option | Short | Description | Default |
180
+ |--------|-------|-------------|---------|
181
+ | `--type` | `-t` | Agent type to spawn | required |
182
+ | `--name` | `-n` | Agent name/identifier | auto-generated |
183
+ | `--provider` | `-p` | LLM provider (anthropic, openrouter, ollama) | `anthropic` |
184
+ | `--model` | `-m` | Model to use | provider default |
185
+ | `--task` | | Initial task for the agent | none |
186
+ | `--timeout` | | Agent timeout in seconds | `300` |
187
+ | `--auto-tools` | | Enable automatic tool usage | `true` |
188
+
189
+ #### Examples
190
+
191
+ ```bash
192
+ # Spawn a coder agent
193
+ claude-flow agent spawn -t coder --name my-coder
194
+
195
+ # Spawn researcher with initial task
196
+ claude-flow agent spawn -t researcher --task "Research React 19 features"
197
+
198
+ # List all active agents
199
+ claude-flow agent list
200
+
201
+ # List agents by type
202
+ claude-flow agent list -t coder
76
203
 
77
- # With Bun (faster)
78
- bun add claude-flow@v3alpha
79
- bunx claude-flow@v3alpha init
204
+ # Get detailed agent status
205
+ claude-flow agent status agent-001
80
206
 
81
- # Start MCP server for Claude Code integration
82
- npx claude-flow@v3alpha mcp start
207
+ # Show agent metrics for 24 hours
208
+ claude-flow agent metrics -p 24h
83
209
 
84
- # Run a task with agents
85
- npx claude-flow@v3alpha --agent coder --task "Implement user authentication"
210
+ # View agent logs
211
+ claude-flow agent logs -i agent-001 -f
86
212
 
87
- # List available agents
88
- npx claude-flow@v3alpha --list
213
+ # Configure agent pool
214
+ claude-flow agent pool --size 5 --min 2 --max 15 --auto-scale
215
+
216
+ # Health check with detailed metrics
217
+ claude-flow agent health -d
218
+
219
+ # Stop agent gracefully
220
+ claude-flow agent stop agent-001
221
+
222
+ # Force stop
223
+ claude-flow agent stop agent-001 -f
89
224
  ```
90
225
 
91
226
  ---
92
227
 
93
- ## Features
228
+ ### `swarm` - Swarm Coordination
94
229
 
95
- ### Core Platform Capabilities
96
-
97
- | Capability | Description | Metrics |
98
- |------------|-------------|---------|
99
- | **54+ Specialized Agents** | Purpose-built AI agents for development, testing, security, and operations | 10 categories, unlimited concurrent |
100
- | **Multi-Topology Swarms** | Hierarchical, mesh, ring, star, and adaptive coordination patterns | 2.8-4.4x speed improvement |
101
- | **Self-Learning Hooks** | ReasoningBank pattern learning with HNSW vector search | 150x faster retrieval |
102
- | **MCP Integration** | Native Claude Code support via Model Context Protocol | 27+ tools available |
103
- | **Security-First Design** | Input validation, path traversal prevention, command sandboxing | CVE-1, CVE-2, CVE-3 addressed |
104
- | **Cross-Platform** | Full support for Windows, macOS, and Linux environments | Node.js 18+ |
105
-
106
- ### Agent Ecosystem
107
-
108
- | Category | Agent Count | Key Agents | Purpose |
109
- |----------|-------------|------------|---------|
110
- | **Core Development** | 5 | coder, reviewer, tester, planner, researcher | Daily development tasks |
111
- | **V3 Specialized** | 10 | queen-coordinator, security-architect, memory-specialist | Enterprise orchestration |
112
- | **Swarm Coordination** | 5 | hierarchical-coordinator, mesh-coordinator, adaptive-coordinator | Multi-agent patterns |
113
- | **Consensus & Distributed** | 7 | byzantine-coordinator, raft-manager, gossip-coordinator | Fault-tolerant coordination |
114
- | **Performance** | 5 | perf-analyzer, performance-benchmarker, task-orchestrator | Optimization & monitoring |
115
- | **GitHub & Repository** | 9 | pr-manager, code-review-swarm, issue-tracker, release-manager | Repository automation |
116
- | **SPARC Methodology** | 6 | sparc-coord, specification, pseudocode, architecture | Structured development |
117
- | **Specialized Dev** | 8 | backend-dev, mobile-dev, ml-developer, cicd-engineer | Domain expertise |
118
-
119
- ### Swarm Topologies
120
-
121
- | Topology | Recommended Agents | Best For | Execution Time | Memory/Agent |
122
- |----------|-------------------|----------|----------------|--------------|
123
- | **Hierarchical** | 6+ | Structured tasks, clear authority chains | 0.20s | 256 MB |
124
- | **Mesh** | 4+ | Collaborative work, high redundancy | 0.15s | 192 MB |
125
- | **Ring** | 3+ | Sequential processing pipelines | 0.12s | 128 MB |
126
- | **Star** | 5+ | Centralized control, spoke workers | 0.14s | 180 MB |
127
- | **Hybrid (Hierarchical-Mesh)** | 7+ | Complex multi-domain tasks | 0.18s | 320 MB |
128
- | **Adaptive** | 2+ | Dynamic workloads, auto-scaling | Variable | Dynamic |
129
-
130
- ### Self-Learning & Intelligence
131
-
132
- | Feature | Technology | Performance | Description |
133
- |---------|------------|-------------|-------------|
134
- | **ReasoningBank** | HNSW Vector Search | 150x faster | Pattern storage with similarity-based retrieval |
135
- | **SONA Neural** | LoRA Fine-tuning | <0.05ms adaptation | Self-optimizing neural architecture |
136
- | **Pattern Learning** | EWC++ Memory | Zero forgetting | Continuous learning without catastrophic forgetting |
137
- | **Intent Routing** | MoE (Mixture of Experts) | 95%+ accuracy | Intelligent task-to-agent routing |
138
- | **Domain Detection** | Vector Clustering | Real-time | Automatic categorization (security, testing, performance) |
139
- | **Quality Tracking** | Success/Failure Metrics | Per-pattern | Historical performance tracking |
140
-
141
- ### Memory & Storage
142
-
143
- | Backend | Technology | Performance | Use Case |
144
- |---------|------------|-------------|----------|
145
- | **AgentDB** | HNSW Indexing | 150x-12,500x faster | Primary vector storage |
146
- | **SQLite** | Relational DB | Standard | Metadata and structured data |
147
- | **Hybrid** | AgentDB + SQLite | Best of both | Recommended default |
148
- | **In-Memory** | RAM-based | Fastest | Temporary/session data |
149
-
150
- ### MCP Tools & Integration
151
-
152
- | Category | Tools | Description |
153
- |----------|-------|-------------|
154
- | **Coordination** | `swarm_init`, `agent_spawn`, `task_orchestrate` | Swarm and agent lifecycle management |
155
- | **Monitoring** | `swarm_status`, `agent_list`, `agent_metrics`, `task_status` | Real-time status and metrics |
156
- | **Memory & Neural** | `memory_usage`, `neural_status`, `neural_train`, `neural_patterns` | Memory operations and learning |
157
- | **GitHub** | `github_swarm`, `repo_analyze`, `pr_enhance`, `issue_triage`, `code_review` | Repository integration |
158
- | **Workers** | `worker/run`, `worker/status`, `worker/alerts`, `worker/history` | Background task management |
159
- | **Hooks** | `hooks/pre-*`, `hooks/post-*`, `hooks/route`, `hooks/session-*`, `hooks/intelligence/*`, `hooks/worker/*` | 31 lifecycle hooks |
160
-
161
- ### Security Features
162
-
163
- | Feature | Protection | Implementation |
164
- |---------|------------|----------------|
165
- | **Input Validation** | Injection attacks | Boundary validation on all inputs |
166
- | **Path Traversal Prevention** | Directory escape | Blocked patterns (`../`, `~/.`, `/etc/`) |
167
- | **Command Sandboxing** | Shell injection | Allowlisted commands, metacharacter blocking |
168
- | **Prototype Pollution** | Object manipulation | Safe JSON parsing with validation |
169
- | **TOCTOU Protection** | Race conditions | Symlink skipping and atomic operations |
170
- | **Information Disclosure** | Data leakage | Error message sanitization |
171
- | **CVE Monitoring** | Known vulnerabilities | Active scanning and patching |
172
-
173
- ### Advanced Capabilities
174
-
175
- | Feature | Description | Benefit |
176
- |---------|-------------|---------|
177
- | **Automatic Topology Selection** | AI-driven topology choice based on task complexity | Optimal resource utilization |
178
- | **Parallel Execution** | Concurrent agent operation with load balancing | 2.8-4.4x speed improvement |
179
- | **Neural Training** | 27+ model support with continuous learning | Adaptive intelligence |
180
- | **Bottleneck Analysis** | Real-time performance monitoring and optimization | Proactive issue detection |
181
- | **Smart Auto-Spawning** | Dynamic agent creation based on workload | Elastic scaling |
182
- | **Self-Healing Workflows** | Automatic error recovery and task retry | High availability |
183
- | **Cross-Session Memory** | Persistent pattern storage across sessions | Continuous learning |
184
- | **Event Sourcing** | Complete audit trail with replay capability | Debugging and compliance |
185
- | **Background Workers** | 12 auto-triggered workers for analysis and optimization | Automated maintenance |
186
- | **GitHub Integration** | PR management, issue triage, code review automation | Repository workflow |
187
-
188
- ### Plugin System (`@claude-flow/plugins`)
189
-
190
- | Component | Description | Key Features |
191
- |-----------|-------------|--------------|
192
- | **PluginBuilder** | Fluent builder for creating plugins | MCP tools, hooks, workers, providers |
193
- | **MCPToolBuilder** | Build MCP tools with typed parameters | String, number, boolean, enum params |
194
- | **HookBuilder** | Build hooks with conditions and transformers | Priorities, conditional execution, data transformation |
195
- | **WorkerPool** | Managed worker pool with auto-scaling | Min/max workers, task queuing, graceful shutdown |
196
- | **ProviderRegistry** | LLM provider management with fallback | Cost optimization, automatic failover |
197
- | **AgenticFlowBridge** | agentic-flow@alpha integration | Swarm coordination, agent spawning |
198
- | **AgentDBBridge** | Vector storage with HNSW indexing | 150x faster search, batch operations |
199
- | **Security Utilities** | Input validation and protection | Path traversal, injection, rate limiting |
200
-
201
- ### Plugin Hook Events
202
-
203
- | Category | Events | Description |
204
- |----------|--------|-------------|
205
- | **Session** | `session:start`, `session:end` | Session lifecycle management |
206
- | **Agent** | `agent:pre-spawn`, `agent:post-spawn`, `agent:pre-terminate`, `agent:post-terminate` | Agent lifecycle hooks |
207
- | **Task** | `task:pre-execute`, `task:post-complete`, `task:error` | Task execution hooks |
208
- | **Tool** | `tool:pre-call`, `tool:post-call` | MCP tool invocation hooks |
209
- | **Memory** | `memory:pre-store`, `memory:post-store`, `memory:pre-retrieve`, `memory:post-retrieve` | Memory operation hooks |
210
- | **Swarm** | `swarm:initialized`, `swarm:shutdown`, `swarm:consensus-reached` | Swarm coordination hooks |
211
- | **File** | `file:pre-read`, `file:post-read`, `file:pre-write`, `file:post-write` | File operation hooks |
212
- | **Command** | `command:pre-execute`, `command:post-execute` | Shell command hooks |
213
- | **Learning** | `learning:pattern-learned`, `learning:pattern-applied` | Pattern learning hooks |
214
-
215
- ### Plugin Worker Types
216
-
217
- | Worker Type | Purpose | Capabilities |
218
- |-------------|---------|--------------|
219
- | `coder` | Code implementation | Code generation, refactoring |
220
- | `reviewer` | Code review | Quality analysis, suggestions |
221
- | `tester` | Test generation/execution | Unit tests, integration tests |
222
- | `researcher` | Information gathering | Web search, documentation |
223
- | `planner` | Task planning | Decomposition, scheduling |
224
- | `coordinator` | Multi-agent coordination | Orchestration, consensus |
225
- | `security` | Security analysis | Vulnerability scanning, audit |
226
- | `performance` | Performance optimization | Profiling, benchmarking |
227
- | `specialized` | Custom capabilities | Domain-specific tasks |
228
- | `long-running` | Background tasks | Async processing, polling |
229
-
230
- ### Plugin Performance
231
-
232
- | Metric | Target | Achieved |
233
- |--------|--------|----------|
234
- | Plugin load time | <50ms | ~20ms |
235
- | Hook execution | <1ms | ~0.5ms |
236
- | Worker spawn | <100ms | ~50ms |
237
- | Vector search (10K) | <10ms | ~5ms |
238
-
239
- ### RuVector WASM Plugins
240
-
241
- | Plugin | Description | Performance |
242
- |--------|-------------|-------------|
243
- | **SemanticCodeSearchPlugin** | Semantic code search with vector embeddings | Real-time indexing |
244
- | **IntentRouterPlugin** | Routes user intents to optimal handlers | 95%+ accuracy |
245
- | **HookPatternLibraryPlugin** | Pre-built patterns for common tasks | Security, testing, performance |
246
- | **MCPToolOptimizerPlugin** | Optimizes MCP tool selection | Context-aware suggestions |
247
- | **ReasoningBankPlugin** | Vector-backed pattern storage with HNSW | 150x faster search |
248
- | **AgentConfigGeneratorPlugin** | Generates optimized agent configurations | From pretrain data |
249
-
250
- ### Background Workers (12 Auto-Triggered)
251
-
252
- Workers run automatically in the background based on context, or can be dispatched manually via MCP tools.
253
-
254
- | Worker | Trigger | Purpose | Auto-Triggers On |
255
- |--------|---------|---------|------------------|
256
- | **UltraLearn** | `ultralearn` | Deep knowledge acquisition from codebase | New project, major refactors |
257
- | **Optimize** | `optimize` | Performance optimization suggestions | Slow operations detected |
258
- | **Consolidate** | `consolidate` | Memory pattern consolidation | Session end, memory threshold |
259
- | **Predict** | `predict` | Predictive resource preloading | Usage patterns detected |
260
- | **Audit** | `audit` | Security vulnerability analysis | Security-related file changes |
261
- | **Map** | `map` | Codebase structure mapping | New directories, large changes |
262
- | **Preload** | `preload` | Resource and dependency preloading | Project initialization |
263
- | **DeepDive** | `deepdive` | Deep code analysis and understanding | Complex file edits |
264
- | **Document** | `document` | Auto-documentation generation | New functions/classes created |
265
- | **Refactor** | `refactor` | Refactoring opportunity detection | Code smell patterns |
266
- | **Benchmark** | `benchmark` | Performance benchmarking | Performance-critical changes |
267
- | **TestGaps** | `testgaps` | Test coverage gap analysis | Code changes without tests |
268
-
269
- **Worker Commands:**
270
- ```bash
271
- # Dispatch a worker manually
272
- npx claude-flow@v3alpha worker dispatch --trigger audit --context "./src"
230
+ Multi-agent swarm initialization, coordination, and management.
273
231
 
274
- # Check worker status
275
- npx claude-flow@v3alpha worker status
276
-
277
- # View completed results
278
- npx claude-flow@v3alpha worker results --limit 10
232
+ ```bash
233
+ claude-flow swarm <subcommand> [options]
279
234
  ```
280
235
 
281
- ### LLM Providers (`@claude-flow/providers`)
236
+ #### Subcommands
282
237
 
283
- | Provider | Models | Features | Cost |
284
- |----------|--------|----------|------|
285
- | **Anthropic** | Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku | Native, streaming, tool calling | $3-15/1M tokens |
286
- | **OpenAI** | GPT-4o, GPT-4 Turbo, GPT-3.5, o1-preview, o3-mini | Function calling, vision | $0.50-60/1M tokens |
287
- | **Google** | Gemini 2.0 Flash, Gemini 1.5 Pro/Flash | Multimodal, long context | $0.075-7/1M tokens |
288
- | **Cohere** | Command R+, Command R, Command Light | RAG optimized | $0.50-15/1M tokens |
289
- | **Ollama** | Llama 3.2, Mistral, CodeLlama, DeepSeek | Local, free, offline | Free |
290
- | **RuVector** | Custom models via @ruvector/ruvllm | WASM optimized | Custom |
238
+ | Subcommand | Description |
239
+ |------------|-------------|
240
+ | `init` | Initialize a new swarm with specified topology |
241
+ | `start` | Start swarm execution with objective and strategy |
242
+ | `status` | Show swarm status, progress, and metrics |
243
+ | `stop` | Stop swarm execution (with state save option) |
244
+ | `scale` | Scale swarm agent count up or down |
245
+ | `coordinate` | Execute V3 15-agent hierarchical mesh coordination |
291
246
 
292
- ### Provider Load Balancing
247
+ #### Topologies
293
248
 
294
- | Strategy | Description | Best For |
249
+ | Topology | Description | Best For |
295
250
  |----------|-------------|----------|
296
- | `round-robin` | Rotate through providers sequentially | Even distribution |
297
- | `least-loaded` | Use provider with lowest current load | High throughput |
298
- | `latency-based` | Use fastest responding provider | Low latency |
299
- | `cost-based` | Use cheapest provider that meets requirements | Cost optimization (85%+ savings) |
300
-
301
- ### Embedding Providers (`@claude-flow/embeddings`)
251
+ | `hierarchical` | Queen-led coordination with worker agents | Structured tasks, clear authority |
252
+ | `mesh` | Fully connected peer-to-peer network | Collaborative work, redundancy |
253
+ | `ring` | Circular communication pattern | Sequential processing |
254
+ | `star` | Central coordinator with spoke agents | Centralized control |
255
+ | `hybrid` | Hierarchical mesh for maximum flexibility | Complex multi-domain tasks |
302
256
 
303
- | Provider | Models | Dimensions | Latency | Cost |
304
- |----------|--------|------------|---------|------|
305
- | **OpenAI** | text-embedding-3-small/large, ada-002 | 1536-3072 | ~50-100ms | $0.02-0.13/1M tokens |
306
- | **Transformers.js** | all-MiniLM-L6-v2, all-mpnet-base-v2, bge-small | 384-768 | ~20-50ms | Free (local) |
307
- | **Mock** | Deterministic hash-based | Configurable | <1ms | Free |
257
+ #### Strategies
308
258
 
309
- ### Embedding Features
259
+ | Strategy | Description | Agent Distribution |
260
+ |----------|-------------|-------------------|
261
+ | `research` | Distributed research and analysis | 1 coordinator, 4 researchers, 2 analysts |
262
+ | `development` | Collaborative code development | 1 coordinator, 1 architect, 3 coders, 2 testers, 1 reviewer |
263
+ | `testing` | Comprehensive test coverage | 1 test lead, 2 unit testers, 2 integration testers, 1 QA |
264
+ | `optimization` | Performance optimization | 1 performance lead, 2 profilers, 2 optimizers |
265
+ | `maintenance` | Codebase maintenance and refactoring | 1 coordinator, 2 refactorers, 1 documenter |
266
+ | `analysis` | Code analysis and documentation | 1 analyst lead, 2 code analysts, 1 security analyst |
310
267
 
311
- | Feature | Description | Performance |
312
- |---------|-------------|-------------|
313
- | **LRU Caching** | Intelligent cache with hit rate tracking | <1ms cache hits |
314
- | **Batch Processing** | Efficient batch embedding with partial cache | 10 items <500ms |
315
- | **Similarity Functions** | Cosine, Euclidean, Dot product | Optimized math |
316
- | **Event System** | Observable operations with listeners | Real-time monitoring |
268
+ #### Examples
317
269
 
318
- ### Consensus Strategies (`@claude-flow/swarm`)
270
+ ```bash
271
+ # Initialize V3 swarm (recommended)
272
+ claude-flow swarm init --v3-mode
319
273
 
320
- | Strategy | Algorithm | Fault Tolerance | Latency | Best For |
321
- |----------|-----------|-----------------|---------|----------|
322
- | **Byzantine (PBFT)** | Practical Byzantine Fault Tolerance | f < n/3 faulty nodes | ~100ms | Adversarial environments |
323
- | **Raft** | Leader-based log replication | f < n/2 failures | ~50ms | Strong consistency |
324
- | **Gossip** | Epidemic protocol dissemination | High partition tolerance | ~200ms | Eventually consistent |
325
- | **CRDT** | Conflict-free Replicated Data Types | Strong eventual consistency | ~10ms | Concurrent updates |
326
- | **Quorum** | Configurable read/write quorums | Flexible | ~75ms | Tunable consistency |
274
+ # Initialize with specific topology
275
+ claude-flow swarm init -t mesh --max-agents 10
327
276
 
328
- ### CLI Commands (`@claude-flow/cli`)
277
+ # Start development swarm
278
+ claude-flow swarm start -o "Build REST API with authentication" -s development
329
279
 
330
- | Command | Subcommands | Description |
331
- |---------|-------------|-------------|
332
- | `init` | 4 | Project initialization (wizard, check, skills, hooks) |
333
- | `agent` | 8 | Agent lifecycle (spawn, list, status, stop, metrics, pool, health, logs) |
334
- | `swarm` | 6 | Swarm coordination (init, start, status, stop, scale, coordinate) |
335
- | `memory` | 11 | Memory operations (store, retrieve, search, list, delete, stats, configure, cleanup, compress, export, import) |
336
- | `mcp` | 9 | MCP server (start, stop, status, health, restart, tools, toggle, exec, logs) |
337
- | `task` | 6 | Task management (create, list, status, cancel, assign, retry) |
338
- | `session` | 7 | Session management (list, save, restore, delete, export, import, current) |
339
- | `config` | 7 | Configuration (init, get, set, providers, reset, export, import) |
340
- | `status` | 3 | System status with watch mode (agents, tasks, memory) |
341
- | `workflow` | 6 | Workflow execution (run, validate, list, status, stop, template) |
342
- | `hooks` | 31 | Self-learning hooks (pre/post-edit, pre/post-command, route, explain, pretrain, session-*, intelligence/*, worker/*) |
343
- | `hive-mind` | 6 | Queen-led coordination (init, spawn, status, task, optimize-memory, shutdown) |
344
- | `migrate` | 5 | V2→V3 migration (status, run, verify, rollback, breaking) |
345
-
346
- ### Testing Framework (`@claude-flow/testing`)
347
-
348
- | Component | Description | Features |
349
- |-----------|-------------|----------|
350
- | **London School TDD** | Behavior verification with mocks | Mock-first, interaction testing |
351
- | **Vitest Integration** | ADR-008 compliant test runner | 10x faster than Jest |
352
- | **Fixture Library** | Pre-defined test data | Agents, memory, swarm, MCP |
353
- | **Mock Factory** | Application and service mocks | Auto-reset, state tracking |
354
- | **Async Utilities** | waitFor, retry, withTimeout | Reliable async testing |
355
- | **Performance Assertions** | V3 target validation | Speedup, memory, latency checks |
356
-
357
- ### Testing Fixtures
358
-
359
- | Fixture Type | Contents | Use Case |
360
- |--------------|----------|----------|
361
- | `agentConfigs` | 15 V3 agent configurations | Agent testing |
362
- | `memoryEntries` | Patterns, rules, embeddings | Memory testing |
363
- | `swarmConfigs` | V3 default, minimal, mesh, hierarchical | Swarm testing |
364
- | `mcpTools` | 27+ tool definitions | MCP testing |
365
-
366
- ### Deployment & CI/CD (`@claude-flow/deployment`)
367
-
368
- | Feature | Description | Automation |
369
- |---------|-------------|------------|
370
- | **Version Bumping** | major, minor, patch, prerelease | Automatic semver |
371
- | **Changelog Generation** | Conventional commits parsing | Auto-generated |
372
- | **Git Integration** | Tagging, committing | Automatic |
373
- | **NPM Publishing** | alpha, beta, rc, latest tags | Tag-based |
374
- | **Validation** | Lint, test, build, dependency checks | Pre-release |
375
- | **Dry Run Mode** | Test releases without changes | Safe testing |
376
-
377
- ### Release Channels
378
-
379
- | Channel | Version Format | Purpose |
380
- |---------|---------------|---------|
381
- | `alpha` | 1.0.0-alpha.1 | Early development |
382
- | `beta` | 1.0.0-beta.1 | Feature complete, testing |
383
- | `rc` | 1.0.0-rc.1 | Release candidate |
384
- | `latest` | 1.0.0 | Stable production |
385
-
386
- ### Integration (`@claude-flow/integration`)
387
-
388
- | Component | Description | Performance |
389
- |-----------|-------------|-------------|
390
- | **AgenticFlowBridge** | agentic-flow@alpha integration | ADR-001 compliant |
391
- | **SONA Adapter** | Learning system integration | <0.05ms adaptation |
392
- | **Flash Attention** | Attention mechanism coordinator | 2.49x-7.47x speedup |
393
- | **SDK Bridge** | Version negotiation, API compatibility | Auto-detection |
394
- | **Feature Flags** | Dynamic feature management | 9 configurable flags |
395
- | **Runtime Detection** | NAPI, WASM, JS auto-selection | Optimal performance |
396
-
397
- ### Integration Runtimes
398
-
399
- | Runtime | Performance | Requirements |
400
- |---------|-------------|--------------|
401
- | **NAPI** | Optimal | Native bindings, x64 |
402
- | **WASM** | Good | WebAssembly support |
403
- | **JS** | Fallback | Always available |
404
-
405
- ### Performance Benchmarking (`@claude-flow/performance`)
406
-
407
- | Capability | Description | Output |
408
- |------------|-------------|--------|
409
- | **Statistical Analysis** | Mean, median, P95, P99, stddev | Comprehensive metrics |
410
- | **Memory Tracking** | Heap, RSS, external, array buffers | Resource monitoring |
411
- | **Auto-Calibration** | Automatic iteration adjustment | Statistical significance |
412
- | **Regression Detection** | Baseline comparison | Change detection |
413
- | **V3 Target Validation** | Built-in performance targets | Pass/fail checking |
414
-
415
- ### V3 Benchmark Targets
416
-
417
- | Category | Benchmark | Target |
418
- |----------|-----------|--------|
419
- | **Startup** | CLI cold start | <500ms |
420
- | **Startup** | MCP server init | <400ms |
421
- | **Startup** | Agent spawn | <200ms |
422
- | **Memory** | Vector search | <1ms |
423
- | **Memory** | HNSW indexing | <10ms |
424
- | **Memory** | Memory write | <5ms |
425
- | **Swarm** | Agent coordination | <50ms |
426
- | **Swarm** | Consensus latency | <100ms |
427
- | **Neural** | SONA adaptation | <0.05ms |
428
-
429
- ### Neural & SONA (`@claude-flow/neural`)
430
-
431
- | Feature | Description | Performance |
432
- |---------|-------------|-------------|
433
- | **SONA Learning** | Self-Optimizing Neural Architecture | <0.05ms adaptation |
434
- | **5 Learning Modes** | real-time, balanced, research, edge, batch | Mode-specific optimization |
435
- | **9 RL Algorithms** | PPO, A2C, DQN, Q-Learning, SARSA, Decision Transformer, etc. | Comprehensive RL |
436
- | **LoRA Integration** | Low-Rank Adaptation for efficient fine-tuning | Minimal memory overhead |
437
- | **MicroLoRA** | Ultra-lightweight LoRA for edge/real-time modes | <5MB memory footprint |
438
- | **EWC++ Memory** | Elastic Weight Consolidation prevents catastrophic forgetting | Zero knowledge loss |
439
- | **Trajectory Tracking** | Execution path recording for pattern extraction | Continuous learning |
280
+ # Parallel analysis swarm
281
+ claude-flow swarm start -o "Analyze codebase for performance issues" --parallel
440
282
 
441
- ### Memory & Vector Optimization
283
+ # Check swarm status
284
+ claude-flow swarm status swarm-123
442
285
 
443
- | Feature | Description | Improvement |
444
- |---------|-------------|-------------|
445
- | **Scalar Quantization** | Reduce vector precision for memory savings | 4x memory reduction |
446
- | **Product Quantization** | Compress vectors into codebooks | 8-32x memory reduction |
447
- | **HNSW Indexing** | Hierarchical Navigable Small World graphs | 150x-12,500x faster search |
448
- | **LRU Caching** | Intelligent embedding cache with TTL | <1ms cache hits |
449
- | **Batch Processing** | Process multiple embeddings in single call | 10x throughput |
450
- | **Memory Compression** | Pattern distillation and pruning | 50-75% reduction |
286
+ # Scale swarm
287
+ claude-flow swarm scale swarm-123 --agents 20
451
288
 
452
- ### Embedding System (`@claude-flow/embeddings`)
289
+ # V3 15-agent coordination
290
+ claude-flow swarm coordinate --agents 15
453
291
 
454
- | Feature | Description | Performance |
455
- |---------|-------------|-------------|
456
- | **Multi-Provider** | OpenAI, Transformers.js (local), Mock | Flexible deployment |
457
- | **Dimensions** | 384 to 3072 configurable | Quality vs speed tradeoff |
458
- | **Similarity Metrics** | Cosine, Euclidean, Dot product | Task-specific matching |
459
- | **Event System** | Observable operations with listeners | Real-time monitoring |
460
- | **Partial Cache Hits** | Batch requests use cached where available | Reduced API calls |
461
-
462
- ### SONA Learning Modes
463
-
464
- | Mode | Adaptation | Quality | Memory | Use Case |
465
- |------|------------|---------|--------|----------|
466
- | `real-time` | <0.5ms | 70%+ | 25MB | Production, low-latency |
467
- | `balanced` | <18ms | 75%+ | 50MB | General purpose |
468
- | `research` | <100ms | 95%+ | 100MB | Deep exploration |
469
- | `edge` | <1ms | 80%+ | 5MB | Resource-constrained |
470
- | `batch` | <50ms | 85%+ | 75MB | High-throughput |
471
-
472
- ### RL Algorithms
473
-
474
- | Algorithm | Type | Best For |
475
- |-----------|------|----------|
476
- | **PPO** | Policy Gradient | Stable continuous learning |
477
- | **A2C** | Actor-Critic | Balanced exploration/exploitation |
478
- | **DQN** | Value-based | Discrete action spaces |
479
- | **Q-Learning** | Tabular | Simple state spaces |
480
- | **SARSA** | On-policy | Online learning |
481
- | **Decision Transformer** | Sequence modeling | Long-horizon planning |
482
-
483
- ### Hive-Mind Coordination
484
-
485
- | Feature | Description | Capability |
486
- |---------|-------------|------------|
487
- | **Queen-Led Topology** | Hierarchical command structure | Unlimited agents + sub-workers |
488
- | **Byzantine Consensus** | Fault-tolerant agreement | f < n/3 tolerance |
489
- | **Collective Memory** | Shared pattern storage | Distillation, compression |
490
- | **Specialist Spawning** | Domain-specific agents | Security, performance, etc. |
491
- | **Adaptive Topology** | Dynamic structure changes | Load-based optimization |
492
-
493
- ### agentic-flow@alpha Integration
494
-
495
- | Feature | Description | Benefit |
496
- |---------|-------------|---------|
497
- | **ADR-001 Compliance** | Build on agentic-flow, don't duplicate | Eliminates 10,000+ duplicate lines |
498
- | **Core Foundation** | Use agentic-flow as the base layer | Unified architecture |
499
- | **SONA Integration** | Seamless learning system connection | <0.05ms adaptation |
500
- | **Flash Attention** | Optimized attention mechanisms | 2.49x-7.47x speedup |
501
- | **AgentDB Bridge** | Vector storage integration | 150x-12,500x faster search |
502
- | **Feature Flags** | Dynamic capability management | 9 configurable features |
503
- | **Runtime Detection** | NAPI/WASM/JS auto-selection | Optimal performance per platform |
504
- | **Graceful Fallback** | Works with or without agentic-flow | Always functional |
505
-
506
- ### MCP Server (`@claude-flow/mcp`)
507
-
508
- | Feature | Description | Spec |
509
- |---------|-------------|------|
510
- | **MCP 2025-11-25** | Full specification compliance | Latest MCP standard |
511
- | **Multiple Transports** | stdio, HTTP, WebSocket, in-process | Flexible connectivity |
512
- | **Resources** | list, read, subscribe with caching | Dynamic content |
513
- | **Prompts** | Templates with arguments and embedding | Reusable prompts |
514
- | **Tasks** | Async operations with progress/cancel | Long-running ops |
515
- | **Tool Registry** | O(1) lookup, <10ms registration | Fast tool access |
516
- | **Connection Pooling** | Max 10 connections, configurable | Resource management |
517
- | **Session Management** | Timeout handling, authentication | Secure sessions |
518
-
519
- ### MCP Methods
520
-
521
- | Method | Description |
522
- |--------|-------------|
523
- | `initialize` | Initialize connection |
524
- | `tools/list` | List available tools |
525
- | `tools/call` | Execute a tool |
526
- | `resources/list` | List resources with pagination |
527
- | `resources/read` | Read resource content |
528
- | `resources/subscribe` | Subscribe to updates |
529
- | `prompts/list` | List prompts with pagination |
530
- | `prompts/get` | Get prompt with arguments |
531
- | `tasks/status` | Get task status |
532
- | `tasks/cancel` | Cancel running task |
533
- | `completion/complete` | Auto-complete arguments |
534
-
535
- ### Security Module (`@claude-flow/security`)
536
-
537
- | Feature | CVE/Issue | Description |
538
- |---------|-----------|-------------|
539
- | **Password Hashing** | CVE-2 | Secure bcrypt with 12+ rounds |
540
- | **Credential Generation** | CVE-3 | Cryptographically secure API keys |
541
- | **Safe Command Execution** | HIGH-1 | Allowlist-based command execution |
542
- | **Path Validation** | HIGH-2 | Path traversal and symlink protection |
543
- | **Input Validation** | General | Zod-based schema validation |
544
- | **Token Generation** | General | HMAC-signed secure tokens |
545
- | **HTML Sanitization** | XSS | Script and injection prevention |
546
-
547
- ### Security Validation Schemas
548
-
549
- | Schema | Purpose |
550
- |--------|---------|
551
- | `SafeStringSchema` | Basic safe string with length limits |
552
- | `IdentifierSchema` | Alphanumeric identifiers |
553
- | `FilenameSchema` | Safe filenames |
554
- | `EmailSchema` | Email addresses |
555
- | `PasswordSchema` | Secure passwords (8-72 chars) |
556
- | `UUIDSchema` | UUID v4 format |
557
- | `HttpsUrlSchema` | HTTPS URLs only |
558
- | `SpawnAgentSchema` | Agent spawn requests |
559
- | `TaskInputSchema` | Task definitions |
560
-
561
- ### Hooks System (`@claude-flow/hooks`)
562
-
563
- | Component | Description | Performance |
564
- |-----------|-------------|-------------|
565
- | **ReasoningBank** | Pattern storage with HNSW indexing | 150x faster retrieval |
566
- | **GuidanceProvider** | Context-aware development guidance | Real-time suggestions |
567
- | **PatternLearning** | Automatic strategy extraction | Continuous improvement |
568
- | **QualityTracking** | Success/failure rate per pattern | Performance metrics |
569
- | **DomainDetection** | Auto-categorization of patterns | Security, testing, etc. |
570
- | **AgentRouting** | Task-to-agent optimization | Historical performance |
571
- | **Consolidation** | Prune low-quality, promote high-quality | Memory optimization |
572
-
573
- ### Hook Lifecycle Events
574
-
575
- | Phase | Hooks | Purpose |
576
- |-------|-------|---------|
577
- | **Pre-Edit** | `pre-edit` | Context gathering, security checks |
578
- | **Post-Edit** | `post-edit` | Outcome recording, pattern learning |
579
- | **Pre-Command** | `pre-command` | Risk assessment, validation |
580
- | **Post-Command** | `post-command` | Success/failure tracking |
581
- | **Pre-Task** | `pre-task` | Setup, resource allocation |
582
- | **Post-Task** | `post-task` | Cleanup, learning |
583
- | **Session** | `session-end`, `session-restore` | State management |
584
-
585
- ### V3 Statusline (`@claude-flow/hooks`)
586
-
587
- Real-time development status display for Claude Code integration showing DDD progress, swarm activity, security status, and system metrics.
588
-
589
- **Output Format:**
292
+ # Stop with state save
293
+ claude-flow swarm stop swarm-123 --save-state
590
294
  ```
591
- ▊ Claude Flow V3 ● ruvnet │ ⎇ v3 │ Opus 4.5
592
- ─────────────────────────────────────────────────────
593
- 🏗️ DDD Domains [●●●●●] 5/5 ⚡ 1.0x → 2.49x-7.47x
594
- 🤖 Swarm ◉ [58/15] 👥 0 🟢 CVE 3/3 💾 22282MB 📂 47% 🧠 10%
595
- 🔧 Architecture DDD ● 98% │ Security ●CLEAN │ Memory ●AgentDB │ Integration ●
295
+
296
+ ---
297
+
298
+ ### `memory` - Memory Management
299
+
300
+ AgentDB memory operations with vector search, caching, and optimization.
301
+
302
+ ```bash
303
+ claude-flow memory <subcommand> [options]
596
304
  ```
597
305
 
598
- | Indicator | Description | Values |
599
- |-----------|-------------|--------|
600
- | `▊ Claude Flow V3` | Project header | Always shown |
601
- | `● ruvnet` | GitHub user (via `gh` CLI) | Dynamic |
602
- | `⎇ v3` | Current git branch | Dynamic |
603
- | `Opus 4.5` | Claude model name | From Claude Code |
604
- | `[●●●●●]` | DDD domain progress bar | 0-5 domains |
605
- | `⚡ 1.0x → 2.49x-7.47x` | Performance speedup target | Current → Target |
606
- | `◉/○` | Swarm coordination status | Active/Inactive |
607
- | `[58/15]` | Active agents / max agents | Process count |
608
- | `👥 0` | Sub-agents spawned | Task tool agents |
609
- | `🟢 CVE 3/3` | Security CVE remediation | Fixed/Total |
610
- | `💾 22282MB` | Memory usage (Node.js processes) | Real-time |
611
- | `📂 47%` | Context window usage | From Claude Code |
612
- | `🧠 10%` | Intelligence score (patterns learned) | 0-100% |
613
- | `DDD ● 98%` | Domain-Driven Design progress | Percentage |
614
- | `Security ●CLEAN` | Security audit status | CLEAN/PENDING/FAILED |
615
- | `Memory ●AgentDB` | Memory backend in use | AgentDB/SQLite/Hybrid |
616
- | `Integration ●` | agentic-flow integration status | Active/Inactive |
617
-
618
- **Usage:**
306
+ #### Subcommands
307
+
308
+ | Subcommand | Aliases | Description |
309
+ |------------|---------|-------------|
310
+ | `store` | | Store data in memory with optional vector embedding |
311
+ | `retrieve` | `get` | Retrieve data from memory by key |
312
+ | `search` | | Semantic/vector search with HNSW indexing |
313
+ | `list` | `ls` | List memory entries with filtering |
314
+ | `delete` | `rm` | Delete memory entry |
315
+ | `stats` | | Show memory statistics and performance |
316
+ | `configure` | `config` | Configure memory backend and HNSW parameters |
317
+ | `cleanup` | | Clean up stale and expired entries |
318
+ | `compress` | | Compress and optimize memory storage |
319
+ | `export` | | Export memory to file (JSON, CSV, binary) |
320
+ | `import` | | Import memory from file |
321
+
322
+ #### Memory Backends
323
+
324
+ | Backend | Description | Performance |
325
+ |---------|-------------|-------------|
326
+ | `agentdb` | Vector database with HNSW indexing | 150x-12,500x faster search |
327
+ | `sqlite` | Lightweight local storage | Good for small datasets |
328
+ | `hybrid` | SQLite + AgentDB (recommended) | Best of both worlds |
329
+ | `memory` | In-memory (non-persistent) | Fastest, no persistence |
330
+
331
+ #### Search Options
332
+
333
+ | Option | Short | Description | Default |
334
+ |--------|-------|-------------|---------|
335
+ | `--query` | `-q` | Search query | required |
336
+ | `--namespace` | `-n` | Memory namespace | all |
337
+ | `--limit` | `-l` | Maximum results | `10` |
338
+ | `--threshold` | | Similarity threshold (0-1) | `0.7` |
339
+ | `--type` | `-t` | Search type (semantic, keyword, hybrid) | `semantic` |
340
+
341
+ #### Examples
342
+
619
343
  ```bash
620
- # V3 statusline (Node.js)
621
- node v3/@claude-flow/hooks/bin/statusline.js
344
+ # Store text data
345
+ claude-flow memory store -k "api/auth" -v "JWT implementation with refresh tokens"
346
+
347
+ # Store as vector embedding
348
+ claude-flow memory store -k "pattern/singleton" -v "Singleton pattern description" --vector
349
+
350
+ # Semantic search
351
+ claude-flow memory search -q "authentication patterns"
622
352
 
623
- # JSON output for scripting
624
- node v3/@claude-flow/hooks/bin/statusline.js --json
353
+ # Keyword search
354
+ claude-flow memory search -q "JWT" -t keyword
625
355
 
626
- # Compact JSON (single line)
627
- node v3/@claude-flow/hooks/bin/statusline.js --compact
356
+ # Hybrid search with threshold
357
+ claude-flow memory search -q "security best practices" -t hybrid --threshold 0.8
628
358
 
629
- # Help
630
- node v3/@claude-flow/hooks/bin/statusline.js --help
359
+ # List entries by namespace
360
+ claude-flow memory list -n patterns
361
+
362
+ # Show memory statistics
363
+ claude-flow memory stats
364
+
365
+ # Configure HNSW parameters
366
+ claude-flow memory configure -b hybrid --hnsw-m 16 --hnsw-ef 200
367
+
368
+ # Cleanup old entries
369
+ claude-flow memory cleanup --older-than 30d
370
+
371
+ # Cleanup expired TTL entries
372
+ claude-flow memory cleanup --expired-only
373
+
374
+ # Compress with quantization (32x memory reduction)
375
+ claude-flow memory compress --quantize --bits 4
376
+
377
+ # Export memory
378
+ claude-flow memory export -o ./backup.json -f json
379
+
380
+ # Import memory
381
+ claude-flow memory import -i ./backup.json --merge
631
382
  ```
632
383
 
633
- **Claude Code Integration:**
384
+ ---
634
385
 
635
- Add to `.claude/settings.json`:
636
- ```json
637
- {
638
- "statusLine": {
639
- "type": "command",
640
- "command": "node v3/@claude-flow/hooks/bin/statusline.js"
641
- }
642
- }
386
+ ### `mcp` - MCP Server Management
387
+
388
+ Model Context Protocol server control and tool execution.
389
+
390
+ ```bash
391
+ claude-flow mcp <subcommand> [options]
643
392
  ```
644
393
 
645
- **Data Sources:**
646
- - `.claude-flow/metrics/v3-progress.json` - DDD domain progress
647
- - `.claude-flow/metrics/swarm-activity.json` - Active agent counts
648
- - `.claude-flow/security/audit-status.json` - CVE remediation status
649
- - `.claude-flow/learning/patterns.db` - Intelligence score (pattern count)
650
- - Process detection via `ps aux` - Real-time memory and agent counts
651
- - Git branch via `git branch --show-current`
652
- - GitHub user via `gh api user`
394
+ #### Subcommands
653
395
 
654
- ### Background Daemons
396
+ | Subcommand | Description |
397
+ |------------|-------------|
398
+ | `start` | Start MCP server with specified transport |
399
+ | `stop` | Stop MCP server (graceful or forced) |
400
+ | `status` | Show MCP server status and metrics |
401
+ | `health` | Check MCP server health |
402
+ | `restart` | Restart MCP server |
403
+ | `tools` | List available MCP tools by category |
404
+ | `toggle` | Enable or disable specific tools |
405
+ | `exec` | Execute an MCP tool directly |
406
+ | `logs` | Show MCP server logs |
655
407
 
656
- #### V3 Node.js Worker Daemon (Recommended)
408
+ #### Transport Types
657
409
 
658
- Cross-platform TypeScript-based daemon service with auto-scheduling:
410
+ | Transport | Description | Use Case |
411
+ |-----------|-------------|----------|
412
+ | `stdio` | Standard I/O (default) | Claude Code integration |
413
+ | `http` | HTTP REST API | Web integrations, remote access |
414
+ | `websocket` | WebSocket connection | Real-time bidirectional |
659
415
 
660
- | Worker | Interval | Priority | Description |
661
- |--------|----------|----------|-------------|
662
- | `map` | 5min | normal | Codebase structure mapping |
663
- | `audit` | 10min | critical | Security vulnerability scanning |
664
- | `optimize` | 15min | high | Performance optimization |
665
- | `consolidate` | 30min | low | Memory consolidation |
666
- | `testgaps` | 20min | normal | Test coverage analysis |
416
+ #### Tool Categories
417
+
418
+ | Category | Description | Tool Count |
419
+ |----------|-------------|------------|
420
+ | `agent` | Agent lifecycle management | 4 |
421
+ | `swarm` | Swarm coordination | 3 |
422
+ | `memory` | Memory operations | 3 |
423
+ | `config` | Configuration | 3 |
424
+ | `hooks` | Hook execution | 9 |
425
+ | `system` | System operations | 3 |
426
+
427
+ #### Examples
667
428
 
668
- **Commands:**
669
429
  ```bash
670
- # Start daemon (auto-runs on SessionStart hooks)
671
- npx claude-flow@v3alpha daemon start
430
+ # Start with stdio (default)
431
+ claude-flow mcp start
672
432
 
673
- # Check status with worker history
674
- npx claude-flow@v3alpha daemon status
433
+ # Start HTTP server on port 8080
434
+ claude-flow mcp start -t http -p 8080
675
435
 
676
- # Manually trigger a worker
677
- npx claude-flow@v3alpha daemon trigger map
436
+ # Start as background daemon
437
+ claude-flow mcp start -d
678
438
 
679
- # Enable/disable workers
680
- npx claude-flow@v3alpha daemon enable map audit optimize
439
+ # Check server status
440
+ claude-flow mcp status
681
441
 
682
- # Stop daemon
683
- npx claude-flow@v3alpha daemon stop
684
- ```
442
+ # Health check
443
+ claude-flow mcp health
444
+
445
+ # List all tools
446
+ claude-flow mcp tools
447
+
448
+ # List tools by category
449
+ claude-flow mcp tools -c memory
450
+
451
+ # Execute a tool
452
+ claude-flow mcp exec -t swarm/init -p '{"topology":"mesh"}'
453
+
454
+ # View logs
455
+ claude-flow mcp logs -n 50 -f
685
456
 
686
- **Daemon Status Output:**
457
+ # Restart server
458
+ claude-flow mcp restart
459
+
460
+ # Stop server
461
+ claude-flow mcp stop
687
462
  ```
688
- +-- Worker Daemon ---+
689
- | Status: ● RUNNING |
690
- | PID: 12345 |
691
- | Workers Enabled: 5 |
692
- | Max Concurrent: 3 |
693
- +--------------------+
694
-
695
- Worker Status
696
- +-------------+----+----------+------+---------+----------+----------+
697
- | Worker | On | Status | Runs | Success | Last Run | Next Run |
698
- +-------------+----+----------+------+---------+----------+----------+
699
- | map | ✓ | idle | 12 | 100% | 2m ago | in 3m |
700
- | audit | ✓ | idle | 6 | 100% | 5m ago | in 5m |
701
- | optimize | ✓ | running | 4 | 100% | now | - |
702
- | consolidate | ✓ | idle | 2 | 100% | 15m ago | in 15m |
703
- | testgaps | ✓ | idle | 3 | 100% | 8m ago | in 12m |
704
- +-------------+----+----------+------+---------+----------+----------+
463
+
464
+ ---
465
+
466
+ ### `task` - Task Management
467
+
468
+ Create, assign, and manage tasks across agents.
469
+
470
+ ```bash
471
+ claude-flow task <subcommand> [options]
705
472
  ```
706
473
 
707
- #### Legacy Shell Daemons (V2)
474
+ #### Subcommands
708
475
 
709
- Shell-based daemons for monitoring (Linux/macOS only):
476
+ | Subcommand | Description |
477
+ |------------|-------------|
478
+ | `create` | Create a new task with priority and dependencies |
479
+ | `list` | List tasks with status filtering |
480
+ | `status` | Show detailed task status |
481
+ | `cancel` | Cancel a pending or running task |
482
+ | `assign` | Assign task to specific agent |
483
+ | `retry` | Retry a failed task |
710
484
 
711
- | Daemon | Interval | Purpose | Output |
712
- |--------|----------|---------|--------|
713
- | **Swarm Monitor** | 3s | Process detection, agent counting | `swarm-activity.json` |
714
- | **Metrics Daemon** | 30s | V3 progress sync, SQLite metrics | `metrics.db` |
485
+ #### Examples
715
486
 
716
- **Commands:**
717
487
  ```bash
718
- # Start all daemons
719
- .claude/helpers/daemon-manager.sh start 3 5
488
+ # Create a task
489
+ claude-flow task create "Implement user authentication" -p high
720
490
 
721
- # Check daemon status
722
- .claude/helpers/daemon-manager.sh status
491
+ # Create task with dependencies
492
+ claude-flow task create "Write tests" --depends-on task-001
723
493
 
724
- # Stop all daemons
725
- .claude/helpers/daemon-manager.sh stop
726
- ```
494
+ # List all tasks
495
+ claude-flow task list
727
496
 
728
- ### Worker Manager (7 Scheduled Workers)
497
+ # List pending tasks
498
+ claude-flow task list -s pending
729
499
 
730
- | Worker | Interval | Purpose |
731
- |--------|----------|---------|
732
- | `perf` | 5 min | Performance benchmarks |
733
- | `health` | 5 min | Disk, memory, CPU monitoring |
734
- | `patterns` | 15 min | Pattern dedup & pruning |
735
- | `ddd` | 10 min | DDD progress tracking |
736
- | `adr` | 15 min | ADR compliance checking |
737
- | `security` | 30 min | Security vulnerability scans |
738
- | `learning` | 30 min | Learning pattern optimization |
500
+ # Get task status
501
+ claude-flow task status task-001
739
502
 
740
- **Commands:**
741
- ```bash
742
- # Start worker manager
743
- .claude/helpers/worker-manager.sh start 60
503
+ # Assign to agent
504
+ claude-flow task assign task-001 --agent coder-001
744
505
 
745
- # Force run all workers immediately
746
- .claude/helpers/worker-manager.sh force
506
+ # Cancel task
507
+ claude-flow task cancel task-001
747
508
 
748
- # Check worker status
749
- .claude/helpers/worker-manager.sh status
509
+ # Retry failed task
510
+ claude-flow task retry task-001
750
511
  ```
751
512
 
752
513
  ---
753
514
 
754
- ## Use Cases
515
+ ### `session` - Session Management
755
516
 
756
- | Use Case | Command |
757
- |----------|---------|
758
- | Code review | `npx claude-flow@v3alpha --agent reviewer --task "Review PR #123"` |
759
- | Test generation | `npx claude-flow@v3alpha --agent tester --task "Write tests for auth module"` |
760
- | Security audit | `npx claude-flow@v3alpha --agent security-architect --task "Audit for vulnerabilities"` |
761
- | Multi-agent swarm | `npx claude-flow@v3alpha swarm init --topology hierarchical` |
762
- | Route task | `npx claude-flow@v3alpha hooks route "Optimize database queries"` |
763
- | Performance analysis | `npx claude-flow@v3alpha --agent perf-analyzer --task "Profile API endpoints"` |
764
- | GitHub PR management | `npx claude-flow@v3alpha --agent pr-manager --task "Review open PRs"` |
517
+ Manage session state, persistence, and restoration.
765
518
 
766
- ---
519
+ ```bash
520
+ claude-flow session <subcommand> [options]
521
+ ```
522
+
523
+ #### Subcommands
524
+
525
+ | Subcommand | Description |
526
+ |------------|-------------|
527
+ | `list` | List all sessions |
528
+ | `save` | Save current session state |
529
+ | `restore` | Restore a previous session |
530
+ | `delete` | Delete a session |
531
+ | `export` | Export session to file |
532
+ | `import` | Import session from file |
533
+ | `current` | Show current session info |
767
534
 
768
- ## Self-Learning Hooks Commands (26 Hooks)
535
+ #### Examples
769
536
 
770
- ### Core Tool Lifecycle Hooks
771
537
  ```bash
772
- # Before/after file editing
773
- npx claude-flow@v3alpha hooks pre-edit <filePath>
774
- npx claude-flow@v3alpha hooks post-edit <filePath> --success true --train-patterns
538
+ # List all sessions
539
+ claude-flow session list
775
540
 
776
- # Before/after commands
777
- npx claude-flow@v3alpha hooks pre-command "<command>"
778
- npx claude-flow@v3alpha hooks post-command "<command>" --success true
541
+ # Save current session
542
+ claude-flow session save --name "feature-auth"
779
543
 
780
- # Before/after tasks
781
- npx claude-flow@v3alpha hooks pre-task --description "<task>"
782
- npx claude-flow@v3alpha hooks post-task --task-id "<id>" --success true
783
- ```
544
+ # Restore session
545
+ claude-flow session restore session-123
784
546
 
785
- ### Intelligence & Routing Hooks
786
- ```bash
787
- # Route task to optimal agent using learned patterns
788
- npx claude-flow@v3alpha hooks route "<task description>" --include-explanation
547
+ # Export session
548
+ claude-flow session export -o ./session-backup.json
789
549
 
790
- # Explain routing decision with transparency
791
- npx claude-flow@v3alpha hooks explain "<topic>" --depth comprehensive
550
+ # Import session
551
+ claude-flow session import -i ./session-backup.json
792
552
 
793
- # Bootstrap intelligence from repository
794
- npx claude-flow@v3alpha hooks pretrain --model-type moe --epochs 10
553
+ # Show current session
554
+ claude-flow session current
795
555
 
796
- # Generate optimized agent configs from pretrain data
797
- npx claude-flow@v3alpha hooks build-agents --agent-types coder,tester --config-format yaml
556
+ # Delete old session
557
+ claude-flow session delete session-123
558
+ ```
798
559
 
799
- # Transfer patterns from another project
800
- npx claude-flow@v3alpha hooks transfer <sourceProject>
560
+ ---
801
561
 
802
- # Initialize hooks system
803
- npx claude-flow@v3alpha hooks init
562
+ ### `config` - Configuration Management
804
563
 
805
- # View learning metrics dashboard
806
- npx claude-flow@v3alpha hooks metrics
564
+ Manage configuration, providers, and settings.
807
565
 
808
- # List all registered hooks
809
- npx claude-flow@v3alpha hooks list
566
+ ```bash
567
+ claude-flow config <subcommand> [options]
810
568
  ```
811
569
 
812
- ### Session Management Hooks
570
+ #### Subcommands
571
+
572
+ | Subcommand | Description |
573
+ |------------|-------------|
574
+ | `init` | Initialize configuration file |
575
+ | `get` | Get configuration value |
576
+ | `set` | Set configuration value |
577
+ | `providers` | Manage LLM provider configurations |
578
+ | `reset` | Reset configuration to defaults |
579
+ | `export` | Export configuration |
580
+ | `import` | Import configuration |
581
+
582
+ #### Examples
583
+
813
584
  ```bash
814
- # Start session with context loading
815
- npx claude-flow@v3alpha hooks session-start --session-id "<id>" --load-context
585
+ # Initialize config
586
+ claude-flow config init
587
+
588
+ # Get a value
589
+ claude-flow config get memory.backend
816
590
 
817
- # End session with persistence
818
- npx claude-flow@v3alpha hooks session-end --export-metrics true --persist-patterns
591
+ # Set a value
592
+ claude-flow config set swarm.topology mesh
819
593
 
820
- # Restore previous session context
821
- npx claude-flow@v3alpha hooks session-restore --session-id "<id>"
594
+ # Configure providers
595
+ claude-flow config providers --add anthropic --api-key $ANTHROPIC_API_KEY
822
596
 
823
- # Send notifications to swarm
824
- npx claude-flow@v3alpha hooks notify --message "<message>" --swarm-status
597
+ # Reset to defaults
598
+ claude-flow config reset --confirm
599
+
600
+ # Export config
601
+ claude-flow config export -o ./config-backup.json
602
+
603
+ # Import config
604
+ claude-flow config import -i ./config.json
825
605
  ```
826
606
 
827
- ### RuVector Intelligence Hooks (Reinforcement Learning)
607
+ ---
608
+
609
+ ### `status` - System Status
610
+
611
+ Monitor system status with real-time updates.
612
+
828
613
  ```bash
829
- # Trajectory-based learning (4-step pipeline: RETRIEVE, JUDGE, DISTILL, CONSOLIDATE)
830
- npx claude-flow@v3alpha hooks intelligence trajectory-start --session "<session>"
831
- npx claude-flow@v3alpha hooks intelligence trajectory-step --action "<action>" --reward 0.9
832
- npx claude-flow@v3alpha hooks intelligence trajectory-end --verdict success
614
+ claude-flow status [subcommand] [options]
615
+ ```
833
616
 
834
- # Pattern storage with HNSW indexing (150x faster search)
835
- npx claude-flow@v3alpha hooks intelligence pattern-store --pattern "<pattern>" --embedding "[...]"
836
- npx claude-flow@v3alpha hooks intelligence pattern-search --query "<query>" --limit 10
617
+ #### Subcommands
837
618
 
838
- # Learning stats and attention focus
839
- npx claude-flow@v3alpha hooks intelligence stats
840
- npx claude-flow@v3alpha hooks intelligence learn --experience '{"type":"success"}'
841
- npx claude-flow@v3alpha hooks intelligence attention --focus "<task>"
619
+ | Subcommand | Description |
620
+ |------------|-------------|
621
+ | `agents` | Show status of all agents |
622
+ | `tasks` | Show status of all tasks |
623
+ | `memory` | Show memory system status |
842
624
 
843
- # Full intelligence system (SONA, MoE, HNSW, EWC++, Flash Attention)
844
- npx claude-flow@v3alpha hooks intelligence
845
- npx claude-flow@v3alpha hooks intelligence reset --confirm
625
+ #### Options
846
626
 
847
- # ═══════════════════════════════════════════════════════════════
848
- # Background Worker Commands (12 workers for analysis/optimization)
849
- # ═══════════════════════════════════════════════════════════════
627
+ | Option | Short | Description | Default |
628
+ |--------|-------|-------------|---------|
629
+ | `--watch` | `-w` | Watch mode with auto-refresh | `false` |
630
+ | `--interval` | `-i` | Refresh interval in seconds | `5` |
850
631
 
851
- # List all available workers
852
- npx claude-flow@v3alpha hooks worker list
632
+ #### Examples
853
633
 
854
- # Detect triggers from prompt text
855
- npx claude-flow@v3alpha hooks worker detect --prompt "optimize performance"
634
+ ```bash
635
+ # Show all status
636
+ claude-flow status
856
637
 
857
- # Auto-dispatch workers when triggers match (confidence ≥0.6)
858
- npx claude-flow@v3alpha hooks worker detect --prompt "deep dive into auth" --auto-dispatch --min-confidence 0.6
638
+ # Watch mode with 2s refresh
639
+ claude-flow status --watch -i 2
859
640
 
860
- # Manually dispatch a worker (ultralearn, optimize, audit, map, deepdive, document, refactor, benchmark, testgaps, etc.)
861
- npx claude-flow@v3alpha hooks worker dispatch --trigger refactor --context "auth module"
641
+ # Agent status only
642
+ claude-flow status agents
862
643
 
863
- # Check worker status
864
- npx claude-flow@v3alpha hooks worker status
644
+ # Task status
645
+ claude-flow status tasks
865
646
 
866
- # Cancel a running worker
867
- npx claude-flow@v3alpha hooks worker cancel --id worker_refactor_1_abc123
647
+ # Memory status
648
+ claude-flow status memory
868
649
  ```
869
650
 
870
651
  ---
871
652
 
872
- ## Architecture
653
+ ### `workflow` - Workflow Management
873
654
 
874
- ### V3 Module Structure
655
+ Execute and manage automated workflows.
875
656
 
657
+ ```bash
658
+ claude-flow workflow <subcommand> [options]
876
659
  ```
877
- v3/
878
- ├── @claude-flow/hooks # Event-driven lifecycle hooks + ReasoningBank
879
- ├── @claude-flow/memory # AgentDB unification module
880
- ├── @claude-flow/security # CVE remediation & patterns
881
- ├── @claude-flow/swarm # 15-agent coordination
882
- ├── @claude-flow/plugins # RuVector WASM plugins
883
- ├── @claude-flow/cli # CLI modernization
884
- ├── @claude-flow/neural # SONA learning integration
885
- ├── @claude-flow/testing # TDD London School framework
886
- ├── @claude-flow/deployment # Release & CI/CD
887
- └── @claude-flow/shared # Shared utilities & types
660
+
661
+ #### Subcommands
662
+
663
+ | Subcommand | Description |
664
+ |------------|-------------|
665
+ | `run` | Execute a workflow |
666
+ | `validate` | Validate workflow definition |
667
+ | `list` | List available workflows |
668
+ | `status` | Show workflow execution status |
669
+ | `stop` | Stop running workflow |
670
+ | `template` | Manage workflow templates (list, show, create) |
671
+
672
+ #### Examples
673
+
674
+ ```bash
675
+ # Run a workflow
676
+ claude-flow workflow run ./workflows/deploy.yaml
677
+
678
+ # Validate workflow
679
+ claude-flow workflow validate ./workflows/deploy.yaml
680
+
681
+ # List workflows
682
+ claude-flow workflow list
683
+
684
+ # Check workflow status
685
+ claude-flow workflow status workflow-123
686
+
687
+ # Stop workflow
688
+ claude-flow workflow stop workflow-123
689
+
690
+ # List templates
691
+ claude-flow workflow template list
692
+
693
+ # Create from template
694
+ claude-flow workflow template create --from deploy-standard
888
695
  ```
889
-
890
- ### Performance Metrics
891
-
892
- | Metric | Measured |
893
- |--------|----------|
894
- | Swarm task execution | 100% success rate (7/7 strategies) |
895
- | Average task duration | 0.15-0.30 seconds |
896
- | Memory usage per agent | 128-320 MB |
897
- | CPU utilization | 15-30% per agent |
898
- | Parallel agent capacity | Unlimited (resource-dependent) |
899
-
900
- ### Topology Performance
901
-
902
- | Topology | Agents | Execution Time | Memory |
903
- |----------|--------|----------------|--------|
904
- | Centralized | 2-3 | 0.14-0.20s | 180-256 MB |
905
- | Distributed | 4-5 | 0.10-0.12s | 128-160 MB |
906
- | Hierarchical | 6 | 0.20s | 256 MB |
907
- | Mesh | 4 | 0.15s | 192 MB |
908
- | Hybrid | 7 | 0.18s | 320 MB |
909
696
 
910
697
  ---
911
698
 
912
- ## Cross-Platform Support
699
+ ### `hooks` - Self-Learning Hooks
913
700
 
914
- ### Windows (PowerShell)
701
+ Advanced self-learning hooks with 17 subcommands for neural pattern recognition and background worker management.
915
702
 
916
- ```powershell
917
- npx @claude-flow/security@latest audit --platform windows
918
- $env:CLAUDE_FLOW_MODE = "integration"
703
+ ```bash
704
+ claude-flow hooks <subcommand> [options]
919
705
  ```
920
706
 
921
- ### macOS (Bash/Zsh)
707
+ #### Subcommands
708
+
709
+ | Subcommand | Description |
710
+ |------------|-------------|
711
+ | `pre-edit` | Execute before file edit (get context, agent suggestions) |
712
+ | `post-edit` | Execute after file edit (record outcome for learning) |
713
+ | `pre-command` | Execute before command (risk assessment) |
714
+ | `post-command` | Execute after command (record outcome) |
715
+ | `pre-task` | Execute before task (setup, validation) |
716
+ | `post-task` | Execute after task (cleanup, learning) |
717
+ | `session-end` | Execute on session end (save state) |
718
+ | `session-restore` | Execute on session restore (load state) |
719
+ | `route` | Route task to optimal agent using learned patterns |
720
+ | `explain` | Explain routing decision with transparency |
721
+ | `pretrain` | Bootstrap intelligence from repository |
722
+ | `build-agents` | Generate optimized agent configs from pretrain data |
723
+ | `metrics` | View learning metrics dashboard |
724
+ | `transfer` | Transfer patterns from another project |
725
+ | `list` | List all registered hooks |
726
+ | `intelligence` | RuVector intelligence (SONA, MoE, HNSW) |
727
+ | `worker` | Background worker management (12 workers) |
728
+
729
+ #### Learning Pipeline
730
+
731
+ The hooks system implements a 4-step learning pipeline:
732
+
733
+ 1. **RETRIEVE** - Top-k memory injection with MMR diversity
734
+ 2. **JUDGE** - LLM-as-judge trajectory evaluation
735
+ 3. **DISTILL** - Extract strategy memories from trajectories
736
+ 4. **CONSOLIDATE** - Dedup, detect contradictions, prune old patterns
737
+
738
+ #### Examples
922
739
 
923
740
  ```bash
924
- npx @claude-flow/security@latest audit --platform darwin
925
- export CLAUDE_FLOW_SECURITY_MODE="strict"
741
+ # Pre-edit hook (get context and suggestions)
742
+ claude-flow hooks pre-edit ./src/auth/login.ts
743
+
744
+ # Post-edit hook (record success for learning)
745
+ claude-flow hooks post-edit ./src/auth/login.ts --success true
746
+
747
+ # Pre-command risk assessment
748
+ claude-flow hooks pre-command "rm -rf ./node_modules"
749
+
750
+ # Route task to optimal agent
751
+ claude-flow hooks route "Implement OAuth2 authentication"
752
+
753
+ # Explain routing decision
754
+ claude-flow hooks explain "Implement OAuth2 authentication"
755
+
756
+ # Bootstrap from repository
757
+ claude-flow hooks pretrain
758
+
759
+ # Build optimized agent configs
760
+ claude-flow hooks build-agents --focus "security"
761
+
762
+ # View learning metrics
763
+ claude-flow hooks metrics
764
+
765
+ # Transfer patterns from another project
766
+ claude-flow hooks transfer ../other-project
767
+
768
+ # View intelligence status (SONA, MoE, HNSW)
769
+ claude-flow hooks intelligence
926
770
  ```
927
771
 
928
- ### Linux (Bash)
772
+ #### Worker Subcommands
773
+
774
+ The `hooks worker` command manages 12 background workers for analysis and optimization tasks.
775
+
776
+ | Worker | Priority | Est. Time | Description |
777
+ |--------|----------|-----------|-------------|
778
+ | `ultralearn` | normal | 60s | Deep knowledge acquisition and learning |
779
+ | `optimize` | high | 30s | Performance optimization and tuning |
780
+ | `consolidate` | low | 20s | Memory consolidation and cleanup |
781
+ | `predict` | normal | 15s | Predictive preloading and anticipation |
782
+ | `audit` | critical | 45s | Security analysis and vulnerability scanning |
783
+ | `map` | normal | 30s | Codebase mapping and architecture analysis |
784
+ | `preload` | low | 10s | Resource preloading and cache warming |
785
+ | `deepdive` | normal | 60s | Deep code analysis and examination |
786
+ | `document` | normal | 45s | Auto-documentation generation |
787
+ | `refactor` | normal | 30s | Code refactoring suggestions |
788
+ | `benchmark` | normal | 60s | Performance benchmarking |
789
+ | `testgaps` | normal | 30s | Test coverage analysis |
790
+
791
+ ##### Worker Commands
929
792
 
930
793
  ```bash
931
- npx @claude-flow/security@latest audit --platform linux
932
- export CLAUDE_FLOW_MEMORY_PATH="./data"
794
+ # List all available workers
795
+ claude-flow hooks worker list
796
+
797
+ # Detect triggers from prompt text
798
+ claude-flow hooks worker detect --prompt "optimize performance"
799
+
800
+ # Auto-dispatch workers when triggers match (min confidence 0.6)
801
+ claude-flow hooks worker detect --prompt "deep dive into auth" --auto-dispatch --min-confidence 0.6
802
+
803
+ # Manually dispatch a worker
804
+ claude-flow hooks worker dispatch --trigger refactor --context "auth module"
805
+
806
+ # Check worker status
807
+ claude-flow hooks worker status
808
+
809
+ # Cancel a running worker
810
+ claude-flow hooks worker cancel --id worker_refactor_1_abc123
933
811
  ```
934
812
 
935
- ---
813
+ ##### Performance Targets
936
814
 
937
- ## Environment Variables
815
+ | Metric | Target |
816
+ |--------|--------|
817
+ | Trigger detection | <5ms |
818
+ | Worker spawn | <50ms |
819
+ | Max concurrent | 10 |
820
+
821
+ ##### UserPromptSubmit Integration
938
822
 
939
- | Variable | Description | Default |
940
- |----------|-------------|---------|
941
- | `CLAUDE_FLOW_MODE` | Operation mode (`development`, `production`, `integration`) | `development` |
942
- | `CLAUDE_FLOW_MEMORY_PATH` | Directory for persistent memory storage | `./data` |
943
- | `CLAUDE_FLOW_SECURITY_MODE` | Security level (`strict`, `standard`, `permissive`) | `standard` |
944
- | `CLAUDE_FLOW_LOG_LEVEL` | Logging verbosity (`debug`, `info`, `warn`, `error`) | `info` |
945
- | `CLAUDE_FLOW_MAX_AGENTS` | Default concurrent agent limit (increase for more parallelism) | `15` |
946
- | `CLAUDE_FLOW_TOPOLOGY` | Default swarm topology | `hierarchical` |
947
- | `CLAUDE_FLOW_HNSW_M` | HNSW index M parameter (connectivity) | `16` |
948
- | `CLAUDE_FLOW_HNSW_EF` | HNSW search ef parameter (accuracy) | `200` |
949
- | `CLAUDE_FLOW_EMBEDDING_DIM` | Vector embedding dimensions | `384` |
950
- | `ANTHROPIC_API_KEY` | Anthropic API key for Claude integration | - |
823
+ Workers are automatically triggered via the `UserPromptSubmit` hook when prompt patterns match worker triggers with confidence ≥0.6.
951
824
 
952
825
  ---
953
826
 
954
- ## Troubleshooting
827
+ ### `hive-mind` - Consensus Coordination
955
828
 
956
- ### Common Issues
829
+ Queen-led Byzantine fault-tolerant multi-agent coordination.
957
830
 
958
- **MCP server won't start**
959
831
  ```bash
960
- # Check if port is in use
961
- lsof -i :3000
962
- # Kill existing process
963
- kill -9 <PID>
964
- # Restart MCP server
965
- npx claude-flow@v3alpha mcp start
832
+ claude-flow hive-mind <subcommand> [options]
966
833
  ```
967
834
 
968
- **Agent spawn failures**
969
- ```bash
970
- # Check available memory
971
- free -m
972
- # Reduce max agents if memory constrained
973
- export CLAUDE_FLOW_MAX_AGENTS=5
974
- ```
835
+ #### Subcommands
836
+
837
+ | Subcommand | Description |
838
+ |------------|-------------|
839
+ | `init` | Initialize hive-mind with topology and consensus strategy |
840
+ | `spawn` | Spawn agents in the hive (queen, worker, specialist) |
841
+ | `status` | Show hive-mind status with consensus health |
842
+ | `task` | Submit task to hive-mind for collaborative execution |
843
+ | `optimize-memory` | Optimize collective memory (distill, compress) |
844
+ | `shutdown` | Gracefully shutdown hive-mind |
845
+
846
+ #### Topologies
847
+
848
+ | Topology | Description |
849
+ |----------|-------------|
850
+ | `hierarchical` | Queen controls workers directly |
851
+ | `mesh` | Fully connected peer network |
852
+ | `hierarchical-mesh` | Hybrid: Queen + mesh workers |
853
+ | `adaptive` | Dynamic topology based on load |
854
+
855
+ #### Consensus Strategies
856
+
857
+ | Strategy | Description | Fault Tolerance |
858
+ |----------|-------------|-----------------|
859
+ | `byzantine` | Byzantine fault-tolerant (BFT) | Tolerates f < n/3 faulty nodes |
860
+ | `raft` | Leader-based consensus | Tolerates f < n/2 failures |
861
+ | `gossip` | Epidemic protocol for eventual consistency | High partition tolerance |
862
+ | `crdt` | Conflict-free replicated data types | Strong eventual consistency |
863
+ | `quorum` | Configurable quorum-based | Flexible fault tolerance |
864
+
865
+ #### Examples
975
866
 
976
- **Pattern search returning no results**
977
867
  ```bash
978
- # Verify patterns are stored
979
- npx claude-flow@v3alpha hooks metrics
980
- # Re-run pretraining if empty
981
- npx claude-flow@v3alpha hooks pretrain
982
- ```
868
+ # Initialize with defaults
869
+ claude-flow hive-mind init
870
+
871
+ # Initialize with Byzantine consensus
872
+ claude-flow hive-mind init -t hierarchical-mesh -c byzantine --agents 15
873
+
874
+ # Spawn queen
875
+ claude-flow hive-mind spawn --role queen --name hive-queen
876
+
877
+ # Spawn workers
878
+ claude-flow hive-mind spawn --role worker --count 5
879
+
880
+ # Spawn specialist
881
+ claude-flow hive-mind spawn --role specialist --specialty security
983
882
 
984
- **Windows path issues**
985
- ```powershell
986
- # Use forward slashes or escape backslashes
987
- $env:CLAUDE_FLOW_MEMORY_PATH = "./data"
988
- # Or use absolute path
989
- $env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/claude-flow/data"
883
+ # Submit task for collaborative execution
884
+ claude-flow hive-mind task "Implement secure API endpoints" --consensus-required
885
+
886
+ # Check hive status
887
+ claude-flow hive-mind status --detailed
888
+
889
+ # Optimize collective memory
890
+ claude-flow hive-mind optimize-memory --distill --compress
891
+
892
+ # Graceful shutdown
893
+ claude-flow hive-mind shutdown --save-state
990
894
  ```
991
895
 
992
- **Permission denied errors**
896
+ ---
897
+
898
+ ### `migrate` - V2 to V3 Migration
899
+
900
+ Migration tools for transitioning from V2 to V3.
901
+
993
902
  ```bash
994
- # Fix npm permissions (Linux/macOS)
995
- sudo chown -R $(whoami) ~/.npm
996
- # Or use nvm to manage Node.js
903
+ claude-flow migrate <subcommand> [options]
997
904
  ```
998
905
 
999
- **High memory usage**
906
+ #### Subcommands
907
+
908
+ | Subcommand | Description |
909
+ |------------|-------------|
910
+ | `status` | Check migration status and pending items |
911
+ | `run` | Execute migration (with dry-run option) |
912
+ | `verify` | Verify migration integrity |
913
+ | `rollback` | Rollback to previous version |
914
+ | `breaking` | Show V3 breaking changes |
915
+
916
+ #### Migration Targets
917
+
918
+ | Target | Description |
919
+ |--------|-------------|
920
+ | `config` | Migrate configuration files |
921
+ | `memory` | Migrate memory/database content |
922
+ | `agents` | Migrate agent configurations |
923
+ | `hooks` | Migrate hook definitions |
924
+ | `workflows` | Migrate workflow definitions |
925
+ | `all` | Full migration |
926
+
927
+ #### Examples
928
+
1000
929
  ```bash
1001
- # Enable garbage collection
1002
- node --expose-gc node_modules/.bin/claude-flow
1003
- # Reduce HNSW parameters for lower memory
1004
- export CLAUDE_FLOW_HNSW_M=8
1005
- export CLAUDE_FLOW_HNSW_EF=100
930
+ # Check migration status
931
+ claude-flow migrate status
932
+
933
+ # Preview migration (dry run)
934
+ claude-flow migrate run --dry-run
935
+
936
+ # Run full migration with backup
937
+ claude-flow migrate run -t all --backup
938
+
939
+ # Migrate specific component
940
+ claude-flow migrate run -t memory
941
+
942
+ # Verify migration
943
+ claude-flow migrate verify
944
+
945
+ # Auto-fix issues
946
+ claude-flow migrate verify --fix
947
+
948
+ # Show breaking changes
949
+ claude-flow migrate breaking
950
+
951
+ # Rollback
952
+ claude-flow migrate rollback --backup-id backup-1704369600
1006
953
  ```
1007
954
 
1008
955
  ---
1009
956
 
1010
- ## Migration Guide (V2 → V3)
1011
-
1012
- ### Breaking Changes
957
+ ## Global Options
958
+
959
+ All commands support these global options:
960
+
961
+ | Option | Short | Description | Default |
962
+ |--------|-------|-------------|---------|
963
+ | `--help` | `-h` | Show help information | |
964
+ | `--version` | `-V` | Show version number | |
965
+ | `--verbose` | `-v` | Enable verbose output | `false` |
966
+ | `--quiet` | `-q` | Suppress non-essential output | `false` |
967
+ | `--config` | `-c` | Path to configuration file | `./claude-flow.config.json` |
968
+ | `--format` | `-f` | Output format (text, json, table) | `text` |
969
+ | `--no-color` | | Disable colored output | `false` |
970
+ | `--interactive` | `-i` | Enable interactive mode | `true` (if TTY) |
971
+
972
+ ## Programmatic API
973
+
974
+ ### CommandParser
975
+
976
+ ```typescript
977
+ import { CommandParser, OutputFormatter } from '@claude-flow/cli';
978
+
979
+ // Create a parser instance
980
+ const parser = new CommandParser();
981
+
982
+ // Register a command
983
+ parser.registerCommand({
984
+ name: 'mycommand',
985
+ description: 'My custom command',
986
+ options: [
987
+ {
988
+ name: 'type',
989
+ short: 't',
990
+ description: 'Operation type',
991
+ type: 'string',
992
+ choices: ['a', 'b', 'c'],
993
+ default: 'a'
994
+ }
995
+ ],
996
+ subcommands: [
997
+ { name: 'sub1', description: 'First subcommand' },
998
+ { name: 'sub2', description: 'Second subcommand' }
999
+ ],
1000
+ action: async (ctx) => {
1001
+ // Command implementation
1002
+ return { success: true };
1003
+ }
1004
+ });
1013
1005
 
1014
- 1. **Module Structure**: V3 uses scoped packages (`@claude-flow/*`)
1015
- 2. **Memory Backend**: Default changed from JSON to AgentDB with HNSW
1016
- 3. **Hooks System**: New ReasoningBank replaces basic pattern storage
1017
- 4. **Security**: Stricter input validation enabled by default
1006
+ // Parse arguments
1007
+ const result = parser.parse(process.argv.slice(2));
1018
1008
 
1019
- ### Upgrade Steps
1009
+ // Validate flags
1010
+ const errors = parser.validateFlags(result.flags, result.command);
1020
1011
 
1021
- ```bash
1022
- # 1. Backup existing data
1023
- cp -r ./data ./data-backup-v2
1012
+ // Get all registered commands
1013
+ const commands = parser.getAllCommands();
1014
+ ```
1024
1015
 
1025
- # 2. Update to V3
1026
- npm install claude-flow@latest
1016
+ ### Output Formatting
1017
+
1018
+ ```typescript
1019
+ import { OutputFormatter, output, Progress, Spinner } from '@claude-flow/cli';
1020
+
1021
+ // Use the singleton instance
1022
+ output.printSuccess('Operation completed');
1023
+ output.printError('Something went wrong');
1024
+ output.printWarning('Proceed with caution');
1025
+ output.printInfo('FYI: This is informational');
1026
+
1027
+ // Or create a custom formatter
1028
+ const formatter = new OutputFormatter({ color: true });
1029
+
1030
+ // Color methods
1031
+ formatter.success('Green text');
1032
+ formatter.error('Red text');
1033
+ formatter.warning('Yellow text');
1034
+ formatter.bold('Bold text');
1035
+ formatter.dim('Dimmed text');
1036
+ formatter.highlight('Highlighted text');
1037
+
1038
+ // Structured output
1039
+ output.printTable({
1040
+ columns: [
1041
+ { key: 'name', header: 'Name', width: 20 },
1042
+ { key: 'status', header: 'Status', width: 10, align: 'right' }
1043
+ ],
1044
+ data: [
1045
+ { name: 'Agent 1', status: 'active' },
1046
+ { name: 'Agent 2', status: 'idle' }
1047
+ ]
1048
+ });
1049
+
1050
+ output.printJson({ key: 'value' });
1051
+ output.printList(['Item 1', 'Item 2', 'Item 3']);
1052
+ output.printBox('Content here', 'Title');
1053
+ output.progressBar(50, 100, 40); // 50% of 100, width 40
1054
+
1055
+ // Progress indication
1056
+ const spinner = new Spinner('Loading...');
1057
+ spinner.start();
1058
+ // ... do work
1059
+ spinner.succeed('Completed');
1060
+
1061
+ const progress = new Progress({ total: 100 });
1062
+ progress.update(50); // 50%
1063
+ progress.finish();
1064
+ ```
1027
1065
 
1028
- # 3. Run migration
1029
- npx claude-flow@v3alpha migrate --from v2
1066
+ ### Interactive Prompts
1067
+
1068
+ ```typescript
1069
+ import { text, select, confirm, input, multiSelect } from '@claude-flow/cli';
1070
+
1071
+ // Text input
1072
+ const name = await text('Enter your name:');
1073
+
1074
+ // Selection
1075
+ const choice = await select({
1076
+ message: 'Choose option:',
1077
+ options: [
1078
+ { label: 'Option A', value: 'A', hint: 'First option' },
1079
+ { label: 'Option B', value: 'B', hint: 'Second option' },
1080
+ ],
1081
+ default: 'A'
1082
+ });
1083
+
1084
+ // Confirmation
1085
+ const confirmed = await confirm({
1086
+ message: 'Continue?',
1087
+ default: false
1088
+ });
1089
+
1090
+ // Input with validation
1091
+ const email = await input({
1092
+ message: 'Enter email:',
1093
+ validate: (v) => v.includes('@') || 'Invalid email'
1094
+ });
1095
+
1096
+ // Multi-select
1097
+ const features = await multiSelect({
1098
+ message: 'Select features:',
1099
+ options: [
1100
+ { label: 'Feature A', value: 'a' },
1101
+ { label: 'Feature B', value: 'b' },
1102
+ { label: 'Feature C', value: 'c' },
1103
+ ]
1104
+ });
1105
+ ```
1030
1106
 
1031
- # 4. Verify installation
1032
- npx claude-flow@v3alpha --version
1033
- npx claude-flow@v3alpha hooks metrics
1107
+ ## TypeScript Types
1108
+
1109
+ ```typescript
1110
+ import type {
1111
+ // Command types
1112
+ Command,
1113
+ CommandOption,
1114
+ CommandContext,
1115
+ CommandResult,
1116
+
1117
+ // Parser types
1118
+ ParseResult,
1119
+ ParsedFlags,
1120
+ ParserOptions,
1121
+
1122
+ // Config types
1123
+ V3Config,
1124
+ ProviderConfig,
1125
+ SwarmConfig,
1126
+ MemoryConfig,
1127
+
1128
+ // Output types
1129
+ TableColumn,
1130
+ TableOptions,
1131
+ SpinnerOptions,
1132
+ ProgressOptions,
1133
+
1134
+ // Prompt types
1135
+ SelectOption,
1136
+ InputOptions,
1137
+ ConfirmOptions,
1138
+ } from '@claude-flow/cli';
1034
1139
  ```
1035
1140
 
1036
- ### Configuration Changes
1141
+ ## Environment Variables
1037
1142
 
1038
1143
  ```bash
1039
- # V2 (deprecated)
1040
- npx claude-flow init --mode basic
1041
-
1042
- # V3 (new)
1043
- npx claude-flow@v3alpha init
1044
- npx claude-flow@v3alpha hooks pretrain # Bootstrap learning
1144
+ # Configuration
1145
+ CLAUDE_FLOW_CONFIG=./claude-flow.config.json
1146
+ CLAUDE_FLOW_LOG_LEVEL=info
1147
+
1148
+ # Provider API Keys
1149
+ ANTHROPIC_API_KEY=sk-ant-...
1150
+ OPENAI_API_KEY=sk-...
1151
+ GOOGLE_API_KEY=...
1152
+
1153
+ # MCP Server
1154
+ CLAUDE_FLOW_MCP_PORT=3000
1155
+ CLAUDE_FLOW_MCP_HOST=localhost
1156
+ CLAUDE_FLOW_MCP_TRANSPORT=stdio
1157
+
1158
+ # Memory
1159
+ CLAUDE_FLOW_MEMORY_BACKEND=hybrid
1160
+ CLAUDE_FLOW_MEMORY_PATH=./data/memory
1045
1161
  ```
1046
1162
 
1047
- ### API Changes
1163
+ ## Performance Targets
1048
1164
 
1049
- | V2 API | V3 API |
1050
- |--------|--------|
1051
- | `claude-flow start` | `claude-flow mcp start` |
1052
- | `--pattern-store` | `--memory-backend agentdb` |
1053
- | `hooks record` | `hooks post-edit --success` |
1054
- | `swarm create` | `swarm init --topology` |
1165
+ The CLI is optimized for V3 performance targets:
1055
1166
 
1056
- ---
1167
+ | Metric | Target | Description |
1168
+ |--------|--------|-------------|
1169
+ | Startup | <500ms | CLI initialization time |
1170
+ | Command parsing | <5ms | Argument parsing time |
1171
+ | MCP tool execution | <100ms | Tool call overhead |
1172
+ | Memory search | 150x-12,500x faster | With HNSW indexing |
1173
+ | SONA adaptation | <0.05ms | Neural learning overhead |
1174
+
1175
+ ## Related Packages
1057
1176
 
1058
- ## Documentation
1059
-
1060
- ### V3 Module Documentation
1061
-
1062
- | Module | Description | Docs |
1063
- |--------|-------------|------|
1064
- | `@claude-flow/plugins` | Plugin SDK with workers, hooks, providers, security | [README](./v3/@claude-flow/plugins/README.md) |
1065
- | `@claude-flow/hooks` | Event-driven lifecycle hooks + ReasoningBank | [Source](./v3/@claude-flow/hooks/) |
1066
- | `@claude-flow/memory` | AgentDB unification with HNSW indexing | [Source](./v3/@claude-flow/memory/) |
1067
- | `@claude-flow/security` | CVE remediation & security patterns | [Source](./v3/@claude-flow/security/) |
1068
- | `@claude-flow/swarm` | 15-agent coordination engine | [Source](./v3/@claude-flow/swarm/) |
1069
- | `@claude-flow/cli` | CLI modernization | [Source](./v3/@claude-flow/cli/) |
1070
- | `@claude-flow/neural` | SONA learning integration | [Source](./v3/@claude-flow/neural/) |
1071
- | `@claude-flow/testing` | TDD London School framework | [Source](./v3/@claude-flow/testing/) |
1072
- | `@claude-flow/mcp` | MCP server & tools | [Source](./v3/@claude-flow/mcp/) |
1073
- | `@claude-flow/embeddings` | Vector embedding providers | [Source](./v3/@claude-flow/embeddings/) |
1074
- | `@claude-flow/providers` | LLM provider integrations | [Source](./v3/@claude-flow/providers/) |
1075
- | `@claude-flow/integration` | agentic-flow@alpha integration | [Source](./v3/@claude-flow/integration/) |
1076
- | `@claude-flow/performance` | Benchmarking & optimization | [Source](./v3/@claude-flow/performance/) |
1077
- | `@claude-flow/deployment` | Release & CI/CD | [Source](./v3/@claude-flow/deployment/) |
1078
- | `@claude-flow/shared` | Shared utilities & types | [Source](./v3/@claude-flow/shared/) |
1079
-
1080
- ### Additional Resources
1081
-
1082
- - [V2 Documentation](./v2/README.md)
1083
- - [Architecture Decisions (ADRs)](./v3/docs/adr/)
1084
- - [API Reference](./v2/docs/technical/)
1085
- - [Examples](./v2/examples/)
1086
-
1087
- ## Support
1088
-
1089
- - Documentation: https://github.com/ruvnet/claude-flow
1090
- - Issues: https://github.com/ruvnet/claude-flow/issues
1091
- - Discord: [Agentics Foundation](https://discord.com/invite/dfxmpwkG2D)
1177
+ - [@claude-flow/shared](../shared) - Shared types and utilities
1178
+ - [@claude-flow/swarm](../swarm) - Swarm coordination module
1179
+ - [@claude-flow/memory](../memory) - AgentDB memory system
1180
+ - [@claude-flow/mcp](../mcp) - MCP server implementation
1181
+ - [@claude-flow/hooks](../hooks) - Self-learning hooks system
1182
+ - [@claude-flow/neural](../neural) - SONA neural learning
1092
1183
 
1093
1184
  ## License
1094
1185
 
1095
- MIT - [RuvNet](https://github.com/ruvnet)
1186
+ MIT