@claude-flow/cli 3.0.0-alpha.33 → 3.0.0-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/.claude/agents/analysis/analyze-code-quality.md +180 -0
  2. package/.claude/agents/analysis/code-analyzer.md +209 -0
  3. package/.claude/agents/architecture/arch-system-design.md +156 -0
  4. package/.claude/agents/base-template-generator.md +268 -0
  5. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  6. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  7. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  8. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  9. package/.claude/agents/consensus/quorum-manager.md +823 -0
  10. package/.claude/agents/consensus/raft-manager.md +63 -0
  11. package/.claude/agents/consensus/security-manager.md +622 -0
  12. package/.claude/agents/core/coder.md +416 -0
  13. package/.claude/agents/core/planner.md +337 -0
  14. package/.claude/agents/core/researcher.md +331 -0
  15. package/.claude/agents/core/reviewer.md +483 -0
  16. package/.claude/agents/core/tester.md +476 -0
  17. package/.claude/agents/custom/test-long-runner.md +44 -0
  18. package/.claude/agents/data/data-ml-model.md +444 -0
  19. package/.claude/agents/development/dev-backend-api.md +345 -0
  20. package/.claude/agents/devops/ops-cicd-github.md +164 -0
  21. package/.claude/agents/documentation/docs-api-openapi.md +354 -0
  22. package/.claude/agents/flow-nexus/app-store.md +88 -0
  23. package/.claude/agents/flow-nexus/authentication.md +69 -0
  24. package/.claude/agents/flow-nexus/challenges.md +81 -0
  25. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  26. package/.claude/agents/flow-nexus/payments.md +83 -0
  27. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  28. package/.claude/agents/flow-nexus/swarm.md +76 -0
  29. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  30. package/.claude/agents/flow-nexus/workflow.md +84 -0
  31. package/.claude/agents/github/code-review-swarm.md +377 -0
  32. package/.claude/agents/github/github-modes.md +173 -0
  33. package/.claude/agents/github/issue-tracker.md +576 -0
  34. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  35. package/.claude/agents/github/pr-manager.md +438 -0
  36. package/.claude/agents/github/project-board-sync.md +509 -0
  37. package/.claude/agents/github/release-manager.md +605 -0
  38. package/.claude/agents/github/release-swarm.md +583 -0
  39. package/.claude/agents/github/repo-architect.md +398 -0
  40. package/.claude/agents/github/swarm-issue.md +573 -0
  41. package/.claude/agents/github/swarm-pr.md +428 -0
  42. package/.claude/agents/github/sync-coordinator.md +452 -0
  43. package/.claude/agents/github/workflow-automation.md +903 -0
  44. package/.claude/agents/goal/agent.md +816 -0
  45. package/.claude/agents/goal/goal-planner.md +73 -0
  46. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  47. package/.claude/agents/optimization/load-balancer.md +431 -0
  48. package/.claude/agents/optimization/performance-monitor.md +672 -0
  49. package/.claude/agents/optimization/resource-allocator.md +674 -0
  50. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  51. package/.claude/agents/payments/agentic-payments.md +126 -0
  52. package/.claude/agents/sona/sona-learning-optimizer.md +496 -0
  53. package/.claude/agents/sparc/architecture.md +699 -0
  54. package/.claude/agents/sparc/pseudocode.md +520 -0
  55. package/.claude/agents/sparc/refinement.md +802 -0
  56. package/.claude/agents/sparc/specification.md +478 -0
  57. package/.claude/agents/specialized/spec-mobile-react-native.md +226 -0
  58. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  59. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  60. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  61. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  62. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  63. package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
  64. package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
  65. package/.claude/agents/swarm/mesh-coordinator.md +963 -0
  66. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  67. package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  68. package/.claude/agents/templates/github-pr-manager.md +177 -0
  69. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  70. package/.claude/agents/templates/memory-coordinator.md +187 -0
  71. package/.claude/agents/templates/orchestrator-task.md +139 -0
  72. package/.claude/agents/templates/performance-analyzer.md +199 -0
  73. package/.claude/agents/templates/sparc-coordinator.md +514 -0
  74. package/.claude/agents/testing/production-validator.md +395 -0
  75. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  76. package/.claude/agents/tmp.json +0 -0
  77. package/.claude/commands/agents/README.md +10 -0
  78. package/.claude/commands/agents/agent-capabilities.md +21 -0
  79. package/.claude/commands/agents/agent-coordination.md +28 -0
  80. package/.claude/commands/agents/agent-spawning.md +28 -0
  81. package/.claude/commands/agents/agent-types.md +26 -0
  82. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  83. package/.claude/commands/analysis/README.md +9 -0
  84. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  85. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  86. package/.claude/commands/analysis/performance-report.md +25 -0
  87. package/.claude/commands/analysis/token-efficiency.md +45 -0
  88. package/.claude/commands/analysis/token-usage.md +25 -0
  89. package/.claude/commands/automation/README.md +9 -0
  90. package/.claude/commands/automation/auto-agent.md +122 -0
  91. package/.claude/commands/automation/self-healing.md +106 -0
  92. package/.claude/commands/automation/session-memory.md +90 -0
  93. package/.claude/commands/automation/smart-agents.md +73 -0
  94. package/.claude/commands/automation/smart-spawn.md +25 -0
  95. package/.claude/commands/automation/workflow-select.md +25 -0
  96. package/.claude/commands/claude-flow-help.md +103 -0
  97. package/.claude/commands/claude-flow-memory.md +107 -0
  98. package/.claude/commands/claude-flow-swarm.md +205 -0
  99. package/.claude/commands/coordination/README.md +9 -0
  100. package/.claude/commands/coordination/agent-spawn.md +25 -0
  101. package/.claude/commands/coordination/init.md +44 -0
  102. package/.claude/commands/coordination/orchestrate.md +43 -0
  103. package/.claude/commands/coordination/spawn.md +45 -0
  104. package/.claude/commands/coordination/swarm-init.md +85 -0
  105. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  106. package/.claude/commands/flow-nexus/app-store.md +124 -0
  107. package/.claude/commands/flow-nexus/challenges.md +120 -0
  108. package/.claude/commands/flow-nexus/login-registration.md +65 -0
  109. package/.claude/commands/flow-nexus/neural-network.md +134 -0
  110. package/.claude/commands/flow-nexus/payments.md +116 -0
  111. package/.claude/commands/flow-nexus/sandbox.md +83 -0
  112. package/.claude/commands/flow-nexus/swarm.md +87 -0
  113. package/.claude/commands/flow-nexus/user-tools.md +152 -0
  114. package/.claude/commands/flow-nexus/workflow.md +115 -0
  115. package/.claude/commands/github/README.md +11 -0
  116. package/.claude/commands/github/code-review-swarm.md +514 -0
  117. package/.claude/commands/github/code-review.md +25 -0
  118. package/.claude/commands/github/github-modes.md +147 -0
  119. package/.claude/commands/github/github-swarm.md +121 -0
  120. package/.claude/commands/github/issue-tracker.md +292 -0
  121. package/.claude/commands/github/issue-triage.md +25 -0
  122. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  123. package/.claude/commands/github/pr-enhance.md +26 -0
  124. package/.claude/commands/github/pr-manager.md +170 -0
  125. package/.claude/commands/github/project-board-sync.md +471 -0
  126. package/.claude/commands/github/release-manager.md +338 -0
  127. package/.claude/commands/github/release-swarm.md +544 -0
  128. package/.claude/commands/github/repo-analyze.md +25 -0
  129. package/.claude/commands/github/repo-architect.md +367 -0
  130. package/.claude/commands/github/swarm-issue.md +482 -0
  131. package/.claude/commands/github/swarm-pr.md +285 -0
  132. package/.claude/commands/github/sync-coordinator.md +301 -0
  133. package/.claude/commands/github/workflow-automation.md +442 -0
  134. package/.claude/commands/hive-mind/README.md +17 -0
  135. package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
  136. package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
  137. package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
  138. package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
  139. package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
  140. package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
  141. package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
  142. package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
  143. package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
  144. package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
  145. package/.claude/commands/hive-mind/hive-mind.md +27 -0
  146. package/.claude/commands/hooks/README.md +11 -0
  147. package/.claude/commands/hooks/overview.md +58 -0
  148. package/.claude/commands/hooks/post-edit.md +117 -0
  149. package/.claude/commands/hooks/post-task.md +112 -0
  150. package/.claude/commands/hooks/pre-edit.md +113 -0
  151. package/.claude/commands/hooks/pre-task.md +111 -0
  152. package/.claude/commands/hooks/session-end.md +118 -0
  153. package/.claude/commands/hooks/setup.md +103 -0
  154. package/.claude/commands/memory/README.md +9 -0
  155. package/.claude/commands/memory/memory-persist.md +25 -0
  156. package/.claude/commands/memory/memory-search.md +25 -0
  157. package/.claude/commands/memory/memory-usage.md +25 -0
  158. package/.claude/commands/memory/neural.md +47 -0
  159. package/.claude/commands/monitoring/README.md +9 -0
  160. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  161. package/.claude/commands/monitoring/agents.md +44 -0
  162. package/.claude/commands/monitoring/real-time-view.md +25 -0
  163. package/.claude/commands/monitoring/status.md +46 -0
  164. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  165. package/.claude/commands/optimization/README.md +9 -0
  166. package/.claude/commands/optimization/auto-topology.md +62 -0
  167. package/.claude/commands/optimization/cache-manage.md +25 -0
  168. package/.claude/commands/optimization/parallel-execute.md +25 -0
  169. package/.claude/commands/optimization/parallel-execution.md +50 -0
  170. package/.claude/commands/optimization/topology-optimize.md +25 -0
  171. package/.claude/commands/pair/README.md +261 -0
  172. package/.claude/commands/pair/commands.md +546 -0
  173. package/.claude/commands/pair/config.md +510 -0
  174. package/.claude/commands/pair/examples.md +512 -0
  175. package/.claude/commands/pair/modes.md +348 -0
  176. package/.claude/commands/pair/session.md +407 -0
  177. package/.claude/commands/pair/start.md +209 -0
  178. package/.claude/commands/sparc/analyzer.md +52 -0
  179. package/.claude/commands/sparc/architect.md +53 -0
  180. package/.claude/commands/sparc/ask.md +97 -0
  181. package/.claude/commands/sparc/batch-executor.md +54 -0
  182. package/.claude/commands/sparc/code.md +89 -0
  183. package/.claude/commands/sparc/coder.md +54 -0
  184. package/.claude/commands/sparc/debug.md +83 -0
  185. package/.claude/commands/sparc/debugger.md +54 -0
  186. package/.claude/commands/sparc/designer.md +53 -0
  187. package/.claude/commands/sparc/devops.md +109 -0
  188. package/.claude/commands/sparc/docs-writer.md +80 -0
  189. package/.claude/commands/sparc/documenter.md +54 -0
  190. package/.claude/commands/sparc/innovator.md +54 -0
  191. package/.claude/commands/sparc/integration.md +83 -0
  192. package/.claude/commands/sparc/mcp.md +117 -0
  193. package/.claude/commands/sparc/memory-manager.md +54 -0
  194. package/.claude/commands/sparc/optimizer.md +54 -0
  195. package/.claude/commands/sparc/orchestrator.md +132 -0
  196. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  197. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  198. package/.claude/commands/sparc/researcher.md +54 -0
  199. package/.claude/commands/sparc/reviewer.md +54 -0
  200. package/.claude/commands/sparc/security-review.md +80 -0
  201. package/.claude/commands/sparc/sparc-modes.md +174 -0
  202. package/.claude/commands/sparc/sparc.md +111 -0
  203. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  204. package/.claude/commands/sparc/supabase-admin.md +348 -0
  205. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  206. package/.claude/commands/sparc/tdd.md +54 -0
  207. package/.claude/commands/sparc/tester.md +54 -0
  208. package/.claude/commands/sparc/tutorial.md +79 -0
  209. package/.claude/commands/sparc/workflow-manager.md +54 -0
  210. package/.claude/commands/sparc.md +166 -0
  211. package/.claude/commands/stream-chain/pipeline.md +121 -0
  212. package/.claude/commands/stream-chain/run.md +70 -0
  213. package/.claude/commands/swarm/README.md +15 -0
  214. package/.claude/commands/swarm/analysis.md +95 -0
  215. package/.claude/commands/swarm/development.md +96 -0
  216. package/.claude/commands/swarm/examples.md +168 -0
  217. package/.claude/commands/swarm/maintenance.md +102 -0
  218. package/.claude/commands/swarm/optimization.md +117 -0
  219. package/.claude/commands/swarm/research.md +136 -0
  220. package/.claude/commands/swarm/swarm-analysis.md +8 -0
  221. package/.claude/commands/swarm/swarm-background.md +8 -0
  222. package/.claude/commands/swarm/swarm-init.md +19 -0
  223. package/.claude/commands/swarm/swarm-modes.md +8 -0
  224. package/.claude/commands/swarm/swarm-monitor.md +8 -0
  225. package/.claude/commands/swarm/swarm-spawn.md +19 -0
  226. package/.claude/commands/swarm/swarm-status.md +8 -0
  227. package/.claude/commands/swarm/swarm-strategies.md +8 -0
  228. package/.claude/commands/swarm/swarm.md +27 -0
  229. package/.claude/commands/swarm/testing.md +131 -0
  230. package/.claude/commands/training/README.md +9 -0
  231. package/.claude/commands/training/model-update.md +25 -0
  232. package/.claude/commands/training/neural-patterns.md +74 -0
  233. package/.claude/commands/training/neural-train.md +25 -0
  234. package/.claude/commands/training/pattern-learn.md +25 -0
  235. package/.claude/commands/training/specialization.md +63 -0
  236. package/.claude/commands/truth/start.md +143 -0
  237. package/.claude/commands/verify/check.md +50 -0
  238. package/.claude/commands/verify/start.md +128 -0
  239. package/.claude/commands/workflows/README.md +9 -0
  240. package/.claude/commands/workflows/development.md +78 -0
  241. package/.claude/commands/workflows/research.md +63 -0
  242. package/.claude/commands/workflows/workflow-create.md +25 -0
  243. package/.claude/commands/workflows/workflow-execute.md +25 -0
  244. package/.claude/commands/workflows/workflow-export.md +25 -0
  245. package/.claude/helpers/memory.js +83 -0
  246. package/.claude/helpers/post-commit +16 -0
  247. package/.claude/helpers/pre-commit +26 -0
  248. package/.claude/helpers/router.js +66 -0
  249. package/.claude/helpers/session.js +127 -0
  250. package/.claude/helpers/statusline-hook.sh +21 -0
  251. package/.claude/helpers/statusline.js +227 -0
  252. package/.claude/settings.json +212 -0
  253. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  254. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  255. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  256. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  257. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  258. package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
  259. package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
  260. package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
  261. package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
  262. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  263. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  264. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  265. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  266. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  267. package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
  268. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  269. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  270. package/.claude/skills/performance-analysis/SKILL.md +563 -0
  271. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  272. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  273. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
  274. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
  275. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
  276. package/.claude/skills/skill-builder/SKILL.md +910 -0
  277. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  278. package/.claude/skills/stream-chain/SKILL.md +563 -0
  279. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  280. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  281. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  282. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  283. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  284. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  285. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  286. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  287. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  288. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  289. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  290. package/.claude/skills/verification-quality/SKILL.md +649 -0
  291. package/.claude/skills/worker-benchmarks/skill.md +135 -0
  292. package/.claude/skills/worker-integration/skill.md +154 -0
  293. package/dist/src/init/executor.d.ts.map +1 -1
  294. package/dist/src/init/executor.js +13 -4
  295. package/dist/src/init/executor.js.map +1 -1
  296. package/dist/src/init/settings-generator.js +1 -1
  297. package/dist/src/init/settings-generator.js.map +1 -1
  298. package/dist/tsconfig.tsbuildinfo +1 -1
  299. package/package.json +2 -1
