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

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