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.
- package/.claude/agents/analysis/analyze-code-quality.md +1 -2
- package/.claude/agents/analysis/code-analyzer.md +2 -1
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -2
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -2
- package/.claude/agents/data/ml/data-ml-model.md +1 -1
- package/.claude/agents/development/backend/dev-backend-api.md +1 -1
- package/.claude/agents/development/dev-backend-api.md +1 -1
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +1 -1
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +1 -1
- package/.claude/agents/sona/sona-learning-optimizer.md +11 -433
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +1 -2
- package/.claude/helpers/learning-service.mjs +70 -23
- package/.claude/helpers/metrics-db.mjs +22 -8
- package/.claude/settings copy.json +526 -0
- package/.claude/settings.json +3 -3
- package/.claude/settings.local.json +3 -2
- package/README.md +114 -11
- package/package.json +5 -2
- package/v3/@claude-flow/cli/README.md +984 -972
- package/v3/@claude-flow/cli/bin/cli.js +144 -6
- package/v3/@claude-flow/cli/bin/mcp-server.js +189 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js +1823 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js +373 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js +539 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js +259 -17
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js +289 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +571 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +1576 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +1253 -22
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +55 -14
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/index.js +207 -39
- package/v3/@claude-flow/cli/dist/src/commands/index.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/init.js +152 -11
- package/v3/@claude-flow/cli/dist/src/commands/init.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts +21 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js +567 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js +49 -11
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/memory.js +283 -60
- package/v3/@claude-flow/cli/dist/src/commands/memory.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js +14 -2
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js +474 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js +579 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js +630 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js +259 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js +232 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js +813 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js +575 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/start.js +21 -1
- package/v3/@claude-flow/cli/dist/src/commands/start.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +187 -33
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +428 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.js +276 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js +2 -1
- package/v3/@claude-flow/cli/dist/src/config-adapter.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/index.d.ts +22 -1
- package/v3/@claude-flow/cli/dist/src/index.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/index.js +107 -8
- package/v3/@claude-flow/cli/dist/src/index.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +579 -413
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/executor.js +143 -33
- package/v3/@claude-flow/cli/dist/src/init/executor.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +1 -1
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts +1 -1
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/index.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +57 -28
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +113 -91
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +298 -87
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts +29 -2
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/init/types.js +35 -3
- package/v3/@claude-flow/cli/dist/src/init/types.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-client.js +28 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +6 -1
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-server.js +180 -42
- package/v3/@claude-flow/cli/dist/src/mcp-server.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +127 -4
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js +131 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js +732 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js +486 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js +426 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js +782 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js +373 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +3 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +958 -121
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js +456 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js +534 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js +348 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js +434 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js +314 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js +246 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +271 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js +542 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts +203 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.js +431 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +368 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +1771 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js +633 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/output.js +42 -0
- package/v3/@claude-flow/cli/dist/src/output.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/parser.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/parser.js +26 -2
- package/v3/@claude-flow/cli/dist/src/parser.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +73 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js +568 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js +141 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts +46 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js +230 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts +274 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js +188 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +101 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js +241 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts +92 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.js +299 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/index.d.ts +23 -0
- package/v3/@claude-flow/cli/dist/src/production/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/index.js +18 -0
- package/v3/@claude-flow/cli/dist/src/production/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts +161 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.js +356 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +80 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js +201 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.d.ts +48 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.js +179 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts +60 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.js +284 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js +277 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js +529 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js +157 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js +698 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js +519 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js +643 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js +929 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js +59 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js +455 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +220 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js +488 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +206 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js +626 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js +681 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +69 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js +243 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts +204 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js +818 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +197 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js +581 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +997 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/services/index.js +5 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +84 -7
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +314 -33
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +1 -1
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts +194 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js +511 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts +53 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js +200 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js +175 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js +205 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js +113 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js +31 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js +74 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js +413 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js +373 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js +180 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js +230 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js +382 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts +70 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js +334 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js +153 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js +294 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js +285 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts +54 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js +232 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts +193 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js +105 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js +214 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts +245 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts +1 -1
- package/v3/@claude-flow/cli/dist/src/types.d.ts.map +1 -1
- package/v3/@claude-flow/cli/dist/src/update/checker.d.ts +34 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.js +190 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.d.ts +32 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.js +181 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/index.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/update/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/index.js +64 -0
- package/v3/@claude-flow/cli/dist/src/update/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +20 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js +96 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.d.ts +17 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.js +123 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +1 -1
- package/v3/@claude-flow/cli/package.json +41 -10
- package/v3/@claude-flow/shared/package.json +1 -1
|
@@ -1,1186 +1,1198 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Claude-Flow v3: Enterprise AI Orchestration Platform
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@claude-flow/cli)
|
|
5
|
-
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
|
-
[](https://github.com/ruvnet/claude-flow)
|
|
9
|
-
[](https://github.com/ruvnet/claude-flow)
|
|
3
|
+
<div align="center">
|
|
10
4
|
|
|
11
|
-
|
|
5
|
+
[](https://github.com/ruvnet/claude-flow)
|
|
6
|
+
[](https://www.npmjs.com/package/claude-flow)
|
|
7
|
+
[](https://www.npmjs.com/package/claude-flow)
|
|
8
|
+
[](https://github.com/ruvnet/claude-flow)
|
|
9
|
+
[](https://discord.com/invite/dfxmpwkG2D)
|
|
10
|
+
[](https://opensource.org/licenses/MIT)
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
**Production-ready multi-agent AI orchestration for Claude Code**
|
|
14
13
|
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
38
|
-
npm install @claude-flow/cli
|
|
39
|
-
```
|
|
22
|
+
### Claude Code: With vs Without Claude-Flow
|
|
40
23
|
|
|
41
|
-
|
|
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
|
-
|
|
44
|
-
npm install -g @claude-flow/cli
|
|
45
|
-
claude-flow --version
|
|
46
|
-
```
|
|
37
|
+
### Key Capabilities
|
|
47
38
|
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
67
|
-
claude-flow status --watch
|
|
68
|
-
```
|
|
51
|
+
### Why Claude-Flow v3?
|
|
69
52
|
|
|
70
|
-
|
|
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
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
87
|
+
Automatically routes tasks to the optimal handler for **75% cost reduction** and **2.5x quota extension** for Claude Max users:
|
|
94
88
|
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
127
|
-
claude-flow
|
|
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
|
-
|
|
133
|
-
|
|
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
|
-
|
|
108
|
+
## Quick Start
|
|
142
109
|
|
|
143
|
-
|
|
110
|
+
### Prerequisites
|
|
144
111
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
```
|
|
112
|
+
- **Node.js 18+** or **Bun 1.0+** (Bun is faster)
|
|
113
|
+
- **npm 9+** / **pnpm** / **bun** package manager
|
|
148
114
|
|
|
149
|
-
|
|
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
|
-
#
|
|
193
|
-
|
|
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
|
-
#
|
|
202
|
-
claude
|
|
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
|
-
|
|
208
|
-
claude-flow agent metrics -p 24h
|
|
125
|
+
### Installation
|
|
209
126
|
|
|
210
|
-
|
|
211
|
-
|
|
127
|
+
```bash
|
|
128
|
+
# With npm/npx (Node.js)
|
|
129
|
+
npm install claude-flow@v3alpha
|
|
130
|
+
npx claude-flow@v3alpha init
|
|
212
131
|
|
|
213
|
-
#
|
|
214
|
-
claude-flow
|
|
132
|
+
# With Bun (faster)
|
|
133
|
+
bun add claude-flow@v3alpha
|
|
134
|
+
bunx claude-flow@v3alpha init
|
|
215
135
|
|
|
216
|
-
#
|
|
217
|
-
claude-flow
|
|
136
|
+
# Start MCP server for Claude Code integration
|
|
137
|
+
npx claude-flow@v3alpha mcp start
|
|
218
138
|
|
|
219
|
-
#
|
|
220
|
-
claude-flow agent
|
|
139
|
+
# Run a task with agents
|
|
140
|
+
npx claude-flow@v3alpha --agent coder --task "Implement user authentication"
|
|
221
141
|
|
|
222
|
-
#
|
|
223
|
-
claude-flow
|
|
142
|
+
# List available agents
|
|
143
|
+
npx claude-flow@v3alpha --list
|
|
224
144
|
```
|
|
225
145
|
|
|
226
146
|
---
|
|
227
147
|
|
|
228
|
-
|
|
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
|
-
|
|
234
|
-
|
|
327
|
+
# Dispatch a worker manually
|
|
328
|
+
npx claude-flow@v3alpha worker dispatch --trigger audit --context "./src"
|
|
235
329
|
|
|
236
|
-
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
337
|
+
### LLM Providers (`@claude-flow/providers`)
|
|
269
338
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
275
|
-
claude-flow swarm init -t mesh --max-agents 10
|
|
348
|
+
### Provider Load Balancing
|
|
276
349
|
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
|
|
281
|
-
claude-flow swarm start -o "Analyze codebase for performance issues" --parallel
|
|
357
|
+
### Embedding Providers (`@claude-flow/embeddings`)
|
|
282
358
|
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
287
|
-
claude-flow swarm scale swarm-123 --agents 20
|
|
366
|
+
### Embedding Features
|
|
288
367
|
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
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
|
-
###
|
|
387
|
+
### CLI Commands (`@claude-flow/cli`)
|
|
299
388
|
|
|
300
|
-
|
|
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
|
-
|
|
303
|
-
claude-flow memory <subcommand> [options]
|
|
304
|
-
```
|
|
510
|
+
### Memory & Vector Optimization
|
|
305
511
|
|
|
306
|
-
|
|
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
|
-
|
|
|
327
|
-
|
|
|
328
|
-
|
|
|
329
|
-
|
|
|
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
|
-
|
|
521
|
+
### Embedding System (`@claude-flow/embeddings`)
|
|
332
522
|
|
|
333
|
-
|
|
|
334
|
-
|
|
335
|
-
|
|
|
336
|
-
|
|
|
337
|
-
|
|
|
338
|
-
|
|
|
339
|
-
|
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
#
|
|
345
|
-
claude-flow
|
|
535
|
+
# Initialize ONNX embeddings with hyperbolic config
|
|
536
|
+
claude-flow embeddings init
|
|
346
537
|
|
|
347
|
-
#
|
|
348
|
-
claude-flow
|
|
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
|
|
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
|
-
|
|
381
|
-
|
|
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
|
-
|
|
706
|
+
# JSON output for scripting
|
|
707
|
+
node v3/@claude-flow/hooks/bin/statusline.js --json
|
|
387
708
|
|
|
388
|
-
|
|
709
|
+
# Compact JSON (single line)
|
|
710
|
+
node v3/@claude-flow/hooks/bin/statusline.js --compact
|
|
389
711
|
|
|
390
|
-
|
|
391
|
-
claude-flow
|
|
712
|
+
# Help
|
|
713
|
+
node v3/@claude-flow/hooks/bin/statusline.js --help
|
|
392
714
|
```
|
|
393
715
|
|
|
394
|
-
|
|
716
|
+
**Claude Code Integration:**
|
|
395
717
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
####
|
|
739
|
+
#### V3 Node.js Worker Daemon (Recommended)
|
|
417
740
|
|
|
418
|
-
|
|
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
|
-
|
|
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
|
|
431
|
-
claude-flow
|
|
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
|
-
#
|
|
446
|
-
claude-flow
|
|
756
|
+
# Check status with worker history
|
|
757
|
+
npx claude-flow@v3alpha daemon status
|
|
447
758
|
|
|
448
|
-
#
|
|
449
|
-
claude-flow
|
|
759
|
+
# Manually trigger a worker
|
|
760
|
+
npx claude-flow@v3alpha daemon trigger map
|
|
450
761
|
|
|
451
|
-
#
|
|
452
|
-
claude-flow
|
|
762
|
+
# Enable/disable workers
|
|
763
|
+
npx claude-flow@v3alpha daemon enable map audit optimize
|
|
453
764
|
|
|
454
|
-
#
|
|
455
|
-
claude-flow
|
|
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
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
-
####
|
|
790
|
+
#### Legacy Shell Daemons (V2)
|
|
475
791
|
|
|
476
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
489
|
-
claude-
|
|
801
|
+
# Start all daemons
|
|
802
|
+
.claude/helpers/daemon-manager.sh start 3 5
|
|
490
803
|
|
|
491
|
-
#
|
|
492
|
-
claude-
|
|
804
|
+
# Check daemon status
|
|
805
|
+
.claude/helpers/daemon-manager.sh status
|
|
493
806
|
|
|
494
|
-
#
|
|
495
|
-
claude-
|
|
807
|
+
# Stop all daemons
|
|
808
|
+
.claude/helpers/daemon-manager.sh stop
|
|
809
|
+
```
|
|
496
810
|
|
|
497
|
-
|
|
498
|
-
claude-flow task list -s pending
|
|
811
|
+
### Worker Manager (7 Scheduled Workers)
|
|
499
812
|
|
|
500
|
-
|
|
501
|
-
|
|
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
|
-
|
|
504
|
-
|
|
823
|
+
**Commands:**
|
|
824
|
+
```bash
|
|
825
|
+
# Start worker manager
|
|
826
|
+
.claude/helpers/worker-manager.sh start 60
|
|
505
827
|
|
|
506
|
-
#
|
|
507
|
-
claude-
|
|
828
|
+
# Force run all workers immediately
|
|
829
|
+
.claude/helpers/worker-manager.sh force
|
|
508
830
|
|
|
509
|
-
#
|
|
510
|
-
claude-
|
|
831
|
+
# Check worker status
|
|
832
|
+
.claude/helpers/worker-manager.sh status
|
|
511
833
|
```
|
|
512
834
|
|
|
513
835
|
---
|
|
514
836
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
Manage session state, persistence, and restoration.
|
|
837
|
+
## Use Cases
|
|
518
838
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
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
|
-
|
|
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
|
-
|
|
853
|
+
## Self-Learning Hooks Commands (27 Hooks)
|
|
536
854
|
|
|
855
|
+
### Core Tool Lifecycle Hooks
|
|
537
856
|
```bash
|
|
538
|
-
#
|
|
539
|
-
claude-flow
|
|
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
|
-
#
|
|
542
|
-
claude-flow
|
|
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
|
-
#
|
|
545
|
-
claude-flow
|
|
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
|
-
|
|
548
|
-
|
|
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
|
-
#
|
|
551
|
-
claude-flow
|
|
875
|
+
# Explain routing decision with transparency
|
|
876
|
+
npx claude-flow@v3alpha hooks explain "<topic>" --depth comprehensive
|
|
552
877
|
|
|
553
|
-
#
|
|
554
|
-
claude-flow
|
|
878
|
+
# Bootstrap intelligence from repository
|
|
879
|
+
npx claude-flow@v3alpha hooks pretrain --model-type moe --epochs 10
|
|
555
880
|
|
|
556
|
-
#
|
|
557
|
-
claude-flow
|
|
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
|
-
|
|
887
|
+
# Initialize hooks system
|
|
888
|
+
npx claude-flow@v3alpha hooks init
|
|
563
889
|
|
|
564
|
-
|
|
890
|
+
# View learning metrics dashboard
|
|
891
|
+
npx claude-flow@v3alpha hooks metrics
|
|
565
892
|
|
|
566
|
-
|
|
567
|
-
claude-flow
|
|
893
|
+
# List all registered hooks
|
|
894
|
+
npx claude-flow@v3alpha hooks list
|
|
568
895
|
```
|
|
569
896
|
|
|
570
|
-
|
|
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
|
-
#
|
|
586
|
-
claude-flow
|
|
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
|
-
#
|
|
595
|
-
claude-flow
|
|
902
|
+
# End session with persistence
|
|
903
|
+
npx claude-flow@v3alpha hooks session-end --export-metrics true --persist-patterns
|
|
596
904
|
|
|
597
|
-
#
|
|
598
|
-
claude-flow
|
|
905
|
+
# Restore previous session context
|
|
906
|
+
npx claude-flow@v3alpha hooks session-restore --session-id "<id>"
|
|
599
907
|
|
|
600
|
-
#
|
|
601
|
-
claude-flow
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
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
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
| `--interval` | `-i` | Refresh interval in seconds | `5` |
|
|
932
|
+
# ═══════════════════════════════════════════════════════════════
|
|
933
|
+
# Background Worker Commands (12 workers for analysis/optimization)
|
|
934
|
+
# ═══════════════════════════════════════════════════════════════
|
|
631
935
|
|
|
632
|
-
|
|
936
|
+
# List all available workers
|
|
937
|
+
npx claude-flow@v3alpha hooks worker list
|
|
633
938
|
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
claude-flow status
|
|
939
|
+
# Detect triggers from prompt text
|
|
940
|
+
npx claude-flow@v3alpha hooks worker detect --prompt "optimize performance"
|
|
637
941
|
|
|
638
|
-
#
|
|
639
|
-
claude-flow
|
|
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
|
-
#
|
|
642
|
-
claude-flow
|
|
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
|
-
#
|
|
645
|
-
claude-flow status
|
|
948
|
+
# Check worker status
|
|
949
|
+
npx claude-flow@v3alpha hooks worker status
|
|
646
950
|
|
|
647
|
-
#
|
|
648
|
-
claude-flow
|
|
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
|
-
|
|
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
|
-
|
|
960
|
+
# Detailed breakdown by category (CLI, MCP, Hooks, Packages, DDD)
|
|
961
|
+
npx claude-flow@v3alpha hooks progress --detailed
|
|
673
962
|
|
|
674
|
-
|
|
675
|
-
|
|
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
|
-
#
|
|
679
|
-
claude-flow
|
|
966
|
+
# Get human-readable summary
|
|
967
|
+
npx claude-flow@v3alpha hooks progress --summary
|
|
680
968
|
|
|
681
|
-
#
|
|
682
|
-
claude-flow
|
|
969
|
+
# JSON output for scripting
|
|
970
|
+
npx claude-flow@v3alpha progress --json
|
|
971
|
+
```
|
|
683
972
|
|
|
684
|
-
|
|
685
|
-
claude-flow workflow status workflow-123
|
|
973
|
+
---
|
|
686
974
|
|
|
687
|
-
|
|
688
|
-
claude-flow workflow stop workflow-123
|
|
975
|
+
## Architecture
|
|
689
976
|
|
|
690
|
-
|
|
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
|
-
|
|
1015
|
+
## Cross-Platform Support
|
|
700
1016
|
|
|
701
|
-
|
|
1017
|
+
### Windows (PowerShell)
|
|
702
1018
|
|
|
703
|
-
```
|
|
704
|
-
claude-flow
|
|
1019
|
+
```powershell
|
|
1020
|
+
npx @claude-flow/security@latest audit --platform windows
|
|
1021
|
+
$env:CLAUDE_FLOW_MODE = "integration"
|
|
705
1022
|
```
|
|
706
1023
|
|
|
707
|
-
|
|
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
|
-
|
|
742
|
-
|
|
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
|
-
|
|
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
|
-
|
|
795
|
-
|
|
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
|
-
|
|
814
|
-
|
|
815
|
-
| Metric | Target |
|
|
816
|
-
|--------|--------|
|
|
817
|
-
| Trigger detection | <5ms |
|
|
818
|
-
| Worker spawn | <50ms |
|
|
819
|
-
| Max concurrent | 10 |
|
|
1038
|
+
---
|
|
820
1039
|
|
|
821
|
-
|
|
1040
|
+
## Environment Variables
|
|
822
1041
|
|
|
823
|
-
|
|
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
|
-
|
|
1057
|
+
## Troubleshooting
|
|
828
1058
|
|
|
829
|
-
|
|
1059
|
+
### Common Issues
|
|
830
1060
|
|
|
1061
|
+
**MCP server won't start**
|
|
831
1062
|
```bash
|
|
832
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
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
|
-
|
|
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
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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
|
-
#
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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
|
-
|
|
952
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
1007
|
-
const result = parser.parse(process.argv.slice(2));
|
|
1115
|
+
### Breaking Changes
|
|
1008
1116
|
|
|
1009
|
-
|
|
1010
|
-
|
|
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
|
-
|
|
1013
|
-
const commands = parser.getAllCommands();
|
|
1014
|
-
```
|
|
1122
|
+
### Upgrade Steps
|
|
1015
1123
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
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
|
-
|
|
1139
|
+
### Configuration Changes
|
|
1142
1140
|
|
|
1143
1141
|
```bash
|
|
1144
|
-
#
|
|
1145
|
-
|
|
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
|
-
|
|
1145
|
+
# V3 (new)
|
|
1146
|
+
npx claude-flow@v3alpha init
|
|
1147
|
+
npx claude-flow@v3alpha hooks pretrain # Bootstrap learning
|
|
1148
|
+
```
|
|
1164
1149
|
|
|
1165
|
-
|
|
1150
|
+
### API Changes
|
|
1166
1151
|
|
|
1167
|
-
|
|
|
1168
|
-
|
|
1169
|
-
|
|
|
1170
|
-
|
|
|
1171
|
-
|
|
|
1172
|
-
|
|
|
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
|
-
|
|
1159
|
+
---
|
|
1176
1160
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
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)
|