@@ -0,0 +1,90 @@
1
+ # Cross-Session Memory
2
+
3
+ ## Purpose
4
+ Maintain context and learnings across Claude Code sessions for continuous improvement.
5
+
6
+ ## Memory Features
7
+
8
+ ### 1. Automatic State Persistence
9
+ At session end, automatically saves:
10
+ - Active agents and specializations
11
+ - Task history and patterns
12
+ - Performance metrics
13
+ - Neural network weights
14
+ - Knowledge base updates
15
+
16
+ ### 2. Session Restoration
17
+ ```javascript
18
+ // Using MCP tools for memory operations
19
+ mcp__claude-flow__memory_usage({
20
+ "action": "retrieve",
21
+ "key": "session-state",
22
+ "namespace": "sessions"
23
+ })
24
+
25
+ // Restore swarm state
26
+ mcp__claude-flow__context_restore({
27
+ "snapshotId": "sess-123"
28
+ })
29
+ ```
30
+
31
+ **Fallback with npx:**
32
+ ```bash
33
+ npx claude-flow hook session-restore --session-id "sess-123"
34
+ ```
35
+
36
+ ### 3. Memory Types
37
+
38
+ **Project Memory:**
39
+ - File relationships
40
+ - Common edit patterns
41
+ - Testing approaches
42
+ - Build configurations
43
+
44
+ **Agent Memory:**
45
+ - Specialization levels
46
+ - Task success rates
47
+ - Optimization strategies
48
+ - Error patterns
49
+
50
+ **Performance Memory:**
51
+ - Bottleneck history
52
+ - Optimization results
53
+ - Token usage patterns
54
+ - Efficiency trends
55
+
56
+ ### 4. Privacy & Control
57
+ ```javascript
58
+ // List memory contents
59
+ mcp__claude-flow__memory_usage({
60
+ "action": "list",
61
+ "namespace": "sessions"
62
+ })
63
+
64
+ // Delete specific memory
65
+ mcp__claude-flow__memory_usage({
66
+ "action": "delete",
67
+ "key": "session-123",
68
+ "namespace": "sessions"
69
+ })
70
+
71
+ // Backup memory
72
+ mcp__claude-flow__memory_backup({
73
+ "path": "./backups/memory-backup.json"
74
+ })
75
+ ```
76
+
77
+ **Manual control:**
78
+ ```bash
79
+ # View stored memory
80
+ ls .claude-flow/memory/
81
+
82
+ # Disable memory
83
+ export CLAUDE_FLOW_MEMORY_PERSIST=false
84
+ ```
85
+
86
+ ## Benefits
87
+ - 🧠 Contextual awareness
88
+ - 📈 Cumulative learning
89
+ - ⚡ Faster task completion
90
+ - 🎯 Personalized optimization
@@ -0,0 +1,73 @@
1
+ # Smart Agent Auto-Spawning
2
+
3
+ ## Purpose
4
+ Automatically spawn the right agents at the right time without manual intervention.
5
+
6
+ ## Auto-Spawning Triggers
7
+
8
+ ### 1. File Type Detection
9
+ When editing files, agents auto-spawn:
10
+ - **JavaScript/TypeScript**: Coder agent
11
+ - **Markdown**: Researcher agent
12
+ - **JSON/YAML**: Analyst agent
13
+ - **Multiple files**: Coordinator agent
14
+
15
+ ### 2. Task Complexity
16
+ ```
17
+ Simple task: "Fix typo"
18
+ → Single coordinator agent
19
+
20
+ Complex task: "Implement OAuth with Google"
21
+ → Architect + Coder + Tester + Researcher
22
+ ```
23
+
24
+ ### 3. Dynamic Scaling
25
+ The system monitors workload and spawns additional agents when:
26
+ - Task queue grows
27
+ - Complexity increases
28
+ - Parallel opportunities exist
29
+
30
+ **Status Monitoring:**
31
+ ```javascript
32
+ // Check swarm health
33
+ mcp__claude-flow__swarm_status({
34
+ "swarmId": "current"
35
+ })
36
+
37
+ // Monitor agent performance
38
+ mcp__claude-flow__agent_metrics({
39
+ "agentId": "agent-123"
40
+ })
41
+ ```
42
+
43
+ ## Configuration
44
+
45
+ ### MCP Tool Integration
46
+ Uses Claude Flow MCP tools for agent coordination:
47
+ ```javascript
48
+ // Initialize swarm with appropriate topology
49
+ mcp__claude-flow__swarm_init({
50
+ "topology": "mesh",
51
+ "maxAgents": 8,
52
+ "strategy": "auto"
53
+ })
54
+
55
+ // Spawn agents based on file type
56
+ mcp__claude-flow__agent_spawn({
57
+ "type": "coder",
58
+ "name": "JavaScript Handler",
59
+ "capabilities": ["javascript", "typescript"]
60
+ })
61
+ ```
62
+
63
+ ### Fallback Configuration
64
+ If MCP tools are unavailable:
65
+ ```bash
66
+ npx claude-flow hook pre-task --auto-spawn-agents
67
+ ```
68
+
69
+ ## Benefits
70
+ - 🤖 Zero manual agent management
71
+ - 🎯 Perfect agent selection
72
+ - 📈 Dynamic scaling
73
+ - 💾 Resource efficiency
@@ -0,0 +1,25 @@
1
+ # smart-spawn
2
+
3
+ Intelligently spawn agents based on workload analysis.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow automation smart-spawn [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--analyze` - Analyze before spawning
12
+ - `--threshold <n>` - Spawn threshold
13
+ - `--topology <type>` - Preferred topology
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Smart spawn with analysis
18
+ npx claude-flow automation smart-spawn --analyze
19
+
20
+ # Set spawn threshold
21
+ npx claude-flow automation smart-spawn --threshold 5
22
+
23
+ # Force topology
24
+ npx claude-flow automation smart-spawn --topology hierarchical
25
+ ```
@@ -0,0 +1,25 @@
1
+ # workflow-select
2
+
3
+ Automatically select optimal workflow based on task type.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow automation workflow-select [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--task <description>` - Task description
12
+ - `--constraints <list>` - Workflow constraints
13
+ - `--preview` - Preview without executing
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Select workflow for task
18
+ npx claude-flow automation workflow-select --task "Deploy to production"
19
+
20
+ # With constraints
21
+ npx claude-flow automation workflow-select --constraints "no-downtime,rollback"
22
+
23
+ # Preview mode
24
+ npx claude-flow automation workflow-select --task "Database migration" --preview
25
+ ```
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: claude-flow-help
3
+ description: Show Claude-Flow commands and usage
4
+ ---
5
+
6
+ # Claude-Flow Commands
7
+
8
+ ## 🌊 Claude-Flow: Agent Orchestration Platform
9
+
10
+ Claude-Flow is the ultimate multi-terminal orchestration platform that revolutionizes how you work with Claude Code.
11
+
12
+ ## Core Commands
13
+
14
+ ### 🚀 System Management
15
+ - `./claude-flow start` - Start orchestration system
16
+ - `./claude-flow start --ui` - Start with interactive process management UI
17
+ - `./claude-flow status` - Check system status
18
+ - `./claude-flow monitor` - Real-time monitoring
19
+ - `./claude-flow stop` - Stop orchestration
20
+
21
+ ### 🤖 Agent Management
22
+ - `./claude-flow agent spawn <type>` - Create new agent
23
+ - `./claude-flow agent list` - List active agents
24
+ - `./claude-flow agent info <id>` - Agent details
25
+ - `./claude-flow agent terminate <id>` - Stop agent
26
+
27
+ ### 📋 Task Management
28
+ - `./claude-flow task create <type> "description"` - Create task
29
+ - `./claude-flow task list` - List all tasks
30
+ - `./claude-flow task status <id>` - Task status
31
+ - `./claude-flow task cancel <id>` - Cancel task
32
+ - `./claude-flow task workflow <file>` - Execute workflow
33
+
34
+ ### 🧠 Memory Operations
35
+ - `./claude-flow memory store "key" "value"` - Store data
36
+ - `./claude-flow memory query "search"` - Search memory
37
+ - `./claude-flow memory stats` - Memory statistics
38
+ - `./claude-flow memory export <file>` - Export memory
39
+ - `./claude-flow memory import <file>` - Import memory
40
+
41
+ ### ⚡ SPARC Development
42
+ - `./claude-flow sparc "task"` - Run SPARC orchestrator
43
+ - `./claude-flow sparc modes` - List all 17+ SPARC modes
44
+ - `./claude-flow sparc run <mode> "task"` - Run specific mode
45
+ - `./claude-flow sparc tdd "feature"` - TDD workflow
46
+ - `./claude-flow sparc info <mode>` - Mode details
47
+
48
+ ### 🐝 Swarm Coordination
49
+ - `./claude-flow swarm "task" --strategy <type>` - Start swarm
50
+ - `./claude-flow swarm "task" --background` - Long-running swarm
51
+ - `./claude-flow swarm "task" --monitor` - With monitoring
52
+ - `./claude-flow swarm "task" --ui` - Interactive UI
53
+ - `./claude-flow swarm "task" --distributed` - Distributed coordination
54
+
55
+ ### 🌍 MCP Integration
56
+ - `./claude-flow mcp status` - MCP server status
57
+ - `./claude-flow mcp tools` - List available tools
58
+ - `./claude-flow mcp config` - Show configuration
59
+ - `./claude-flow mcp logs` - View MCP logs
60
+
61
+ ### 🤖 Claude Integration
62
+ - `./claude-flow claude spawn "task"` - Spawn Claude with enhanced guidance
63
+ - `./claude-flow claude batch <file>` - Execute workflow configuration
64
+
65
+ ## 🌟 Quick Examples
66
+
67
+ ### Initialize with SPARC:
68
+ ```bash
69
+ npx -y claude-flow@latest init --sparc
70
+ ```
71
+
72
+ ### Start a development swarm:
73
+ ```bash
74
+ ./claude-flow swarm "Build REST API" --strategy development --monitor --review
75
+ ```
76
+
77
+ ### Run TDD workflow:
78
+ ```bash
79
+ ./claude-flow sparc tdd "user authentication"
80
+ ```
81
+
82
+ ### Store project context:
83
+ ```bash
84
+ ./claude-flow memory store "project_requirements" "e-commerce platform specs" --namespace project
85
+ ```
86
+
87
+ ### Spawn specialized agents:
88
+ ```bash
89
+ ./claude-flow agent spawn researcher --name "Senior Researcher" --priority 8
90
+ ./claude-flow agent spawn developer --name "Lead Developer" --priority 9
91
+ ```
92
+
93
+ ## 🎯 Best Practices
94
+ - Use `./claude-flow` instead of `npx claude-flow` after initialization
95
+ - Store important context in memory for cross-session persistence
96
+ - Use swarm mode for complex tasks requiring multiple agents
97
+ - Enable monitoring for real-time progress tracking
98
+ - Use background mode for tasks > 30 minutes
99
+
100
+ ## 📚 Resources
101
+ - Documentation: https://github.com/ruvnet/claude-code-flow/docs
102
+ - Examples: https://github.com/ruvnet/claude-code-flow/examples
103
+ - Issues: https://github.com/ruvnet/claude-code-flow/issues
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: claude-flow-memory
3
+ description: Interact with Claude-Flow memory system
4
+ ---
5
+
6
+ # 🧠 Claude-Flow Memory System
7
+
8
+ The memory system provides persistent storage for cross-session and cross-agent collaboration with CRDT-based conflict resolution.
9
+
10
+ ## Store Information
11
+ ```bash
12
+ # Store with default namespace
13
+ ./claude-flow memory store "key" "value"
14
+
15
+ # Store with specific namespace
16
+ ./claude-flow memory store "architecture_decisions" "microservices with API gateway" --namespace arch
17
+ ```
18
+
19
+ ## Query Memory
20
+ ```bash
21
+ # Search across all namespaces
22
+ ./claude-flow memory query "authentication"
23
+
24
+ # Search with filters
25
+ ./claude-flow memory query "API design" --namespace arch --limit 10
26
+ ```
27
+
28
+ ## Memory Statistics
29
+ ```bash
30
+ # Show overall statistics
31
+ ./claude-flow memory stats
32
+
33
+ # Show namespace-specific stats
34
+ ./claude-flow memory stats --namespace project
35
+ ```
36
+
37
+ ## Export/Import
38
+ ```bash
39
+ # Export all memory
40
+ ./claude-flow memory export full-backup.json
41
+
42
+ # Export specific namespace
43
+ ./claude-flow memory export project-backup.json --namespace project
44
+
45
+ # Import memory
46
+ ./claude-flow memory import backup.json
47
+ ```
48
+
49
+ ## Cleanup Operations
50
+ ```bash
51
+ # Clean entries older than 30 days
52
+ ./claude-flow memory cleanup --days 30
53
+
54
+ # Clean specific namespace
55
+ ./claude-flow memory cleanup --namespace temp --days 7
56
+ ```
57
+
58
+ ## 🗂️ Namespaces
59
+ - **default** - General storage
60
+ - **agents** - Agent-specific data and state
61
+ - **tasks** - Task information and results
62
+ - **sessions** - Session history and context
63
+ - **swarm** - Swarm coordination and objectives
64
+ - **project** - Project-specific context
65
+ - **spec** - Requirements and specifications
66
+ - **arch** - Architecture decisions
67
+ - **impl** - Implementation notes
68
+ - **test** - Test results and coverage
69
+ - **debug** - Debug logs and fixes
70
+
71
+ ## 🎯 Best Practices
72
+
73
+ ### Naming Conventions
74
+ - Use descriptive, searchable keys
75
+ - Include timestamp for time-sensitive data
76
+ - Prefix with component name for clarity
77
+
78
+ ### Organization
79
+ - Use namespaces to categorize data
80
+ - Store related data together
81
+ - Keep values concise but complete
82
+
83
+ ### Maintenance
84
+ - Regular backups with export
85
+ - Clean old data periodically
86
+ - Monitor storage statistics
87
+ - Compress large values
88
+
89
+ ## Examples
90
+
91
+ ### Store SPARC context:
92
+ ```bash
93
+ ./claude-flow memory store "spec_auth_requirements" "OAuth2 + JWT with refresh tokens" --namespace spec
94
+ ./claude-flow memory store "arch_api_design" "RESTful microservices with GraphQL gateway" --namespace arch
95
+ ./claude-flow memory store "test_coverage_auth" "95% coverage, all tests passing" --namespace test
96
+ ```
97
+
98
+ ### Query project decisions:
99
+ ```bash
100
+ ./claude-flow memory query "authentication" --namespace arch --limit 5
101
+ ./claude-flow memory query "test results" --namespace test
102
+ ```
103
+
104
+ ### Backup project memory:
105
+ ```bash
106
+ ./claude-flow memory export project-$(date +%Y%m%d).json --namespace project
107
+ ```
@@ -0,0 +1,205 @@
1
+ ---
2
+ name: claude-flow-swarm
3
+ description: Coordinate multi-agent swarms for complex tasks
4
+ ---
5
+
6
+ # 🐝 Claude-Flow Swarm Coordination
7
+
8
+ Advanced multi-agent coordination system with timeout-free execution, distributed memory sharing, and intelligent load balancing.
9
+
10
+ ## Basic Usage
11
+ ```bash
12
+ ./claude-flow swarm "your complex task" --strategy <type> [options]
13
+ ```
14
+
15
+ ## 🎯 Swarm Strategies
16
+ - **auto** - Automatic strategy selection based on task analysis
17
+ - **development** - Code implementation with review and testing
18
+ - **research** - Information gathering and synthesis
19
+ - **analysis** - Data processing and pattern identification
20
+ - **testing** - Comprehensive quality assurance
21
+ - **optimization** - Performance tuning and refactoring
22
+ - **maintenance** - System updates and bug fixes
23
+
24
+ ## 🤖 Agent Types
25
+ - **coordinator** - Plans and delegates tasks to other agents
26
+ - **developer** - Writes code and implements solutions
27
+ - **researcher** - Gathers and analyzes information
28
+ - **analyzer** - Identifies patterns and generates insights
29
+ - **tester** - Creates and runs tests for quality assurance
30
+ - **reviewer** - Performs code and design reviews
31
+ - **documenter** - Creates documentation and guides
32
+ - **monitor** - Tracks performance and system health
33
+ - **specialist** - Domain-specific expert agents
34
+
35
+ ## 🔄 Coordination Modes
36
+ - **centralized** - Single coordinator manages all agents (default)
37
+ - **distributed** - Multiple coordinators share management
38
+ - **hierarchical** - Tree structure with nested coordination
39
+ - **mesh** - Peer-to-peer agent collaboration
40
+ - **hybrid** - Mixed coordination strategies
41
+
42
+ ## ⚙️ Common Options
43
+ - `--strategy <type>` - Execution strategy
44
+ - `--mode <type>` - Coordination mode
45
+ - `--max-agents <n>` - Maximum concurrent agents (default: 5)
46
+ - `--timeout <minutes>` - Timeout in minutes (default: 60)
47
+ - `--background` - Run in background for tasks > 30 minutes
48
+ - `--monitor` - Enable real-time monitoring
49
+ - `--ui` - Launch terminal UI interface
50
+ - `--parallel` - Enable parallel execution
51
+ - `--distributed` - Enable distributed coordination
52
+ - `--review` - Enable peer review process
53
+ - `--testing` - Include automated testing
54
+ - `--encryption` - Enable data encryption
55
+ - `--verbose` - Detailed logging output
56
+ - `--dry-run` - Show configuration without executing
57
+
58
+ ## 🌟 Examples
59
+
60
+ ### Development Swarm with Review
61
+ ```bash
62
+ ./claude-flow swarm "Build e-commerce REST API" \
63
+ --strategy development \
64
+ --monitor \
65
+ --review \
66
+ --testing
67
+ ```
68
+
69
+ ### Long-Running Research Swarm
70
+ ```bash
71
+ ./claude-flow swarm "Analyze AI market trends 2024-2025" \
72
+ --strategy research \
73
+ --background \
74
+ --distributed \
75
+ --max-agents 8
76
+ ```
77
+
78
+ ### Performance Optimization Swarm
79
+ ```bash
80
+ ./claude-flow swarm "Optimize database queries and API performance" \
81
+ --strategy optimization \
82
+ --testing \
83
+ --parallel \
84
+ --monitor
85
+ ```
86
+
87
+ ### Enterprise Development Swarm
88
+ ```bash
89
+ ./claude-flow swarm "Implement secure payment processing system" \
90
+ --strategy development \
91
+ --mode distributed \
92
+ --max-agents 10 \
93
+ --parallel \
94
+ --monitor \
95
+ --review \
96
+ --testing \
97
+ --encryption \
98
+ --verbose
99
+ ```
100
+
101
+ ### Testing and QA Swarm
102
+ ```bash
103
+ ./claude-flow swarm "Comprehensive security audit and testing" \
104
+ --strategy testing \
105
+ --review \
106
+ --verbose \
107
+ --max-agents 6
108
+ ```
109
+
110
+ ## 📊 Monitoring and Control
111
+
112
+ ### Real-time monitoring:
113
+ ```bash
114
+ # Monitor swarm activity
115
+ ./claude-flow monitor
116
+
117
+ # Monitor specific component
118
+ ./claude-flow monitor --focus swarm
119
+ ```
120
+
121
+ ### Check swarm status:
122
+ ```bash
123
+ # Overall system status
124
+ ./claude-flow status
125
+
126
+ # Detailed swarm status
127
+ ./claude-flow status --verbose
128
+ ```
129
+
130
+ ### View agent activity:
131
+ ```bash
132
+ # List all agents
133
+ ./claude-flow agent list
134
+
135
+ # Agent details
136
+ ./claude-flow agent info <agent-id>
137
+ ```
138
+
139
+ ## 💾 Memory Integration
140
+
141
+ Swarms automatically use distributed memory for collaboration:
142
+
143
+ ```bash
144
+ # Store swarm objectives
145
+ ./claude-flow memory store "swarm_objective" "Build scalable API" --namespace swarm
146
+
147
+ # Query swarm progress
148
+ ./claude-flow memory query "swarm_progress" --namespace swarm
149
+
150
+ # Export swarm memory
151
+ ./claude-flow memory export swarm-results.json --namespace swarm
152
+ ```
153
+
154
+ ## 🎯 Key Features
155
+
156
+ ### Timeout-Free Execution
157
+ - Background mode for long-running tasks
158
+ - State persistence across sessions
159
+ - Automatic checkpoint recovery
160
+
161
+ ### Work Stealing & Load Balancing
162
+ - Dynamic task redistribution
163
+ - Automatic agent scaling
164
+ - Resource-aware scheduling
165
+
166
+ ### Circuit Breakers & Fault Tolerance
167
+ - Automatic retry with exponential backoff
168
+ - Graceful degradation
169
+ - Health monitoring and recovery
170
+
171
+ ### Real-Time Collaboration
172
+ - Cross-agent communication
173
+ - Shared memory access
174
+ - Event-driven coordination
175
+
176
+ ### Enterprise Security
177
+ - Role-based access control
178
+ - Audit logging
179
+ - Data encryption
180
+ - Input validation
181
+
182
+ ## 🔧 Advanced Configuration
183
+
184
+ ### Dry run to preview:
185
+ ```bash
186
+ ./claude-flow swarm "Test task" --dry-run --strategy development
187
+ ```
188
+
189
+ ### Custom quality thresholds:
190
+ ```bash
191
+ ./claude-flow swarm "High quality API" \
192
+ --strategy development \
193
+ --quality-threshold 0.95
194
+ ```
195
+
196
+ ### Scheduling algorithms:
197
+ - FIFO (First In, First Out)
198
+ - Priority-based
199
+ - Deadline-driven
200
+ - Shortest Job First
201
+ - Critical Path
202
+ - Resource-aware
203
+ - Adaptive
204
+
205
+ For detailed documentation, see: https://github.com/ruvnet/claude-code-flow/docs/swarm-system.md
@@ -0,0 +1,9 @@
1
+ # Coordination Commands
2
+
3
+ Commands for coordination operations in Claude Flow.
4
+
5
+ ## Available Commands
6
+
7
+ - [swarm-init](./swarm-init.md)
8
+ - [agent-spawn](./agent-spawn.md)
9
+ - [task-orchestrate](./task-orchestrate.md)
@@ -0,0 +1,25 @@
1
+ # agent-spawn
2
+
3
+ Spawn a new agent in the current swarm.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow agent spawn [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--type <type>` - Agent type (coder, researcher, analyst, tester, coordinator)
12
+ - `--name <name>` - Custom agent name
13
+ - `--skills <list>` - Specific skills (comma-separated)
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Spawn coder agent
18
+ npx claude-flow agent spawn --type coder
19
+
20
+ # With custom name
21
+ npx claude-flow agent spawn --type researcher --name "API Expert"
22
+
23
+ # With specific skills
24
+ npx claude-flow agent spawn --type coder --skills "python,fastapi,testing"
25
+ ```