@sparkleideas/cli 3.1.0-alpha.25 → 3.1.0-alpha.35
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/core/coder.md +1 -1
- package/.claude/agents/core/planner.md +2 -2
- package/.claude/agents/core/researcher.md +1 -1
- package/.claude/agents/core/reviewer.md +1 -1
- package/.claude/agents/core/tester.md +1 -1
- package/.claude/agents/data/data-ml-model.md +4 -4
- package/.claude/agents/development/dev-backend-api.md +4 -4
- package/.claude/agents/documentation/docs-api-openapi.md +4 -4
- package/.claude/agents/github/code-review-swarm.md +2 -2
- package/.claude/agents/github/issue-tracker.md +2 -2
- package/.claude/agents/github/pr-manager.md +2 -2
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/workflow-automation.md +2 -2
- package/.claude/agents/sparc/architecture.md +3 -3
- package/.claude/agents/sparc/pseudocode.md +2 -2
- package/.claude/agents/sparc/refinement.md +3 -3
- package/.claude/agents/sparc/specification.md +2 -2
- package/.claude/agents/swarm/adaptive-coordinator.md +1 -1
- package/.claude/agents/swarm/hierarchical-coordinator.md +1 -1
- package/.claude/agents/swarm/mesh-coordinator.md +1 -1
- package/.claude/agents/templates/base-template-generator.md +3 -3
- package/.claude/agents/templates/sparc-coordinator.md +3 -3
- package/.claude/helpers/session.js +0 -8
- package/.claude/helpers/statusline.cjs +28 -96
- package/.claude/settings.json +141 -86
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +2 -2
- package/.claude/skills/swarm-orchestration/SKILL.md +1 -1
- package/README.md +481 -952
- package/package.json +7 -9
- package/.claude/helpers/auto-memory-hook.mjs +0 -365
- package/.claude/helpers/hook-handler.cjs +0 -271
- package/.claude/helpers/intelligence.cjs +0 -916
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
- package/bin/preinstall.cjs +0 -2
- package/dist/src/appliance/gguf-engine.d.ts +0 -91
- package/dist/src/appliance/gguf-engine.d.ts.map +0 -1
- package/dist/src/appliance/gguf-engine.js +0 -425
- package/dist/src/appliance/gguf-engine.js.map +0 -1
- package/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
- package/dist/src/appliance/ruvllm-bridge.d.ts.map +0 -1
- package/dist/src/appliance/ruvllm-bridge.js +0 -292
- package/dist/src/appliance/ruvllm-bridge.js.map +0 -1
- package/dist/src/appliance/rvfa-builder.d.ts +0 -44
- package/dist/src/appliance/rvfa-builder.d.ts.map +0 -1
- package/dist/src/appliance/rvfa-builder.js +0 -329
- package/dist/src/appliance/rvfa-builder.js.map +0 -1
- package/dist/src/appliance/rvfa-distribution.d.ts +0 -97
- package/dist/src/appliance/rvfa-distribution.d.ts.map +0 -1
- package/dist/src/appliance/rvfa-distribution.js +0 -370
- package/dist/src/appliance/rvfa-distribution.js.map +0 -1
- package/dist/src/appliance/rvfa-format.d.ts +0 -111
- package/dist/src/appliance/rvfa-format.d.ts.map +0 -1
- package/dist/src/appliance/rvfa-format.js +0 -393
- package/dist/src/appliance/rvfa-format.js.map +0 -1
- package/dist/src/appliance/rvfa-runner.d.ts +0 -69
- package/dist/src/appliance/rvfa-runner.d.ts.map +0 -1
- package/dist/src/appliance/rvfa-runner.js +0 -237
- package/dist/src/appliance/rvfa-runner.js.map +0 -1
- package/dist/src/appliance/rvfa-signing.d.ts +0 -123
- package/dist/src/appliance/rvfa-signing.d.ts.map +0 -1
- package/dist/src/appliance/rvfa-signing.js +0 -347
- package/dist/src/appliance/rvfa-signing.js.map +0 -1
- package/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/dist/src/benchmarks/pretrain/index.d.ts.map +0 -1
- package/dist/src/benchmarks/pretrain/index.js +0 -404
- package/dist/src/benchmarks/pretrain/index.js.map +0 -1
- package/dist/src/commands/agent.d.ts +0 -8
- package/dist/src/commands/agent.d.ts.map +0 -1
- package/dist/src/commands/agent.js +0 -819
- package/dist/src/commands/agent.js.map +0 -1
- package/dist/src/commands/analyze.d.ts +0 -19
- package/dist/src/commands/analyze.d.ts.map +0 -1
- package/dist/src/commands/analyze.js +0 -1823
- package/dist/src/commands/analyze.js.map +0 -1
- package/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/dist/src/commands/appliance-advanced.d.ts.map +0 -1
- package/dist/src/commands/appliance-advanced.js +0 -215
- package/dist/src/commands/appliance-advanced.js.map +0 -1
- package/dist/src/commands/appliance.d.ts +0 -8
- package/dist/src/commands/appliance.d.ts.map +0 -1
- package/dist/src/commands/appliance.js +0 -406
- package/dist/src/commands/appliance.js.map +0 -1
- package/dist/src/commands/benchmark.d.ts +0 -10
- package/dist/src/commands/benchmark.d.ts.map +0 -1
- package/dist/src/commands/benchmark.js +0 -459
- package/dist/src/commands/benchmark.js.map +0 -1
- package/dist/src/commands/categories.d.ts +0 -75
- package/dist/src/commands/categories.d.ts.map +0 -1
- package/dist/src/commands/categories.js +0 -178
- package/dist/src/commands/categories.js.map +0 -1
- package/dist/src/commands/claims.d.ts +0 -10
- package/dist/src/commands/claims.d.ts.map +0 -1
- package/dist/src/commands/claims.js +0 -373
- package/dist/src/commands/claims.js.map +0 -1
- package/dist/src/commands/completions.d.ts +0 -10
- package/dist/src/commands/completions.d.ts.map +0 -1
- package/dist/src/commands/completions.js +0 -539
- package/dist/src/commands/completions.js.map +0 -1
- package/dist/src/commands/config.d.ts +0 -8
- package/dist/src/commands/config.d.ts.map +0 -1
- package/dist/src/commands/config.js +0 -406
- package/dist/src/commands/config.js.map +0 -1
- package/dist/src/commands/daemon.d.ts +0 -8
- package/dist/src/commands/daemon.d.ts.map +0 -1
- package/dist/src/commands/daemon.js +0 -609
- package/dist/src/commands/daemon.js.map +0 -1
- package/dist/src/commands/deployment.d.ts +0 -10
- package/dist/src/commands/deployment.d.ts.map +0 -1
- package/dist/src/commands/deployment.js +0 -289
- package/dist/src/commands/deployment.js.map +0 -1
- package/dist/src/commands/doctor.d.ts +0 -10
- package/dist/src/commands/doctor.d.ts.map +0 -1
- package/dist/src/commands/doctor.js +0 -602
- package/dist/src/commands/doctor.js.map +0 -1
- package/dist/src/commands/embeddings.d.ts +0 -18
- package/dist/src/commands/embeddings.d.ts.map +0 -1
- package/dist/src/commands/embeddings.js +0 -1576
- package/dist/src/commands/embeddings.js.map +0 -1
- package/dist/src/commands/guidance.d.ts +0 -8
- package/dist/src/commands/guidance.d.ts.map +0 -1
- package/dist/src/commands/guidance.js +0 -560
- package/dist/src/commands/guidance.js.map +0 -1
- package/dist/src/commands/hive-mind.d.ts +0 -11
- package/dist/src/commands/hive-mind.d.ts.map +0 -1
- package/dist/src/commands/hive-mind.js +0 -1230
- package/dist/src/commands/hive-mind.js.map +0 -1
- package/dist/src/commands/hooks.d.ts +0 -8
- package/dist/src/commands/hooks.d.ts.map +0 -1
- package/dist/src/commands/hooks.js +0 -3759
- package/dist/src/commands/hooks.js.map +0 -1
- package/dist/src/commands/index.d.ts +0 -113
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/commands/index.js +0 -368
- package/dist/src/commands/index.js.map +0 -1
- package/dist/src/commands/init.d.ts +0 -8
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js +0 -965
- package/dist/src/commands/init.js.map +0 -1
- package/dist/src/commands/issues.d.ts +0 -21
- package/dist/src/commands/issues.d.ts.map +0 -1
- package/dist/src/commands/issues.js +0 -567
- package/dist/src/commands/issues.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -11
- package/dist/src/commands/mcp.d.ts.map +0 -1
- package/dist/src/commands/mcp.js +0 -715
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/commands/memory.d.ts +0 -8
- package/dist/src/commands/memory.d.ts.map +0 -1
- package/dist/src/commands/memory.js +0 -1292
- package/dist/src/commands/memory.js.map +0 -1
- package/dist/src/commands/migrate.d.ts +0 -8
- package/dist/src/commands/migrate.d.ts.map +0 -1
- package/dist/src/commands/migrate.js +0 -410
- package/dist/src/commands/migrate.js.map +0 -1
- package/dist/src/commands/neural.d.ts +0 -10
- package/dist/src/commands/neural.d.ts.map +0 -1
- package/dist/src/commands/neural.js +0 -1448
- package/dist/src/commands/neural.js.map +0 -1
- package/dist/src/commands/performance.d.ts +0 -10
- package/dist/src/commands/performance.d.ts.map +0 -1
- package/dist/src/commands/performance.js +0 -579
- package/dist/src/commands/performance.js.map +0 -1
- package/dist/src/commands/plugins.d.ts +0 -11
- package/dist/src/commands/plugins.d.ts.map +0 -1
- package/dist/src/commands/plugins.js +0 -820
- package/dist/src/commands/plugins.js.map +0 -1
- package/dist/src/commands/process.d.ts +0 -10
- package/dist/src/commands/process.d.ts.map +0 -1
- package/dist/src/commands/process.js +0 -641
- package/dist/src/commands/process.js.map +0 -1
- package/dist/src/commands/progress.d.ts +0 -11
- package/dist/src/commands/progress.d.ts.map +0 -1
- package/dist/src/commands/progress.js +0 -259
- package/dist/src/commands/progress.js.map +0 -1
- package/dist/src/commands/providers.d.ts +0 -10
- package/dist/src/commands/providers.d.ts.map +0 -1
- package/dist/src/commands/providers.js +0 -232
- package/dist/src/commands/providers.js.map +0 -1
- package/dist/src/commands/route.d.ts +0 -16
- package/dist/src/commands/route.d.ts.map +0 -1
- package/dist/src/commands/route.js +0 -813
- package/dist/src/commands/route.js.map +0 -1
- package/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/dist/src/commands/ruvector/backup.d.ts.map +0 -1
- package/dist/src/commands/ruvector/backup.js +0 -746
- package/dist/src/commands/ruvector/backup.js.map +0 -1
- package/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/dist/src/commands/ruvector/benchmark.d.ts.map +0 -1
- package/dist/src/commands/ruvector/benchmark.js +0 -480
- package/dist/src/commands/ruvector/benchmark.js.map +0 -1
- package/dist/src/commands/ruvector/import.d.ts +0 -18
- package/dist/src/commands/ruvector/import.d.ts.map +0 -1
- package/dist/src/commands/ruvector/import.js +0 -349
- package/dist/src/commands/ruvector/import.js.map +0 -1
- package/dist/src/commands/ruvector/index.d.ts +0 -29
- package/dist/src/commands/ruvector/index.d.ts.map +0 -1
- package/dist/src/commands/ruvector/index.js +0 -129
- package/dist/src/commands/ruvector/index.js.map +0 -1
- package/dist/src/commands/ruvector/init.d.ts +0 -11
- package/dist/src/commands/ruvector/init.d.ts.map +0 -1
- package/dist/src/commands/ruvector/init.js +0 -431
- package/dist/src/commands/ruvector/init.js.map +0 -1
- package/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/dist/src/commands/ruvector/migrate.d.ts.map +0 -1
- package/dist/src/commands/ruvector/migrate.js +0 -481
- package/dist/src/commands/ruvector/migrate.js.map +0 -1
- package/dist/src/commands/ruvector/optimize.d.ts +0 -11
- package/dist/src/commands/ruvector/optimize.d.ts.map +0 -1
- package/dist/src/commands/ruvector/optimize.js +0 -503
- package/dist/src/commands/ruvector/optimize.js.map +0 -1
- package/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/dist/src/commands/ruvector/setup.d.ts.map +0 -1
- package/dist/src/commands/ruvector/setup.js +0 -765
- package/dist/src/commands/ruvector/setup.js.map +0 -1
- package/dist/src/commands/ruvector/status.d.ts +0 -11
- package/dist/src/commands/ruvector/status.d.ts.map +0 -1
- package/dist/src/commands/ruvector/status.js +0 -456
- package/dist/src/commands/ruvector/status.js.map +0 -1
- package/dist/src/commands/security.d.ts +0 -10
- package/dist/src/commands/security.d.ts.map +0 -1
- package/dist/src/commands/security.js +0 -575
- package/dist/src/commands/security.js.map +0 -1
- package/dist/src/commands/session.d.ts +0 -8
- package/dist/src/commands/session.d.ts.map +0 -1
- package/dist/src/commands/session.js +0 -750
- package/dist/src/commands/session.js.map +0 -1
- package/dist/src/commands/start.d.ts +0 -8
- package/dist/src/commands/start.d.ts.map +0 -1
- package/dist/src/commands/start.js +0 -418
- package/dist/src/commands/start.js.map +0 -1
- package/dist/src/commands/status.d.ts +0 -8
- package/dist/src/commands/status.d.ts.map +0 -1
- package/dist/src/commands/status.js +0 -591
- package/dist/src/commands/status.js.map +0 -1
- package/dist/src/commands/swarm.d.ts +0 -8
- package/dist/src/commands/swarm.d.ts.map +0 -1
- package/dist/src/commands/swarm.js +0 -748
- package/dist/src/commands/swarm.js.map +0 -1
- package/dist/src/commands/task.d.ts +0 -8
- package/dist/src/commands/task.d.ts.map +0 -1
- package/dist/src/commands/task.js +0 -671
- package/dist/src/commands/task.js.map +0 -1
- package/dist/src/commands/transfer-store.d.ts +0 -13
- package/dist/src/commands/transfer-store.d.ts.map +0 -1
- package/dist/src/commands/transfer-store.js +0 -428
- package/dist/src/commands/transfer-store.js.map +0 -1
- package/dist/src/commands/update.d.ts +0 -8
- package/dist/src/commands/update.d.ts.map +0 -1
- package/dist/src/commands/update.js +0 -276
- package/dist/src/commands/update.js.map +0 -1
- package/dist/src/commands/workflow.d.ts +0 -8
- package/dist/src/commands/workflow.d.ts.map +0 -1
- package/dist/src/commands/workflow.js +0 -617
- package/dist/src/commands/workflow.js.map +0 -1
- package/dist/src/config-adapter.d.ts +0 -15
- package/dist/src/config-adapter.d.ts.map +0 -1
- package/dist/src/config-adapter.js +0 -186
- package/dist/src/config-adapter.js.map +0 -1
- package/dist/src/index.d.ts +0 -76
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -470
- package/dist/src/index.js.map +0 -1
- package/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +0 -1
- package/dist/src/infrastructure/in-memory-repositories.js +0 -264
- package/dist/src/infrastructure/in-memory-repositories.js.map +0 -1
- package/dist/src/init/claudemd-generator.d.ts +0 -25
- package/dist/src/init/claudemd-generator.d.ts.map +0 -1
- package/dist/src/init/claudemd-generator.js +0 -486
- package/dist/src/init/claudemd-generator.js.map +0 -1
- package/dist/src/init/executor.d.ts +0 -41
- package/dist/src/init/executor.d.ts.map +0 -1
- package/dist/src/init/executor.js +0 -1741
- package/dist/src/init/executor.js.map +0 -1
- package/dist/src/init/helpers-generator.d.ts +0 -60
- package/dist/src/init/helpers-generator.d.ts.map +0 -1
- package/dist/src/init/helpers-generator.js +0 -1166
- package/dist/src/init/helpers-generator.js.map +0 -1
- package/dist/src/init/index.d.ts +0 -13
- package/dist/src/init/index.d.ts.map +0 -1
- package/dist/src/init/index.js +0 -15
- package/dist/src/init/index.js.map +0 -1
- package/dist/src/init/mcp-generator.d.ts +0 -26
- package/dist/src/init/mcp-generator.d.ts.map +0 -1
- package/dist/src/init/mcp-generator.js +0 -116
- package/dist/src/init/mcp-generator.js.map +0 -1
- package/dist/src/init/settings-generator.d.ts +0 -14
- package/dist/src/init/settings-generator.d.ts.map +0 -1
- package/dist/src/init/settings-generator.js +0 -399
- package/dist/src/init/settings-generator.js.map +0 -1
- package/dist/src/init/statusline-generator.d.ts +0 -28
- package/dist/src/init/statusline-generator.d.ts.map +0 -1
- package/dist/src/init/statusline-generator.js +0 -817
- package/dist/src/init/statusline-generator.js.map +0 -1
- package/dist/src/init/types.d.ts +0 -287
- package/dist/src/init/types.d.ts.map +0 -1
- package/dist/src/init/types.js +0 -259
- package/dist/src/init/types.js.map +0 -1
- package/dist/src/mcp-client.d.ts +0 -92
- package/dist/src/mcp-client.d.ts.map +0 -1
- package/dist/src/mcp-client.js +0 -237
- package/dist/src/mcp-client.js.map +0 -1
- package/dist/src/mcp-server.d.ts +0 -161
- package/dist/src/mcp-server.d.ts.map +0 -1
- package/dist/src/mcp-server.js +0 -627
- package/dist/src/mcp-server.js.map +0 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +0 -9
- package/dist/src/mcp-tools/agent-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/agent-tools.js +0 -549
- package/dist/src/mcp-tools/agent-tools.js.map +0 -1
- package/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
- package/dist/src/mcp-tools/agentdb-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/agentdb-tools.js +0 -557
- package/dist/src/mcp-tools/agentdb-tools.js.map +0 -1
- package/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
- package/dist/src/mcp-tools/analyze-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/analyze-tools.js +0 -317
- package/dist/src/mcp-tools/analyze-tools.js.map +0 -1
- package/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/dist/src/mcp-tools/auto-install.d.ts.map +0 -1
- package/dist/src/mcp-tools/auto-install.js +0 -131
- package/dist/src/mcp-tools/auto-install.js.map +0 -1
- package/dist/src/mcp-tools/browser-tools.d.ts +0 -13
- package/dist/src/mcp-tools/browser-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/browser-tools.js +0 -550
- package/dist/src/mcp-tools/browser-tools.js.map +0 -1
- package/dist/src/mcp-tools/claims-tools.d.ts +0 -12
- package/dist/src/mcp-tools/claims-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/claims-tools.js +0 -732
- package/dist/src/mcp-tools/claims-tools.js.map +0 -1
- package/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/dist/src/mcp-tools/config-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/config-tools.js +0 -343
- package/dist/src/mcp-tools/config-tools.js.map +0 -1
- package/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
- package/dist/src/mcp-tools/coordination-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/coordination-tools.js +0 -486
- package/dist/src/mcp-tools/coordination-tools.js.map +0 -1
- package/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/dist/src/mcp-tools/daa-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/daa-tools.js +0 -426
- package/dist/src/mcp-tools/daa-tools.js.map +0 -1
- package/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/embeddings-tools.js +0 -782
- package/dist/src/mcp-tools/embeddings-tools.js.map +0 -1
- package/dist/src/mcp-tools/github-tools.d.ts +0 -13
- package/dist/src/mcp-tools/github-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/github-tools.js +0 -373
- package/dist/src/mcp-tools/github-tools.js.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +0 -583
- package/dist/src/mcp-tools/hive-mind-tools.js.map +0 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/hooks-tools.js +0 -2969
- package/dist/src/mcp-tools/hooks-tools.js.map +0 -1
- package/dist/src/mcp-tools/index.d.ts +0 -23
- package/dist/src/mcp-tools/index.d.ts.map +0 -1
- package/dist/src/mcp-tools/index.js +0 -22
- package/dist/src/mcp-tools/index.js.map +0 -1
- package/dist/src/mcp-tools/memory-tools.d.ts +0 -14
- package/dist/src/mcp-tools/memory-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/memory-tools.js +0 -499
- package/dist/src/mcp-tools/memory-tools.js.map +0 -1
- package/dist/src/mcp-tools/neural-tools.d.ts +0 -16
- package/dist/src/mcp-tools/neural-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/neural-tools.js +0 -461
- package/dist/src/mcp-tools/neural-tools.js.map +0 -1
- package/dist/src/mcp-tools/performance-tools.d.ts +0 -16
- package/dist/src/mcp-tools/performance-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/performance-tools.js +0 -534
- package/dist/src/mcp-tools/performance-tools.js.map +0 -1
- package/dist/src/mcp-tools/progress-tools.d.ts +0 -14
- package/dist/src/mcp-tools/progress-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/progress-tools.js +0 -348
- package/dist/src/mcp-tools/progress-tools.js.map +0 -1
- package/dist/src/mcp-tools/security-tools.d.ts +0 -18
- package/dist/src/mcp-tools/security-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/security-tools.js +0 -434
- package/dist/src/mcp-tools/security-tools.js.map +0 -1
- package/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/dist/src/mcp-tools/session-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/session-tools.js +0 -315
- package/dist/src/mcp-tools/session-tools.js.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.js +0 -102
- package/dist/src/mcp-tools/swarm-tools.js.map +0 -1
- package/dist/src/mcp-tools/system-tools.d.ts +0 -13
- package/dist/src/mcp-tools/system-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/system-tools.js +0 -417
- package/dist/src/mcp-tools/system-tools.js.map +0 -1
- package/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/dist/src/mcp-tools/task-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/task-tools.js +0 -338
- package/dist/src/mcp-tools/task-tools.js.map +0 -1
- package/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/terminal-tools.js +0 -246
- package/dist/src/mcp-tools/terminal-tools.js.map +0 -1
- package/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/transfer-tools.js +0 -396
- package/dist/src/mcp-tools/transfer-tools.js.map +0 -1
- package/dist/src/mcp-tools/types.d.ts +0 -31
- package/dist/src/mcp-tools/types.d.ts.map +0 -1
- package/dist/src/mcp-tools/types.js +0 -7
- package/dist/src/mcp-tools/types.js.map +0 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/workflow-tools.js +0 -572
- package/dist/src/mcp-tools/workflow-tools.js.map +0 -1
- package/dist/src/memory/ewc-consolidation.d.ts +0 -271
- package/dist/src/memory/ewc-consolidation.d.ts.map +0 -1
- package/dist/src/memory/ewc-consolidation.js +0 -542
- package/dist/src/memory/ewc-consolidation.js.map +0 -1
- package/dist/src/memory/intelligence.d.ts +0 -285
- package/dist/src/memory/intelligence.d.ts.map +0 -1
- package/dist/src/memory/intelligence.js +0 -794
- package/dist/src/memory/intelligence.js.map +0 -1
- package/dist/src/memory/memory-bridge.d.ts +0 -407
- package/dist/src/memory/memory-bridge.d.ts.map +0 -1
- package/dist/src/memory/memory-bridge.js +0 -1494
- package/dist/src/memory/memory-bridge.js.map +0 -1
- package/dist/src/memory/memory-initializer.d.ts +0 -405
- package/dist/src/memory/memory-initializer.d.ts.map +0 -1
- package/dist/src/memory/memory-initializer.js +0 -2105
- package/dist/src/memory/memory-initializer.js.map +0 -1
- package/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/dist/src/memory/sona-optimizer.d.ts.map +0 -1
- package/dist/src/memory/sona-optimizer.js +0 -633
- package/dist/src/memory/sona-optimizer.js.map +0 -1
- package/dist/src/output.d.ts +0 -133
- package/dist/src/output.d.ts.map +0 -1
- package/dist/src/output.js +0 -514
- package/dist/src/output.js.map +0 -1
- package/dist/src/parser.d.ts +0 -41
- package/dist/src/parser.d.ts.map +0 -1
- package/dist/src/parser.js +0 -377
- package/dist/src/parser.js.map +0 -1
- package/dist/src/plugins/manager.d.ts +0 -133
- package/dist/src/plugins/manager.d.ts.map +0 -1
- package/dist/src/plugins/manager.js +0 -400
- package/dist/src/plugins/manager.js.map +0 -1
- package/dist/src/plugins/store/discovery.d.ts +0 -88
- package/dist/src/plugins/store/discovery.d.ts.map +0 -1
- package/dist/src/plugins/store/discovery.js +0 -1147
- package/dist/src/plugins/store/discovery.js.map +0 -1
- package/dist/src/plugins/store/index.d.ts +0 -76
- package/dist/src/plugins/store/index.d.ts.map +0 -1
- package/dist/src/plugins/store/index.js +0 -141
- package/dist/src/plugins/store/index.js.map +0 -1
- package/dist/src/plugins/store/search.d.ts +0 -46
- package/dist/src/plugins/store/search.d.ts.map +0 -1
- package/dist/src/plugins/store/search.js +0 -230
- package/dist/src/plugins/store/search.js.map +0 -1
- package/dist/src/plugins/store/types.d.ts +0 -274
- package/dist/src/plugins/store/types.d.ts.map +0 -1
- package/dist/src/plugins/store/types.js +0 -7
- package/dist/src/plugins/store/types.js.map +0 -1
- package/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
- package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +0 -1
- package/dist/src/plugins/tests/demo-plugin-store.js +0 -126
- package/dist/src/plugins/tests/demo-plugin-store.js.map +0 -1
- package/dist/src/plugins/tests/standalone-test.d.ts +0 -12
- package/dist/src/plugins/tests/standalone-test.d.ts.map +0 -1
- package/dist/src/plugins/tests/standalone-test.js +0 -188
- package/dist/src/plugins/tests/standalone-test.js.map +0 -1
- package/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
- package/dist/src/plugins/tests/test-plugin-store.d.ts.map +0 -1
- package/dist/src/plugins/tests/test-plugin-store.js +0 -206
- package/dist/src/plugins/tests/test-plugin-store.js.map +0 -1
- package/dist/src/production/circuit-breaker.d.ts +0 -101
- package/dist/src/production/circuit-breaker.d.ts.map +0 -1
- package/dist/src/production/circuit-breaker.js +0 -241
- package/dist/src/production/circuit-breaker.js.map +0 -1
- package/dist/src/production/error-handler.d.ts +0 -92
- package/dist/src/production/error-handler.d.ts.map +0 -1
- package/dist/src/production/error-handler.js +0 -299
- package/dist/src/production/error-handler.js.map +0 -1
- package/dist/src/production/index.d.ts +0 -23
- package/dist/src/production/index.d.ts.map +0 -1
- package/dist/src/production/index.js +0 -18
- package/dist/src/production/index.js.map +0 -1
- package/dist/src/production/monitoring.d.ts +0 -161
- package/dist/src/production/monitoring.d.ts.map +0 -1
- package/dist/src/production/monitoring.js +0 -356
- package/dist/src/production/monitoring.js.map +0 -1
- package/dist/src/production/rate-limiter.d.ts +0 -80
- package/dist/src/production/rate-limiter.d.ts.map +0 -1
- package/dist/src/production/rate-limiter.js +0 -201
- package/dist/src/production/rate-limiter.js.map +0 -1
- package/dist/src/production/retry.d.ts +0 -48
- package/dist/src/production/retry.d.ts.map +0 -1
- package/dist/src/production/retry.js +0 -179
- package/dist/src/production/retry.js.map +0 -1
- package/dist/src/prompt.d.ts +0 -44
- package/dist/src/prompt.d.ts.map +0 -1
- package/dist/src/prompt.js +0 -501
- package/dist/src/prompt.js.map +0 -1
- package/dist/src/runtime/headless.d.ts +0 -60
- package/dist/src/runtime/headless.d.ts.map +0 -1
- package/dist/src/runtime/headless.js +0 -284
- package/dist/src/runtime/headless.js.map +0 -1
- package/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/dist/src/ruvector/ast-analyzer.d.ts.map +0 -1
- package/dist/src/ruvector/ast-analyzer.js +0 -277
- package/dist/src/ruvector/ast-analyzer.js.map +0 -1
- package/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/dist/src/ruvector/coverage-router.d.ts.map +0 -1
- package/dist/src/ruvector/coverage-router.js +0 -529
- package/dist/src/ruvector/coverage-router.js.map +0 -1
- package/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/dist/src/ruvector/coverage-tools.d.ts.map +0 -1
- package/dist/src/ruvector/coverage-tools.js +0 -157
- package/dist/src/ruvector/coverage-tools.js.map +0 -1
- package/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/dist/src/ruvector/diff-classifier.d.ts.map +0 -1
- package/dist/src/ruvector/diff-classifier.js +0 -698
- package/dist/src/ruvector/diff-classifier.js.map +0 -1
- package/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +0 -1
- package/dist/src/ruvector/enhanced-model-router.js +0 -529
- package/dist/src/ruvector/enhanced-model-router.js.map +0 -1
- package/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/dist/src/ruvector/flash-attention.d.ts.map +0 -1
- package/dist/src/ruvector/flash-attention.js +0 -643
- package/dist/src/ruvector/flash-attention.js.map +0 -1
- package/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/dist/src/ruvector/graph-analyzer.d.ts.map +0 -1
- package/dist/src/ruvector/graph-analyzer.js +0 -929
- package/dist/src/ruvector/graph-analyzer.js.map +0 -1
- package/dist/src/ruvector/index.d.ts +0 -34
- package/dist/src/ruvector/index.d.ts.map +0 -1
- package/dist/src/ruvector/index.js +0 -60
- package/dist/src/ruvector/index.js.map +0 -1
- package/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/dist/src/ruvector/lora-adapter.d.ts.map +0 -1
- package/dist/src/ruvector/lora-adapter.js +0 -455
- package/dist/src/ruvector/lora-adapter.js.map +0 -1
- package/dist/src/ruvector/model-router.d.ts +0 -220
- package/dist/src/ruvector/model-router.d.ts.map +0 -1
- package/dist/src/ruvector/model-router.js +0 -488
- package/dist/src/ruvector/model-router.js.map +0 -1
- package/dist/src/ruvector/moe-router.d.ts +0 -206
- package/dist/src/ruvector/moe-router.d.ts.map +0 -1
- package/dist/src/ruvector/moe-router.js +0 -626
- package/dist/src/ruvector/moe-router.js.map +0 -1
- package/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/dist/src/ruvector/q-learning-router.d.ts.map +0 -1
- package/dist/src/ruvector/q-learning-router.js +0 -681
- package/dist/src/ruvector/q-learning-router.js.map +0 -1
- package/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/dist/src/ruvector/semantic-router.d.ts.map +0 -1
- package/dist/src/ruvector/semantic-router.js +0 -178
- package/dist/src/ruvector/semantic-router.js.map +0 -1
- package/dist/src/ruvector/vector-db.d.ts +0 -69
- package/dist/src/ruvector/vector-db.d.ts.map +0 -1
- package/dist/src/ruvector/vector-db.js +0 -243
- package/dist/src/ruvector/vector-db.js.map +0 -1
- package/dist/src/services/agentic-flow-bridge.d.ts +0 -50
- package/dist/src/services/agentic-flow-bridge.d.ts.map +0 -1
- package/dist/src/services/agentic-flow-bridge.js +0 -95
- package/dist/src/services/agentic-flow-bridge.js.map +0 -1
- package/dist/src/services/claim-service.d.ts +0 -204
- package/dist/src/services/claim-service.d.ts.map +0 -1
- package/dist/src/services/claim-service.js +0 -818
- package/dist/src/services/claim-service.js.map +0 -1
- package/dist/src/services/container-worker-pool.d.ts +0 -197
- package/dist/src/services/container-worker-pool.d.ts.map +0 -1
- package/dist/src/services/container-worker-pool.js +0 -583
- package/dist/src/services/container-worker-pool.js.map +0 -1
- package/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/dist/src/services/headless-worker-executor.d.ts.map +0 -1
- package/dist/src/services/headless-worker-executor.js +0 -999
- package/dist/src/services/headless-worker-executor.js.map +0 -1
- package/dist/src/services/index.d.ts +0 -13
- package/dist/src/services/index.d.ts.map +0 -1
- package/dist/src/services/index.js +0 -11
- package/dist/src/services/index.js.map +0 -1
- package/dist/src/services/registry-api.d.ts +0 -58
- package/dist/src/services/registry-api.d.ts.map +0 -1
- package/dist/src/services/registry-api.js +0 -146
- package/dist/src/services/registry-api.js.map +0 -1
- package/dist/src/services/ruvector-training.d.ts +0 -214
- package/dist/src/services/ruvector-training.d.ts.map +0 -1
- package/dist/src/services/ruvector-training.js +0 -497
- package/dist/src/services/ruvector-training.js.map +0 -1
- package/dist/src/services/worker-daemon.d.ts +0 -203
- package/dist/src/services/worker-daemon.d.ts.map +0 -1
- package/dist/src/services/worker-daemon.js +0 -756
- package/dist/src/services/worker-daemon.js.map +0 -1
- package/dist/src/services/worker-queue.d.ts +0 -194
- package/dist/src/services/worker-queue.d.ts.map +0 -1
- package/dist/src/services/worker-queue.js +0 -513
- package/dist/src/services/worker-queue.js.map +0 -1
- package/dist/src/suggest.d.ts +0 -53
- package/dist/src/suggest.d.ts.map +0 -1
- package/dist/src/suggest.js +0 -200
- package/dist/src/suggest.js.map +0 -1
- package/dist/src/tests/ruvector-integration-benchmark.d.ts +0 -6
- package/dist/src/tests/ruvector-integration-benchmark.d.ts.map +0 -1
- package/dist/src/tests/ruvector-integration-benchmark.js +0 -385
- package/dist/src/tests/ruvector-integration-benchmark.js.map +0 -1
- package/dist/src/transfer/anonymization/index.d.ts +0 -25
- package/dist/src/transfer/anonymization/index.d.ts.map +0 -1
- package/dist/src/transfer/anonymization/index.js +0 -175
- package/dist/src/transfer/anonymization/index.js.map +0 -1
- package/dist/src/transfer/deploy-seraphine.d.ts +0 -13
- package/dist/src/transfer/deploy-seraphine.d.ts.map +0 -1
- package/dist/src/transfer/deploy-seraphine.js +0 -205
- package/dist/src/transfer/deploy-seraphine.js.map +0 -1
- package/dist/src/transfer/export.d.ts +0 -25
- package/dist/src/transfer/export.d.ts.map +0 -1
- package/dist/src/transfer/export.js +0 -113
- package/dist/src/transfer/export.js.map +0 -1
- package/dist/src/transfer/index.d.ts +0 -12
- package/dist/src/transfer/index.d.ts.map +0 -1
- package/dist/src/transfer/index.js +0 -31
- package/dist/src/transfer/index.js.map +0 -1
- package/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/dist/src/transfer/ipfs/client.d.ts.map +0 -1
- package/dist/src/transfer/ipfs/client.js +0 -307
- package/dist/src/transfer/ipfs/client.js.map +0 -1
- package/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/dist/src/transfer/ipfs/upload.d.ts.map +0 -1
- package/dist/src/transfer/ipfs/upload.js +0 -411
- package/dist/src/transfer/ipfs/upload.js.map +0 -1
- package/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/dist/src/transfer/models/seraphine.d.ts.map +0 -1
- package/dist/src/transfer/models/seraphine.js +0 -373
- package/dist/src/transfer/models/seraphine.js.map +0 -1
- package/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/dist/src/transfer/serialization/cfp.d.ts.map +0 -1
- package/dist/src/transfer/serialization/cfp.js +0 -183
- package/dist/src/transfer/serialization/cfp.js.map +0 -1
- package/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/dist/src/transfer/storage/gcs.d.ts.map +0 -1
- package/dist/src/transfer/storage/gcs.js +0 -256
- package/dist/src/transfer/storage/gcs.js.map +0 -1
- package/dist/src/transfer/storage/index.d.ts +0 -6
- package/dist/src/transfer/storage/index.d.ts.map +0 -1
- package/dist/src/transfer/storage/index.js +0 -6
- package/dist/src/transfer/storage/index.js.map +0 -1
- package/dist/src/transfer/store/discovery.d.ts +0 -84
- package/dist/src/transfer/store/discovery.d.ts.map +0 -1
- package/dist/src/transfer/store/discovery.js +0 -382
- package/dist/src/transfer/store/discovery.js.map +0 -1
- package/dist/src/transfer/store/download.d.ts +0 -70
- package/dist/src/transfer/store/download.d.ts.map +0 -1
- package/dist/src/transfer/store/download.js +0 -334
- package/dist/src/transfer/store/download.js.map +0 -1
- package/dist/src/transfer/store/index.d.ts +0 -84
- package/dist/src/transfer/store/index.d.ts.map +0 -1
- package/dist/src/transfer/store/index.js +0 -153
- package/dist/src/transfer/store/index.js.map +0 -1
- package/dist/src/transfer/store/publish.d.ts +0 -76
- package/dist/src/transfer/store/publish.d.ts.map +0 -1
- package/dist/src/transfer/store/publish.js +0 -294
- package/dist/src/transfer/store/publish.js.map +0 -1
- package/dist/src/transfer/store/registry.d.ts +0 -58
- package/dist/src/transfer/store/registry.d.ts.map +0 -1
- package/dist/src/transfer/store/registry.js +0 -285
- package/dist/src/transfer/store/registry.js.map +0 -1
- package/dist/src/transfer/store/search.d.ts +0 -54
- package/dist/src/transfer/store/search.d.ts.map +0 -1
- package/dist/src/transfer/store/search.js +0 -232
- package/dist/src/transfer/store/search.js.map +0 -1
- package/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
- package/dist/src/transfer/store/tests/standalone-test.d.ts.map +0 -1
- package/dist/src/transfer/store/tests/standalone-test.js +0 -190
- package/dist/src/transfer/store/tests/standalone-test.js.map +0 -1
- package/dist/src/transfer/store/types.d.ts +0 -193
- package/dist/src/transfer/store/types.d.ts.map +0 -1
- package/dist/src/transfer/store/types.js +0 -6
- package/dist/src/transfer/store/types.js.map +0 -1
- package/dist/src/transfer/test-seraphine.d.ts +0 -6
- package/dist/src/transfer/test-seraphine.d.ts.map +0 -1
- package/dist/src/transfer/test-seraphine.js +0 -105
- package/dist/src/transfer/test-seraphine.js.map +0 -1
- package/dist/src/transfer/tests/test-store.d.ts +0 -7
- package/dist/src/transfer/tests/test-store.d.ts.map +0 -1
- package/dist/src/transfer/tests/test-store.js +0 -214
- package/dist/src/transfer/tests/test-store.js.map +0 -1
- package/dist/src/transfer/types.d.ts +0 -245
- package/dist/src/transfer/types.d.ts.map +0 -1
- package/dist/src/transfer/types.js +0 -6
- package/dist/src/transfer/types.js.map +0 -1
- package/dist/src/types.d.ts +0 -198
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -38
- package/dist/src/types.js.map +0 -1
- package/dist/src/update/checker.d.ts +0 -34
- package/dist/src/update/checker.d.ts.map +0 -1
- package/dist/src/update/checker.js +0 -190
- package/dist/src/update/checker.js.map +0 -1
- package/dist/src/update/executor.d.ts +0 -32
- package/dist/src/update/executor.d.ts.map +0 -1
- package/dist/src/update/executor.js +0 -181
- package/dist/src/update/executor.js.map +0 -1
- package/dist/src/update/index.d.ts +0 -33
- package/dist/src/update/index.d.ts.map +0 -1
- package/dist/src/update/index.js +0 -64
- package/dist/src/update/index.js.map +0 -1
- package/dist/src/update/rate-limiter.d.ts +0 -20
- package/dist/src/update/rate-limiter.d.ts.map +0 -1
- package/dist/src/update/rate-limiter.js +0 -96
- package/dist/src/update/rate-limiter.js.map +0 -1
- package/dist/src/update/validator.d.ts +0 -17
- package/dist/src/update/validator.d.ts.map +0 -1
- package/dist/src/update/validator.js +0 -123
- package/dist/src/update/validator.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
# 🌊
|
|
1
|
+
# 🌊 Claude-Flow v3: Enterprise AI Orchestration Platform
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
[](https://github.com/ruvnet/claude-flow)
|
|
10
|
-
|
|
11
9
|
[](https://github.com/ruvnet/claude-flow)
|
|
12
10
|
[](https://www.npmjs.com/package/claude-flow)
|
|
13
11
|
[](https://www.npmjs.com/package/claude-flow)
|
|
@@ -25,16 +23,14 @@
|
|
|
25
23
|
|
|
26
24
|
</div>
|
|
27
25
|
|
|
28
|
-
> **Why Ruflo?** Claude Flow is now Ruflo — named by Ruv, who loves Rust, flow states, and building things that feel inevitable. The "Ru" is the Ruv. The "flo" is the flow. Underneath, WASM kernels written in Rust power the policy engine, embeddings, and proof system. 5,800 commits later, the alpha is over. This is v3.5.
|
|
29
|
-
|
|
30
26
|
## Getting into the Flow
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
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.
|
|
33
29
|
|
|
34
30
|
### Self-Learning/Self-Optimizing Agent Architecture
|
|
35
31
|
|
|
36
32
|
```
|
|
37
|
-
User →
|
|
33
|
+
User → Claude-Flow (CLI/MCP) → Router → Swarm → Agents → Memory → LLM Providers
|
|
38
34
|
↑ ↓
|
|
39
35
|
└──── Learning Loop ←──────┘
|
|
40
36
|
```
|
|
@@ -126,24 +122,27 @@ flowchart TB
|
|
|
126
122
|
style RESOURCES fill:#1a1a2e,stroke:#0f3460
|
|
127
123
|
```
|
|
128
124
|
|
|
129
|
-
**RuVector Components** (
|
|
125
|
+
**RuVector Components** (`npx ruvector`):
|
|
130
126
|
|
|
131
127
|
| Component | Purpose | Performance |
|
|
132
128
|
|-----------|---------|-------------|
|
|
133
|
-
| **SONA** | Self-Optimizing Neural Architecture - learns optimal routing |
|
|
134
|
-
| **EWC++** | Elastic Weight Consolidation - prevents catastrophic forgetting | Preserves
|
|
135
|
-
| **Flash Attention** | Optimized attention computation | 2-
|
|
136
|
-
| **HNSW** | Hierarchical Navigable Small World vector search |
|
|
129
|
+
| **SONA** | Self-Optimizing Neural Architecture - learns optimal routing | <0.05ms adaptation |
|
|
130
|
+
| **EWC++** | Elastic Weight Consolidation - prevents catastrophic forgetting | Preserves 95%+ knowledge |
|
|
131
|
+
| **Flash Attention** | Optimized attention computation | 2.49x-7.47x speedup |
|
|
132
|
+
| **HNSW** | Hierarchical Navigable Small World vector search | 150x-12,500x faster |
|
|
137
133
|
| **ReasoningBank** | Pattern storage with trajectory learning | RETRIEVE→JUDGE→DISTILL |
|
|
138
|
-
| **Hyperbolic** |
|
|
139
|
-
| **LoRA/MicroLoRA** | Low-Rank Adaptation for efficient fine-tuning |
|
|
140
|
-
| **Int8 Quantization** | Memory-efficient weight storage |
|
|
141
|
-
| **SemanticRouter** | Semantic task routing with cosine similarity |
|
|
134
|
+
| **Hyperbolic** | Poincaré ball embeddings for hierarchical data | Better code relationships |
|
|
135
|
+
| **LoRA/MicroLoRA** | Low-Rank Adaptation for efficient fine-tuning | **<3μs** adaptation, 383k ops/sec |
|
|
136
|
+
| **Int8 Quantization** | Memory-efficient weight storage | 3.92x memory reduction |
|
|
137
|
+
| **SemanticRouter** | Semantic task routing with cosine similarity | **34,798 routes/s**, 0.029ms |
|
|
142
138
|
| **9 RL Algorithms** | Q-Learning, SARSA, A2C, PPO, DQN, Decision Transformer, etc. | Task-specific learning |
|
|
143
139
|
|
|
144
140
|
```bash
|
|
145
|
-
#
|
|
146
|
-
npx
|
|
141
|
+
# Install RuVector standalone
|
|
142
|
+
npx ruvector
|
|
143
|
+
|
|
144
|
+
# Or use via Claude-Flow
|
|
145
|
+
npx claude-flow@v3alpha hooks intelligence --status
|
|
147
146
|
```
|
|
148
147
|
|
|
149
148
|
</details>
|
|
@@ -158,7 +157,7 @@ curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.s
|
|
|
158
157
|
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash -s -- --full
|
|
159
158
|
|
|
160
159
|
# Or via npx
|
|
161
|
-
npx
|
|
160
|
+
npx claude-flow@alpha init --wizard
|
|
162
161
|
```
|
|
163
162
|
|
|
164
163
|
---
|
|
@@ -172,7 +171,7 @@ npx ruflo@latest init --wizard
|
|
|
172
171
|
|
|
173
172
|
🔌 **Works With Any LLM** - Switch between Claude, GPT, Gemini, Cohere, or local models like Llama. Automatic failover if one provider is unavailable. Smart routing picks the cheapest option that meets quality requirements.
|
|
174
173
|
|
|
175
|
-
⚡ **Plugs Into Claude Code** - Native integration via MCP (Model Context Protocol). Use
|
|
174
|
+
⚡ **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.
|
|
176
175
|
|
|
177
176
|
🔒 **Production-Ready Security** - Built-in protection against prompt injection, input validation, path traversal prevention, command injection blocking, and safe credential handling.
|
|
178
177
|
|
|
@@ -213,21 +212,18 @@ Agents organize into swarms led by queens that coordinate work, prevent drift, a
|
|
|
213
212
|
- 👷 **8 Worker Types**: Researcher, Coder, Analyst, Tester, Architect, Reviewer, Optimizer, Documenter
|
|
214
213
|
- 🗳️ **3 Consensus Algorithms**: Majority, Weighted (Queen 3x), Byzantine (f < n/3)
|
|
215
214
|
- 🧠 **Collective Memory**: Shared knowledge, LRU cache, SQLite persistence with WAL
|
|
216
|
-
- ⚡ **Performance**:
|
|
215
|
+
- ⚡ **Performance**: 10-20x faster batch spawning, 84.8% SWE-Bench solve rate
|
|
217
216
|
|
|
218
217
|
</details>
|
|
219
218
|
|
|
220
219
|
<details>
|
|
221
220
|
<summary>🧠 <strong>Intelligence & Memory</strong> — How the system learns and remembers</summary>
|
|
222
221
|
|
|
223
|
-
The system stores successful patterns in vector memory,
|
|
222
|
+
The system stores successful patterns in vector memory, learns from outcomes via neural networks, and adapts routing based on what works best.
|
|
224
223
|
|
|
225
224
|
| Layer | Components | What It Does |
|
|
226
225
|
|-------|------------|--------------|
|
|
227
|
-
| Memory | HNSW, AgentDB, Cache | Stores and retrieves patterns
|
|
228
|
-
| Knowledge Graph | MemoryGraph, PageRank, Communities | Identifies influential insights, detects clusters (ADR-049) |
|
|
229
|
-
| Self-Learning | LearningBridge, SONA, ReasoningBank | Triggers learning from insights, confidence lifecycle (ADR-049) |
|
|
230
|
-
| Agent Scopes | AgentMemoryScope, 3-scope dirs | Per-agent isolation + cross-agent knowledge transfer (ADR-049) |
|
|
226
|
+
| Memory | HNSW, AgentDB, Cache | Stores and retrieves patterns 150x faster |
|
|
231
227
|
| Embeddings | ONNX Runtime, MiniLM | Local vectors without API calls (75x faster) |
|
|
232
228
|
| Learning | SONA, MoE, ReasoningBank | Self-improves from results (<0.05ms adaptation) |
|
|
233
229
|
| Fine-tuning | MicroLoRA, EWC++ | Lightweight adaptation without full retraining |
|
|
@@ -275,7 +271,7 @@ Smart routing skips expensive LLM calls when possible. Simple edits use WASM (fr
|
|
|
275
271
|
</details>
|
|
276
272
|
|
|
277
273
|
<details>
|
|
278
|
-
<summary>⚡ <strong>Agent Booster (WASM)</strong> —
|
|
274
|
+
<summary>⚡ <strong>Agent Booster (WASM)</strong> — 352x faster code transforms, skip LLM entirely</summary>
|
|
279
275
|
|
|
280
276
|
Agent Booster uses WebAssembly to handle simple code transformations without calling the LLM at all. When the hooks system detects a simple task, it routes directly to Agent Booster for instant results.
|
|
281
277
|
|
|
@@ -350,7 +346,7 @@ const config = optimizer.getOptimalConfig(agentCount);
|
|
|
350
346
|
<details>
|
|
351
347
|
<summary>🛡️ <strong>Anti-Drift Swarm Configuration</strong> — Prevent goal drift in multi-agent work</summary>
|
|
352
348
|
|
|
353
|
-
Complex swarms can drift from their original goals.
|
|
349
|
+
Complex swarms can drift from their original goals. Claude-Flow V3 includes anti-drift defaults that prevent agents from going off-task.
|
|
354
350
|
|
|
355
351
|
**Recommended Configuration:**
|
|
356
352
|
|
|
@@ -392,26 +388,24 @@ swarm_init({
|
|
|
392
388
|
|
|
393
389
|
</details>
|
|
394
390
|
|
|
395
|
-
### Claude Code: With vs Without
|
|
391
|
+
### Claude Code: With vs Without Claude-Flow
|
|
396
392
|
|
|
397
|
-
| Capability | Claude Code Alone | Claude Code +
|
|
393
|
+
| Capability | Claude Code Alone | Claude Code + Claude-Flow |
|
|
398
394
|
|------------|-------------------|---------------------------|
|
|
399
395
|
| **Agent Collaboration** | Agents work in isolation, no shared context | Agents collaborate via swarms with shared memory and consensus |
|
|
400
396
|
| **Coordination** | Manual orchestration between tasks | Queen-led hierarchy with 5 consensus algorithms (Raft, Byzantine, Gossip) |
|
|
401
397
|
| **Hive Mind** | ⛔ Not available | 🐝 Queen-led swarms with collective intelligence, 3 queen types, 8 worker types |
|
|
402
398
|
| **Consensus** | ⛔ No multi-agent decisions | Byzantine fault-tolerant voting (f < n/3), weighted, majority |
|
|
403
|
-
| **Memory** | Session-only, no persistence | HNSW vector memory with
|
|
399
|
+
| **Memory** | Session-only, no persistence | HNSW vector memory with 150x-12,500x faster retrieval |
|
|
404
400
|
| **Vector Database** | ⛔ No native support | 🐘 RuVector PostgreSQL with 77+ SQL functions, ~61µs search, 16,400 QPS |
|
|
405
|
-
| **Knowledge Graph** | ⛔ Flat insight lists | PageRank + community detection identifies influential insights (ADR-049) |
|
|
406
401
|
| **Collective Memory** | ⛔ No shared knowledge | Shared knowledge base with LRU cache, SQLite persistence, 8 memory types |
|
|
407
|
-
| **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation,
|
|
408
|
-
| **Agent Scoping** | Single project scope | 3-scope agent memory (project/local/user) with cross-agent transfer |
|
|
402
|
+
| **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation, improves over time |
|
|
409
403
|
| **Task Routing** | You decide which agent to use | Intelligent routing based on learned patterns (89% accuracy) |
|
|
410
404
|
| **Complex Tasks** | Manual breakdown required | Automatic decomposition across 5 domains (Security, Core, Integration, Support) |
|
|
411
405
|
| **Background Workers** | Nothing runs automatically | 12 context-triggered workers auto-dispatch on file changes, patterns, sessions |
|
|
412
406
|
| **LLM Provider** | Anthropic only | 6 providers with automatic failover and cost-based routing (85% savings) |
|
|
413
407
|
| **Security** | Standard protections | CVE-hardened with bcrypt, input validation, path traversal prevention |
|
|
414
|
-
| **Performance** | Baseline |
|
|
408
|
+
| **Performance** | Baseline | 2.8-4.4x faster tasks, 10-20x faster swarm spawning, 84.8% SWE-Bench |
|
|
415
409
|
|
|
416
410
|
## Quick Start
|
|
417
411
|
|
|
@@ -481,14 +475,14 @@ curl ... | bash -s -- --full
|
|
|
481
475
|
|
|
482
476
|
```bash
|
|
483
477
|
# Quick start (no install needed)
|
|
484
|
-
npx
|
|
478
|
+
npx claude-flow@alpha init
|
|
485
479
|
|
|
486
480
|
# Or install globally
|
|
487
|
-
npm install -g
|
|
488
|
-
|
|
481
|
+
npm install -g claude-flow@alpha
|
|
482
|
+
claude-flow init
|
|
489
483
|
|
|
490
484
|
# With Bun (faster)
|
|
491
|
-
bunx
|
|
485
|
+
bunx claude-flow@alpha init
|
|
492
486
|
```
|
|
493
487
|
|
|
494
488
|
#### Install Profiles
|
|
@@ -500,25 +494,25 @@ bunx ruflo@latest init
|
|
|
500
494
|
|
|
501
495
|
```bash
|
|
502
496
|
# Minimal install (skip ML/embeddings)
|
|
503
|
-
npm install -g
|
|
497
|
+
npm install -g claude-flow@alpha --omit=optional
|
|
504
498
|
```
|
|
505
499
|
|
|
506
500
|
<details>
|
|
507
501
|
<summary>🤖 <strong>OpenAI Codex CLI Support</strong> — Full Codex integration with self-learning</summary>
|
|
508
502
|
|
|
509
|
-
|
|
503
|
+
Claude-Flow supports both **Claude Code** and **OpenAI Codex CLI** via the [@claude-flow/codex](https://www.npmjs.com/package/@claude-flow/codex) package, following the [Agentics Foundation](https://agentics.org) standard.
|
|
510
504
|
|
|
511
505
|
### Quick Start for Codex
|
|
512
506
|
|
|
513
507
|
```bash
|
|
514
508
|
# Initialize for Codex CLI (creates AGENTS.md instead of CLAUDE.md)
|
|
515
|
-
npx
|
|
509
|
+
npx claude-flow@alpha init --codex
|
|
516
510
|
|
|
517
511
|
# Full Codex setup with all 137+ skills
|
|
518
|
-
npx
|
|
512
|
+
npx claude-flow@alpha init --codex --full
|
|
519
513
|
|
|
520
514
|
# Initialize for both platforms (dual mode)
|
|
521
|
-
npx
|
|
515
|
+
npx claude-flow@alpha init --dual
|
|
522
516
|
```
|
|
523
517
|
|
|
524
518
|
### Platform Comparison
|
|
@@ -576,16 +570,16 @@ wait # Wait for all to complete
|
|
|
576
570
|
|
|
577
571
|
```bash
|
|
578
572
|
# List collaboration templates
|
|
579
|
-
npx
|
|
573
|
+
npx claude-flow-codex dual templates
|
|
580
574
|
|
|
581
575
|
# Run feature development swarm (architect → coder → tester → reviewer)
|
|
582
|
-
npx
|
|
576
|
+
npx claude-flow-codex dual run --template feature --task "Add user auth"
|
|
583
577
|
|
|
584
578
|
# Run security audit swarm (scanner → analyzer → fixer)
|
|
585
|
-
npx
|
|
579
|
+
npx claude-flow-codex dual run --template security --task "src/auth/"
|
|
586
580
|
|
|
587
581
|
# Run refactoring swarm (analyzer → planner → refactorer → validator)
|
|
588
|
-
npx
|
|
582
|
+
npx claude-flow-codex dual run --template refactor --task "src/legacy/"
|
|
589
583
|
```
|
|
590
584
|
|
|
591
585
|
### Pre-Built Collaboration Templates
|
|
@@ -605,7 +599,7 @@ When you run `init --codex`, the MCP server is automatically registered:
|
|
|
605
599
|
codex mcp list
|
|
606
600
|
|
|
607
601
|
# If not present, add manually:
|
|
608
|
-
codex mcp add
|
|
602
|
+
codex mcp add claude-flow -- npx claude-flow mcp start
|
|
609
603
|
```
|
|
610
604
|
|
|
611
605
|
### Self-Learning Workflow
|
|
@@ -617,13 +611,6 @@ codex mcp add ruflo -- npx ruflo mcp start
|
|
|
617
611
|
4. REMEMBER: memory_store(key, value, namespace="patterns") → Save for future
|
|
618
612
|
```
|
|
619
613
|
|
|
620
|
-
The **Intelligence Loop** (ADR-050) automates this cycle through hooks. Each session automatically:
|
|
621
|
-
- Builds a knowledge graph from memory entries (PageRank + Jaccard similarity)
|
|
622
|
-
- Injects ranked context into every route decision
|
|
623
|
-
- Tracks edit patterns and generates new insights
|
|
624
|
-
- Boosts confidence for useful patterns, decays unused ones
|
|
625
|
-
- Saves snapshots so you can track improvement with `node .claude/helpers/hook-handler.cjs stats`
|
|
626
|
-
|
|
627
614
|
### MCP Tools for Learning
|
|
628
615
|
|
|
629
616
|
| Tool | Purpose | When to Use |
|
|
@@ -649,7 +636,7 @@ The **Intelligence Loop** (ADR-050) automates this cycle through hooks. Each ses
|
|
|
649
636
|
### Vector Search Details
|
|
650
637
|
|
|
651
638
|
- **Embedding Dimensions**: 384
|
|
652
|
-
- **Search Algorithm**: HNSW (
|
|
639
|
+
- **Search Algorithm**: HNSW (150x-12,500x faster)
|
|
653
640
|
- **Similarity Scoring**: 0-1 (higher = better)
|
|
654
641
|
- Score > 0.7: Strong match, use pattern
|
|
655
642
|
- Score 0.5-0.7: Partial match, adapt
|
|
@@ -661,46 +648,46 @@ The **Intelligence Loop** (ADR-050) automates this cycle through hooks. Each ses
|
|
|
661
648
|
|
|
662
649
|
```bash
|
|
663
650
|
# Initialize project
|
|
664
|
-
npx
|
|
651
|
+
npx claude-flow@alpha init
|
|
665
652
|
|
|
666
653
|
# Start MCP server for Claude Code integration
|
|
667
|
-
npx
|
|
654
|
+
npx claude-flow@alpha mcp start
|
|
668
655
|
|
|
669
656
|
# Run a task with agents
|
|
670
|
-
npx
|
|
657
|
+
npx claude-flow@alpha --agent coder --task "Implement user authentication"
|
|
671
658
|
|
|
672
659
|
# List available agents
|
|
673
|
-
npx
|
|
660
|
+
npx claude-flow@alpha --list
|
|
674
661
|
```
|
|
675
662
|
|
|
676
663
|
### Upgrading
|
|
677
664
|
|
|
678
665
|
```bash
|
|
679
666
|
# Update helpers and statusline (preserves your data)
|
|
680
|
-
npx
|
|
667
|
+
npx claude-flow@v3alpha init upgrade
|
|
681
668
|
|
|
682
669
|
# Update AND add any missing skills/agents/commands
|
|
683
|
-
npx
|
|
670
|
+
npx claude-flow@v3alpha init upgrade --add-missing
|
|
684
671
|
```
|
|
685
672
|
|
|
686
673
|
The `--add-missing` flag automatically detects and installs new skills, agents, and commands that were added in newer versions, without overwriting your existing customizations.
|
|
687
674
|
|
|
688
675
|
### Claude Code MCP Integration
|
|
689
676
|
|
|
690
|
-
Add
|
|
677
|
+
Add claude-flow as an MCP server for seamless integration:
|
|
691
678
|
|
|
692
679
|
```bash
|
|
693
|
-
# Add
|
|
694
|
-
claude mcp add
|
|
680
|
+
# Add claude-flow MCP server to Claude Code
|
|
681
|
+
claude mcp add claude-flow -- npx -y claude-flow@latest mcp start
|
|
695
682
|
|
|
696
683
|
# Verify installation
|
|
697
684
|
claude mcp list
|
|
698
685
|
```
|
|
699
686
|
|
|
700
|
-
Once added, Claude Code can use all 175+
|
|
687
|
+
Once added, Claude Code can use all 175+ claude-flow MCP tools directly:
|
|
701
688
|
- `swarm_init` - Initialize agent swarms
|
|
702
689
|
- `agent_spawn` - Spawn specialized agents
|
|
703
|
-
- `memory_search` - Search patterns with HNSW
|
|
690
|
+
- `memory_search` - Search patterns with HNSW (150x faster)
|
|
704
691
|
- `hooks_route` - Intelligent task routing
|
|
705
692
|
- And 170+ more tools...
|
|
706
693
|
|
|
@@ -708,13 +695,13 @@ Once added, Claude Code can use all 175+ ruflo MCP tools directly:
|
|
|
708
695
|
## What is it exactly? Agents that learn, build and work perpetually.
|
|
709
696
|
|
|
710
697
|
<details>
|
|
711
|
-
<summary>🆚 <strong>Why
|
|
698
|
+
<summary>🆚 <strong>Why Claude-Flow v3?</strong></summary>
|
|
712
699
|
|
|
713
|
-
|
|
700
|
+
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.
|
|
714
701
|
|
|
715
702
|
#### 🧠 Neural & Learning
|
|
716
703
|
|
|
717
|
-
| Feature |
|
|
704
|
+
| Feature | Claude Flow v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
718
705
|
|---------|----------------|--------|-----------|---------|-------|
|
|
719
706
|
| **Self-Learning** | ✅ SONA + EWC++ | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
720
707
|
| **Prevents Forgetting** | ✅ EWC++ consolidation | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -725,22 +712,19 @@ Ruflo v3 introduces **self-learning neural capabilities** that no other agent or
|
|
|
725
712
|
|
|
726
713
|
#### 💾 Memory & Embeddings
|
|
727
714
|
|
|
728
|
-
| Feature |
|
|
715
|
+
| Feature | Claude Flow v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
729
716
|
|---------|----------------|--------|-----------|---------|-------|
|
|
730
|
-
| **Vector Memory** | ✅ HNSW (
|
|
731
|
-
| **
|
|
732
|
-
| **Self-Learning Memory** | ✅ LearningBridge (SONA) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
733
|
-
| **Agent-Scoped Memory** | ✅ 3-scope (project/local/user) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
734
|
-
| **PostgreSQL Vector DB** | ✅ RuVector (77+ SQL functions) | ⛔ | pgvector only | ⛔ | ⛔ |
|
|
717
|
+
| **Vector Memory** | ✅ HNSW (150x faster) | ⛔ | Via plugins | ⛔ | ⛔ |
|
|
718
|
+
| **PostgreSQL Vector DB** | ✅ RuVector (77+ SQL functions, ~61µs) | ⛔ | pgvector only | ⛔ | ⛔ |
|
|
735
719
|
| **Hyperbolic Embeddings** | ✅ Poincaré ball (native + SQL) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
736
|
-
| **Quantization** | ✅ Int8 (
|
|
720
|
+
| **Quantization** | ✅ Int8 (3.92x savings) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
737
721
|
| **Persistent Memory** | ✅ SQLite + AgentDB + PostgreSQL | ⛔ | ⛔ | ⛔ | Limited |
|
|
738
722
|
| **Cross-Session Context** | ✅ Full restoration | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
739
723
|
| **GNN/Attention in SQL** | ✅ 39 attention mechanisms | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
740
724
|
|
|
741
725
|
#### 🐝 Swarm & Coordination
|
|
742
726
|
|
|
743
|
-
| Feature |
|
|
727
|
+
| Feature | Claude Flow v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
744
728
|
|---------|----------------|--------|-----------|---------|-------|
|
|
745
729
|
| **Swarm Topologies** | ✅ 4 types | 1 | 1 | 1 | 1 |
|
|
746
730
|
| **Consensus Protocols** | ✅ 5 (Raft, BFT, etc.) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -750,7 +734,7 @@ Ruflo v3 introduces **self-learning neural capabilities** that no other agent or
|
|
|
750
734
|
|
|
751
735
|
#### 🔧 Developer Experience
|
|
752
736
|
|
|
753
|
-
| Feature |
|
|
737
|
+
| Feature | Claude Flow v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
754
738
|
|---------|----------------|--------|-----------|---------|-------|
|
|
755
739
|
| **MCP Integration** | ✅ Native (170+ tools) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
756
740
|
| **Skills System** | ✅ 42+ pre-built | ⛔ | ⛔ | ⛔ | Limited |
|
|
@@ -760,41 +744,41 @@ Ruflo v3 introduces **self-learning neural capabilities** that no other agent or
|
|
|
760
744
|
|
|
761
745
|
#### 🛡️ Security & Platform
|
|
762
746
|
|
|
763
|
-
| Feature |
|
|
747
|
+
| Feature | Claude Flow v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
764
748
|
|---------|----------------|--------|-----------|---------|-------|
|
|
765
749
|
| **Threat Detection** | ✅ AIDefence (<10ms) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
766
750
|
| **Cloud Platform** | ✅ Flow Nexus | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
767
|
-
| **Code Transforms** | ✅ Agent Booster (
|
|
751
|
+
| **Code Transforms** | ✅ Agent Booster (352x) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
768
752
|
| **Input Validation** | ✅ Zod + Path security | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
769
753
|
|
|
770
|
-
<sub>*Comparison updated
|
|
754
|
+
<sub>*Comparison updated January 23, 2026*</sub>
|
|
771
755
|
|
|
772
756
|
</details>
|
|
773
757
|
|
|
774
758
|
<details>
|
|
775
759
|
<summary>🚀 <strong>Key Differentiators</strong> — Self-learning, memory optimization, fault tolerance</summary>
|
|
776
760
|
|
|
777
|
-
What makes
|
|
761
|
+
What makes Claude-Flow different from other agent frameworks? These 10 capabilities work together to create a system that learns from experience, runs efficiently on any hardware, and keeps working even when things go wrong.
|
|
778
762
|
|
|
779
763
|
| | Feature | What It Does | Technical Details |
|
|
780
764
|
|---|---------|--------------|-------------------|
|
|
781
|
-
| 🧠 | **SONA** | Learns which agents perform best for each task type and routes work accordingly | Self-Optimizing Neural Architecture |
|
|
765
|
+
| 🧠 | **SONA** | Learns which agents perform best for each task type and routes work accordingly | Self-Optimizing Neural Architecture, <0.05ms adaptation |
|
|
782
766
|
| 🔒 | **EWC++** | Preserves learned patterns when training on new ones — no forgetting | Elastic Weight Consolidation prevents catastrophic forgetting |
|
|
783
767
|
| 🎯 | **MoE** | Routes tasks through 8 specialized expert networks based on task type | Mixture of 8 Experts with dynamic gating |
|
|
784
|
-
| ⚡ | **Flash Attention** | Accelerates attention computation for faster agent responses |
|
|
785
|
-
| 🌐 | **Hyperbolic Embeddings** | Represents hierarchical code relationships in compact vector space |
|
|
786
|
-
| 📦 | **LoRA** |
|
|
787
|
-
| 🗜️ | **Int8 Quantization** | Converts 32-bit weights to 8-bit with minimal accuracy loss |
|
|
768
|
+
| ⚡ | **Flash Attention** | Accelerates attention computation 2-7x for faster agent responses | 2.49x-7.47x speedup for attention computations |
|
|
769
|
+
| 🌐 | **Hyperbolic Embeddings** | Represents hierarchical code relationships in compact vector space | Poincaré ball model for hierarchical code relationships |
|
|
770
|
+
| 📦 | **LoRA** | Compresses model weights 128x so agents fit in limited memory | 128x memory compression via Low-Rank Adaptation |
|
|
771
|
+
| 🗜️ | **Int8 Quantization** | Converts 32-bit weights to 8-bit with minimal accuracy loss | 3.92x memory reduction with calibrated 8-bit integers |
|
|
788
772
|
| 🤝 | **Claims System** | Manages task ownership between humans and agents with handoff support | Work ownership with claim/release/handoff protocols |
|
|
789
773
|
| 🛡️ | **Byzantine Consensus** | Coordinates agents even when some fail or return bad results | Fault-tolerant, handles up to 1/3 failing agents |
|
|
790
|
-
| 🐘 | **RuVector PostgreSQL** | Enterprise-grade vector database with 77+ SQL functions for AI operations |
|
|
774
|
+
| 🐘 | **RuVector PostgreSQL** | Enterprise-grade vector database with 77+ SQL functions for AI operations | ~61µs search, 16,400 QPS, GNN/attention in SQL |
|
|
791
775
|
|
|
792
776
|
</details>
|
|
793
777
|
|
|
794
778
|
<details>
|
|
795
779
|
<summary>💰 <strong>Intelligent 3-Tier Model Routing</strong> — Save 75% on API costs, extend Claude Max 2.5x</summary>
|
|
796
780
|
|
|
797
|
-
Not every task needs the most powerful (and expensive) model.
|
|
781
|
+
Not every task needs the most powerful (and expensive) model. Claude-Flow analyzes each request and automatically routes it to the cheapest handler that can do the job well. Simple code transforms skip the LLM entirely using WebAssembly. Medium tasks use faster, cheaper models. Only complex architecture decisions use Opus.
|
|
798
782
|
|
|
799
783
|
**Cost & Usage Benefits:**
|
|
800
784
|
|
|
@@ -820,7 +804,7 @@ Not every task needs the most powerful (and expensive) model. Ruflo analyzes eac
|
|
|
820
804
|
<details>
|
|
821
805
|
<summary>📋 <strong>Spec-Driven Development</strong> — Build complete specs, implement without drift</summary>
|
|
822
806
|
|
|
823
|
-
Complex projects fail when implementation drifts from the original plan.
|
|
807
|
+
Complex projects fail when implementation drifts from the original plan. Claude-Flow solves this with a spec-first approach: define your architecture through ADRs (Architecture Decision Records), organize code into DDD bounded contexts, and let the system enforce compliance as agents work. The result is implementations that match specifications — even across multi-agent swarms working in parallel.
|
|
824
808
|
|
|
825
809
|
**How It Prevents Drift:**
|
|
826
810
|
|
|
@@ -863,8 +847,6 @@ Complex projects fail when implementation drifts from the original plan. Ruflo s
|
|
|
863
847
|
- **ADR-008**: Vitest testing framework (10x faster than Jest)
|
|
864
848
|
- **ADR-009**: Hybrid Memory Backend (SQLite + HNSW)
|
|
865
849
|
- **ADR-026**: Intelligent 3-tier model routing
|
|
866
|
-
- **ADR-048**: Auto Memory Bridge (Claude Code ↔ AgentDB bidirectional sync)
|
|
867
|
-
- **ADR-049**: Self-Learning Memory with GNN (LearningBridge, MemoryGraph, AgentMemoryScope)
|
|
868
850
|
|
|
869
851
|
</details>
|
|
870
852
|
|
|
@@ -961,32 +943,28 @@ sequenceDiagram
|
|
|
961
943
|
</details>
|
|
962
944
|
|
|
963
945
|
<details>
|
|
964
|
-
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored
|
|
946
|
+
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored and retrieved</summary>
|
|
965
947
|
|
|
966
948
|
```mermaid
|
|
967
949
|
flowchart LR
|
|
968
950
|
subgraph Input["📥 Input"]
|
|
969
951
|
Query[Query/Pattern]
|
|
970
|
-
Insight[New Insight]
|
|
971
952
|
end
|
|
972
953
|
|
|
973
954
|
subgraph Processing["⚙️ Processing"]
|
|
974
955
|
Embed[ONNX Embeddings]
|
|
975
956
|
Normalize[Normalization]
|
|
976
|
-
Learn[LearningBridge<br/>SONA + ReasoningBank]
|
|
977
957
|
end
|
|
978
958
|
|
|
979
959
|
subgraph Storage["💾 Storage"]
|
|
980
960
|
HNSW[(HNSW Index<br/>150x faster)]
|
|
981
961
|
SQLite[(SQLite Cache)]
|
|
982
962
|
AgentDB[(AgentDB)]
|
|
983
|
-
Graph[MemoryGraph<br/>PageRank + Communities]
|
|
984
963
|
end
|
|
985
964
|
|
|
986
965
|
subgraph Retrieval["🔍 Retrieval"]
|
|
987
966
|
Vector[Vector Search]
|
|
988
967
|
Semantic[Semantic Match]
|
|
989
|
-
Rank[Graph-Aware Ranking]
|
|
990
968
|
Results[Top-K Results]
|
|
991
969
|
end
|
|
992
970
|
|
|
@@ -994,108 +972,11 @@ flowchart LR
|
|
|
994
972
|
Embed --> Normalize
|
|
995
973
|
Normalize --> HNSW
|
|
996
974
|
Normalize --> SQLite
|
|
997
|
-
Insight --> Learn
|
|
998
|
-
Learn --> AgentDB
|
|
999
|
-
AgentDB --> Graph
|
|
1000
975
|
HNSW --> Vector
|
|
1001
976
|
SQLite --> Vector
|
|
1002
977
|
AgentDB --> Semantic
|
|
1003
|
-
Vector -->
|
|
1004
|
-
Semantic -->
|
|
1005
|
-
Graph --> Rank
|
|
1006
|
-
Rank --> Results
|
|
1007
|
-
```
|
|
1008
|
-
|
|
1009
|
-
**Self-Learning Memory (ADR-049):**
|
|
1010
|
-
| Component | Purpose | Performance |
|
|
1011
|
-
|-----------|---------|-------------|
|
|
1012
|
-
| **LearningBridge** | Connects insights to SONA/ReasoningBank neural pipeline | 0.12 ms/insight |
|
|
1013
|
-
| **MemoryGraph** | PageRank + label propagation knowledge graph | 2.78 ms build (1k nodes) |
|
|
1014
|
-
| **AgentMemoryScope** | 3-scope agent memory (project/local/user) with cross-agent transfer | 1.25 ms transfer |
|
|
1015
|
-
| **AutoMemoryBridge** | Bidirectional sync: Claude Code auto memory files ↔ AgentDB | ADR-048 |
|
|
1016
|
-
|
|
1017
|
-
</details>
|
|
1018
|
-
|
|
1019
|
-
<details>
|
|
1020
|
-
<summary>🧠 <strong>AgentDB v3 Controllers</strong> — 20+ intelligent memory controllers</summary>
|
|
1021
|
-
|
|
1022
|
-
Ruflo V3 integrates AgentDB v3 (3.0.0-alpha.10) providing 20+ memory controllers accessible via MCP tools and the CLI.
|
|
1023
|
-
|
|
1024
|
-
**Core Memory:**
|
|
1025
|
-
|
|
1026
|
-
| Controller | MCP Tool | Description |
|
|
1027
|
-
|-----------|----------|-------------|
|
|
1028
|
-
| HierarchicalMemory | `agentdb_hierarchical-store/recall` | Working → episodic → semantic memory tiers with Ebbinghaus forgetting curves and spaced repetition |
|
|
1029
|
-
| MemoryConsolidation | `agentdb_consolidate` | Automatic clustering and merging of related memories into semantic summaries |
|
|
1030
|
-
| BatchOperations | `agentdb_batch` | Bulk insert/update/delete operations for high-throughput memory management |
|
|
1031
|
-
| ReasoningBank | `agentdb_pattern-store/search` | Pattern storage with BM25+semantic hybrid search |
|
|
1032
|
-
|
|
1033
|
-
**Intelligence:**
|
|
1034
|
-
|
|
1035
|
-
| Controller | MCP Tool | Description |
|
|
1036
|
-
|-----------|----------|-------------|
|
|
1037
|
-
| SemanticRouter | `agentdb_semantic-route` | Route tasks to agents using vector similarity instead of manual rules |
|
|
1038
|
-
| ContextSynthesizer | `agentdb_context-synthesize` | Auto-generate context summaries from memory entries |
|
|
1039
|
-
| GNNService | — | Graph neural network for intent classification and skill recommendation |
|
|
1040
|
-
| SonaTrajectoryService | — | Record and predict learning trajectories for agents |
|
|
1041
|
-
| GraphTransformerService | — | Sublinear attention, causal attention, Granger causality extraction |
|
|
1042
|
-
|
|
1043
|
-
**Causal & Explainable:**
|
|
1044
|
-
|
|
1045
|
-
| Controller | MCP Tool | Description |
|
|
1046
|
-
|-----------|----------|-------------|
|
|
1047
|
-
| CausalRecall | `agentdb_causal-edge` | Recall with causal re-ranking and utility scoring |
|
|
1048
|
-
| ExplainableRecall | — | Certificates proving *why* a memory was recalled |
|
|
1049
|
-
| CausalMemoryGraph | — | Directed causal relationships between memory entries |
|
|
1050
|
-
| MMRDiversityRanker | — | Maximal Marginal Relevance for diverse search results |
|
|
1051
|
-
|
|
1052
|
-
**Security & Integrity:**
|
|
1053
|
-
|
|
1054
|
-
| Controller | MCP Tool | Description |
|
|
1055
|
-
|-----------|----------|-------------|
|
|
1056
|
-
| GuardedVectorBackend | — | Cryptographic proof-of-work before vector insert/search |
|
|
1057
|
-
| MutationGuard | — | Token-validated mutations with cryptographic proofs |
|
|
1058
|
-
| AttestationLog | — | Immutable audit trail of all memory operations |
|
|
1059
|
-
|
|
1060
|
-
**Optimization:**
|
|
1061
|
-
|
|
1062
|
-
| Controller | MCP Tool | Description |
|
|
1063
|
-
|-----------|----------|-------------|
|
|
1064
|
-
| RVFOptimizer | — | 4-bit adaptive quantization and progressive compression |
|
|
1065
|
-
|
|
1066
|
-
**MCP Tool Examples:**
|
|
1067
|
-
```bash
|
|
1068
|
-
# Store to hierarchical memory
|
|
1069
|
-
agentdb_hierarchical-store --key "auth-pattern" --value "JWT refresh" --tier "semantic"
|
|
1070
|
-
|
|
1071
|
-
# Recall from memory tiers
|
|
1072
|
-
agentdb_hierarchical-recall --query "authentication" --topK 5
|
|
1073
|
-
|
|
1074
|
-
# Run memory consolidation
|
|
1075
|
-
agentdb_consolidate
|
|
1076
|
-
|
|
1077
|
-
# Batch insert
|
|
1078
|
-
agentdb_batch --operation insert --entries '[{"key":"k1","value":"v1"}]'
|
|
1079
|
-
|
|
1080
|
-
# Synthesize context
|
|
1081
|
-
agentdb_context-synthesize --query "error handling patterns"
|
|
1082
|
-
|
|
1083
|
-
# Semantic routing
|
|
1084
|
-
agentdb_semantic-route --input "fix auth bug in login"
|
|
1085
|
-
```
|
|
1086
|
-
|
|
1087
|
-
**Hierarchical Memory Tiers:**
|
|
1088
|
-
```
|
|
1089
|
-
┌─────────────────────────────────────────────┐
|
|
1090
|
-
│ Working Memory │ ← Active context, fast access
|
|
1091
|
-
│ Size-based eviction (1MB limit) │
|
|
1092
|
-
├─────────────────────────────────────────────┤
|
|
1093
|
-
│ Episodic Memory │ ← Recent patterns, moderate retention
|
|
1094
|
-
│ Importance × retention score ranking │
|
|
1095
|
-
├─────────────────────────────────────────────┤
|
|
1096
|
-
│ Semantic Memory │ ← Consolidated knowledge, persistent
|
|
1097
|
-
│ Promoted from episodic via consolidation │
|
|
1098
|
-
└─────────────────────────────────────────────┘
|
|
978
|
+
Vector --> Results
|
|
979
|
+
Semantic --> Results
|
|
1099
980
|
```
|
|
1100
981
|
|
|
1101
982
|
</details>
|
|
@@ -1170,18 +1051,18 @@ flowchart TB
|
|
|
1170
1051
|
|
|
1171
1052
|
## 🔌 Setup & Configuration
|
|
1172
1053
|
|
|
1173
|
-
Connect
|
|
1054
|
+
Connect Claude-Flow to your development environment.
|
|
1174
1055
|
|
|
1175
1056
|
<details>
|
|
1176
|
-
<summary>🔌 <strong>MCP Setup</strong> — Connect
|
|
1057
|
+
<summary>🔌 <strong>MCP Setup</strong> — Connect Claude-Flow to Any AI Environment</summary>
|
|
1177
1058
|
|
|
1178
|
-
|
|
1059
|
+
Claude-Flow runs as an MCP (Model Context Protocol) server, allowing you to connect it to any MCP-compatible AI client. This means you can use Claude-Flow's 60+ agents, swarm coordination, and self-learning capabilities from Claude Desktop, VS Code, Cursor, Windsurf, ChatGPT, and more.
|
|
1179
1060
|
|
|
1180
1061
|
### Quick Add Command
|
|
1181
1062
|
|
|
1182
1063
|
```bash
|
|
1183
|
-
# Start
|
|
1184
|
-
npx
|
|
1064
|
+
# Start Claude-Flow MCP server in any environment
|
|
1065
|
+
npx claude-flow@v3alpha mcp start
|
|
1185
1066
|
```
|
|
1186
1067
|
|
|
1187
1068
|
<details open>
|
|
@@ -1196,9 +1077,9 @@ npx ruflo@v3alpha mcp start
|
|
|
1196
1077
|
```json
|
|
1197
1078
|
{
|
|
1198
1079
|
"mcpServers": {
|
|
1199
|
-
"
|
|
1080
|
+
"claude-flow": {
|
|
1200
1081
|
"command": "npx",
|
|
1201
|
-
"args": ["
|
|
1082
|
+
"args": ["claude-flow@v3alpha", "mcp", "start"],
|
|
1202
1083
|
"env": {
|
|
1203
1084
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1204
1085
|
}
|
|
@@ -1218,12 +1099,12 @@ Restart Claude Desktop after saving. Look for the MCP indicator (hammer icon) in
|
|
|
1218
1099
|
|
|
1219
1100
|
```bash
|
|
1220
1101
|
# Add via CLI (recommended)
|
|
1221
|
-
claude mcp add
|
|
1102
|
+
claude mcp add claude-flow -- npx claude-flow@v3alpha mcp start
|
|
1222
1103
|
|
|
1223
1104
|
# Or add with environment variables
|
|
1224
|
-
claude mcp add
|
|
1105
|
+
claude mcp add claude-flow \
|
|
1225
1106
|
--env ANTHROPIC_API_KEY=sk-ant-... \
|
|
1226
|
-
-- npx
|
|
1107
|
+
-- npx claude-flow@v3alpha mcp start
|
|
1227
1108
|
|
|
1228
1109
|
# Verify installation
|
|
1229
1110
|
claude mcp list
|
|
@@ -1250,9 +1131,9 @@ Create `.vscode/mcp.json` in your project:
|
|
|
1250
1131
|
```json
|
|
1251
1132
|
{
|
|
1252
1133
|
"mcpServers": {
|
|
1253
|
-
"
|
|
1134
|
+
"claude-flow": {
|
|
1254
1135
|
"command": "npx",
|
|
1255
|
-
"args": ["
|
|
1136
|
+
"args": ["claude-flow@v3alpha", "mcp", "start"],
|
|
1256
1137
|
"env": {
|
|
1257
1138
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1258
1139
|
}
|
|
@@ -1277,9 +1158,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1277
1158
|
```json
|
|
1278
1159
|
{
|
|
1279
1160
|
"mcpServers": {
|
|
1280
|
-
"
|
|
1161
|
+
"claude-flow": {
|
|
1281
1162
|
"command": "npx",
|
|
1282
|
-
"args": ["
|
|
1163
|
+
"args": ["claude-flow@v3alpha", "mcp", "start"],
|
|
1283
1164
|
"env": {
|
|
1284
1165
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1285
1166
|
}
|
|
@@ -1304,9 +1185,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1304
1185
|
```json
|
|
1305
1186
|
{
|
|
1306
1187
|
"mcpServers": {
|
|
1307
|
-
"
|
|
1188
|
+
"claude-flow": {
|
|
1308
1189
|
"command": "npx",
|
|
1309
|
-
"args": ["
|
|
1190
|
+
"args": ["claude-flow@v3alpha", "mcp", "start"],
|
|
1310
1191
|
"env": {
|
|
1311
1192
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1312
1193
|
}
|
|
@@ -1333,11 +1214,11 @@ Click **Refresh** in the MCP settings to connect. Windsurf supports up to 100 MC
|
|
|
1333
1214
|
|
|
1334
1215
|
**Remote Server Setup:**
|
|
1335
1216
|
|
|
1336
|
-
For ChatGPT, you need a remote MCP server (not local stdio). Deploy
|
|
1217
|
+
For ChatGPT, you need a remote MCP server (not local stdio). Deploy claude-flow to a server with HTTP transport:
|
|
1337
1218
|
|
|
1338
1219
|
```bash
|
|
1339
1220
|
# Start with HTTP transport
|
|
1340
|
-
npx
|
|
1221
|
+
npx claude-flow@v3alpha mcp start --transport http --port 3000
|
|
1341
1222
|
```
|
|
1342
1223
|
|
|
1343
1224
|
Then add the server URL in ChatGPT Connectors settings.
|
|
@@ -1353,7 +1234,7 @@ Google AI Studio supports MCP natively since May 2025, with managed MCP servers
|
|
|
1353
1234
|
|
|
1354
1235
|
**Using MCP SuperAssistant Extension:**
|
|
1355
1236
|
1. Install [MCP SuperAssistant](https://chrome.google.com/webstore) Chrome extension
|
|
1356
|
-
2. Configure your
|
|
1237
|
+
2. Configure your claude-flow MCP server
|
|
1357
1238
|
3. Use with Google AI Studio, Gemini, and other AI platforms
|
|
1358
1239
|
|
|
1359
1240
|
**Native SDK Integration:**
|
|
@@ -1366,9 +1247,9 @@ const ai = new GoogleGenAI({ apiKey: 'YOUR_API_KEY' });
|
|
|
1366
1247
|
// MCP definitions are natively supported in the Gen AI SDK
|
|
1367
1248
|
const mcpConfig = {
|
|
1368
1249
|
servers: [{
|
|
1369
|
-
name: '
|
|
1250
|
+
name: 'claude-flow',
|
|
1370
1251
|
command: 'npx',
|
|
1371
|
-
args: ['
|
|
1252
|
+
args: ['claude-flow@v3alpha', 'mcp', 'start']
|
|
1372
1253
|
}]
|
|
1373
1254
|
};
|
|
1374
1255
|
```
|
|
@@ -1389,9 +1270,9 @@ JetBrains AI Assistant supports MCP for IntelliJ IDEA, PyCharm, WebStorm, and ot
|
|
|
1389
1270
|
|
|
1390
1271
|
```json
|
|
1391
1272
|
{
|
|
1392
|
-
"name": "
|
|
1273
|
+
"name": "claude-flow",
|
|
1393
1274
|
"command": "npx",
|
|
1394
|
-
"args": ["
|
|
1275
|
+
"args": ["claude-flow@v3alpha", "mcp", "start"]
|
|
1395
1276
|
}
|
|
1396
1277
|
```
|
|
1397
1278
|
|
|
@@ -1621,16 +1502,16 @@ The Hive Mind system implements queen-led hierarchical coordination where strate
|
|
|
1621
1502
|
|
|
1622
1503
|
**CLI Commands:**
|
|
1623
1504
|
```bash
|
|
1624
|
-
npx
|
|
1625
|
-
npx
|
|
1626
|
-
npx
|
|
1627
|
-
npx
|
|
1628
|
-
npx
|
|
1629
|
-
npx
|
|
1630
|
-
npx
|
|
1505
|
+
npx claude-flow hive-mind init # Initialize hive mind
|
|
1506
|
+
npx claude-flow hive-mind spawn "Build API" # Spawn with objective
|
|
1507
|
+
npx claude-flow hive-mind spawn "..." --queen-type strategic --consensus byzantine
|
|
1508
|
+
npx claude-flow hive-mind status # Check status
|
|
1509
|
+
npx claude-flow hive-mind metrics # Performance metrics
|
|
1510
|
+
npx claude-flow hive-mind memory # Collective memory stats
|
|
1511
|
+
npx claude-flow hive-mind sessions # List active sessions
|
|
1631
1512
|
```
|
|
1632
1513
|
|
|
1633
|
-
**Performance:**
|
|
1514
|
+
**Performance:** 10-20x faster batch spawning, 2.8-4.4x speed improvement, 84.8% SWE-Bench solve rate
|
|
1634
1515
|
|
|
1635
1516
|
</details>
|
|
1636
1517
|
|
|
@@ -1641,8 +1522,8 @@ Native integration with Claude Code's experimental Agent Teams feature for spawn
|
|
|
1641
1522
|
|
|
1642
1523
|
**Enable Agent Teams:**
|
|
1643
1524
|
```bash
|
|
1644
|
-
# Automatically enabled with
|
|
1645
|
-
npx
|
|
1525
|
+
# Automatically enabled with claude-flow init
|
|
1526
|
+
npx claude-flow@latest init
|
|
1646
1527
|
|
|
1647
1528
|
# Or manually add to .claude/settings.json
|
|
1648
1529
|
{
|
|
@@ -1694,10 +1575,10 @@ TeamDelete()
|
|
|
1694
1575
|
|
|
1695
1576
|
```bash
|
|
1696
1577
|
# Handle idle teammate
|
|
1697
|
-
npx
|
|
1578
|
+
npx claude-flow@latest hooks teammate-idle --auto-assign true
|
|
1698
1579
|
|
|
1699
1580
|
# Handle task completion
|
|
1700
|
-
npx
|
|
1581
|
+
npx claude-flow@latest hooks task-completed --task-id <id> --train-patterns
|
|
1701
1582
|
```
|
|
1702
1583
|
|
|
1703
1584
|
**Display Modes:** `auto` (default), `in-process`, `tmux` (split-pane)
|
|
@@ -1774,14 +1655,14 @@ Build custom plugins with the fluent builder API. Create MCP tools, hooks, worke
|
|
|
1774
1655
|
|
|
1775
1656
|
### 📦 Available Optional Plugins
|
|
1776
1657
|
|
|
1777
|
-
Install these optional plugins to extend
|
|
1658
|
+
Install these optional plugins to extend Claude Flow capabilities:
|
|
1778
1659
|
|
|
1779
1660
|
| Plugin | Version | Description | Install Command |
|
|
1780
1661
|
|--------|---------|-------------|-----------------|
|
|
1781
1662
|
| **@claude-flow/plugin-agentic-qe** | 3.0.0-alpha.2 | Quality Engineering with 58 AI agents across 12 DDD contexts. TDD, coverage analysis, security scanning, chaos engineering, accessibility testing. | `npm install @claude-flow/plugin-agentic-qe` |
|
|
1782
1663
|
| **@claude-flow/plugin-prime-radiant** | 0.1.4 | Mathematical AI interpretability with 6 engines: sheaf cohomology, spectral analysis, causal inference, quantum topology, category theory, HoTT proofs. | `npm install @claude-flow/plugin-prime-radiant` |
|
|
1783
|
-
| **@claude-flow/plugin-gastown-bridge** | 0.1.0 | Gas Town orchestrator integration with WASM-accelerated formula parsing (352x faster), Beads sync, convoy management, and graph analysis. 20 MCP tools. | `npx
|
|
1784
|
-
| **@claude-flow/teammate-plugin** | 1.0.0-alpha.1 | Native TeammateTool integration for Claude Code v2.1.19+. BMSSP WASM acceleration, rate limiting, circuit breaker, semantic routing. 21 MCP tools. | `npx
|
|
1664
|
+
| **@claude-flow/plugin-gastown-bridge** | 0.1.0 | Gas Town orchestrator integration with WASM-accelerated formula parsing (352x faster), Beads sync, convoy management, and graph analysis. 20 MCP tools. | `npx claude-flow@latest plugins install -n @claude-flow/plugin-gastown-bridge` |
|
|
1665
|
+
| **@claude-flow/teammate-plugin** | 1.0.0-alpha.1 | Native TeammateTool integration for Claude Code v2.1.19+. BMSSP WASM acceleration, rate limiting, circuit breaker, semantic routing. 21 MCP tools. | `npx claude-flow@latest plugins install -n @claude-flow/teammate-plugin` |
|
|
1785
1666
|
|
|
1786
1667
|
#### 🏥 Domain-Specific Plugins
|
|
1787
1668
|
|
|
@@ -1851,7 +1732,7 @@ npm install @claude-flow/plugin-agentic-qe
|
|
|
1851
1732
|
npm install @claude-flow/plugin-prime-radiant
|
|
1852
1733
|
|
|
1853
1734
|
# Install Gas Town Bridge plugin (WASM-accelerated orchestration)
|
|
1854
|
-
npx
|
|
1735
|
+
npx claude-flow@latest plugins install -n @claude-flow/plugin-gastown-bridge
|
|
1855
1736
|
|
|
1856
1737
|
# Install domain-specific plugins
|
|
1857
1738
|
npm install @claude-flow/plugin-healthcare-clinical
|
|
@@ -1870,7 +1751,7 @@ npm install @claude-flow/plugin-quantum-optimizer
|
|
|
1870
1751
|
npm install @claude-flow/plugin-hyperbolic-reasoning
|
|
1871
1752
|
|
|
1872
1753
|
# List all installed plugins
|
|
1873
|
-
npx
|
|
1754
|
+
npx claude-flow plugins list --installed
|
|
1874
1755
|
```
|
|
1875
1756
|
|
|
1876
1757
|
</details>
|
|
@@ -2039,8 +1920,8 @@ Workers run automatically based on context, or dispatch manually via MCP tools.
|
|
|
2039
1920
|
| **TestGaps** | `testgaps` | Test coverage analysis | Code changes without tests |
|
|
2040
1921
|
|
|
2041
1922
|
```bash
|
|
2042
|
-
npx
|
|
2043
|
-
npx
|
|
1923
|
+
npx claude-flow@v3alpha worker dispatch --trigger audit --context "./src"
|
|
1924
|
+
npx claude-flow@v3alpha worker status
|
|
2044
1925
|
```
|
|
2045
1926
|
|
|
2046
1927
|
</details>
|
|
@@ -2048,14 +1929,14 @@ npx ruflo@v3alpha worker status
|
|
|
2048
1929
|
<details>
|
|
2049
1930
|
<summary>☁️ <strong>LLM Providers</strong> — 6 providers with automatic failover</summary>
|
|
2050
1931
|
|
|
2051
|
-
| Provider | Models | Features | Cost |
|
|
1932
|
+
| Provider | Models (2025-2026) | Features | Cost |
|
|
2052
1933
|
|----------|--------|----------|------|
|
|
2053
|
-
| **Anthropic** | Claude Opus 4, Claude Sonnet 4, Claude Haiku
|
|
2054
|
-
| **OpenAI** | GPT-
|
|
2055
|
-
| **Google** | Gemini
|
|
2056
|
-
| **xAI** | Grok
|
|
2057
|
-
| **Mistral** | Mistral Large
|
|
2058
|
-
| **Meta/Ollama** | Llama
|
|
1934
|
+
| **Anthropic** | Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5 | Native, streaming, tool calling, extended thinking | $1-25/1M tokens |
|
|
1935
|
+
| **OpenAI** | GPT-5.2, o3, o3-pro, o4-mini | 400K context, reasoning chains, 100% AIME 2025 | $0.15-60/1M tokens |
|
|
1936
|
+
| **Google** | Gemini 3 Pro, Gemini 3 Flash, Gemini 3 Deep Think | 1M+ context, multimodal, Deep Think reasoning | $0.075-7/1M tokens |
|
|
1937
|
+
| **xAI** | Grok 4.1, Grok 3 | Truth-seeking, real-time data, 200K H100 training | $2-10/1M tokens |
|
|
1938
|
+
| **Mistral** | Mistral Large 3 (675B MoE), Codestral | 92% GPT-5.2 performance at 15% cost | $0.50-8/1M tokens |
|
|
1939
|
+
| **Meta/Ollama** | Llama 4 Scout/Maverick, DeepSeek V3, Qwen 3 | Local, free, up to 10M context (Scout) | Free |
|
|
2059
1940
|
|
|
2060
1941
|
<details>
|
|
2061
1942
|
<summary>⚖️ <strong>Provider Load Balancing</strong> — 4 strategies for optimal cost and performance</summary>
|
|
@@ -2264,7 +2145,7 @@ npx ruflo@v3alpha worker status
|
|
|
2264
2145
|
| Feature | Description | Performance |
|
|
2265
2146
|
|---------|-------------|-------------|
|
|
2266
2147
|
| **Multi-Provider** | Agentic-Flow (ONNX), OpenAI, Transformers.js, Mock | 4 providers |
|
|
2267
|
-
| **Auto-Install** | `
|
|
2148
|
+
| **Auto-Install** | `claude-flow embeddings init` or `createEmbeddingServiceAsync()` | Zero config |
|
|
2268
2149
|
| **75x Faster** | Agentic-flow ONNX SIMD vs Transformers.js | 3ms vs 230ms |
|
|
2269
2150
|
| **Hyperbolic Space** | Poincaré ball model for hierarchical data | Exponential capacity |
|
|
2270
2151
|
| **Dimensions** | 384 to 3072 configurable | Quality vs speed tradeoff |
|
|
@@ -2274,13 +2155,13 @@ npx ruflo@v3alpha worker status
|
|
|
2274
2155
|
|
|
2275
2156
|
```bash
|
|
2276
2157
|
# Initialize ONNX embeddings with hyperbolic config
|
|
2277
|
-
|
|
2158
|
+
claude-flow embeddings init
|
|
2278
2159
|
|
|
2279
2160
|
# Use larger model for higher quality
|
|
2280
|
-
|
|
2161
|
+
claude-flow embeddings init --model all-mpnet-base-v2
|
|
2281
2162
|
|
|
2282
2163
|
# Semantic search
|
|
2283
|
-
|
|
2164
|
+
claude-flow embeddings search -q "authentication patterns"
|
|
2284
2165
|
```
|
|
2285
2166
|
|
|
2286
2167
|
| Mode | Adaptation | Quality | Memory | Use Case |
|
|
@@ -2317,22 +2198,22 @@ ruflo embeddings search -q "authentication patterns"
|
|
|
2317
2198
|
|
|
2318
2199
|
```bash
|
|
2319
2200
|
# Initialize RuVector in PostgreSQL
|
|
2320
|
-
|
|
2201
|
+
claude-flow ruvector init --database mydb --user admin
|
|
2321
2202
|
|
|
2322
2203
|
# Check connection and schema status
|
|
2323
|
-
|
|
2204
|
+
claude-flow ruvector status --verbose
|
|
2324
2205
|
|
|
2325
2206
|
# Run pending migrations
|
|
2326
|
-
|
|
2207
|
+
claude-flow ruvector migrate --up
|
|
2327
2208
|
|
|
2328
2209
|
# Performance benchmark
|
|
2329
|
-
|
|
2210
|
+
claude-flow ruvector benchmark --iterations 1000
|
|
2330
2211
|
|
|
2331
2212
|
# Optimize indices and vacuum
|
|
2332
|
-
|
|
2213
|
+
claude-flow ruvector optimize --analyze
|
|
2333
2214
|
|
|
2334
2215
|
# Backup vector data
|
|
2335
|
-
|
|
2216
|
+
claude-flow ruvector backup --output ./backup.sql
|
|
2336
2217
|
```
|
|
2337
2218
|
|
|
2338
2219
|
| Migration | Purpose | Features |
|
|
@@ -2364,15 +2245,15 @@ ruflo ruvector backup --output ./backup.sql
|
|
|
2364
2245
|
|
|
2365
2246
|
**Quick Commands:**
|
|
2366
2247
|
```bash
|
|
2367
|
-
npx
|
|
2368
|
-
npx
|
|
2369
|
-
npx
|
|
2370
|
-
npx
|
|
2248
|
+
npx claude-flow hive-mind init # Initialize
|
|
2249
|
+
npx claude-flow hive-mind spawn "Build API" --queen-type tactical # Spawn swarm
|
|
2250
|
+
npx claude-flow hive-mind spawn "Research AI" --consensus byzantine --claude
|
|
2251
|
+
npx claude-flow hive-mind status # Check status
|
|
2371
2252
|
```
|
|
2372
2253
|
|
|
2373
|
-
**
|
|
2254
|
+
**Claude-Flow Skill:** `/hive-mind-advanced` — Full hive mind orchestration
|
|
2374
2255
|
|
|
2375
|
-
**Performance:**
|
|
2256
|
+
**Performance:** 10-20x faster batch spawning, 84.8% SWE-Bench solve rate, 32.3% token reduction
|
|
2376
2257
|
|
|
2377
2258
|
</details>
|
|
2378
2259
|
|
|
@@ -2478,83 +2359,85 @@ npx ruflo hive-mind status # Check status
|
|
|
2478
2359
|
<details>
|
|
2479
2360
|
<summary>📊 <strong>V3 Statusline</strong> — Real-time development status for Claude Code</summary>
|
|
2480
2361
|
|
|
2481
|
-
Real-time development status display
|
|
2482
|
-
|
|
2483
|
-
**How It Works:**
|
|
2484
|
-
|
|
2485
|
-
Claude Code pipes JSON session data via **stdin** to the statusline script after each assistant message (debounced ~300ms). The script reads this data and combines it with local project metrics to produce a single-line status output.
|
|
2362
|
+
Real-time development status display for Claude Code integration showing DDD progress, swarm activity, security status, and system metrics.
|
|
2486
2363
|
|
|
2487
2364
|
**Output Format:**
|
|
2488
2365
|
```
|
|
2489
|
-
▊
|
|
2490
|
-
|
|
2366
|
+
▊ Claude Flow V3 ● ruvnet │ ⎇ v3 │ Opus 4.5
|
|
2367
|
+
─────────────────────────────────────────────────────
|
|
2368
|
+
🏗️ DDD Domains [●●●●●] 5/5 ⚡ 1.0x → 2.49x-7.47x
|
|
2369
|
+
🤖 Swarm ◉ [58/15] 👥 0 🟢 CVE 3/3 💾 22282MB 📂 47% 🧠 10%
|
|
2370
|
+
🔧 Architecture DDD ● 98% │ Security ●CLEAN │ Memory ●AgentDB │ Integration ●
|
|
2491
2371
|
```
|
|
2492
2372
|
|
|
2493
|
-
| Indicator | Description |
|
|
2373
|
+
| Indicator | Description | Values |
|
|
2494
2374
|
|-----------|-------------|--------|
|
|
2495
|
-
| `▊
|
|
2496
|
-
| `● ruvnet` | GitHub user
|
|
2497
|
-
| `⎇
|
|
2498
|
-
| `Opus 4.
|
|
2499
|
-
|
|
|
2500
|
-
|
|
|
2501
|
-
|
|
|
2502
|
-
|
|
|
2503
|
-
|
|
|
2504
|
-
|
|
|
2505
|
-
|
|
|
2506
|
-
|
|
|
2507
|
-
|
|
|
2508
|
-
|
|
|
2509
|
-
|
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
Run `npx ruflo@latest init` — this generates `.claude/settings.json` with the correct statusline config and creates the helper script at `.claude/helpers/statusline.cjs`.
|
|
2514
|
-
|
|
2515
|
-
The generated config uses a **fast local script** (no `npx` cold-start):
|
|
2516
|
-
```json
|
|
2517
|
-
{
|
|
2518
|
-
"statusLine": {
|
|
2519
|
-
"type": "command",
|
|
2520
|
-
"command": "node .claude/helpers/statusline.cjs"
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
```
|
|
2375
|
+
| `▊ Claude Flow V3` | Project header | Always shown |
|
|
2376
|
+
| `● ruvnet` | GitHub user (via `gh` CLI) | Dynamic |
|
|
2377
|
+
| `⎇ v3` | Current git branch | Dynamic |
|
|
2378
|
+
| `Opus 4.5` | Claude model name | From Claude Code |
|
|
2379
|
+
| `[●●●●●]` | DDD domain progress bar | 0-5 domains |
|
|
2380
|
+
| `⚡ 1.0x → 2.49x-7.47x` | Performance speedup target | Current → Target |
|
|
2381
|
+
| `◉/○` | Swarm coordination status | Active/Inactive |
|
|
2382
|
+
| `[58/15]` | Active agents / max agents | Process count |
|
|
2383
|
+
| `👥 0` | Sub-agents spawned | Task tool agents |
|
|
2384
|
+
| `🟢 CVE 3/3` | Security CVE remediation | Fixed/Total |
|
|
2385
|
+
| `💾 22282MB` | Memory usage (Node.js processes) | Real-time |
|
|
2386
|
+
| `📂 47%` | Context window usage | From Claude Code |
|
|
2387
|
+
| `🧠 10%` | Intelligence score (patterns learned) | 0-100% |
|
|
2388
|
+
| `DDD ● 98%` | Domain-Driven Design progress | Percentage |
|
|
2389
|
+
| `Security ●CLEAN` | Security audit status | CLEAN/PENDING/FAILED |
|
|
2390
|
+
| `Memory ●AgentDB` | Memory backend in use | AgentDB/SQLite/Hybrid |
|
|
2391
|
+
| `Integration ●` | agentic-flow integration status | Active/Inactive |
|
|
2524
2392
|
|
|
2525
|
-
|
|
2393
|
+
**Usage:**
|
|
2394
|
+
```bash
|
|
2395
|
+
# Default: Safe multi-line (avoids Claude Code collision zone)
|
|
2396
|
+
npx claude-flow@v3alpha hooks statusline
|
|
2526
2397
|
|
|
2527
|
-
|
|
2398
|
+
# Single-line mode (completely avoids collision)
|
|
2399
|
+
npx claude-flow@v3alpha hooks statusline --single
|
|
2528
2400
|
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2401
|
+
# Legacy multi-line (original behavior, may have bleeding)
|
|
2402
|
+
npx claude-flow@v3alpha hooks statusline --legacy
|
|
2403
|
+
|
|
2404
|
+
# JSON output for scripting
|
|
2405
|
+
npx claude-flow@v3alpha hooks statusline --json
|
|
2406
|
+
|
|
2407
|
+
# Compact JSON (single line)
|
|
2408
|
+
npx claude-flow@v3alpha hooks statusline --compact
|
|
2532
2409
|
```
|
|
2533
2410
|
|
|
2534
|
-
|
|
2411
|
+
**Collision Zone Fix (Issue #985):**
|
|
2535
2412
|
|
|
2536
|
-
|
|
2413
|
+
Claude Code writes internal status (e.g., `7s • 1p`) at absolute terminal coordinates (columns 15-25 on the second-to-last line). The safe mode pads the collision line with spaces to push content past column 25, preventing character bleeding.
|
|
2414
|
+
|
|
2415
|
+
| Option | Description |
|
|
2416
|
+
|--------|-------------|
|
|
2417
|
+
| (default) | Safe multi-line with collision zone avoidance |
|
|
2418
|
+
| `--single` | Single-line output (complete collision avoidance) |
|
|
2419
|
+
| `--legacy` | Original multi-line (may cause bleeding) |
|
|
2420
|
+
| `--json` | JSON output with pretty printing |
|
|
2421
|
+
| `--compact` | JSON output without formatting |
|
|
2537
2422
|
|
|
2538
|
-
Claude Code
|
|
2423
|
+
**Claude Code Integration:**
|
|
2424
|
+
|
|
2425
|
+
Add to `.claude/settings.json`:
|
|
2539
2426
|
```json
|
|
2540
2427
|
{
|
|
2541
|
-
"
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
"session_id": "abc-123"
|
|
2428
|
+
"statusLine": {
|
|
2429
|
+
"type": "command",
|
|
2430
|
+
"command": "npx claude-flow@v3alpha hooks statusline --single"
|
|
2431
|
+
}
|
|
2546
2432
|
}
|
|
2547
2433
|
```
|
|
2548
2434
|
|
|
2549
|
-
The statusline script reads stdin synchronously, falls back to local detection when run manually (TTY mode).
|
|
2550
|
-
|
|
2551
2435
|
**Data Sources:**
|
|
2552
|
-
-
|
|
2553
|
-
- `.claude-flow/metrics/
|
|
2554
|
-
- `.claude-flow/
|
|
2555
|
-
- `.claude-flow/
|
|
2556
|
-
-
|
|
2557
|
-
- Process detection via `ps aux` — Real-time memory and agent counts
|
|
2436
|
+
- `.claude-flow/metrics/v3-progress.json` - DDD domain progress
|
|
2437
|
+
- `.claude-flow/metrics/swarm-activity.json` - Active agent counts
|
|
2438
|
+
- `.claude-flow/security/audit-status.json` - CVE remediation status
|
|
2439
|
+
- `.claude-flow/learning/patterns.db` - Intelligence score (pattern count)
|
|
2440
|
+
- Process detection via `ps aux` - Real-time memory and agent counts
|
|
2558
2441
|
- Git branch via `git branch --show-current`
|
|
2559
2442
|
- GitHub user via `gh api user`
|
|
2560
2443
|
|
|
@@ -2578,19 +2461,19 @@ Cross-platform TypeScript-based daemon service with auto-scheduling:
|
|
|
2578
2461
|
**Commands:**
|
|
2579
2462
|
```bash
|
|
2580
2463
|
# Start daemon (auto-runs on SessionStart hooks)
|
|
2581
|
-
npx
|
|
2464
|
+
npx claude-flow@v3alpha daemon start
|
|
2582
2465
|
|
|
2583
2466
|
# Check status with worker history
|
|
2584
|
-
npx
|
|
2467
|
+
npx claude-flow@v3alpha daemon status
|
|
2585
2468
|
|
|
2586
2469
|
# Manually trigger a worker
|
|
2587
|
-
npx
|
|
2470
|
+
npx claude-flow@v3alpha daemon trigger map
|
|
2588
2471
|
|
|
2589
2472
|
# Enable/disable workers
|
|
2590
|
-
npx
|
|
2473
|
+
npx claude-flow@v3alpha daemon enable map audit optimize
|
|
2591
2474
|
|
|
2592
2475
|
# Stop daemon
|
|
2593
|
-
npx
|
|
2476
|
+
npx claude-flow@v3alpha daemon stop
|
|
2594
2477
|
```
|
|
2595
2478
|
|
|
2596
2479
|
**Daemon Status Output:**
|
|
@@ -2664,7 +2547,7 @@ Shell-based daemons for monitoring (Linux/macOS only):
|
|
|
2664
2547
|
<details>
|
|
2665
2548
|
<summary>⌨️ <strong>V3 CLI Commands</strong> — 26 commands with 140+ subcommands</summary>
|
|
2666
2549
|
|
|
2667
|
-
Complete command-line interface for all
|
|
2550
|
+
Complete command-line interface for all Claude-Flow operations.
|
|
2668
2551
|
|
|
2669
2552
|
**Core Commands:**
|
|
2670
2553
|
|
|
@@ -2706,25 +2589,25 @@ Complete command-line interface for all Ruflo operations.
|
|
|
2706
2589
|
|
|
2707
2590
|
```bash
|
|
2708
2591
|
# Initialize project with wizard
|
|
2709
|
-
npx
|
|
2592
|
+
npx claude-flow@v3alpha init --wizard
|
|
2710
2593
|
|
|
2711
2594
|
# Start daemon with background workers
|
|
2712
|
-
npx
|
|
2595
|
+
npx claude-flow@v3alpha daemon start
|
|
2713
2596
|
|
|
2714
2597
|
# Spawn an agent with specific type
|
|
2715
|
-
npx
|
|
2598
|
+
npx claude-flow@v3alpha agent spawn -t coder --name my-coder
|
|
2716
2599
|
|
|
2717
2600
|
# Initialize swarm with V3 mode
|
|
2718
|
-
npx
|
|
2601
|
+
npx claude-flow@v3alpha swarm init --v3-mode
|
|
2719
2602
|
|
|
2720
2603
|
# Search memory (HNSW-indexed, 150x faster)
|
|
2721
|
-
npx
|
|
2604
|
+
npx claude-flow@v3alpha memory search -q "authentication patterns"
|
|
2722
2605
|
|
|
2723
2606
|
# Run security scan
|
|
2724
|
-
npx
|
|
2607
|
+
npx claude-flow@v3alpha security scan --depth full
|
|
2725
2608
|
|
|
2726
2609
|
# Performance benchmark
|
|
2727
|
-
npx
|
|
2610
|
+
npx claude-flow@v3alpha performance benchmark --suite all
|
|
2728
2611
|
```
|
|
2729
2612
|
|
|
2730
2613
|
</details>
|
|
@@ -2732,7 +2615,7 @@ npx ruflo@v3alpha performance benchmark --suite all
|
|
|
2732
2615
|
<details>
|
|
2733
2616
|
<summary>🩺 <strong>Doctor Health Checks</strong> — System diagnostics with auto-fix</summary>
|
|
2734
2617
|
|
|
2735
|
-
Run `npx
|
|
2618
|
+
Run `npx claude-flow@v3alpha doctor` to diagnose and fix common issues.
|
|
2736
2619
|
|
|
2737
2620
|
**Health Checks Performed:**
|
|
2738
2621
|
|
|
@@ -2753,22 +2636,22 @@ Run `npx ruflo@v3alpha doctor` to diagnose and fix common issues.
|
|
|
2753
2636
|
|
|
2754
2637
|
```bash
|
|
2755
2638
|
# Run full diagnostics
|
|
2756
|
-
npx
|
|
2639
|
+
npx claude-flow@v3alpha doctor
|
|
2757
2640
|
|
|
2758
2641
|
# Run diagnostics with auto-fix
|
|
2759
|
-
npx
|
|
2642
|
+
npx claude-flow@v3alpha doctor --fix
|
|
2760
2643
|
|
|
2761
2644
|
# Check specific component
|
|
2762
|
-
npx
|
|
2645
|
+
npx claude-flow@v3alpha doctor --component memory
|
|
2763
2646
|
|
|
2764
2647
|
# Verbose output
|
|
2765
|
-
npx
|
|
2648
|
+
npx claude-flow@v3alpha doctor --verbose
|
|
2766
2649
|
```
|
|
2767
2650
|
|
|
2768
2651
|
**Output Example:**
|
|
2769
2652
|
|
|
2770
2653
|
```
|
|
2771
|
-
🩺
|
|
2654
|
+
🩺 Claude-Flow Doctor v3.0.0-alpha
|
|
2772
2655
|
|
|
2773
2656
|
✅ Node.js 20.11.0 (required: 20+)
|
|
2774
2657
|
✅ npm 10.2.4 (required: 9+)
|
|
@@ -2812,16 +2695,16 @@ The embeddings package (v3.0.0-alpha.12) provides high-performance vector embedd
|
|
|
2812
2695
|
|
|
2813
2696
|
```bash
|
|
2814
2697
|
# Initialize embeddings system
|
|
2815
|
-
npx
|
|
2698
|
+
npx claude-flow@v3alpha embeddings init
|
|
2816
2699
|
|
|
2817
2700
|
# Generate embedding for text
|
|
2818
|
-
npx
|
|
2701
|
+
npx claude-flow@v3alpha embeddings embed "authentication patterns"
|
|
2819
2702
|
|
|
2820
2703
|
# Batch embed multiple texts
|
|
2821
|
-
npx
|
|
2704
|
+
npx claude-flow@v3alpha embeddings batch --file texts.txt
|
|
2822
2705
|
|
|
2823
2706
|
# Search with semantic similarity
|
|
2824
|
-
npx
|
|
2707
|
+
npx claude-flow@v3alpha embeddings search "login flow" --top-k 5
|
|
2825
2708
|
```
|
|
2826
2709
|
|
|
2827
2710
|
**Programmatic:**
|
|
@@ -2858,303 +2741,59 @@ Real-world scenarios and pre-built workflows for common tasks.
|
|
|
2858
2741
|
|
|
2859
2742
|
| Scenario | What It Solves | How To Do It |
|
|
2860
2743
|
|----------|----------------|--------------|
|
|
2861
|
-
| **Code Review** | Get thorough reviews with security, performance, and style checks | `npx
|
|
2862
|
-
| **Test Generation** | Auto-generate unit, integration, and e2e tests for existing code | `npx
|
|
2863
|
-
| **Refactoring** | Safely restructure code while maintaining behavior | `npx
|
|
2864
|
-
| **Bug Fixing** | Diagnose and fix bugs with full context analysis | `npx
|
|
2744
|
+
| **Code Review** | Get thorough reviews with security, performance, and style checks | `npx claude-flow@v3alpha --agent reviewer --task "Review PR #123"` |
|
|
2745
|
+
| **Test Generation** | Auto-generate unit, integration, and e2e tests for existing code | `npx claude-flow@v3alpha --agent tester --task "Write tests for auth module"` |
|
|
2746
|
+
| **Refactoring** | Safely restructure code while maintaining behavior | `npx claude-flow@v3alpha --agent coder --task "Refactor user service to use repository pattern"` |
|
|
2747
|
+
| **Bug Fixing** | Diagnose and fix bugs with full context analysis | `npx claude-flow@v3alpha --agent coder --task "Fix race condition in checkout flow"` |
|
|
2865
2748
|
|
|
2866
2749
|
### 🔒 Security & Compliance
|
|
2867
2750
|
|
|
2868
2751
|
| Scenario | What It Solves | How To Do It |
|
|
2869
2752
|
|----------|----------------|--------------|
|
|
2870
|
-
| **Security Audit** | Find vulnerabilities before attackers do | `npx
|
|
2871
|
-
| **Dependency Scan** | Identify vulnerable packages and suggest upgrades | `npx
|
|
2872
|
-
| **Compliance Check** | Ensure code meets security standards | `npx
|
|
2753
|
+
| **Security Audit** | Find vulnerabilities before attackers do | `npx claude-flow@v3alpha --agent security-architect --task "Audit for OWASP Top 10"` |
|
|
2754
|
+
| **Dependency Scan** | Identify vulnerable packages and suggest upgrades | `npx claude-flow@v3alpha security scan --depth full` |
|
|
2755
|
+
| **Compliance Check** | Ensure code meets security standards | `npx claude-flow@v3alpha --agent security-architect --task "Check PCI-DSS compliance"` |
|
|
2873
2756
|
|
|
2874
2757
|
### 🐝 Multi-Agent Swarms
|
|
2875
2758
|
|
|
2876
2759
|
| Scenario | What It Solves | How To Do It |
|
|
2877
2760
|
|----------|----------------|--------------|
|
|
2878
|
-
| **Feature Development** | Coordinate multiple agents on complex features | `npx
|
|
2879
|
-
| **Large Refactors** | Parallel refactoring across many files without conflicts | `npx
|
|
2880
|
-
| **Codebase Migration** | Migrate frameworks, languages, or patterns systematically | `npx
|
|
2761
|
+
| **Feature Development** | Coordinate multiple agents on complex features | `npx claude-flow@v3alpha swarm init --topology hierarchical && npx claude-flow@v3alpha task orchestrate "Build user dashboard"` |
|
|
2762
|
+
| **Large Refactors** | Parallel refactoring across many files without conflicts | `npx claude-flow@v3alpha swarm init --topology mesh --max-agents 8` |
|
|
2763
|
+
| **Codebase Migration** | Migrate frameworks, languages, or patterns systematically | `npx claude-flow@v3alpha task orchestrate "Migrate from Express to Fastify" --strategy adaptive` |
|
|
2881
2764
|
|
|
2882
2765
|
### 📊 Performance & Optimization
|
|
2883
2766
|
|
|
2884
2767
|
| Scenario | What It Solves | How To Do It |
|
|
2885
2768
|
|----------|----------------|--------------|
|
|
2886
|
-
| **Performance Profiling** | Find and fix bottlenecks in your application | `npx
|
|
2887
|
-
| **Query Optimization** | Speed up slow database queries | `npx
|
|
2888
|
-
| **Memory Analysis** | Reduce memory usage and fix leaks | `npx
|
|
2769
|
+
| **Performance Profiling** | Find and fix bottlenecks in your application | `npx claude-flow@v3alpha --agent perf-analyzer --task "Profile API endpoints"` |
|
|
2770
|
+
| **Query Optimization** | Speed up slow database queries | `npx claude-flow@v3alpha hooks route "Optimize database queries"` |
|
|
2771
|
+
| **Memory Analysis** | Reduce memory usage and fix leaks | `npx claude-flow@v3alpha --agent perf-analyzer --task "Analyze memory usage patterns"` |
|
|
2889
2772
|
|
|
2890
2773
|
### 🔄 GitHub & DevOps
|
|
2891
2774
|
|
|
2892
2775
|
| Scenario | What It Solves | How To Do It |
|
|
2893
2776
|
|----------|----------------|--------------|
|
|
2894
|
-
| **PR Management** | Review, approve, and merge PRs efficiently | `npx
|
|
2895
|
-
| **Issue Triage** | Categorize, prioritize, and assign issues automatically | `npx
|
|
2896
|
-
| **Release Management** | Coordinate releases with changelogs and versioning | `npx
|
|
2897
|
-
| **CI/CD Optimization** | Speed up pipelines and reduce flaky tests | `npx
|
|
2777
|
+
| **PR Management** | Review, approve, and merge PRs efficiently | `npx claude-flow@v3alpha --agent pr-manager --task "Review open PRs"` |
|
|
2778
|
+
| **Issue Triage** | Categorize, prioritize, and assign issues automatically | `npx claude-flow@v3alpha --agent issue-tracker --task "Triage new issues"` |
|
|
2779
|
+
| **Release Management** | Coordinate releases with changelogs and versioning | `npx claude-flow@v3alpha --agent release-manager --task "Prepare v2.0 release"` |
|
|
2780
|
+
| **CI/CD Optimization** | Speed up pipelines and reduce flaky tests | `npx claude-flow@v3alpha --agent cicd-engineer --task "Optimize GitHub Actions workflow"` |
|
|
2898
2781
|
|
|
2899
2782
|
### 📋 Spec-Driven Development
|
|
2900
2783
|
|
|
2901
2784
|
| Scenario | What It Solves | How To Do It |
|
|
2902
2785
|
|----------|----------------|--------------|
|
|
2903
|
-
| **Generate Specs** | Create complete specifications before coding | `npx
|
|
2904
|
-
| **Validate Implementation** | Ensure code matches specifications | `npx
|
|
2905
|
-
| **Track Compliance** | Monitor spec adherence across the team | `npx
|
|
2786
|
+
| **Generate Specs** | Create complete specifications before coding | `npx claude-flow@v3alpha --agent architect --task "Create ADR for authentication system"` |
|
|
2787
|
+
| **Validate Implementation** | Ensure code matches specifications | `npx claude-flow@v3alpha hooks progress --detailed` |
|
|
2788
|
+
| **Track Compliance** | Monitor spec adherence across the team | `npx claude-flow@v3alpha progress sync` |
|
|
2906
2789
|
|
|
2907
2790
|
### 🧠 Learning & Intelligence
|
|
2908
2791
|
|
|
2909
2792
|
| Scenario | What It Solves | How To Do It |
|
|
2910
2793
|
|----------|----------------|--------------|
|
|
2911
|
-
| **Bootstrap Intelligence** | Train the system on your codebase patterns | `npx
|
|
2912
|
-
| **Optimize Routing** | Improve task-to-agent matching over time | `npx
|
|
2913
|
-
| **Transfer Learning** | Apply patterns learned from other projects | `npx
|
|
2914
|
-
|
|
2915
|
-
</details>
|
|
2916
|
-
|
|
2917
|
-
---
|
|
2918
|
-
|
|
2919
|
-
## 🧠 Infinite Context & Memory Optimization
|
|
2920
|
-
|
|
2921
|
-
Ruflo eliminates Claude Code's context window ceiling with a real-time memory management system that archives, optimizes, and restores conversation context automatically.
|
|
2922
|
-
|
|
2923
|
-
<details>
|
|
2924
|
-
<summary>♾️ <strong>Context Autopilot</strong> — Never lose context to compaction again</summary>
|
|
2925
|
-
|
|
2926
|
-
### The Problem
|
|
2927
|
-
|
|
2928
|
-
Claude Code has a finite context window (~200K tokens). When full, it **compacts** — summarizing the conversation and discarding details like exact file paths, tool outputs, decision reasoning, and code snippets. This creates a "context cliff" where Claude loses the ability to reference earlier work.
|
|
2929
|
-
|
|
2930
|
-
### The Solution: Context Autopilot (ADR-051)
|
|
2931
|
-
|
|
2932
|
-
Ruflo intercepts the compaction lifecycle with three hooks that make context loss invisible:
|
|
2933
|
-
|
|
2934
|
-
```
|
|
2935
|
-
Every Prompt Context Full After Compact
|
|
2936
|
-
│ │ │
|
|
2937
|
-
▼ ▼ ▼
|
|
2938
|
-
UserPromptSubmit PreCompact SessionStart
|
|
2939
|
-
│ │ │
|
|
2940
|
-
Archive turns Archive + BLOCK Restore from archive
|
|
2941
|
-
to SQLite auto-compaction via additionalContext
|
|
2942
|
-
(incremental) (exit code 2) (importance-ranked)
|
|
2943
|
-
│ │ │
|
|
2944
|
-
▼ ▼ ▼
|
|
2945
|
-
Track tokens Manual /compact Seamless continuation
|
|
2946
|
-
Report % used still allowed with full history
|
|
2947
|
-
```
|
|
2948
|
-
|
|
2949
|
-
### How Memory is Optimized
|
|
2950
|
-
|
|
2951
|
-
| Layer | What It Does | When |
|
|
2952
|
-
|-------|-------------|------|
|
|
2953
|
-
| **Proactive Archiving** | Every user prompt archives new turns to SQLite with SHA-256 dedup | Every prompt |
|
|
2954
|
-
| **Token Tracking** | Reads actual API `usage` data (input + cache tokens) for accurate % | Every prompt |
|
|
2955
|
-
| **Compaction Blocking** | PreCompact hook returns exit code 2 to cancel auto-compaction | When context fills |
|
|
2956
|
-
| **Manual Compact** | `/compact` is allowed — archives first, resets autopilot, then compresses | On user request |
|
|
2957
|
-
| **Importance Ranking** | Entries scored by `recency × frequency × richness` for smart retrieval | On restore |
|
|
2958
|
-
| **Access Tracking** | Restored entries get access_count++ creating a relevance feedback loop | On restore |
|
|
2959
|
-
| **Auto-Pruning** | Never-accessed entries older than 30 days are automatically removed | On PreCompact |
|
|
2960
|
-
| **Content Compaction** | Old session entries trimmed to summaries, reducing archive storage | Manual or scheduled |
|
|
2961
|
-
| **RuVector Sync** | SQLite entries auto-replicated to PostgreSQL when configured | On PreCompact |
|
|
2962
|
-
|
|
2963
|
-
### Optimization Thresholds
|
|
2964
|
-
|
|
2965
|
-
| Zone | Threshold | Statusline | Action |
|
|
2966
|
-
|------|-----------|-----------|--------|
|
|
2967
|
-
| OK | <70% | `🛡️ 43% 86.7K ⊘` (green) | Normal operation, track growth trend |
|
|
2968
|
-
| Warning | 70-85% | `🛡️ 72% 144K ⊘` (yellow) | Flag approaching limit, archive aggressively |
|
|
2969
|
-
| Optimize | 85%+ | `🛡️ 88% 176K ⟳2` (red) | Prune stale entries, keep responses concise |
|
|
2970
|
-
|
|
2971
|
-
### Real-Time Statusline
|
|
2972
|
-
|
|
2973
|
-
The statusline shows live context metrics read from `autopilot-state.json`:
|
|
2974
|
-
|
|
2975
|
-
```
|
|
2976
|
-
🛡️ 45% 89.2K ⊘ 🧠 86%
|
|
2977
|
-
│ │ │ │ │ │
|
|
2978
|
-
│ │ │ │ │ └─ Intelligence score (learning.json + patterns + archive)
|
|
2979
|
-
│ │ │ │ └──── Intelligence indicator
|
|
2980
|
-
│ │ │ └───────── No prune cycles (⊘) or prune count (⟳N)
|
|
2981
|
-
│ │ └─────────────── Token count (actual API usage)
|
|
2982
|
-
│ └─────────────────── Context percentage used
|
|
2983
|
-
└──────────────────────── Autopilot active (shield icon)
|
|
2984
|
-
```
|
|
2985
|
-
|
|
2986
|
-
### Storage Tiers
|
|
2987
|
-
|
|
2988
|
-
| Tier | Backend | Storage | Features |
|
|
2989
|
-
|------|---------|---------|----------|
|
|
2990
|
-
| 1 | **SQLite** (default) | `.claude-flow/data/transcript-archive.db` | WAL mode, indexed queries, ACID, importance ranking |
|
|
2991
|
-
| 2 | **RuVector PostgreSQL** | Configurable remote | TB-scale, pgvector embeddings, GNN search |
|
|
2992
|
-
| 3 | **AgentDB + HNSW** | In-memory + persist | 150x-12,500x faster semantic search |
|
|
2993
|
-
| 4 | **JSON** (fallback) | `.claude-flow/data/transcript-archive.json` | Zero dependencies, always works |
|
|
2994
|
-
|
|
2995
|
-
### Configuration
|
|
2996
|
-
|
|
2997
|
-
```bash
|
|
2998
|
-
# Context Autopilot (all have sensible defaults)
|
|
2999
|
-
CLAUDE_FLOW_CONTEXT_AUTOPILOT=true # Enable/disable autopilot (default: true)
|
|
3000
|
-
CLAUDE_FLOW_CONTEXT_WINDOW=200000 # Context window size in tokens
|
|
3001
|
-
CLAUDE_FLOW_AUTOPILOT_WARN=0.70 # Warning threshold (70%)
|
|
3002
|
-
CLAUDE_FLOW_AUTOPILOT_PRUNE=0.85 # Optimization threshold (85%)
|
|
3003
|
-
CLAUDE_FLOW_COMPACT_RESTORE_BUDGET=4000 # Max chars restored after compaction
|
|
3004
|
-
CLAUDE_FLOW_RETENTION_DAYS=30 # Auto-prune never-accessed entries
|
|
3005
|
-
CLAUDE_FLOW_AUTO_OPTIMIZE=true # Importance ranking + pruning + sync
|
|
3006
|
-
```
|
|
3007
|
-
|
|
3008
|
-
### Commands
|
|
3009
|
-
|
|
3010
|
-
```bash
|
|
3011
|
-
# Check archive status and autopilot state
|
|
3012
|
-
node .claude/helpers/context-persistence-hook.mjs status
|
|
3013
|
-
|
|
3014
|
-
# Manual compact (archives first, then allows Claude Code to compress)
|
|
3015
|
-
# Use /compact in Claude Code — autopilot allows manual, blocks auto
|
|
3016
|
-
|
|
3017
|
-
# Query archive directly
|
|
3018
|
-
sqlite3 .claude-flow/data/transcript-archive.db \
|
|
3019
|
-
"SELECT COUNT(*), SUM(LENGTH(content)) FROM transcript_entries;"
|
|
3020
|
-
```
|
|
3021
|
-
|
|
3022
|
-
### Architecture Reference
|
|
3023
|
-
|
|
3024
|
-
- **ADR-051**: Infinite Context via Compaction-to-Memory Bridge
|
|
3025
|
-
- **ADR-052**: Statusline Observability System
|
|
3026
|
-
- **Implementation**: `.claude/helpers/context-persistence-hook.mjs` (~1560 lines)
|
|
3027
|
-
- **Settings**: `.claude/settings.json` (PreCompact, SessionStart, UserPromptSubmit hooks)
|
|
3028
|
-
|
|
3029
|
-
</details>
|
|
3030
|
-
|
|
3031
|
-
---
|
|
3032
|
-
|
|
3033
|
-
## 💾 Storage: RVF (RuVector Format)
|
|
3034
|
-
|
|
3035
|
-
Ruflo uses RVF — a compact binary storage format that replaces the 18MB sql.js WASM dependency with pure TypeScript. No native compilation, no WASM downloads, works everywhere Node.js runs.
|
|
3036
|
-
|
|
3037
|
-
<details>
|
|
3038
|
-
<summary>💾 <strong>RVF Storage</strong> — Binary format, vector search, migration, and auto-selection</summary>
|
|
3039
|
-
|
|
3040
|
-
### Why RVF?
|
|
3041
|
-
|
|
3042
|
-
Previous versions shipped sql.js (18MB WASM blob) for persistent storage. This caused slow cold starts, large installs, and compatibility issues on ARM/Alpine. RVF eliminates all of that:
|
|
3043
|
-
|
|
3044
|
-
| | Before (sql.js) | After (RVF) |
|
|
3045
|
-
|---|---|---|
|
|
3046
|
-
| **Install size** | +18MB WASM | 0 extra deps |
|
|
3047
|
-
| **Cold start** | ~2s (WASM compile) | <50ms |
|
|
3048
|
-
| **Platform support** | x86/ARM issues | Runs everywhere |
|
|
3049
|
-
| **Native deps** | Optional hnswlib-node | Pure TypeScript fallback |
|
|
3050
|
-
|
|
3051
|
-
### How it works
|
|
3052
|
-
|
|
3053
|
-
RVF files use a simple binary layout: a 4-byte magic header (`RVF\0`), a JSON metadata section, then packed entries. Each module has its own format variant:
|
|
3054
|
-
|
|
3055
|
-
| Format | Magic Bytes | Used By | Purpose |
|
|
3056
|
-
|--------|-------------|---------|---------|
|
|
3057
|
-
| `RVF\0` | `0x52564600` | Memory backend | Entries + HNSW index |
|
|
3058
|
-
| `RVEC` | `0x52564543` | Embedding cache | Cached vectors with LRU eviction |
|
|
3059
|
-
| `RVFL` | `0x5256464C` | Event log | Append-only domain events |
|
|
3060
|
-
| `RVLS` | — | Learning store | SONA patterns + trajectories |
|
|
3061
|
-
|
|
3062
|
-
### Storage auto-selection
|
|
3063
|
-
|
|
3064
|
-
You don't need to pick a backend. The `DatabaseProvider` tries each option in order and uses the first one available:
|
|
3065
|
-
|
|
3066
|
-
```
|
|
3067
|
-
RVF (pure TypeScript) → better-sqlite3 (native) → sql.js (WASM) → JSON (fallback)
|
|
3068
|
-
```
|
|
3069
|
-
|
|
3070
|
-
RVF is always available since it has zero dependencies, so it wins by default. If you have `better-sqlite3` installed (e.g., for advanced queries), it gets priority.
|
|
3071
|
-
|
|
3072
|
-
### Vector search with HnswLite
|
|
3073
|
-
|
|
3074
|
-
RVF includes `HnswLite` — a pure TypeScript implementation of the HNSW (Hierarchical Navigable Small World) algorithm for fast nearest-neighbor search. It's used automatically when storing entries with embeddings.
|
|
3075
|
-
|
|
3076
|
-
```typescript
|
|
3077
|
-
import { RvfBackend } from '@claude-flow/memory';
|
|
3078
|
-
|
|
3079
|
-
const backend = new RvfBackend({ databasePath: './memory.rvf' });
|
|
3080
|
-
await backend.initialize();
|
|
3081
|
-
|
|
3082
|
-
// Store entries — embeddings are indexed automatically
|
|
3083
|
-
await backend.store({ id: '1', key: 'auth-pattern', content: '...', embedding: vector });
|
|
3084
|
-
|
|
3085
|
-
// Search by similarity
|
|
3086
|
-
const results = await backend.search({ embedding: queryVector, limit: 10 });
|
|
3087
|
-
```
|
|
3088
|
-
|
|
3089
|
-
Supports cosine, dot product, and Euclidean distance metrics. For large datasets (100K+ entries), install `hnswlib-node` for the native implementation — the backend switches automatically.
|
|
3090
|
-
|
|
3091
|
-
### Migrating from older formats
|
|
3092
|
-
|
|
3093
|
-
The `RvfMigrator` converts between JSON files, SQLite databases, and RVF:
|
|
3094
|
-
|
|
3095
|
-
```typescript
|
|
3096
|
-
import { RvfMigrator } from '@claude-flow/memory';
|
|
3097
|
-
|
|
3098
|
-
// Auto-detect format and migrate
|
|
3099
|
-
await RvfMigrator.autoMigrate('./old-memory.db', './memory.rvf');
|
|
3100
|
-
|
|
3101
|
-
// Or be explicit
|
|
3102
|
-
await RvfMigrator.fromJsonFile('./backup.json', './memory.rvf');
|
|
3103
|
-
await RvfMigrator.fromSqlite('./legacy.db', './memory.rvf');
|
|
3104
|
-
|
|
3105
|
-
// Export back to JSON for inspection
|
|
3106
|
-
await RvfMigrator.toJsonFile('./memory.rvf', './export.json');
|
|
3107
|
-
```
|
|
3108
|
-
|
|
3109
|
-
Format detection works by reading the first few bytes of the file — no file extension guessing.
|
|
3110
|
-
|
|
3111
|
-
### Crash safety
|
|
3112
|
-
|
|
3113
|
-
All write operations use atomic writes: data goes to a temporary file first, then a single `rename()` call swaps it into place. If the process crashes mid-write, the old file stays intact.
|
|
3114
|
-
|
|
3115
|
-
- **Memory backend**: `file.rvf.tmp` → `file.rvf`
|
|
3116
|
-
- **Embedding cache**: `file.rvec.tmp.{random}` → `file.rvec`
|
|
3117
|
-
- **Event log**: Append-only (no overwrite needed)
|
|
3118
|
-
|
|
3119
|
-
### SONA learning persistence
|
|
3120
|
-
|
|
3121
|
-
The `PersistentSonaCoordinator` stores learning patterns and trajectories in RVF format, so agents retain knowledge across sessions:
|
|
3122
|
-
|
|
3123
|
-
```typescript
|
|
3124
|
-
import { PersistentSonaCoordinator } from '@claude-flow/memory';
|
|
3125
|
-
|
|
3126
|
-
const sona = new PersistentSonaCoordinator({
|
|
3127
|
-
storePath: './data/sona-learning.rvls',
|
|
3128
|
-
});
|
|
3129
|
-
await sona.initialize();
|
|
3130
|
-
|
|
3131
|
-
// Patterns survive restarts
|
|
3132
|
-
const similar = sona.findSimilarPatterns(embedding, 5);
|
|
3133
|
-
sona.storePattern('routing', embedding);
|
|
3134
|
-
await sona.shutdown(); // persists to disk
|
|
3135
|
-
```
|
|
3136
|
-
|
|
3137
|
-
### Security
|
|
3138
|
-
|
|
3139
|
-
RVF validates inputs at every boundary:
|
|
3140
|
-
|
|
3141
|
-
- **Path validation** — null bytes and traversal attempts are rejected
|
|
3142
|
-
- **Header validation** — corrupted files are detected before parsing
|
|
3143
|
-
- **Payload limits** — event log entries cap at 100MB to prevent memory exhaustion
|
|
3144
|
-
- **Dimension validation** — embedding dimensions must be between 1 and 10,000
|
|
3145
|
-
- **Concurrent write protection** — a lock flag prevents overlapping disk flushes
|
|
3146
|
-
|
|
3147
|
-
### Configuration
|
|
3148
|
-
|
|
3149
|
-
```bash
|
|
3150
|
-
# Environment variables
|
|
3151
|
-
CLAUDE_FLOW_MEMORY_BACKEND=hybrid # auto-selects RVF
|
|
3152
|
-
CLAUDE_FLOW_MEMORY_PATH=./data/memory
|
|
3153
|
-
|
|
3154
|
-
# Or via CLI
|
|
3155
|
-
ruflo memory init --force
|
|
3156
|
-
ruflo config set memory.backend hybrid
|
|
3157
|
-
```
|
|
2794
|
+
| **Bootstrap Intelligence** | Train the system on your codebase patterns | `npx claude-flow@v3alpha hooks pretrain --depth deep` |
|
|
2795
|
+
| **Optimize Routing** | Improve task-to-agent matching over time | `npx claude-flow@v3alpha hooks route "<task>" --include-explanation` |
|
|
2796
|
+
| **Transfer Learning** | Apply patterns learned from other projects | `npx claude-flow@v3alpha hooks transfer <sourceProject>` |
|
|
3158
2797
|
|
|
3159
2798
|
</details>
|
|
3160
2799
|
|
|
@@ -3212,7 +2851,7 @@ When hooks run, they emit signals that guide routing decisions. Watch for these
|
|
|
3212
2851
|
|
|
3213
2852
|
**Example Hook Output:**
|
|
3214
2853
|
```bash
|
|
3215
|
-
$ npx
|
|
2854
|
+
$ npx claude-flow@v3alpha hooks pre-task --description "convert var to const in utils.ts"
|
|
3216
2855
|
|
|
3217
2856
|
[AGENT_BOOSTER_AVAILABLE] Intent: var-to-const
|
|
3218
2857
|
Recommendation: Use Edit tool directly
|
|
@@ -3220,101 +2859,6 @@ Performance: <1ms (352x faster than LLM)
|
|
|
3220
2859
|
Cost: $0
|
|
3221
2860
|
```
|
|
3222
2861
|
|
|
3223
|
-
### Intelligence Loop (ADR-050)
|
|
3224
|
-
|
|
3225
|
-
The intelligence loop wires PageRank-ranked memory into the hook system. Every session builds a knowledge graph that improves over time:
|
|
3226
|
-
|
|
3227
|
-
```
|
|
3228
|
-
SessionStart:
|
|
3229
|
-
session-restore → intelligence.init()
|
|
3230
|
-
→ Read MEMORY.md / auto-memory-store.json
|
|
3231
|
-
→ Build graph (nodes + similarity/temporal edges)
|
|
3232
|
-
→ Compute PageRank
|
|
3233
|
-
→ "[INTELLIGENCE] Loaded 13 patterns, 12 edges"
|
|
3234
|
-
|
|
3235
|
-
UserPrompt:
|
|
3236
|
-
route → intelligence.getContext(prompt)
|
|
3237
|
-
→ Jaccard-match prompt against pre-ranked entries
|
|
3238
|
-
→ Inject top-5 patterns into Claude's context:
|
|
3239
|
-
|
|
3240
|
-
[INTELLIGENCE] Relevant patterns for this task:
|
|
3241
|
-
* (0.95) HNSW gives 150x-12,500x speedup [rank #1, 12x accessed]
|
|
3242
|
-
* (0.88) London School TDD preferred [rank #3, 8x accessed]
|
|
3243
|
-
|
|
3244
|
-
PostEdit:
|
|
3245
|
-
post-edit → intelligence.recordEdit(file)
|
|
3246
|
-
→ Append to pending-insights.jsonl (<2ms)
|
|
3247
|
-
|
|
3248
|
-
SessionEnd:
|
|
3249
|
-
session-end → intelligence.consolidate()
|
|
3250
|
-
→ Process pending insights (3+ edits → new entry)
|
|
3251
|
-
→ Confidence boost for accessed patterns (+0.03)
|
|
3252
|
-
→ Confidence decay for unused patterns (-0.005/day)
|
|
3253
|
-
→ Recompute PageRank, rebuild edges
|
|
3254
|
-
→ Save snapshot for trend tracking
|
|
3255
|
-
```
|
|
3256
|
-
|
|
3257
|
-
**Measuring improvement:**
|
|
3258
|
-
|
|
3259
|
-
```bash
|
|
3260
|
-
# Human-readable diagnostics
|
|
3261
|
-
node .claude/helpers/hook-handler.cjs stats
|
|
3262
|
-
|
|
3263
|
-
# JSON output for scripting
|
|
3264
|
-
node .claude/helpers/hook-handler.cjs stats --json
|
|
3265
|
-
|
|
3266
|
-
# Or via intelligence.cjs directly
|
|
3267
|
-
node .claude/helpers/intelligence.cjs stats
|
|
3268
|
-
```
|
|
3269
|
-
|
|
3270
|
-
The stats command shows:
|
|
3271
|
-
|
|
3272
|
-
| Section | What It Tells You |
|
|
3273
|
-
|---------|-------------------|
|
|
3274
|
-
| **Graph** | Node/edge count, density % |
|
|
3275
|
-
| **Confidence** | Min/max/mean/median across all patterns |
|
|
3276
|
-
| **Access** | Total accesses, patterns used vs never accessed |
|
|
3277
|
-
| **PageRank** | Sum (~1.0), highest-ranked node |
|
|
3278
|
-
| **Top Patterns** | Top 10 by composite score with access counts |
|
|
3279
|
-
| **Last Delta** | Changes since previous session (confidence shift, access delta) |
|
|
3280
|
-
| **Trend** | Over all sessions: IMPROVING / DECLINING / STABLE |
|
|
3281
|
-
|
|
3282
|
-
**Example output:**
|
|
3283
|
-
```
|
|
3284
|
-
+--------------------------------------------------------------+
|
|
3285
|
-
| Intelligence Diagnostics (ADR-050) |
|
|
3286
|
-
+--------------------------------------------------------------+
|
|
3287
|
-
|
|
3288
|
-
Graph
|
|
3289
|
-
Nodes: 9
|
|
3290
|
-
Edges: 8 (7 temporal, 1 similar)
|
|
3291
|
-
Density: 22.2%
|
|
3292
|
-
|
|
3293
|
-
Confidence
|
|
3294
|
-
Min: 0.490 Max: 0.600
|
|
3295
|
-
Mean: 0.556 Median: 0.580
|
|
3296
|
-
|
|
3297
|
-
Access
|
|
3298
|
-
Total accesses: 11
|
|
3299
|
-
Patterns used: 6/9
|
|
3300
|
-
Never accessed: 3
|
|
3301
|
-
|
|
3302
|
-
Top Patterns (by composite score)
|
|
3303
|
-
#1 HNSW gives 150x-12,500x speedup
|
|
3304
|
-
conf=0.600 pr=0.2099 score=0.3659 accessed=2x
|
|
3305
|
-
#2 London School TDD preferred
|
|
3306
|
-
conf=0.600 pr=0.1995 score=0.3597 accessed=2x
|
|
3307
|
-
|
|
3308
|
-
Last Delta (5m ago)
|
|
3309
|
-
Confidence: +0.0300
|
|
3310
|
-
Accesses: +6
|
|
3311
|
-
|
|
3312
|
-
Trend (3 snapshots)
|
|
3313
|
-
Confidence drift: +0.0422
|
|
3314
|
-
Direction: IMPROVING
|
|
3315
|
-
+--------------------------------------------------------------+
|
|
3316
|
-
```
|
|
3317
|
-
|
|
3318
2862
|
### All 27 Hooks by Category
|
|
3319
2863
|
|
|
3320
2864
|
#### 🔧 Tool Lifecycle Hooks (6 hooks)
|
|
@@ -3330,8 +2874,8 @@ The stats command shows:
|
|
|
3330
2874
|
|
|
3331
2875
|
```bash
|
|
3332
2876
|
# Example: Edit with pattern learning
|
|
3333
|
-
npx
|
|
3334
|
-
npx
|
|
2877
|
+
npx claude-flow@v3alpha hooks pre-edit ./src/auth.ts
|
|
2878
|
+
npx claude-flow@v3alpha hooks post-edit ./src/auth.ts --success true --train-patterns
|
|
3335
2879
|
```
|
|
3336
2880
|
|
|
3337
2881
|
#### 🧠 Intelligence & Routing Hooks (8 hooks)
|
|
@@ -3349,10 +2893,10 @@ npx ruflo@v3alpha hooks post-edit ./src/auth.ts --success true --train-patterns
|
|
|
3349
2893
|
|
|
3350
2894
|
```bash
|
|
3351
2895
|
# Route a task with explanation
|
|
3352
|
-
npx
|
|
2896
|
+
npx claude-flow@v3alpha hooks route "refactor authentication to use JWT" --include-explanation
|
|
3353
2897
|
|
|
3354
2898
|
# Bootstrap intelligence from your codebase
|
|
3355
|
-
npx
|
|
2899
|
+
npx claude-flow@v3alpha hooks pretrain --depth deep --model-type moe
|
|
3356
2900
|
```
|
|
3357
2901
|
|
|
3358
2902
|
#### 📅 Session Management Hooks (4 hooks)
|
|
@@ -3366,10 +2910,10 @@ npx ruflo@v3alpha hooks pretrain --depth deep --model-type moe
|
|
|
3366
2910
|
|
|
3367
2911
|
```bash
|
|
3368
2912
|
# Start session with auto-daemon
|
|
3369
|
-
npx
|
|
2913
|
+
npx claude-flow@v3alpha hooks session-start --session-id "feature-auth" --start-daemon
|
|
3370
2914
|
|
|
3371
2915
|
# End session and export learnings
|
|
3372
|
-
npx
|
|
2916
|
+
npx claude-flow@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
3373
2917
|
```
|
|
3374
2918
|
|
|
3375
2919
|
#### 🤖 Intelligence System Hooks (9 hooks)
|
|
@@ -3383,22 +2927,18 @@ npx ruflo@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
|
3383
2927
|
| `trajectory-end` | RL | Finish recording, trigger learning |
|
|
3384
2928
|
| `pattern-store` | Memory | Store a pattern with HNSW indexing |
|
|
3385
2929
|
| `pattern-search` | Memory | Find similar patterns (150x faster) |
|
|
3386
|
-
| `stats` | Analytics |
|
|
2930
|
+
| `stats` | Analytics | Learning statistics and metrics |
|
|
3387
2931
|
| `attention` | Focus | Compute attention-weighted similarity |
|
|
3388
2932
|
|
|
3389
2933
|
```bash
|
|
3390
2934
|
# Start trajectory for complex task
|
|
3391
|
-
npx
|
|
2935
|
+
npx claude-flow@v3alpha hooks intelligence trajectory-start --task "implement OAuth2"
|
|
3392
2936
|
|
|
3393
2937
|
# Record successful action
|
|
3394
|
-
npx
|
|
2938
|
+
npx claude-flow@v3alpha hooks intelligence trajectory-step --action "created token service" --quality 0.9
|
|
3395
2939
|
|
|
3396
2940
|
# End trajectory and trigger learning
|
|
3397
|
-
npx
|
|
3398
|
-
|
|
3399
|
-
# View intelligence diagnostics and improvement trends (ADR-050)
|
|
3400
|
-
node .claude/helpers/hook-handler.cjs stats
|
|
3401
|
-
node .claude/helpers/intelligence.cjs stats --json
|
|
2941
|
+
npx claude-flow@v3alpha hooks intelligence trajectory-end --success true
|
|
3402
2942
|
```
|
|
3403
2943
|
|
|
3404
2944
|
### 12 Background Workers (Auto-Triggered)
|
|
@@ -3422,13 +2962,13 @@ Workers run automatically based on context, or dispatch manually.
|
|
|
3422
2962
|
|
|
3423
2963
|
```bash
|
|
3424
2964
|
# List all workers
|
|
3425
|
-
npx
|
|
2965
|
+
npx claude-flow@v3alpha hooks worker list
|
|
3426
2966
|
|
|
3427
2967
|
# Manually dispatch security audit
|
|
3428
|
-
npx
|
|
2968
|
+
npx claude-flow@v3alpha hooks worker dispatch --trigger audit --context "./src/auth"
|
|
3429
2969
|
|
|
3430
2970
|
# Check worker status
|
|
3431
|
-
npx
|
|
2971
|
+
npx claude-flow@v3alpha hooks worker status
|
|
3432
2972
|
```
|
|
3433
2973
|
|
|
3434
2974
|
### Model Routing Hooks (3 hooks)
|
|
@@ -3443,10 +2983,10 @@ Automatically selects haiku/sonnet/opus based on task complexity.
|
|
|
3443
2983
|
|
|
3444
2984
|
```bash
|
|
3445
2985
|
# Get model recommendation
|
|
3446
|
-
npx
|
|
2986
|
+
npx claude-flow@v3alpha hooks model-route --task "fix typo in README"
|
|
3447
2987
|
# → Recommends: haiku (simple task, low complexity)
|
|
3448
2988
|
|
|
3449
|
-
npx
|
|
2989
|
+
npx claude-flow@v3alpha hooks model-route --task "design distributed consensus system"
|
|
3450
2990
|
# → Recommends: opus (complex architecture, high reasoning)
|
|
3451
2991
|
```
|
|
3452
2992
|
|
|
@@ -3466,27 +3006,22 @@ npx ruflo@v3alpha hooks model-route --task "design distributed consensus system"
|
|
|
3466
3006
|
# MOST COMMON HOOKS
|
|
3467
3007
|
# ══════════════════════════════════════════════════════════════════
|
|
3468
3008
|
|
|
3469
|
-
# Route task to best agent
|
|
3470
|
-
npx
|
|
3009
|
+
# Route task to best agent
|
|
3010
|
+
npx claude-flow@v3alpha hooks route "<task>" --include-explanation
|
|
3471
3011
|
|
|
3472
3012
|
# Start/end session with learning
|
|
3473
|
-
npx
|
|
3474
|
-
npx
|
|
3013
|
+
npx claude-flow@v3alpha hooks session-start --start-daemon
|
|
3014
|
+
npx claude-flow@v3alpha hooks session-end --persist-patterns
|
|
3475
3015
|
|
|
3476
3016
|
# View what the system has learned
|
|
3477
|
-
npx
|
|
3478
|
-
npx
|
|
3479
|
-
|
|
3480
|
-
# Intelligence diagnostics — see if intelligence is improving
|
|
3481
|
-
node .claude/helpers/hook-handler.cjs stats # Human-readable
|
|
3482
|
-
node .claude/helpers/hook-handler.cjs stats --json # JSON for scripting
|
|
3483
|
-
node .claude/helpers/intelligence.cjs stats # Direct access
|
|
3017
|
+
npx claude-flow@v3alpha hooks metrics
|
|
3018
|
+
npx claude-flow@v3alpha hooks intelligence stats
|
|
3484
3019
|
|
|
3485
3020
|
# Bootstrap on new project
|
|
3486
|
-
npx
|
|
3021
|
+
npx claude-flow@v3alpha hooks pretrain --depth deep
|
|
3487
3022
|
|
|
3488
3023
|
# Dispatch background worker
|
|
3489
|
-
npx
|
|
3024
|
+
npx claude-flow@v3alpha hooks worker dispatch --trigger audit
|
|
3490
3025
|
```
|
|
3491
3026
|
|
|
3492
3027
|
</details>
|
|
@@ -3512,38 +3047,38 @@ Share learned patterns across projects, teams, and the community via the decentr
|
|
|
3512
3047
|
|
|
3513
3048
|
```bash
|
|
3514
3049
|
# Export learned patterns to file
|
|
3515
|
-
npx
|
|
3050
|
+
npx claude-flow@v3alpha memory export --format json --output ./patterns.json
|
|
3516
3051
|
|
|
3517
3052
|
# Export specific namespace
|
|
3518
|
-
npx
|
|
3053
|
+
npx claude-flow@v3alpha memory export --namespace "security" --output ./security-patterns.json
|
|
3519
3054
|
|
|
3520
3055
|
# Export with embeddings (larger file, faster import)
|
|
3521
|
-
npx
|
|
3056
|
+
npx claude-flow@v3alpha memory export --include-embeddings --output ./full-export.json
|
|
3522
3057
|
|
|
3523
3058
|
# Export agent configurations
|
|
3524
|
-
npx
|
|
3059
|
+
npx claude-flow@v3alpha config export --scope project --output ./agent-configs.json
|
|
3525
3060
|
|
|
3526
3061
|
# Export session state
|
|
3527
|
-
npx
|
|
3062
|
+
npx claude-flow@v3alpha session export --session-id "my-session" --output ./session.json
|
|
3528
3063
|
```
|
|
3529
3064
|
|
|
3530
3065
|
### Import Commands
|
|
3531
3066
|
|
|
3532
3067
|
```bash
|
|
3533
3068
|
# Import patterns from file
|
|
3534
|
-
npx
|
|
3069
|
+
npx claude-flow@v3alpha memory import --input ./patterns.json
|
|
3535
3070
|
|
|
3536
3071
|
# Import and merge with existing (don't overwrite)
|
|
3537
|
-
npx
|
|
3072
|
+
npx claude-flow@v3alpha memory import --input ./patterns.json --merge
|
|
3538
3073
|
|
|
3539
3074
|
# Import from another project
|
|
3540
|
-
npx
|
|
3075
|
+
npx claude-flow@v3alpha hooks transfer --source-path ../other-project
|
|
3541
3076
|
|
|
3542
3077
|
# Import agent configurations
|
|
3543
|
-
npx
|
|
3078
|
+
npx claude-flow@v3alpha config import --input ./agent-configs.json --scope project
|
|
3544
3079
|
|
|
3545
3080
|
# Restore session
|
|
3546
|
-
npx
|
|
3081
|
+
npx claude-flow@v3alpha session restore --session-id "my-session"
|
|
3547
3082
|
```
|
|
3548
3083
|
|
|
3549
3084
|
### Pattern Store (IPFS Marketplace)
|
|
@@ -3561,13 +3096,13 @@ Decentralized pattern marketplace for sharing and discovering community patterns
|
|
|
3561
3096
|
|
|
3562
3097
|
```bash
|
|
3563
3098
|
# Search for authentication patterns
|
|
3564
|
-
npx
|
|
3099
|
+
npx claude-flow@v3alpha transfer-store search --query "authentication" --min-rating 4.0
|
|
3565
3100
|
|
|
3566
3101
|
# Download a pattern
|
|
3567
|
-
npx
|
|
3102
|
+
npx claude-flow@v3alpha transfer-store download --id "auth-jwt-patterns-v2" --verify
|
|
3568
3103
|
|
|
3569
3104
|
# Publish your patterns
|
|
3570
|
-
npx
|
|
3105
|
+
npx claude-flow@v3alpha transfer-store publish --input ./my-patterns.json --category "security"
|
|
3571
3106
|
```
|
|
3572
3107
|
|
|
3573
3108
|
### Plugin Store
|
|
@@ -3585,22 +3120,22 @@ Discover and install community plugins from the **live IPFS registry** with 19 o
|
|
|
3585
3120
|
|
|
3586
3121
|
```bash
|
|
3587
3122
|
# List plugins with live ratings from Cloud Function
|
|
3588
|
-
npx
|
|
3123
|
+
npx claude-flow@v3alpha plugins list
|
|
3589
3124
|
|
|
3590
3125
|
# Filter by type
|
|
3591
|
-
npx
|
|
3126
|
+
npx claude-flow@v3alpha plugins list --type integration
|
|
3592
3127
|
|
|
3593
3128
|
# Rate a plugin
|
|
3594
|
-
npx
|
|
3129
|
+
npx claude-flow@v3alpha plugins rate --name @claude-flow/embeddings --rating 5
|
|
3595
3130
|
|
|
3596
3131
|
# Search for MCP tool plugins
|
|
3597
|
-
npx
|
|
3132
|
+
npx claude-flow@v3alpha transfer plugin-search --type "mcp-tool" --verified
|
|
3598
3133
|
|
|
3599
3134
|
# Get plugin info
|
|
3600
|
-
npx
|
|
3135
|
+
npx claude-flow@v3alpha transfer plugin-info --name "semantic-code-search"
|
|
3601
3136
|
|
|
3602
3137
|
# List official plugins
|
|
3603
|
-
npx
|
|
3138
|
+
npx claude-flow@v3alpha transfer plugin-official
|
|
3604
3139
|
```
|
|
3605
3140
|
|
|
3606
3141
|
#### Live IPFS Plugin Registry
|
|
@@ -3633,10 +3168,10 @@ Patterns and models are distributed via IPFS for decentralization and integrity.
|
|
|
3633
3168
|
|
|
3634
3169
|
```bash
|
|
3635
3170
|
# Resolve IPNS name to CID
|
|
3636
|
-
npx
|
|
3171
|
+
npx claude-flow@v3alpha transfer ipfs-resolve --name "/ipns/patterns.claude-flow.io"
|
|
3637
3172
|
|
|
3638
3173
|
# Detect PII before publishing
|
|
3639
|
-
npx
|
|
3174
|
+
npx claude-flow@v3alpha transfer detect-pii --content "$(cat ./patterns.json)"
|
|
3640
3175
|
```
|
|
3641
3176
|
|
|
3642
3177
|
### Model & Learning Pattern Import/Export
|
|
@@ -3659,7 +3194,7 @@ curl -X POST "https://api.pinata.cloud/pinning/pinJSONToIPFS" \
|
|
|
3659
3194
|
"name": "my-patterns",
|
|
3660
3195
|
"patterns": [...]
|
|
3661
3196
|
},
|
|
3662
|
-
"pinataMetadata": {"name": "
|
|
3197
|
+
"pinataMetadata": {"name": "claude-flow-learning-pattern"}
|
|
3663
3198
|
}'
|
|
3664
3199
|
|
|
3665
3200
|
# Import a pattern from IPFS CID
|
|
@@ -3701,13 +3236,13 @@ Import pre-trained learning patterns for common tasks. **90.5% average accuracy*
|
|
|
3701
3236
|
curl -s "https://gateway.pinata.cloud/ipfs/QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc" | jq '.models[].name'
|
|
3702
3237
|
|
|
3703
3238
|
# Import all models
|
|
3704
|
-
npx
|
|
3239
|
+
npx claude-flow@v3alpha transfer import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3705
3240
|
|
|
3706
3241
|
# Import specific category
|
|
3707
|
-
npx
|
|
3242
|
+
npx claude-flow@v3alpha neural import --model security-review-patterns --source ipfs
|
|
3708
3243
|
|
|
3709
3244
|
# Use patterns in routing
|
|
3710
|
-
npx
|
|
3245
|
+
npx claude-flow@v3alpha hooks route --task "review authentication code" --use-patterns
|
|
3711
3246
|
```
|
|
3712
3247
|
|
|
3713
3248
|
#### Benefits vs Fresh Install
|
|
@@ -3732,7 +3267,7 @@ npx ruflo@v3alpha hooks route --task "review authentication code" --use-patterns
|
|
|
3732
3267
|
|
|
3733
3268
|
```bash
|
|
3734
3269
|
# Install a pattern pack
|
|
3735
|
-
npx
|
|
3270
|
+
npx claude-flow@v3alpha transfer-store download --id "security-essentials" --apply
|
|
3736
3271
|
```
|
|
3737
3272
|
|
|
3738
3273
|
### RuVector WASM Neural Training
|
|
@@ -3750,25 +3285,25 @@ Real WASM-accelerated neural training using `@ruvector/learning-wasm` and `@ruve
|
|
|
3750
3285
|
|
|
3751
3286
|
```bash
|
|
3752
3287
|
# List available pre-trained models from IPFS registry
|
|
3753
|
-
npx
|
|
3288
|
+
npx claude-flow@v3alpha neural list
|
|
3754
3289
|
|
|
3755
3290
|
# List models by category
|
|
3756
|
-
npx
|
|
3291
|
+
npx claude-flow@v3alpha neural list --category security
|
|
3757
3292
|
|
|
3758
3293
|
# Train with WASM acceleration
|
|
3759
|
-
npx
|
|
3294
|
+
npx claude-flow@v3alpha neural train -p coordination -e 100 --wasm --flash --contrastive
|
|
3760
3295
|
|
|
3761
3296
|
# Train security patterns
|
|
3762
|
-
npx
|
|
3297
|
+
npx claude-flow@v3alpha neural train -p security --wasm --contrastive
|
|
3763
3298
|
|
|
3764
3299
|
# Benchmark WASM performance
|
|
3765
|
-
npx
|
|
3300
|
+
npx claude-flow@v3alpha neural benchmark -d 256 -i 1000
|
|
3766
3301
|
|
|
3767
3302
|
# Import pre-trained models
|
|
3768
|
-
npx
|
|
3303
|
+
npx claude-flow@v3alpha neural import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3769
3304
|
|
|
3770
3305
|
# Export trained patterns to IPFS
|
|
3771
|
-
npx
|
|
3306
|
+
npx claude-flow@v3alpha neural export --ipfs --sign
|
|
3772
3307
|
```
|
|
3773
3308
|
|
|
3774
3309
|
#### Benchmark Results
|
|
@@ -3976,7 +3511,7 @@ Skills are **reusable workflows** that combine agents, hooks, and patterns into
|
|
|
3976
3511
|
| Skill | What It Does | When To Use |
|
|
3977
3512
|
|-------|--------------|-------------|
|
|
3978
3513
|
| `agentdb-vector-search` | Semantic search with 150x faster retrieval | Building RAG systems, knowledge bases |
|
|
3979
|
-
| `agentdb-memory-patterns` | Session memory,
|
|
3514
|
+
| `agentdb-memory-patterns` | Session memory, long-term storage, context management | Stateful agents, chat systems |
|
|
3980
3515
|
| `agentdb-learning` | 9 RL algorithms (PPO, DQN, SARSA, etc.) | Self-learning agents, behavior optimization |
|
|
3981
3516
|
| `agentdb-optimization` | Quantization (4-32x memory reduction), HNSW indexing | Scaling to millions of vectors |
|
|
3982
3517
|
| `agentdb-advanced` | QUIC sync, multi-database, custom distance metrics | Distributed AI systems |
|
|
@@ -4087,7 +3622,7 @@ Skills are **reusable workflows** that combine agents, hooks, and patterns into
|
|
|
4087
3622
|
|
|
4088
3623
|
| Skill | What It Does | When To Use |
|
|
4089
3624
|
|-------|--------------|-------------|
|
|
4090
|
-
| `agentic-jujutsu` |
|
|
3625
|
+
| `agentic-jujutsu` | Quantum-resistant, self-learning version control | Multi-agent coordination |
|
|
4091
3626
|
| `worker-benchmarks` | Performance benchmarking framework | Measuring improvements |
|
|
4092
3627
|
| `worker-integration` | Worker-agent coordination patterns | Background processing |
|
|
4093
3628
|
|
|
@@ -4107,9 +3642,9 @@ Skills are **reusable workflows** that combine agents, hooks, and patterns into
|
|
|
4107
3642
|
/v3-security-overhaul
|
|
4108
3643
|
|
|
4109
3644
|
# Via CLI
|
|
4110
|
-
npx
|
|
4111
|
-
npx
|
|
4112
|
-
npx
|
|
3645
|
+
npx claude-flow@v3alpha skill run github-code-review
|
|
3646
|
+
npx claude-flow@v3alpha skill list
|
|
3647
|
+
npx claude-flow@v3alpha skill info sparc-methodology
|
|
4113
3648
|
```
|
|
4114
3649
|
|
|
4115
3650
|
### Creating Custom Skills
|
|
@@ -4166,21 +3701,21 @@ The Claims system manages **who is working on what** — whether human or agent.
|
|
|
4166
3701
|
|
|
4167
3702
|
| Command | What It Does | Example |
|
|
4168
3703
|
|---------|--------------|---------|
|
|
4169
|
-
| `issues list` | See all issues and their status | `npx
|
|
4170
|
-
| `issues claim` | Claim an issue for yourself/agent | `npx
|
|
4171
|
-
| `issues release` | Release your claim | `npx
|
|
4172
|
-
| `issues handoff` | Hand off to another worker | `npx
|
|
4173
|
-
| `issues status` | Update progress on claimed work | `npx
|
|
4174
|
-
| `issues stealable` | List abandoned/stuck issues | `npx
|
|
4175
|
-
| `issues steal` | Take over stealable issue | `npx
|
|
4176
|
-
| `issues load` | View agent workloads | `npx
|
|
4177
|
-
| `issues rebalance` | Redistribute work evenly | `npx
|
|
4178
|
-
| `issues board` | Visual board view | `npx
|
|
3704
|
+
| `issues list` | See all issues and their status | `npx claude-flow@v3alpha issues list` |
|
|
3705
|
+
| `issues claim` | Claim an issue for yourself/agent | `npx claude-flow@v3alpha issues claim #123 --as coder-1` |
|
|
3706
|
+
| `issues release` | Release your claim | `npx claude-flow@v3alpha issues release #123` |
|
|
3707
|
+
| `issues handoff` | Hand off to another worker | `npx claude-flow@v3alpha issues handoff #123 --to reviewer` |
|
|
3708
|
+
| `issues status` | Update progress on claimed work | `npx claude-flow@v3alpha issues status #123 --progress 75` |
|
|
3709
|
+
| `issues stealable` | List abandoned/stuck issues | `npx claude-flow@v3alpha issues stealable` |
|
|
3710
|
+
| `issues steal` | Take over stealable issue | `npx claude-flow@v3alpha issues steal #123` |
|
|
3711
|
+
| `issues load` | View agent workloads | `npx claude-flow@v3alpha issues load` |
|
|
3712
|
+
| `issues rebalance` | Redistribute work evenly | `npx claude-flow@v3alpha issues rebalance --dry-run` |
|
|
3713
|
+
| `issues board` | Visual board view | `npx claude-flow@v3alpha issues board` |
|
|
4179
3714
|
|
|
4180
3715
|
### Visual Board View
|
|
4181
3716
|
|
|
4182
3717
|
```bash
|
|
4183
|
-
npx
|
|
3718
|
+
npx claude-flow@v3alpha issues board
|
|
4184
3719
|
```
|
|
4185
3720
|
|
|
4186
3721
|
```
|
|
@@ -4202,13 +3737,13 @@ When you need to pass work to someone else:
|
|
|
4202
3737
|
|
|
4203
3738
|
```bash
|
|
4204
3739
|
# 1. Request handoff with context
|
|
4205
|
-
npx
|
|
3740
|
+
npx claude-flow@v3alpha issues handoff #123 \
|
|
4206
3741
|
--to security-architect \
|
|
4207
3742
|
--reason "Needs security review" \
|
|
4208
3743
|
--progress 80
|
|
4209
3744
|
|
|
4210
3745
|
# 2. Target accepts handoff
|
|
4211
|
-
npx
|
|
3746
|
+
npx claude-flow@v3alpha issues accept #123 --as security-architect
|
|
4212
3747
|
|
|
4213
3748
|
# 3. Work continues with full context
|
|
4214
3749
|
```
|
|
@@ -4217,7 +3752,7 @@ npx ruflo@v3alpha issues accept #123 --as security-architect
|
|
|
4217
3752
|
|
|
4218
3753
|
```bash
|
|
4219
3754
|
# View current load
|
|
4220
|
-
npx
|
|
3755
|
+
npx claude-flow@v3alpha issues load
|
|
4221
3756
|
|
|
4222
3757
|
# Output:
|
|
4223
3758
|
# Agent | Claims | Load | Status
|
|
@@ -4228,7 +3763,7 @@ npx ruflo@v3alpha issues load
|
|
|
4228
3763
|
# security-arch | 0 | 0% | 🟢 Available
|
|
4229
3764
|
|
|
4230
3765
|
# Auto-rebalance
|
|
4231
|
-
npx
|
|
3766
|
+
npx claude-flow@v3alpha issues rebalance
|
|
4232
3767
|
```
|
|
4233
3768
|
|
|
4234
3769
|
### MCP Tools
|
|
@@ -4289,14 +3824,14 @@ The Route system uses **Q-Learning** to automatically assign tasks to the best a
|
|
|
4289
3824
|
|
|
4290
3825
|
| Command | What It Does | Example |
|
|
4291
3826
|
|---------|--------------|---------|
|
|
4292
|
-
| `route task` | Get agent recommendation | `npx
|
|
4293
|
-
| `route explain` | Understand routing decision | `npx
|
|
4294
|
-
| `route coverage` | Route based on test coverage | `npx
|
|
3827
|
+
| `route task` | Get agent recommendation | `npx claude-flow@v3alpha route task "implement OAuth2"` |
|
|
3828
|
+
| `route explain` | Understand routing decision | `npx claude-flow@v3alpha route explain "task"` |
|
|
3829
|
+
| `route coverage` | Route based on test coverage | `npx claude-flow@v3alpha route coverage` |
|
|
4295
3830
|
|
|
4296
3831
|
### Example: Route a Task
|
|
4297
3832
|
|
|
4298
3833
|
```bash
|
|
4299
|
-
npx
|
|
3834
|
+
npx claude-flow@v3alpha route task "refactor authentication to use JWT"
|
|
4300
3835
|
|
|
4301
3836
|
# Output:
|
|
4302
3837
|
# ╔══════════════════════════════════════════════════════════════╗
|
|
@@ -4323,7 +3858,7 @@ npx ruflo@v3alpha route task "refactor authentication to use JWT"
|
|
|
4323
3858
|
Routes tasks to agents based on **test coverage gaps**:
|
|
4324
3859
|
|
|
4325
3860
|
```bash
|
|
4326
|
-
npx
|
|
3861
|
+
npx claude-flow@v3alpha route coverage
|
|
4327
3862
|
|
|
4328
3863
|
# Finds untested code and routes to tester agent:
|
|
4329
3864
|
# • src/auth/jwt.ts - 23% coverage → tester
|
|
@@ -4335,10 +3870,10 @@ npx ruflo@v3alpha route coverage
|
|
|
4335
3870
|
|
|
4336
3871
|
```bash
|
|
4337
3872
|
# Route via hooks (preferred)
|
|
4338
|
-
npx
|
|
3873
|
+
npx claude-flow@v3alpha hooks route "implement caching layer" --include-explanation
|
|
4339
3874
|
|
|
4340
3875
|
# Record outcome for learning
|
|
4341
|
-
npx
|
|
3876
|
+
npx claude-flow@v3alpha hooks post-task --task-id "task-123" --success true --agent coder
|
|
4342
3877
|
```
|
|
4343
3878
|
|
|
4344
3879
|
### How Q-Learning Improves Over Time
|
|
@@ -4358,12 +3893,12 @@ The system **remembers** what works and applies it to future similar tasks.
|
|
|
4358
3893
|
|
|
4359
3894
|
## 💻 Programmatic Usage
|
|
4360
3895
|
|
|
4361
|
-
Use
|
|
3896
|
+
Use Claude-Flow packages directly in your applications.
|
|
4362
3897
|
|
|
4363
3898
|
<details>
|
|
4364
|
-
<summary>💻 <strong>Programmatic SDK</strong> — Use
|
|
3899
|
+
<summary>💻 <strong>Programmatic SDK</strong> — Use Claude-Flow in Your Code</summary>
|
|
4365
3900
|
|
|
4366
|
-
Use
|
|
3901
|
+
Use Claude-Flow packages directly in your TypeScript/JavaScript applications.
|
|
4367
3902
|
|
|
4368
3903
|
### Installation
|
|
4369
3904
|
|
|
@@ -4372,7 +3907,7 @@ Use Ruflo packages directly in your TypeScript/JavaScript applications.
|
|
|
4372
3907
|
npm install @claude-flow/cli @claude-flow/memory @claude-flow/swarm
|
|
4373
3908
|
|
|
4374
3909
|
# Or install everything
|
|
4375
|
-
npm install
|
|
3910
|
+
npm install claude-flow@v3alpha
|
|
4376
3911
|
```
|
|
4377
3912
|
|
|
4378
3913
|
### Quick Examples
|
|
@@ -4409,21 +3944,21 @@ console.log(results);
|
|
|
4409
3944
|
**CLI Commands:**
|
|
4410
3945
|
```bash
|
|
4411
3946
|
# Initialize memory database
|
|
4412
|
-
npx
|
|
3947
|
+
npx claude-flow@alpha memory init --force
|
|
4413
3948
|
|
|
4414
3949
|
# Store patterns
|
|
4415
|
-
npx
|
|
4416
|
-
npx
|
|
3950
|
+
npx claude-flow@alpha memory store --key "pattern-auth" --value "JWT authentication with refresh tokens"
|
|
3951
|
+
npx claude-flow@alpha memory store --key "pattern-cache" --value "Redis caching for API responses"
|
|
4417
3952
|
|
|
4418
3953
|
# Build HNSW index for 150x-12,500x faster search
|
|
4419
|
-
npx
|
|
3954
|
+
npx claude-flow@alpha memory search --query "authentication" --build-hnsw
|
|
4420
3955
|
|
|
4421
3956
|
# Semantic search (uses HNSW if built)
|
|
4422
|
-
npx
|
|
3957
|
+
npx claude-flow@alpha memory search --query "how to cache data" --limit 5
|
|
4423
3958
|
|
|
4424
3959
|
# List and manage entries
|
|
4425
|
-
npx
|
|
4426
|
-
npx
|
|
3960
|
+
npx claude-flow@alpha memory list --namespace patterns
|
|
3961
|
+
npx claude-flow@alpha memory stats
|
|
4427
3962
|
```
|
|
4428
3963
|
|
|
4429
3964
|
</details>
|
|
@@ -4657,35 +4192,35 @@ console.log(`Hit rate: ${(stats.hitRate * 100).toFixed(1)}%`);
|
|
|
4657
4192
|
|
|
4658
4193
|
```bash
|
|
4659
4194
|
# Generate embedding
|
|
4660
|
-
|
|
4195
|
+
claude-flow embeddings embed "Your text here"
|
|
4661
4196
|
|
|
4662
4197
|
# Batch embed from file
|
|
4663
|
-
|
|
4198
|
+
claude-flow embeddings batch documents.txt -o embeddings.json
|
|
4664
4199
|
|
|
4665
4200
|
# Similarity search
|
|
4666
|
-
|
|
4201
|
+
claude-flow embeddings search "query" --index ./vectors
|
|
4667
4202
|
|
|
4668
4203
|
# Document chunking
|
|
4669
|
-
|
|
4204
|
+
claude-flow embeddings chunk document.txt --strategy sentence --max-size 512
|
|
4670
4205
|
|
|
4671
4206
|
# Normalize embeddings
|
|
4672
|
-
|
|
4207
|
+
claude-flow embeddings normalize embeddings.json --type l2 -o normalized.json
|
|
4673
4208
|
|
|
4674
4209
|
# Convert to hyperbolic
|
|
4675
|
-
|
|
4210
|
+
claude-flow embeddings hyperbolic embeddings.json -o poincare.json
|
|
4676
4211
|
|
|
4677
4212
|
# Neural operations
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4213
|
+
claude-flow embeddings neural drift --baseline "context" --input "check"
|
|
4214
|
+
claude-flow embeddings neural store --id mem-1 --content "data"
|
|
4215
|
+
claude-flow embeddings neural recall "query" --top-k 5
|
|
4681
4216
|
|
|
4682
4217
|
# Model management
|
|
4683
|
-
|
|
4684
|
-
|
|
4218
|
+
claude-flow embeddings models list
|
|
4219
|
+
claude-flow embeddings models download all-MiniLM-L6-v2
|
|
4685
4220
|
|
|
4686
4221
|
# Cache management
|
|
4687
|
-
|
|
4688
|
-
|
|
4222
|
+
claude-flow embeddings cache stats
|
|
4223
|
+
claude-flow embeddings cache clear --older-than 7d
|
|
4689
4224
|
```
|
|
4690
4225
|
|
|
4691
4226
|
### Available Models
|
|
@@ -4736,7 +4271,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4736
4271
|
|
|
4737
4272
|
| Package | Purpose | Main Exports |
|
|
4738
4273
|
|---------|---------|--------------|
|
|
4739
|
-
| `@claude-flow/memory` | Vector storage, HNSW
|
|
4274
|
+
| `@claude-flow/memory` | Vector storage, HNSW | `AgentDB`, `MemoryStore` |
|
|
4740
4275
|
| `@claude-flow/swarm` | Agent coordination | `createSwarm`, `Swarm` |
|
|
4741
4276
|
| `@claude-flow/aidefence` | Threat detection | `isSafe`, `checkThreats`, `createAIDefence` |
|
|
4742
4277
|
| `@claude-flow/embeddings` | Vector embeddings | `createEmbeddingService` |
|
|
@@ -4752,7 +4287,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4752
4287
|
|
|
4753
4288
|
## 🔗 Ecosystem & Integrations
|
|
4754
4289
|
|
|
4755
|
-
Core infrastructure packages powering
|
|
4290
|
+
Core infrastructure packages powering Claude-Flow's intelligence layer.
|
|
4756
4291
|
|
|
4757
4292
|
<details>
|
|
4758
4293
|
<summary>⚡ <strong>Agentic-Flow Integration</strong> — Core AI Infrastructure</summary>
|
|
@@ -4761,7 +4296,7 @@ Core infrastructure packages powering Ruflo's intelligence layer.
|
|
|
4761
4296
|
[](https://www.npmjs.com/package/agentic-flow)
|
|
4762
4297
|
[](https://github.com/ruvnet/agentic-flow)
|
|
4763
4298
|
|
|
4764
|
-
|
|
4299
|
+
Claude-Flow v3 is built on top of **[agentic-flow](https://github.com/ruvnet/agentic-flow)**, a production-ready AI agent orchestration platform. This deep integration provides 352x faster code transformations, learning memory, and geometric intelligence.
|
|
4765
4300
|
|
|
4766
4301
|
### Quick Start
|
|
4767
4302
|
|
|
@@ -5042,9 +4577,9 @@ claude mcp add agentic-flow -- npx agentic-flow mcp start
|
|
|
5042
4577
|
|
|
5043
4578
|
</details>
|
|
5044
4579
|
|
|
5045
|
-
### Integration with
|
|
4580
|
+
### Integration with Claude-Flow
|
|
5046
4581
|
|
|
5047
|
-
|
|
4582
|
+
Claude-Flow automatically leverages agentic-flow for:
|
|
5048
4583
|
|
|
5049
4584
|
| Feature | How It's Used |
|
|
5050
4585
|
|---------|---------------|
|
|
@@ -5055,7 +4590,7 @@ Ruflo automatically leverages agentic-flow for:
|
|
|
5055
4590
|
| **Embedding Search** | HNSW-indexed vector search (150x faster) |
|
|
5056
4591
|
|
|
5057
4592
|
```typescript
|
|
5058
|
-
//
|
|
4593
|
+
// Claude-Flow automatically uses agentic-flow optimizations
|
|
5059
4594
|
import { getTokenOptimizer } from '@claude-flow/integration';
|
|
5060
4595
|
|
|
5061
4596
|
const optimizer = await getTokenOptimizer();
|
|
@@ -5075,13 +4610,13 @@ const config = optimizer.getOptimalConfig(agentCount);
|
|
|
5075
4610
|
---
|
|
5076
4611
|
|
|
5077
4612
|
<details>
|
|
5078
|
-
<summary>🥋 <strong>Agentic-Jujutsu</strong> —
|
|
4613
|
+
<summary>🥋 <strong>Agentic-Jujutsu</strong> — Quantum-Ready AI Version Control</summary>
|
|
5079
4614
|
|
|
5080
4615
|
[](https://www.npmjs.com/package/agentic-jujutsu)
|
|
5081
4616
|
[](https://www.npmjs.com/package/agentic-jujutsu)
|
|
5082
4617
|
[](https://github.com/ruvnet/agentic-flow/tree/main/packages/agentic-jujutsu)
|
|
5083
4618
|
|
|
5084
|
-
**Agentic-Jujutsu** is self-learning version control designed for multiple AI agents working simultaneously without conflicts. Built on [Jujutsu](https://github.com/martinvonz/jj), it provides faster performance than Git with automatic conflict resolution.
|
|
4619
|
+
**Agentic-Jujutsu** is quantum-ready, self-learning version control designed for multiple AI agents working simultaneously without conflicts. Built on [Jujutsu](https://github.com/martinvonz/jj), it provides 23x faster performance than Git with automatic conflict resolution.
|
|
5085
4620
|
|
|
5086
4621
|
### Quick Start
|
|
5087
4622
|
|
|
@@ -5112,7 +4647,7 @@ npx agentic-jujutsu compare-git
|
|
|
5112
4647
|
| **AI integration** | Manual work | Built-in (MCP protocol) |
|
|
5113
4648
|
| **Self-learning capabilities** | ❌ None | ✅ ReasoningBank |
|
|
5114
4649
|
| **Automatic conflict resolution** | 30-40% auto | **87% auto** |
|
|
5115
|
-
| **
|
|
4650
|
+
| **Quantum-resistant security** | ❌ None | ✅ Architecture ready |
|
|
5116
4651
|
|
|
5117
4652
|
### Core Capabilities
|
|
5118
4653
|
|
|
@@ -5158,7 +4693,7 @@ console.log('Confidence:', (suggestion.confidence * 100).toFixed(1) + '%');
|
|
|
5158
4693
|
</details>
|
|
5159
4694
|
|
|
5160
4695
|
<details>
|
|
5161
|
-
<summary>🤝 <strong>Multi-Agent Coordination</strong> —
|
|
4696
|
+
<summary>🤝 <strong>Multi-Agent Coordination</strong> — QuantumDAG architecture for conflict-free collaboration</summary>
|
|
5162
4697
|
|
|
5163
4698
|
```javascript
|
|
5164
4699
|
// All agents work concurrently (no conflicts!)
|
|
@@ -5194,12 +4729,12 @@ console.log('All agents completed:', results);
|
|
|
5194
4729
|
| Context switching | 500-1000ms | **50-100ms (10x)** |
|
|
5195
4730
|
| Conflict resolution | 30-40% auto | **87% auto (2.5x)** |
|
|
5196
4731
|
| Lock waiting | 50 min/day | **0 min (∞)** |
|
|
5197
|
-
|
|
|
4732
|
+
| Quantum fingerprints | N/A | **<1ms** |
|
|
5198
4733
|
|
|
5199
4734
|
</details>
|
|
5200
4735
|
|
|
5201
4736
|
<details>
|
|
5202
|
-
<summary>🔐 <strong>
|
|
4737
|
+
<summary>🔐 <strong>Quantum-Resistant Security</strong> — SHA3-512 fingerprints and HQC-128 encryption</summary>
|
|
5203
4738
|
|
|
5204
4739
|
```javascript
|
|
5205
4740
|
const { generateQuantumFingerprint, verifyQuantumFingerprint } = require('agentic-jujutsu');
|
|
@@ -5220,7 +4755,7 @@ const key = crypto.randomBytes(32).toString('base64');
|
|
|
5220
4755
|
jj.enableEncryption(key);
|
|
5221
4756
|
```
|
|
5222
4757
|
|
|
5223
|
-
**Security Methods:**
|
|
4758
|
+
**Quantum Security Methods:**
|
|
5224
4759
|
|
|
5225
4760
|
| Method | Description | Returns |
|
|
5226
4761
|
|--------|-------------|---------|
|
|
@@ -5231,9 +4766,9 @@ jj.enableEncryption(key);
|
|
|
5231
4766
|
|
|
5232
4767
|
</details>
|
|
5233
4768
|
|
|
5234
|
-
###
|
|
4769
|
+
### Claude-Flow Skill
|
|
5235
4770
|
|
|
5236
|
-
|
|
4771
|
+
Claude-Flow includes a dedicated `/agentic-jujutsu` skill for AI-powered version control:
|
|
5237
4772
|
|
|
5238
4773
|
```bash
|
|
5239
4774
|
# Invoke the skill
|
|
@@ -5242,9 +4777,9 @@ Ruflo includes a dedicated `/agentic-jujutsu` skill for AI-powered version contr
|
|
|
5242
4777
|
|
|
5243
4778
|
**Use this skill when you need:**
|
|
5244
4779
|
- ✅ Multiple AI agents modifying code simultaneously
|
|
5245
|
-
- ✅ Lock-free version control (faster than Git
|
|
4780
|
+
- ✅ Lock-free version control (23x faster than Git)
|
|
5246
4781
|
- ✅ Self-learning AI that improves from experience
|
|
5247
|
-
- ✅
|
|
4782
|
+
- ✅ Quantum-resistant security for future-proof protection
|
|
5248
4783
|
- ✅ Automatic conflict resolution (87% success rate)
|
|
5249
4784
|
- ✅ Pattern recognition and intelligent suggestions
|
|
5250
4785
|
|
|
@@ -5301,7 +4836,7 @@ npx agentic-jujutsu examples # Show usage examples
|
|
|
5301
4836
|
| **v1.x** | Required separate jj install |
|
|
5302
4837
|
| **v2.0** | Zero-dependency (jj binary embedded) |
|
|
5303
4838
|
| **v2.1** | Self-learning AI with ReasoningBank |
|
|
5304
|
-
| **v2.2** | Multi-agent coordination +
|
|
4839
|
+
| **v2.2** | Multi-agent coordination + quantum-ready |
|
|
5305
4840
|
| **v2.3** | Kubernetes GitOps + production stability |
|
|
5306
4841
|
|
|
5307
4842
|
</details>
|
|
@@ -5316,7 +4851,7 @@ npx agentic-jujutsu examples # Show usage examples
|
|
|
5316
4851
|
[](https://github.com/ruvnet/ruvector)
|
|
5317
4852
|
[](https://hub.docker.com/r/ruvnet/ruvector-postgres)
|
|
5318
4853
|
|
|
5319
|
-
**RuVector** is a high-performance distributed vector database combining vector search, graph queries, and self-learning neural networks. Written in Rust with Node.js/WASM bindings, it powers
|
|
4854
|
+
**RuVector** is a high-performance distributed vector database combining vector search, graph queries, and self-learning neural networks. Written in Rust with Node.js/WASM bindings, it powers Claude-Flow's intelligence layer with native speed.
|
|
5320
4855
|
|
|
5321
4856
|
### Key Capabilities
|
|
5322
4857
|
|
|
@@ -5384,21 +4919,21 @@ const compressed = ruvector.compress(embedding, 0.3); // 30% quality threshold
|
|
|
5384
4919
|
|
|
5385
4920
|
| Package | Description | Performance |
|
|
5386
4921
|
|---------|-------------|-------------|
|
|
5387
|
-
| **[ruvector](https://www.npmjs.com/package/ruvector)** | Core vector database with HNSW |
|
|
5388
|
-
| **[@ruvector/attention](https://www.npmjs.com/package/@ruvector/attention)** | Flash Attention mechanisms | 2-
|
|
5389
|
-
| **[@ruvector/sona](https://www.npmjs.com/package/@ruvector/sona)** | SONA adaptive learning (LoRA, EWC++) |
|
|
4922
|
+
| **[ruvector](https://www.npmjs.com/package/ruvector)** | Core vector database with HNSW | **~61µs search, 16,400 QPS** |
|
|
4923
|
+
| **[@ruvector/attention](https://www.npmjs.com/package/@ruvector/attention)** | Flash Attention mechanisms | 2.49x-7.47x speedup |
|
|
4924
|
+
| **[@ruvector/sona](https://www.npmjs.com/package/@ruvector/sona)** | SONA adaptive learning (LoRA, EWC++) | <0.05ms adaptation |
|
|
5390
4925
|
| **[@ruvector/gnn](https://www.npmjs.com/package/@ruvector/gnn)** | Graph Neural Networks (15 layer types) | Native NAPI bindings |
|
|
5391
|
-
| **[@ruvector/graph-node](https://www.npmjs.com/package/@ruvector/graph-node)** | Graph DB with Cypher queries |
|
|
4926
|
+
| **[@ruvector/graph-node](https://www.npmjs.com/package/@ruvector/graph-node)** | Graph DB with Cypher queries | 10x faster than WASM |
|
|
5392
4927
|
| **[@ruvector/rvlite](https://www.npmjs.com/package/@ruvector/rvlite)** | Standalone DB (SQL, SPARQL, Cypher) | All-in-one solution |
|
|
5393
|
-
| **[
|
|
4928
|
+
| **[ruvector-wasm](https://www.npmjs.com/package/ruvector-wasm)** | Browser/Edge WASM build | Works everywhere |
|
|
5394
4929
|
|
|
5395
4930
|
### 🐘 RuVector PostgreSQL — Enterprise Vector Database
|
|
5396
4931
|
|
|
5397
|
-
**77+ SQL functions** for AI operations directly in PostgreSQL with
|
|
4932
|
+
**77+ SQL functions** for AI operations directly in PostgreSQL with ~61µs search latency and 16,400 QPS.
|
|
5398
4933
|
|
|
5399
4934
|
```bash
|
|
5400
4935
|
# Quick setup with CLI (recommended)
|
|
5401
|
-
npx
|
|
4936
|
+
npx claude-flow ruvector setup --output ./my-ruvector
|
|
5402
4937
|
cd my-ruvector && docker-compose up -d
|
|
5403
4938
|
|
|
5404
4939
|
# Or pull directly from Docker Hub
|
|
@@ -5406,12 +4941,12 @@ docker run -d \
|
|
|
5406
4941
|
--name ruvector-postgres \
|
|
5407
4942
|
-p 5432:5432 \
|
|
5408
4943
|
-e POSTGRES_USER=claude \
|
|
5409
|
-
-e POSTGRES_PASSWORD=
|
|
4944
|
+
-e POSTGRES_PASSWORD=claude-flow-test \
|
|
5410
4945
|
-e POSTGRES_DB=claude_flow \
|
|
5411
4946
|
ruvnet/ruvector-postgres
|
|
5412
4947
|
|
|
5413
4948
|
# Migrate existing memory to PostgreSQL
|
|
5414
|
-
npx
|
|
4949
|
+
npx claude-flow ruvector import --input memory-export.json
|
|
5415
4950
|
```
|
|
5416
4951
|
|
|
5417
4952
|
**RuVector PostgreSQL vs pgvector:**
|
|
@@ -5568,12 +5103,12 @@ await db.createHyperedge(['agent-1', 'agent-2', 'agent-3'], {
|
|
|
5568
5103
|
|
|
5569
5104
|
</details>
|
|
5570
5105
|
|
|
5571
|
-
### Integration with
|
|
5106
|
+
### Integration with Claude-Flow
|
|
5572
5107
|
|
|
5573
|
-
|
|
5108
|
+
Claude-Flow automatically uses RuVector when available:
|
|
5574
5109
|
|
|
5575
5110
|
```typescript
|
|
5576
|
-
//
|
|
5111
|
+
// Claude-Flow detects and uses native ruvector
|
|
5577
5112
|
import { getVectorStore } from '@claude-flow/memory';
|
|
5578
5113
|
|
|
5579
5114
|
const store = await getVectorStore();
|
|
@@ -5591,19 +5126,19 @@ const similarity = attention.attention(queries, keys, values);
|
|
|
5591
5126
|
|
|
5592
5127
|
```bash
|
|
5593
5128
|
# RuVector PostgreSQL Setup (generates Docker files + SQL)
|
|
5594
|
-
npx
|
|
5595
|
-
npx
|
|
5596
|
-
npx
|
|
5129
|
+
npx claude-flow ruvector setup # Output to ./ruvector-postgres
|
|
5130
|
+
npx claude-flow ruvector setup --output ./mydir # Custom directory
|
|
5131
|
+
npx claude-flow ruvector setup --print # Preview files
|
|
5597
5132
|
|
|
5598
5133
|
# Import from sql.js/JSON to PostgreSQL
|
|
5599
|
-
npx
|
|
5600
|
-
npx
|
|
5134
|
+
npx claude-flow ruvector import --input data.json # Direct import
|
|
5135
|
+
npx claude-flow ruvector import --input data.json --output sql # Dry-run (generate SQL)
|
|
5601
5136
|
|
|
5602
5137
|
# Other RuVector commands
|
|
5603
|
-
npx
|
|
5604
|
-
npx
|
|
5605
|
-
npx
|
|
5606
|
-
npx
|
|
5138
|
+
npx claude-flow ruvector status --verbose # Check connection
|
|
5139
|
+
npx claude-flow ruvector benchmark --vectors 10000 # Performance test
|
|
5140
|
+
npx claude-flow ruvector optimize --analyze # Optimization suggestions
|
|
5141
|
+
npx claude-flow ruvector backup --output backup.sql # Backup data
|
|
5607
5142
|
|
|
5608
5143
|
# Native ruvector CLI
|
|
5609
5144
|
npx ruvector status # Check installation
|
|
@@ -5630,11 +5165,11 @@ Cloud platform integration and deployment tools.
|
|
|
5630
5165
|
<details>
|
|
5631
5166
|
<summary>☁️ <strong>Flow Nexus</strong> — Cloud Platform Integration</summary>
|
|
5632
5167
|
|
|
5633
|
-
Flow Nexus is a **cloud platform** for deploying and scaling
|
|
5168
|
+
Flow Nexus is a **cloud platform** for deploying and scaling Claude-Flow beyond your local machine.
|
|
5634
5169
|
|
|
5635
5170
|
### What Flow Nexus Provides
|
|
5636
5171
|
|
|
5637
|
-
| Feature | Local
|
|
5172
|
+
| Feature | Local Claude-Flow | + Flow Nexus |
|
|
5638
5173
|
|---------|-------------------|--------------|
|
|
5639
5174
|
| **Swarm Scale** | 15 agents (local resources) | 100+ agents (cloud resources) |
|
|
5640
5175
|
| **Neural Training** | Limited by local GPU/CPU | Distributed GPU clusters |
|
|
@@ -5683,7 +5218,7 @@ Flow Nexus is a **cloud platform** for deploying and scaling Ruflo beyond your l
|
|
|
5683
5218
|
/flow-nexus-swarm
|
|
5684
5219
|
|
|
5685
5220
|
# Or via CLI
|
|
5686
|
-
npx
|
|
5221
|
+
npx claude-flow@v3alpha nexus swarm deploy \
|
|
5687
5222
|
--topology hierarchical \
|
|
5688
5223
|
--max-agents 50 \
|
|
5689
5224
|
--region us-east-1
|
|
@@ -5695,13 +5230,13 @@ Isolated execution environments for running untrusted code:
|
|
|
5695
5230
|
|
|
5696
5231
|
```bash
|
|
5697
5232
|
# Create sandbox
|
|
5698
|
-
npx
|
|
5233
|
+
npx claude-flow@v3alpha nexus sandbox create --language python
|
|
5699
5234
|
|
|
5700
5235
|
# Execute code safely
|
|
5701
|
-
npx
|
|
5236
|
+
npx claude-flow@v3alpha nexus sandbox exec --code "print('Hello')"
|
|
5702
5237
|
|
|
5703
5238
|
# Cleanup
|
|
5704
|
-
npx
|
|
5239
|
+
npx claude-flow@v3alpha nexus sandbox destroy
|
|
5705
5240
|
```
|
|
5706
5241
|
|
|
5707
5242
|
### Event-Driven Workflows
|
|
@@ -5727,10 +5262,10 @@ steps:
|
|
|
5727
5262
|
# 1. Sign up at flow-nexus.io
|
|
5728
5263
|
# 2. Get API key
|
|
5729
5264
|
# 3. Configure
|
|
5730
|
-
npx
|
|
5265
|
+
npx claude-flow@v3alpha nexus configure --api-key <key>
|
|
5731
5266
|
|
|
5732
5267
|
# 4. Deploy
|
|
5733
|
-
npx
|
|
5268
|
+
npx claude-flow@v3alpha nexus swarm deploy
|
|
5734
5269
|
```
|
|
5735
5270
|
|
|
5736
5271
|
</details>
|
|
@@ -5764,7 +5299,7 @@ Stream-Chain enables **sequential processing** where the output of one agent bec
|
|
|
5764
5299
|
/stream-chain
|
|
5765
5300
|
|
|
5766
5301
|
# Define pipeline
|
|
5767
|
-
npx
|
|
5302
|
+
npx claude-flow@v3alpha stream-chain create \
|
|
5768
5303
|
--name "feature-pipeline" \
|
|
5769
5304
|
--stages "researcher,architect,coder,tester,reviewer"
|
|
5770
5305
|
```
|
|
@@ -5806,11 +5341,11 @@ stages:
|
|
|
5806
5341
|
|
|
5807
5342
|
```bash
|
|
5808
5343
|
# Run the pipeline
|
|
5809
|
-
npx
|
|
5344
|
+
npx claude-flow@v3alpha stream-chain run feature-pipeline \
|
|
5810
5345
|
--input '{"requirements": "Add user dashboard with analytics"}'
|
|
5811
5346
|
|
|
5812
5347
|
# Monitor progress
|
|
5813
|
-
npx
|
|
5348
|
+
npx claude-flow@v3alpha stream-chain status feature-pipeline
|
|
5814
5349
|
```
|
|
5815
5350
|
|
|
5816
5351
|
### Use Cases
|
|
@@ -5850,7 +5385,7 @@ The Pair Programming skill provides **human-AI collaborative coding** with role
|
|
|
5850
5385
|
/pair-programming --mode tdd
|
|
5851
5386
|
|
|
5852
5387
|
# Via CLI
|
|
5853
|
-
npx
|
|
5388
|
+
npx claude-flow@v3alpha pair start --mode navigator
|
|
5854
5389
|
```
|
|
5855
5390
|
|
|
5856
5391
|
### TDD Mode Workflow
|
|
@@ -5890,16 +5425,16 @@ npx ruflo@v3alpha pair start --mode navigator
|
|
|
5890
5425
|
|
|
5891
5426
|
```bash
|
|
5892
5427
|
# Switch roles mid-session
|
|
5893
|
-
npx
|
|
5428
|
+
npx claude-flow@v3alpha pair switch
|
|
5894
5429
|
|
|
5895
5430
|
# Get AI explanation
|
|
5896
|
-
npx
|
|
5431
|
+
npx claude-flow@v3alpha pair explain
|
|
5897
5432
|
|
|
5898
5433
|
# Run tests
|
|
5899
|
-
npx
|
|
5434
|
+
npx claude-flow@v3alpha pair test
|
|
5900
5435
|
|
|
5901
5436
|
# End session with summary
|
|
5902
|
-
npx
|
|
5437
|
+
npx claude-flow@v3alpha pair end
|
|
5903
5438
|
```
|
|
5904
5439
|
|
|
5905
5440
|
</details>
|
|
@@ -5956,22 +5491,22 @@ Detection Time: 0.04ms | 50+ Patterns | Self-Learning | HNSW Vector Search
|
|
|
5956
5491
|
|
|
5957
5492
|
```bash
|
|
5958
5493
|
# Basic threat scan
|
|
5959
|
-
npx
|
|
5494
|
+
npx claude-flow@v3alpha security defend -i "ignore previous instructions"
|
|
5960
5495
|
|
|
5961
5496
|
# Scan a file
|
|
5962
|
-
npx
|
|
5497
|
+
npx claude-flow@v3alpha security defend -f ./user-prompts.txt
|
|
5963
5498
|
|
|
5964
5499
|
# Quick scan (faster)
|
|
5965
|
-
npx
|
|
5500
|
+
npx claude-flow@v3alpha security defend -i "some text" --quick
|
|
5966
5501
|
|
|
5967
5502
|
# JSON output
|
|
5968
|
-
npx
|
|
5503
|
+
npx claude-flow@v3alpha security defend -i "test" -o json
|
|
5969
5504
|
|
|
5970
5505
|
# View statistics
|
|
5971
|
-
npx
|
|
5506
|
+
npx claude-flow@v3alpha security defend --stats
|
|
5972
5507
|
|
|
5973
5508
|
# Full security audit
|
|
5974
|
-
npx
|
|
5509
|
+
npx claude-flow@v3alpha security scan --depth full
|
|
5975
5510
|
```
|
|
5976
5511
|
|
|
5977
5512
|
### MCP Tools
|
|
@@ -6103,7 +5638,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
6103
5638
|
| Module | Purpose | Key Features |
|
|
6104
5639
|
|--------|---------|--------------|
|
|
6105
5640
|
| `@claude-flow/hooks` | Event-driven lifecycle | ReasoningBank, 27 hooks, pattern learning |
|
|
6106
|
-
| `@claude-flow/memory` | Unified vector storage | AgentDB,
|
|
5641
|
+
| `@claude-flow/memory` | Unified vector storage | AgentDB, HNSW indexing, 150x faster search |
|
|
6107
5642
|
| `@claude-flow/security` | CVE remediation | Input validation, path security, AIDefence |
|
|
6108
5643
|
| `@claude-flow/swarm` | Multi-agent coordination | 6 topologies, Byzantine consensus, auto-scaling |
|
|
6109
5644
|
| `@claude-flow/plugins` | WASM extensions | RuVector plugins, semantic search, intent routing |
|
|
@@ -6111,7 +5646,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
6111
5646
|
| `@claude-flow/neural` | Self-learning | SONA, 9 RL algorithms, EWC++ memory preservation |
|
|
6112
5647
|
| `@claude-flow/testing` | Quality assurance | London School TDD, Vitest, fixtures, mocks |
|
|
6113
5648
|
| `@claude-flow/deployment` | Release automation | Versioning, changelogs, NPM publishing |
|
|
6114
|
-
| `@claude-flow/shared` | Common utilities | Types, validation schemas,
|
|
5649
|
+
| `@claude-flow/shared` | Common utilities | Types, validation schemas, constants |
|
|
6115
5650
|
| `@claude-flow/browser` | Browser automation | 59 MCP tools, element refs, trajectory learning |
|
|
6116
5651
|
|
|
6117
5652
|
### Architecture Principles
|
|
@@ -6126,22 +5661,16 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
6126
5661
|
|
|
6127
5662
|
### Performance Benchmarks
|
|
6128
5663
|
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
|
6132
|
-
|
|
6133
|
-
| **
|
|
6134
|
-
| **
|
|
6135
|
-
| **
|
|
6136
|
-
| **
|
|
6137
|
-
| **
|
|
6138
|
-
| **
|
|
6139
|
-
| **Neural** | SONA adaptation | <0.05ms | ✅ Met |
|
|
6140
|
-
| **Graph** | Build (1k nodes) | <200ms | ✅ Met |
|
|
6141
|
-
| **Graph** | PageRank (1k nodes) | <100ms | ✅ Met |
|
|
6142
|
-
| **Learning** | Insight recording | <5ms | ✅ Met |
|
|
6143
|
-
| **Learning** | Consolidation | <500ms | ✅ Met |
|
|
6144
|
-
| **Task** | Success rate | 95%+ | ✅ Met |
|
|
5664
|
+
| Category | Metric | Target | Measured |
|
|
5665
|
+
|----------|--------|--------|----------|
|
|
5666
|
+
| **Startup** | CLI cold start | <500ms | ✅ 380ms |
|
|
5667
|
+
| **Startup** | MCP server init | <400ms | ✅ 320ms |
|
|
5668
|
+
| **Memory** | HNSW search | <1ms | ✅ 0.4ms |
|
|
5669
|
+
| **Memory** | Pattern retrieval | <10ms | ✅ 6ms |
|
|
5670
|
+
| **Swarm** | Agent spawn | <200ms | ✅ 150ms |
|
|
5671
|
+
| **Swarm** | Consensus latency | <100ms | ✅ 75ms |
|
|
5672
|
+
| **Neural** | SONA adaptation | <0.05ms | ✅ 0.03ms |
|
|
5673
|
+
| **Task** | Success rate | 95%+ | ✅ 100% (7/7) |
|
|
6145
5674
|
|
|
6146
5675
|
### Topology Performance
|
|
6147
5676
|
|
|
@@ -6163,7 +5692,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
6163
5692
|
|
|
6164
5693
|
[](https://www.npmjs.com/package/@claude-flow/browser)
|
|
6165
5694
|
|
|
6166
|
-
AI-optimized browser automation integrating [agent-browser](https://github.com/AugmentCode/agent-browser) with
|
|
5695
|
+
AI-optimized browser automation integrating [agent-browser](https://github.com/AugmentCode/agent-browser) with claude-flow for intelligent web automation, trajectory learning, and multi-agent browser coordination.
|
|
6167
5696
|
|
|
6168
5697
|
### Installation
|
|
6169
5698
|
|
|
@@ -6190,7 +5719,7 @@ browser.startTrajectory('Login to dashboard');
|
|
|
6190
5719
|
|
|
6191
5720
|
await browser.open('https://example.com/login');
|
|
6192
5721
|
|
|
6193
|
-
// Use element refs (
|
|
5722
|
+
// Use element refs (93% context reduction vs CSS selectors)
|
|
6194
5723
|
const snapshot = await browser.snapshot({ interactive: true });
|
|
6195
5724
|
await browser.fill('@e1', 'user@example.com');
|
|
6196
5725
|
await browser.fill('@e2', 'password');
|
|
@@ -6205,7 +5734,7 @@ await browser.close();
|
|
|
6205
5734
|
| Feature | Description |
|
|
6206
5735
|
|---------|-------------|
|
|
6207
5736
|
| **59 MCP Tools** | Complete browser automation via MCP protocol |
|
|
6208
|
-
| **Element Refs** |
|
|
5737
|
+
| **Element Refs** | 93% context reduction with `@e1`, `@e2` refs |
|
|
6209
5738
|
| **Trajectory Learning** | Records actions for ReasoningBank/SONA |
|
|
6210
5739
|
| **Security Scanning** | URL validation, PII detection, XSS/SQL injection prevention |
|
|
6211
5740
|
| **9 Workflow Templates** | Login, OAuth, scraping, testing, monitoring |
|
|
@@ -6248,7 +5777,7 @@ const template = getWorkflow('login-basic');
|
|
|
6248
5777
|
<details>
|
|
6249
5778
|
<summary>📦 <strong>Release Management</strong> — @claude-flow/deployment</summary>
|
|
6250
5779
|
|
|
6251
|
-
Automated release management, versioning, and CI/CD for
|
|
5780
|
+
Automated release management, versioning, and CI/CD for Claude Flow packages.
|
|
6252
5781
|
|
|
6253
5782
|
### Features
|
|
6254
5783
|
|
|
@@ -6562,10 +6091,10 @@ npm run bench:attention
|
|
|
6562
6091
|
npm run bench:startup
|
|
6563
6092
|
|
|
6564
6093
|
# Performance report
|
|
6565
|
-
npx
|
|
6094
|
+
npx claude-flow@v3alpha performance report
|
|
6566
6095
|
|
|
6567
6096
|
# Benchmark specific suite
|
|
6568
|
-
npx
|
|
6097
|
+
npx claude-flow@v3alpha performance benchmark --suite memory
|
|
6569
6098
|
```
|
|
6570
6099
|
|
|
6571
6100
|
</details>
|
|
@@ -6946,7 +6475,7 @@ export CLAUDE_FLOW_MEMORY_PATH="./data"
|
|
|
6946
6475
|
| `GCS_PROJECT_ID` | GCS project ID | Optional |
|
|
6947
6476
|
| `GOOGLE_CLOUD_PROJECT` | Alternative project ID variable | Optional |
|
|
6948
6477
|
| `GOOGLE_APPLICATION_CREDENTIALS` | Path to GCS service account JSON | Optional |
|
|
6949
|
-
| `GCS_PREFIX` | Prefix for stored files | `
|
|
6478
|
+
| `GCS_PREFIX` | Prefix for stored files | `claude-flow-patterns` |
|
|
6950
6479
|
|
|
6951
6480
|
### Auto-Update System
|
|
6952
6481
|
|
|
@@ -7017,9 +6546,9 @@ CLAUDE_FLOW_HNSW_EF=200
|
|
|
7017
6546
|
|
|
7018
6547
|
### Configuration File Location
|
|
7019
6548
|
|
|
7020
|
-
|
|
6549
|
+
Claude Flow looks for configuration in this order:
|
|
7021
6550
|
1. `./claude-flow.config.json` (project root)
|
|
7022
|
-
2. `~/.config/
|
|
6551
|
+
2. `~/.config/claude-flow/config.json` (user config)
|
|
7023
6552
|
3. Environment variables (override any file config)
|
|
7024
6553
|
|
|
7025
6554
|
### Complete Configuration Schema
|
|
@@ -7119,7 +6648,7 @@ Ruflo looks for configuration in this order:
|
|
|
7119
6648
|
"level": "info",
|
|
7120
6649
|
"format": "json",
|
|
7121
6650
|
"destination": "console",
|
|
7122
|
-
"filePath": "./logs/
|
|
6651
|
+
"filePath": "./logs/claude-flow.log",
|
|
7123
6652
|
"maxFileSize": "100MB",
|
|
7124
6653
|
"maxFiles": 10
|
|
7125
6654
|
},
|
|
@@ -7138,7 +6667,7 @@ Ruflo looks for configuration in this order:
|
|
|
7138
6667
|
"default": "anthropic",
|
|
7139
6668
|
"fallback": ["openai", "google"],
|
|
7140
6669
|
"anthropic": {
|
|
7141
|
-
"model": "claude-sonnet-4-
|
|
6670
|
+
"model": "claude-sonnet-4-20250514",
|
|
7142
6671
|
"maxTokens": 8192
|
|
7143
6672
|
},
|
|
7144
6673
|
"openai": {
|
|
@@ -7186,7 +6715,7 @@ Ruflo looks for configuration in this order:
|
|
|
7186
6715
|
"version": "3.0.0",
|
|
7187
6716
|
"memory": {
|
|
7188
6717
|
"type": "hybrid",
|
|
7189
|
-
"path": "/var/lib/
|
|
6718
|
+
"path": "/var/lib/claude-flow/data",
|
|
7190
6719
|
"encryption": { "enabled": true, "algorithm": "aes-256-gcm" }
|
|
7191
6720
|
},
|
|
7192
6721
|
"swarm": { "topology": "hierarchical", "maxAgents": 15 },
|
|
@@ -7198,7 +6727,7 @@ Ruflo looks for configuration in this order:
|
|
|
7198
6727
|
"level": "warn",
|
|
7199
6728
|
"format": "json",
|
|
7200
6729
|
"destination": "file",
|
|
7201
|
-
"filePath": "/var/log/
|
|
6730
|
+
"filePath": "/var/log/claude-flow/production.log"
|
|
7202
6731
|
},
|
|
7203
6732
|
"monitoring": { "enabled": true, "metricsInterval": 30000 }
|
|
7204
6733
|
}
|
|
@@ -7242,25 +6771,25 @@ Ruflo looks for configuration in this order:
|
|
|
7242
6771
|
|
|
7243
6772
|
```bash
|
|
7244
6773
|
# View current configuration
|
|
7245
|
-
npx
|
|
6774
|
+
npx claude-flow@v3alpha config list
|
|
7246
6775
|
|
|
7247
6776
|
# Get specific value
|
|
7248
|
-
npx
|
|
6777
|
+
npx claude-flow@v3alpha config get --key memory.type
|
|
7249
6778
|
|
|
7250
6779
|
# Set configuration value
|
|
7251
|
-
npx
|
|
6780
|
+
npx claude-flow@v3alpha config set --key swarm.maxAgents --value 10
|
|
7252
6781
|
|
|
7253
6782
|
# Export configuration
|
|
7254
|
-
npx
|
|
6783
|
+
npx claude-flow@v3alpha config export > my-config.json
|
|
7255
6784
|
|
|
7256
6785
|
# Import configuration
|
|
7257
|
-
npx
|
|
6786
|
+
npx claude-flow@v3alpha config import --file my-config.json
|
|
7258
6787
|
|
|
7259
6788
|
# Reset to defaults
|
|
7260
|
-
npx
|
|
6789
|
+
npx claude-flow@v3alpha config reset --key swarm
|
|
7261
6790
|
|
|
7262
6791
|
# Initialize with wizard
|
|
7263
|
-
npx
|
|
6792
|
+
npx claude-flow@v3alpha init --wizard
|
|
7264
6793
|
```
|
|
7265
6794
|
|
|
7266
6795
|
</details>
|
|
@@ -7284,7 +6813,7 @@ lsof -i :3000
|
|
|
7284
6813
|
# Kill existing process
|
|
7285
6814
|
kill -9 <PID>
|
|
7286
6815
|
# Restart MCP server
|
|
7287
|
-
npx
|
|
6816
|
+
npx claude-flow@v3alpha mcp start
|
|
7288
6817
|
```
|
|
7289
6818
|
|
|
7290
6819
|
**Agent spawn failures**
|
|
@@ -7298,9 +6827,9 @@ export CLAUDE_FLOW_MAX_AGENTS=5
|
|
|
7298
6827
|
**Pattern search returning no results**
|
|
7299
6828
|
```bash
|
|
7300
6829
|
# Verify patterns are stored
|
|
7301
|
-
npx
|
|
6830
|
+
npx claude-flow@v3alpha hooks metrics
|
|
7302
6831
|
# Re-run pretraining if empty
|
|
7303
|
-
npx
|
|
6832
|
+
npx claude-flow@v3alpha hooks pretrain
|
|
7304
6833
|
```
|
|
7305
6834
|
|
|
7306
6835
|
**Windows path issues**
|
|
@@ -7308,7 +6837,7 @@ npx ruflo@v3alpha hooks pretrain
|
|
|
7308
6837
|
# Use forward slashes or escape backslashes
|
|
7309
6838
|
$env:CLAUDE_FLOW_MEMORY_PATH = "./data"
|
|
7310
6839
|
# Or use absolute path
|
|
7311
|
-
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/
|
|
6840
|
+
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/claude-flow/data"
|
|
7312
6841
|
```
|
|
7313
6842
|
|
|
7314
6843
|
**Permission denied errors**
|
|
@@ -7321,7 +6850,7 @@ sudo chown -R $(whoami) ~/.npm
|
|
|
7321
6850
|
**High memory usage**
|
|
7322
6851
|
```bash
|
|
7323
6852
|
# Enable garbage collection
|
|
7324
|
-
node --expose-gc node_modules/.bin/
|
|
6853
|
+
node --expose-gc node_modules/.bin/claude-flow
|
|
7325
6854
|
# Reduce HNSW parameters for lower memory
|
|
7326
6855
|
export CLAUDE_FLOW_HNSW_M=8
|
|
7327
6856
|
export CLAUDE_FLOW_HNSW_EF=100
|
|
@@ -7353,45 +6882,45 @@ export CLAUDE_FLOW_HNSW_EF=100
|
|
|
7353
6882
|
|
|
7354
6883
|
| Change | V2 | V3 | Impact |
|
|
7355
6884
|
|--------|----|----|--------|
|
|
7356
|
-
| **Package Structure** | `
|
|
6885
|
+
| **Package Structure** | `claude-flow` | `@claude-flow/*` (scoped) | Update imports |
|
|
7357
6886
|
| **Memory Backend** | JSON files | AgentDB + HNSW | Faster search |
|
|
7358
6887
|
| **Hooks System** | Basic patterns | ReasoningBank + SONA | Self-learning |
|
|
7359
6888
|
| **Security** | Manual validation | Automatic strict mode | More secure |
|
|
7360
6889
|
| **CLI Commands** | Flat structure | Nested subcommands | New syntax |
|
|
7361
|
-
| **Config Format** | `.
|
|
6890
|
+
| **Config Format** | `.claude-flow/config.json` | `claude-flow.config.json` | Update path |
|
|
7362
6891
|
|
|
7363
6892
|
### Step-by-Step Migration
|
|
7364
6893
|
|
|
7365
6894
|
```bash
|
|
7366
6895
|
# STEP 1: Backup existing data (CRITICAL)
|
|
7367
6896
|
cp -r ./data ./data-backup-v2
|
|
7368
|
-
cp -r ./.
|
|
6897
|
+
cp -r ./.claude-flow ./.claude-flow-backup-v2
|
|
7369
6898
|
|
|
7370
6899
|
# STEP 2: Check migration status
|
|
7371
|
-
npx
|
|
6900
|
+
npx claude-flow@v3alpha migrate status
|
|
7372
6901
|
|
|
7373
6902
|
# STEP 3: Run migration with dry-run first
|
|
7374
|
-
npx
|
|
6903
|
+
npx claude-flow@v3alpha migrate run --dry-run
|
|
7375
6904
|
|
|
7376
6905
|
# STEP 4: Execute migration
|
|
7377
|
-
npx
|
|
6906
|
+
npx claude-flow@v3alpha migrate run --from v2
|
|
7378
6907
|
|
|
7379
6908
|
# STEP 5: Verify migration
|
|
7380
|
-
npx
|
|
6909
|
+
npx claude-flow@v3alpha migrate verify
|
|
7381
6910
|
|
|
7382
6911
|
# STEP 6: Initialize V3 learning
|
|
7383
|
-
npx
|
|
7384
|
-
npx
|
|
6912
|
+
npx claude-flow@v3alpha hooks pretrain
|
|
6913
|
+
npx claude-flow@v3alpha doctor --fix
|
|
7385
6914
|
```
|
|
7386
6915
|
|
|
7387
6916
|
### Command Changes Reference
|
|
7388
6917
|
|
|
7389
6918
|
| V2 Command | V3 Command | Notes |
|
|
7390
6919
|
|------------|------------|-------|
|
|
7391
|
-
| `
|
|
7392
|
-
| `
|
|
7393
|
-
| `
|
|
7394
|
-
| `
|
|
6920
|
+
| `claude-flow start` | `claude-flow mcp start` | MCP is explicit |
|
|
6921
|
+
| `claude-flow init` | `claude-flow init --wizard` | Interactive mode |
|
|
6922
|
+
| `claude-flow spawn <type>` | `claude-flow agent spawn -t <type>` | Nested under `agent` |
|
|
6923
|
+
| `claude-flow swarm create` | `claude-flow swarm init --topology mesh` | Explicit topology |
|
|
7395
6924
|
| `--pattern-store path` | `--memory-backend agentdb` | Backend selection |
|
|
7396
6925
|
| `hooks record` | `hooks post-edit --success true` | Explicit success flag |
|
|
7397
6926
|
| `memory get <key>` | `memory retrieve --key <key>` | Explicit flag |
|
|
@@ -7401,7 +6930,7 @@ npx ruflo@v3alpha doctor --fix
|
|
|
7401
6930
|
|
|
7402
6931
|
### Configuration Migration
|
|
7403
6932
|
|
|
7404
|
-
**V2 Config (`.
|
|
6933
|
+
**V2 Config (`.claude-flow/config.json`)**:
|
|
7405
6934
|
```json
|
|
7406
6935
|
{
|
|
7407
6936
|
"mode": "basic",
|
|
@@ -7433,7 +6962,7 @@ npx ruflo@v3alpha doctor --fix
|
|
|
7433
6962
|
|
|
7434
6963
|
```typescript
|
|
7435
6964
|
// V2 (deprecated)
|
|
7436
|
-
import { ClaudeFlow, Agent, Memory } from '
|
|
6965
|
+
import { ClaudeFlow, Agent, Memory } from 'claude-flow';
|
|
7437
6966
|
|
|
7438
6967
|
// V3 (new)
|
|
7439
6968
|
import { ClaudeFlowClient } from '@claude-flow/cli';
|
|
@@ -7448,10 +6977,10 @@ If migration fails, you can rollback:
|
|
|
7448
6977
|
|
|
7449
6978
|
```bash
|
|
7450
6979
|
# Check rollback options
|
|
7451
|
-
npx
|
|
6980
|
+
npx claude-flow@v3alpha migrate rollback --list
|
|
7452
6981
|
|
|
7453
6982
|
# Rollback to V2
|
|
7454
|
-
npx
|
|
6983
|
+
npx claude-flow@v3alpha migrate rollback --to v2
|
|
7455
6984
|
|
|
7456
6985
|
# Restore backup manually if needed
|
|
7457
6986
|
rm -rf ./data
|
|
@@ -7460,12 +6989,12 @@ cp -r ./data-backup-v2 ./data
|
|
|
7460
6989
|
|
|
7461
6990
|
### Post-Migration Checklist
|
|
7462
6991
|
|
|
7463
|
-
- [ ] Verify all agents spawn correctly: `npx
|
|
7464
|
-
- [ ] Check memory search works: `npx
|
|
7465
|
-
- [ ] Confirm MCP server starts: `npx
|
|
7466
|
-
- [ ] Run doctor diagnostics: `npx
|
|
7467
|
-
- [ ] Test a simple swarm: `npx
|
|
7468
|
-
- [ ] Bootstrap learning: `npx
|
|
6992
|
+
- [ ] Verify all agents spawn correctly: `npx claude-flow@v3alpha agent list`
|
|
6993
|
+
- [ ] Check memory search works: `npx claude-flow@v3alpha memory search -q "test"`
|
|
6994
|
+
- [ ] Confirm MCP server starts: `npx claude-flow@v3alpha mcp start`
|
|
6995
|
+
- [ ] Run doctor diagnostics: `npx claude-flow@v3alpha doctor`
|
|
6996
|
+
- [ ] Test a simple swarm: `npx claude-flow@v3alpha swarm init --topology mesh`
|
|
6997
|
+
- [ ] Bootstrap learning: `npx claude-flow@v3alpha hooks pretrain`
|
|
7469
6998
|
|
|
7470
6999
|
### Common Migration Issues
|
|
7471
7000
|
|