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