claude-flow-novice 1.3.5 → 1.5.0

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 (356) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +3 -20
  2. package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
  3. package/.claude/agents/analyst.md +300 -0
  4. package/.claude/agents/architect.md +557 -0
  5. package/.claude/agents/architecture/system-architect.md +630 -0
  6. package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
  7. package/.claude/agents/base-template-generator.md +24 -1
  8. package/.claude/agents/coder.md +180 -0
  9. package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
  10. package/.claude/agents/consensus/consensus-builder.md +3 -20
  11. package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
  12. package/.claude/agents/consensus/gossip-coordinator.md +4 -21
  13. package/.claude/agents/consensus/performance-benchmarker.md +4 -21
  14. package/.claude/agents/consensus/quorum-manager.md +4 -21
  15. package/.claude/agents/consensus/raft-manager.md +4 -21
  16. package/.claude/agents/consensus/security-manager.md +4 -21
  17. package/.claude/agents/coordinator.md +842 -0
  18. package/.claude/agents/data/ml/data-ml-model.md +2 -2
  19. package/.claude/agents/development/backend/dev-backend-api.md +2 -2
  20. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
  21. package/.claude/agents/devops/devops-engineer.md +638 -0
  22. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
  23. package/.claude/agents/github/code-review-swarm.md +1 -1
  24. package/.claude/agents/github/github-specialist.md +856 -0
  25. package/.claude/agents/github/pr-manager.md +1 -1
  26. package/.claude/agents/github/release-manager.md +1 -1
  27. package/.claude/agents/neural/neural-pattern-agent.md +762 -0
  28. package/.claude/agents/optimization/benchmark-suite.md +1 -1
  29. package/.claude/agents/optimization/perf-analyzer.md +725 -0
  30. package/.claude/agents/optimization/performance-monitor.md +1 -1
  31. package/.claude/agents/planner.md +135 -0
  32. package/.claude/agents/researcher.md +185 -0
  33. package/.claude/agents/reviewer.md +291 -0
  34. package/.claude/agents/security/security-specialist.md +978 -0
  35. package/.claude/agents/sparc/architecture.md +1 -1
  36. package/.claude/agents/sparc/pseudocode.md +1 -1
  37. package/.claude/agents/sparc/refinement.md +1 -1
  38. package/.claude/agents/sparc/specification.md +1 -1
  39. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
  40. package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  41. package/.claude/agents/tester.md +663 -0
  42. package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
  43. package/.claude/agents/testing/validation/production-validator.md +1 -1
  44. package/.claude/commands/claude-soul.js +1 -1
  45. package/.claude/hooks.json +12 -15
  46. package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
  47. package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
  48. package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
  49. package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
  50. package/.claude-flow-novice/.claude/agents/architect.md +557 -0
  51. package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
  52. package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
  53. package/.claude-flow-novice/.claude/agents/backend-dev.json +42 -0
  54. package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
  55. package/.claude-flow-novice/.claude/agents/code-analyzer.json +39 -0
  56. package/.claude-flow-novice/.claude/agents/coder.json +42 -0
  57. package/.claude-flow-novice/.claude/agents/coder.md +180 -0
  58. package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
  59. package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
  60. package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
  61. package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
  62. package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
  63. package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
  64. package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
  65. package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
  66. package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
  67. package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
  68. package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
  69. package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  70. package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
  71. package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  72. package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
  73. package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
  74. package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
  75. package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
  76. package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
  77. package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
  78. package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
  79. package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
  80. package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
  81. package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
  82. package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
  83. package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
  84. package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
  85. package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
  86. package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
  87. package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
  88. package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
  89. package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
  90. package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
  91. package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
  92. package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
  93. package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
  94. package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
  95. package/.claude-flow-novice/.claude/agents/planner.json +41 -0
  96. package/.claude-flow-novice/.claude/agents/planner.md +135 -0
  97. package/.claude-flow-novice/.claude/agents/researcher.json +41 -0
  98. package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
  99. package/.claude-flow-novice/.claude/agents/reviewer.json +39 -0
  100. package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
  101. package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
  102. package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
  103. package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
  104. package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
  105. package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
  106. package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
  107. package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
  108. package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
  109. package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
  110. package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
  111. package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
  112. package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
  113. package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
  114. package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
  115. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  116. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  117. package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
  118. package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
  119. package/.claude-flow-novice/.claude/agents/system-architect.json +40 -0
  120. package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
  121. package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  122. package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
  123. package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  124. package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
  125. package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
  126. package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
  127. package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
  128. package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
  129. package/.claude-flow-novice/.claude/agents/tester.json +40 -0
  130. package/.claude-flow-novice/.claude/agents/tester.md +663 -0
  131. package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
  132. package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  133. package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
  134. package/.claude-flow-novice/dist/index.js +12 -24
  135. package/.claude-flow-novice/dist/index.js.map +1 -0
  136. package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
  137. package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
  138. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
  139. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
  140. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
  141. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
  142. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
  143. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
  144. package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
  145. package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
  146. package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
  147. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
  148. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
  149. package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
  150. package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
  151. package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
  152. package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
  153. package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
  154. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
  155. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
  156. package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
  157. package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
  158. package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
  159. package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
  160. package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
  161. package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
  162. package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
  163. package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
  164. package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
  165. package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
  166. package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
  167. package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
  168. package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
  169. package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
  170. package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
  171. package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
  172. package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
  173. package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
  174. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
  175. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
  176. package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
  177. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
  178. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
  179. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
  180. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
  181. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
  182. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
  183. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
  184. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
  185. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
  186. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
  187. package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
  188. package/.claude-flow-novice/dist/src/cli/index.js +1 -1
  189. package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
  190. package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
  191. package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
  192. package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
  193. package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
  194. package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
  195. package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
  196. package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
  197. package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
  198. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
  199. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
  200. package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
  201. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
  202. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
  203. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
  204. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
  205. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
  206. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
  207. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
  208. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
  209. package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
  210. package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
  211. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
  212. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
  213. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
  214. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
  215. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
  216. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
  217. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
  218. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
  219. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
  220. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
  221. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
  222. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
  223. package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
  224. package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
  225. package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
  226. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
  227. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
  228. package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
  229. package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
  230. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
  231. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
  232. package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
  233. package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
  234. package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
  235. package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
  236. package/.claude-flow-novice/dist/src/core/logger.js +33 -10
  237. package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
  238. package/.claude-flow-novice/dist/src/migration/index.js +1 -1
  239. package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
  240. package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
  241. package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
  242. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
  243. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
  244. package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
  245. package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
  246. package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
  247. package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
  248. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
  249. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
  250. package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
  251. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
  252. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
  253. package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
  254. package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
  255. package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
  256. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
  257. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
  258. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
  259. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
  260. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
  261. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
  262. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
  263. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
  264. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
  265. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
  266. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
  267. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
  268. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
  269. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
  270. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
  271. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
  272. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
  273. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
  274. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
  275. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
  276. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
  277. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
  278. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
  279. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
  280. package/.claude-flow-novice/dist/src/task/index.js +7 -7
  281. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
  282. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
  283. package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
  284. package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
  285. package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
  286. package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
  287. package/CHANGELOG.md +13 -0
  288. package/CLAUDE.md +1032 -61
  289. package/README.md +0 -1
  290. package/config/build/babel.config.cjs +19 -11
  291. package/config/typescript/tsconfig.json +1 -1
  292. package/examples/02-workflows/claude-workflow.json +5 -5
  293. package/examples/claude-api-error-handling.ts +2 -2
  294. package/examples/frontend-testing-demo.ts +470 -0
  295. package/examples/litellm/config/config.yaml +1 -1
  296. package/package.json +13 -7
  297. package/scripts/build/unified-builder.sh +6 -6
  298. package/scripts/build/validate-agents.js +238 -0
  299. package/scripts/post-install-claude-md.js +28 -0
  300. package/scripts/run-production-validation.ts +590 -0
  301. package/scripts/test/test-coordination-features.ts +2 -2
  302. package/scripts/validate-stage3-performance.ts +377 -0
  303. package/src/cli/simple-commands/hooks.js +1 -0
  304. package/src/cli/simple-commands/init/agent-copier.js +0 -2
  305. package/src/cli/simple-commands/init/index.js +18 -110
  306. package/src/cli/simple-commands/init/templates/CLAUDE.md +162 -1158
  307. package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
  308. package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
  309. package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
  310. package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
  311. package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
  312. package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
  313. package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
  314. package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
  315. package/src/swarm-fullstack/workflows/index.ts +75 -0
  316. package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
  317. package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
  318. package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
  319. package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
  320. package/wiki/command-reference/README.md +1 -2
  321. package/wiki/command-reference/mcp-tools/README.md +1 -1
  322. package/wiki/getting-started/claude-code-mcp/README.md +1 -2
  323. package/wiki/getting-started/installation/README.md +2 -10
  324. package/.claude/agents/backend-dev.json +0 -9
  325. package/.claude/agents/code-analyzer.json +0 -9
  326. package/.claude/agents/coder.json +0 -9
  327. package/.claude/agents/planner.json +0 -9
  328. package/.claude/agents/researcher.json +0 -9
  329. package/.claude/agents/reviewer.json +0 -9
  330. package/.claude/agents/system-architect.json +0 -9
  331. package/.claude/agents/tester.json +0 -9
  332. package/.claude/commands/flow-nexus/app-store.md +0 -124
  333. package/.claude/commands/flow-nexus/challenges.md +0 -120
  334. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  335. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  336. package/.claude/commands/flow-nexus/payments.md +0 -116
  337. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  338. package/.claude/commands/flow-nexus/swarm.md +0 -87
  339. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  340. package/.claude/commands/flow-nexus/workflow.md +0 -115
  341. package/.claude-flow-novice/dist/cli/index.js +0 -45
  342. package/.claude-flow-novice/dist/core/index.js +0 -22
  343. package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
  344. package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
  345. package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
  346. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
  347. package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
  348. /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
  349. /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
  350. /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
  351. /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
  352. /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
  353. /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
  354. /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
  355. /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
  356. /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
@@ -1,1101 +0,0 @@
1
- // claude-md.js - CLAUDE.md templates
2
-
3
- export function createMinimalClaudeMd() {
4
- return `# Claude Code Configuration
5
-
6
- ## 🚨 CRITICAL: CONCURRENT EXECUTION FOR ALL ACTIONS
7
-
8
- **ABSOLUTE RULE**: ALL operations MUST be concurrent/parallel in a single message:
9
-
10
- ### 🔴 MANDATORY CONCURRENT PATTERNS:
11
- 1. **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
12
- 2. **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
13
- 3. **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
14
- 4. **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
15
-
16
- ### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
17
-
18
- **✅ CORRECT**: Everything in ONE message
19
- **❌ WRONG**: Multiple messages for related operations (6x slower!)
20
-
21
- ### 🎯 CONCURRENT EXECUTION CHECKLIST:
22
- - ✅ Are ALL related TodoWrite operations batched together?
23
- - ✅ Are ALL Task spawning operations in ONE message?
24
- - ✅ Are ALL file operations (Read/Write/Edit) batched together?
25
- - ✅ Are ALL bash commands grouped in ONE message?
26
-
27
- If ANY answer is "No", you MUST combine operations into a single message!
28
-
29
- ## Build Commands
30
- - \`npm run build\`: Build the project
31
- - \`npm run test\`: Run tests
32
- - \`npm run lint\`: Run linter
33
-
34
- ## Code Style
35
- - Use TypeScript/ES modules
36
- - Follow project conventions
37
- - Run typecheck before committing
38
-
39
- ## 🌐 Flow Nexus Cloud Platform
40
-
41
- Flow Nexus extends Claude Flow with cloud-powered features:
42
-
43
- ### Quick Start
44
- 1. **Register**: \`mcp__flow-nexus__user_register\` with email/password
45
- 2. **Login**: \`mcp__flow-nexus__user_login\` to access features
46
- 3. **Check Balance**: \`mcp__flow-nexus__check_balance\` for credits
47
-
48
- ### Key Capabilities
49
-
50
- **🤖 AI Swarms**
51
- - Deploy multi-agent swarms in cloud sandboxes
52
- - Pre-built templates for common architectures
53
- - Auto-scaling and load balancing
54
-
55
- **📦 E2B Sandboxes**
56
- - \`mcp__flow-nexus__sandbox_create\` - Isolated execution environments
57
- - Support for Node.js, Python, React, Next.js
58
- - Real-time code execution with environment variables
59
-
60
- **⚡ Workflows**
61
- - \`mcp__flow-nexus__workflow_create\` - Event-driven automation
62
- - Parallel task processing with message queues
63
- - Reusable workflow templates
64
-
65
- **🎯 Challenges & Learning**
66
- - \`mcp__flow-nexus__challenges_list\` - Coding challenges
67
- - Earn rUv credits by completing tasks
68
- - Global leaderboard and achievements
69
-
70
- **🧠 Neural Networks**
71
- - \`mcp__flow-nexus__neural_train\` - Train custom models
72
- - Distributed training across sandboxes
73
- - Pre-built templates for ML tasks
74
-
75
- **💰 Credits & Billing**
76
- - Pay-as-you-go with rUv credits
77
- - Auto-refill configuration available
78
- - Free tier for getting started
79
-
80
- ### Example: Deploy a Swarm
81
- \`\`\`javascript
82
- // Login and deploy
83
- mcp__flow-nexus__user_login { email: "user@example.com", password: "***" }
84
- mcp__flow-nexus__swarm_init { topology: "mesh", maxAgents: 5 }
85
- mcp__flow-nexus__sandbox_create { template: "node", name: "api-dev" }
86
- \`\`\`
87
-
88
- Learn more: https://github.com/ruvnet/claude-flow#flow-nexus
89
-
90
- ## Project Info
91
- This is a Claude-Flow AI agent orchestration system.
92
- `;
93
- }
94
-
95
- export function createFullClaudeMd() {
96
- return `# Claude Code Configuration
97
-
98
- ## 🚨 CRITICAL: CONCURRENT EXECUTION FOR ALL ACTIONS
99
-
100
- **ABSOLUTE RULE**: ALL operations MUST be concurrent/parallel in a single message:
101
-
102
- ### 🔴 MANDATORY CONCURRENT PATTERNS:
103
- 1. **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
104
- 2. **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
105
- 3. **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
106
- 4. **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
107
- 5. **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message
108
-
109
- ### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
110
-
111
- **Examples of CORRECT concurrent execution:**
112
- \`\`\`javascript
113
- // ✅ CORRECT: Everything in ONE message
114
- [Single Message]:
115
- - TodoWrite { todos: [10+ todos with all statuses/priorities] }
116
- - Task("Agent 1 with full instructions and hooks")
117
- - Task("Agent 2 with full instructions and hooks")
118
- - Task("Agent 3 with full instructions and hooks")
119
- - Read("file1.js")
120
- - Read("file2.js")
121
- - Write("output1.js", content)
122
- - Write("output2.js", content)
123
- - Bash("npm install")
124
- - Bash("npm test")
125
- - Bash("npm run build")
126
- \`\`\`
127
-
128
- **Examples of WRONG sequential execution:**
129
- \`\`\`javascript
130
- // ❌ WRONG: Multiple messages (NEVER DO THIS)
131
- Message 1: TodoWrite { todos: [single todo] }
132
- Message 2: Task("Agent 1")
133
- Message 3: Task("Agent 2")
134
- Message 4: Read("file1.js")
135
- Message 5: Write("output1.js")
136
- Message 6: Bash("npm install")
137
- // This is 6x slower and breaks coordination!
138
- \`\`\`
139
-
140
- ### 🎯 CONCURRENT EXECUTION CHECKLIST:
141
-
142
- Before sending ANY message, ask yourself:
143
- - ✅ Are ALL related TodoWrite operations batched together?
144
- - ✅ Are ALL Task spawning operations in ONE message?
145
- - ✅ Are ALL file operations (Read/Write/Edit) batched together?
146
- - ✅ Are ALL bash commands grouped in ONE message?
147
- - ✅ Are ALL memory operations concurrent?
148
-
149
- If ANY answer is "No", you MUST combine operations into a single message!
150
-
151
- ## Build Commands
152
- - \`npm run build\`: Build the project using Deno compile
153
- - \`npm run test\`: Run the full test suite
154
- - \`npm run lint\`: Run ESLint and format checks
155
- - \`npm run typecheck\`: Run TypeScript type checking
156
- - \`./claude-flow start\`: Start the orchestration system
157
- - \`./claude-flow --help\`: Show all available commands
158
-
159
- ## Code Style Preferences
160
- - Use ES modules (import/export) syntax, not CommonJS (require)
161
- - Destructure imports when possible (e.g., \`import { foo } from 'bar'\`)
162
- - Use TypeScript for all new code
163
- - Follow existing naming conventions (camelCase for variables, PascalCase for classes)
164
- - Add JSDoc comments for public APIs
165
- - Use async/await instead of Promise chains
166
- - Prefer const/let over var
167
-
168
- ## Workflow Guidelines
169
- - Always run typecheck after making code changes
170
- - Run tests before committing changes
171
- - Use meaningful commit messages following conventional commits
172
- - Create feature branches for new functionality
173
- - Ensure all tests pass before merging
174
-
175
- ## Project Architecture
176
- This is a Claude-Flow AI agent orchestration system with the following components:
177
- - **CLI Interface**: Command-line tools for managing the system
178
- - **Orchestrator**: Core engine for coordinating agents and tasks
179
- - **Memory System**: Persistent storage and retrieval of information
180
- - **Terminal Management**: Automated terminal session handling
181
- - **MCP Integration**: Model Context Protocol server for Claude integration
182
- - **Agent Coordination**: Multi-agent task distribution and management
183
-
184
- ## Important Notes
185
- - Use \`claude --dangerously-skip-permissions\` for unattended operation
186
- - The system supports both daemon and interactive modes
187
- - Memory persistence is handled automatically
188
- - All components are event-driven for scalability
189
-
190
- ## Debugging
191
- - Check logs in \`./claude-flow.log\`
192
- - Use \`./claude-flow status\` to check system health
193
- - Monitor with \`./claude-flow monitor\` for real-time updates
194
- - Verbose output available with \`--verbose\` flag on most commands
195
-
196
- ## 🌐 Flow Nexus Cloud Platform
197
-
198
- Flow Nexus extends Claude Flow with cloud-powered features:
199
-
200
- ### Quick Start
201
- 1. **Register**: \`mcp__flow-nexus__user_register\` with email/password
202
- 2. **Login**: \`mcp__flow-nexus__user_login\` to access features
203
- 3. **Check Balance**: \`mcp__flow-nexus__check_balance\` for credits
204
-
205
- ### Key Capabilities
206
-
207
- **🤖 AI Swarms**
208
- - Deploy multi-agent swarms in cloud sandboxes
209
- - Pre-built templates for common architectures
210
- - Auto-scaling and load balancing
211
-
212
- **📦 E2B Sandboxes**
213
- - \`mcp__flow-nexus__sandbox_create\` - Isolated execution environments
214
- - Support for Node.js, Python, React, Next.js
215
- - Real-time code execution with environment variables
216
-
217
- **⚡ Workflows**
218
- - \`mcp__flow-nexus__workflow_create\` - Event-driven automation
219
- - Parallel task processing with message queues
220
- - Reusable workflow templates
221
-
222
- **🎯 Challenges & Learning**
223
- - \`mcp__flow-nexus__challenges_list\` - Coding challenges
224
- - Earn rUv credits by completing tasks
225
- - Global leaderboard and achievements
226
-
227
- **🧠 Neural Networks**
228
- - \`mcp__flow-nexus__neural_train\` - Train custom models
229
- - Distributed training across sandboxes
230
- - Pre-built templates for ML tasks
231
-
232
- **💰 Credits & Billing**
233
- - Pay-as-you-go with rUv credits
234
- - Auto-refill configuration available
235
- - Free tier for getting started
236
-
237
- ### Example: Deploy a Swarm
238
- \`\`\`javascript
239
- // Login and deploy
240
- mcp__flow-nexus__user_login { email: "user@example.com", password: "***" }
241
- mcp__flow-nexus__swarm_init { topology: "mesh", maxAgents: 5 }
242
- mcp__flow-nexus__sandbox_create { template: "node", name: "api-dev" }
243
- \`\`\`
244
-
245
- Learn more: https://github.com/ruvnet/claude-flow#flow-nexus
246
- `;
247
- }
248
-
249
- export function createSparcClaudeMd() {
250
- return `# Claude Code Configuration - SPARC Development Environment
251
-
252
- ## 🚨 CRITICAL: CONCURRENT EXECUTION FOR ALL ACTIONS
253
-
254
- **ABSOLUTE RULE**: ALL operations MUST be concurrent/parallel in a single message:
255
-
256
- ### 🔴 MANDATORY CONCURRENT PATTERNS:
257
- 1. **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
258
- 2. **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
259
- 3. **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
260
- 4. **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
261
- 5. **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message
262
-
263
- ### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
264
-
265
- **Examples of CORRECT concurrent execution:**
266
- \`\`\`javascript
267
- // ✅ CORRECT: Everything in ONE message
268
- [Single Message]:
269
- - TodoWrite { todos: [10+ todos with all statuses/priorities] }
270
- - Task("Agent 1 with full instructions and hooks")
271
- - Task("Agent 2 with full instructions and hooks")
272
- - Task("Agent 3 with full instructions and hooks")
273
- - Read("file1.js")
274
- - Read("file2.js")
275
- - Write("output1.js", content)
276
- - Write("output2.js", content)
277
- - Bash("npm install")
278
- - Bash("npm test")
279
- - Bash("npm run build")
280
- \`\`\`
281
-
282
- **Examples of WRONG sequential execution:**
283
- \`\`\`javascript
284
- // ❌ WRONG: Multiple messages (NEVER DO THIS)
285
- Message 1: TodoWrite { todos: [single todo] }
286
- Message 2: Task("Agent 1")
287
- Message 3: Task("Agent 2")
288
- Message 4: Read("file1.js")
289
- Message 5: Write("output1.js")
290
- Message 6: Bash("npm install")
291
- // This is 6x slower and breaks coordination!
292
- \`\`\`
293
-
294
- ### 🎯 CONCURRENT EXECUTION CHECKLIST:
295
-
296
- Before sending ANY message, ask yourself:
297
- - ✅ Are ALL related TodoWrite operations batched together?
298
- - ✅ Are ALL Task spawning operations in ONE message?
299
- - ✅ Are ALL file operations (Read/Write/Edit) batched together?
300
- - ✅ Are ALL bash commands grouped in ONE message?
301
- - ✅ Are ALL memory operations concurrent?
302
-
303
- If ANY answer is "No", you MUST combine operations into a single message!
304
-
305
- ## Project Overview
306
- This project uses the SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) methodology for systematic Test-Driven Development with AI assistance through Claude-Flow orchestration.
307
-
308
- ## SPARC Development Commands
309
-
310
- ### Core SPARC Commands
311
- - \`./claude-flow sparc modes\`: List all available SPARC development modes
312
- - \`./claude-flow sparc run <mode> "<task>"\`: Execute specific SPARC mode for a task
313
- - \`./claude-flow sparc tdd "<feature>"\`: Run complete TDD workflow using SPARC methodology
314
- - \`./claude-flow sparc info <mode>\`: Get detailed information about a specific mode
315
-
316
- ### Standard Build Commands
317
- - \`npm run build\`: Build the project
318
- - \`npm run test\`: Run the test suite
319
- - \`npm run lint\`: Run linter and format checks
320
- - \`npm run typecheck\`: Run TypeScript type checking
321
-
322
- ## SPARC Methodology Workflow
323
-
324
- ### 1. Specification Phase
325
- \`\`\`bash
326
- # Create detailed specifications and requirements
327
- ./claude-flow sparc run spec-pseudocode "Define user authentication requirements"
328
- \`\`\`
329
- - Define clear functional requirements
330
- - Document edge cases and constraints
331
- - Create user stories and acceptance criteria
332
- - Establish non-functional requirements
333
-
334
- ### 2. Pseudocode Phase
335
- \`\`\`bash
336
- # Develop algorithmic logic and data flows
337
- ./claude-flow sparc run spec-pseudocode "Create authentication flow pseudocode"
338
- \`\`\`
339
- - Break down complex logic into steps
340
- - Define data structures and interfaces
341
- - Plan error handling and edge cases
342
- - Create modular, testable components
343
-
344
- ### 3. Architecture Phase
345
- \`\`\`bash
346
- # Design system architecture and component structure
347
- ./claude-flow sparc run architect "Design authentication service architecture"
348
- \`\`\`
349
- - Create system diagrams and component relationships
350
- - Define API contracts and interfaces
351
- - Plan database schemas and data flows
352
- - Establish security and scalability patterns
353
-
354
- ### 4. Refinement Phase (TDD Implementation)
355
- \`\`\`bash
356
- # Execute Test-Driven Development cycle
357
- ./claude-flow sparc tdd "implement user authentication system"
358
- \`\`\`
359
-
360
- **TDD Cycle:**
361
- 1. **Red**: Write failing tests first
362
- 2. **Green**: Implement minimal code to pass tests
363
- 3. **Refactor**: Optimize and clean up code
364
- 4. **Repeat**: Continue until feature is complete
365
-
366
- ### 5. Completion Phase
367
- \`\`\`bash
368
- # Integration, documentation, and validation
369
- ./claude-flow sparc run integration "integrate authentication with user management"
370
- \`\`\`
371
- - Integrate all components
372
- - Perform end-to-end testing
373
- - Create comprehensive documentation
374
- - Validate against original requirements
375
-
376
- ## SPARC Mode Reference
377
-
378
- ### Development Modes
379
- - **\`architect\`**: System design and architecture planning
380
- - **\`code\`**: Clean, modular code implementation
381
- - **\`tdd\`**: Test-driven development and testing
382
- - **\`spec-pseudocode\`**: Requirements and algorithmic planning
383
- - **\`integration\`**: System integration and coordination
384
-
385
- ### Quality Assurance Modes
386
- - **\`debug\`**: Troubleshooting and bug resolution
387
- - **\`security-review\`**: Security analysis and vulnerability assessment
388
- - **\`refinement-optimization-mode\`**: Performance optimization and refactoring
389
-
390
- ### Support Modes
391
- - **\`docs-writer\`**: Documentation creation and maintenance
392
- - **\`devops\`**: Deployment and infrastructure management
393
- - **\`mcp\`**: External service integration
394
- - **\`swarm\`**: Multi-agent coordination for complex tasks
395
-
396
- ## Claude Code Slash Commands
397
-
398
- Claude Code slash commands are available in \`.claude/commands/\`:
399
-
400
- ### Project Commands
401
- - \`/sparc\`: Execute SPARC methodology workflows
402
- - \`/sparc-<mode>\`: Run specific SPARC mode (e.g., /sparc-architect)
403
- - \`/claude-flow-help\`: Show all Claude-Flow commands
404
- - \`/claude-flow-memory\`: Interact with memory system
405
- - \`/claude-flow-swarm\`: Coordinate multi-agent swarms
406
-
407
- ### Using Slash Commands
408
- 1. Type \`/\` in Claude Code to see available commands
409
- 2. Select a command or type its name
410
- 3. Commands are context-aware and project-specific
411
- 4. Custom commands can be added to \`.claude/commands/\`
412
-
413
- ## Code Style and Best Practices
414
-
415
- ### SPARC Development Principles
416
- - **Modular Design**: Keep files under 500 lines, break into logical components
417
- - **Environment Safety**: Never hardcode secrets or environment-specific values
418
- - **Test-First**: Always write tests before implementation (Red-Green-Refactor)
419
- - **Clean Architecture**: Separate concerns, use dependency injection
420
- - **Documentation**: Maintain clear, up-to-date documentation
421
-
422
- ### Coding Standards
423
- - Use TypeScript for type safety and better tooling
424
- - Follow consistent naming conventions (camelCase for variables, PascalCase for classes)
425
- - Implement proper error handling and logging
426
- - Use async/await for asynchronous operations
427
- - Prefer composition over inheritance
428
-
429
- ### Memory and State Management
430
- - Use claude-flow memory system for persistent state across sessions
431
- - Store progress and findings using namespaced keys
432
- - Query previous work before starting new tasks
433
- - Export/import memory for backup and sharing
434
-
435
- ## SPARC Memory Integration
436
-
437
- ### Memory Commands for SPARC Development
438
- \`\`\`bash
439
- # Store project specifications
440
- ./claude-flow memory store spec_auth "User authentication requirements and constraints"
441
-
442
- # Store architectural decisions
443
- ./claude-flow memory store arch_decisions "Database schema and API design choices"
444
-
445
- # Store test results and coverage
446
- ./claude-flow memory store test_coverage "Authentication module: 95% coverage, all tests passing"
447
-
448
- # Query previous work
449
- ./claude-flow memory query auth_implementation
450
-
451
- # Export project memory
452
- ./claude-flow memory export project_backup.json
453
- \`\`\`
454
-
455
- ### Memory Namespaces
456
- - **\`spec\`**: Requirements and specifications
457
- - **\`arch\`**: Architecture and design decisions
458
- - **\`impl\`**: Implementation notes and code patterns
459
- - **\`test\`**: Test results and coverage reports
460
- - **\`debug\`**: Bug reports and resolution notes
461
-
462
- ## Workflow Examples
463
-
464
- ### Feature Development Workflow
465
- \`\`\`bash
466
- # 1. Start with specification
467
- ./claude-flow sparc run spec-pseudocode "User profile management feature"
468
-
469
- # 2. Design architecture
470
- ./claude-flow sparc run architect "Profile service architecture with data validation"
471
-
472
- # 3. Implement with TDD
473
- ./claude-flow sparc tdd "user profile CRUD operations"
474
-
475
- # 4. Security review
476
- ./claude-flow sparc run security-review "profile data access and validation"
477
-
478
- # 5. Integration testing
479
- ./claude-flow sparc run integration "profile service with authentication system"
480
-
481
- # 6. Documentation
482
- ./claude-flow sparc run docs-writer "profile service API documentation"
483
- \`\`\`
484
-
485
- ### Bug Fix Workflow
486
- \`\`\`bash
487
- # 1. Debug and analyze
488
- ./claude-flow sparc run debug "authentication token expiration issue"
489
-
490
- # 2. Write regression tests
491
- ./claude-flow sparc run tdd "token refresh mechanism tests"
492
-
493
- # 3. Implement fix
494
- ./claude-flow sparc run code "fix token refresh in authentication service"
495
-
496
- # 4. Security review
497
- ./claude-flow sparc run security-review "token handling security implications"
498
- \`\`\`
499
-
500
- ## Configuration Files
501
-
502
- ### Claude Code Integration
503
- - **\`.claude/commands/\`**: Claude Code slash commands for all SPARC modes
504
- - **\`.claude/logs/\`**: Conversation and session logs
505
-
506
- ### SPARC Configuration
507
- - **\`.roomodes\`**: SPARC mode definitions and configurations (auto-generated)
508
- - **\`.roo/\`**: SPARC templates and workflows (auto-generated)
509
-
510
- ### Claude-Flow Configuration
511
- - **\`memory/\`**: Persistent memory and session data
512
- - **\`coordination/\`**: Multi-agent coordination settings
513
- - **\`CLAUDE.md\`**: Project instructions for Claude Code
514
-
515
- ## Git Workflow Integration
516
-
517
- ### Commit Strategy with SPARC
518
- - **Specification commits**: After completing requirements analysis
519
- - **Architecture commits**: After design phase completion
520
- - **TDD commits**: After each Red-Green-Refactor cycle
521
- - **Integration commits**: After successful component integration
522
- - **Documentation commits**: After completing documentation updates
523
-
524
- ### Branch Strategy
525
- - **\`feature/sparc-<feature-name>\`**: Feature development with SPARC methodology
526
- - **\`hotfix/sparc-<issue>\`**: Bug fixes using SPARC debugging workflow
527
- - **\`refactor/sparc-<component>\`**: Refactoring using optimization mode
528
-
529
- ## Troubleshooting
530
-
531
- ### Common SPARC Issues
532
- - **Mode not found**: Check \`.roomodes\` file exists and is valid JSON
533
- - **Memory persistence**: Ensure \`memory/\` directory has write permissions
534
- - **Tool access**: Verify required tools are available for the selected mode
535
- - **Namespace conflicts**: Use unique memory namespaces for different features
536
-
537
- ### Debug Commands
538
- \`\`\`bash
539
- # Check SPARC configuration
540
- ./claude-flow sparc modes
541
-
542
- # Verify memory system
543
- ./claude-flow memory stats
544
-
545
- # Check system status
546
- ./claude-flow status
547
-
548
- # View detailed mode information
549
- ./claude-flow sparc info <mode-name>
550
- \`\`\`
551
-
552
- ## Project Architecture
553
-
554
- This SPARC-enabled project follows a systematic development approach:
555
- - **Clear separation of concerns** through modular design
556
- - **Test-driven development** ensuring reliability and maintainability
557
- - **Iterative refinement** for continuous improvement
558
- - **Comprehensive documentation** for team collaboration
559
- - **AI-assisted development** through specialized SPARC modes
560
-
561
- ## Important Notes
562
-
563
- - Always run tests before committing (\`npm run test\`)
564
- - Use SPARC memory system to maintain context across sessions
565
- - Follow the Red-Green-Refactor cycle during TDD phases
566
- - Document architectural decisions in memory for future reference
567
- - Regular security reviews for any authentication or data handling code
568
- - Claude Code slash commands provide quick access to SPARC modes
569
-
570
- For more information about SPARC methodology, see: https://github.com/ruvnet/claude-code-flow/docs/sparc.md
571
-
572
- ## 🌐 Flow Nexus Cloud Platform
573
-
574
- Flow Nexus extends Claude Flow with cloud-powered features:
575
-
576
- ### Quick Start
577
- 1. **Register**: \`mcp__flow-nexus__user_register\` with email/password
578
- 2. **Login**: \`mcp__flow-nexus__user_login\` to access features
579
- 3. **Check Balance**: \`mcp__flow-nexus__check_balance\` for credits
580
-
581
- ### Key Capabilities
582
-
583
- **🤖 AI Swarms**
584
- - Deploy multi-agent swarms in cloud sandboxes
585
- - Pre-built templates for common architectures
586
- - Auto-scaling and load balancing
587
-
588
- **📦 E2B Sandboxes**
589
- - \`mcp__flow-nexus__sandbox_create\` - Isolated execution environments
590
- - Support for Node.js, Python, React, Next.js
591
- - Real-time code execution with environment variables
592
-
593
- **⚡ Workflows**
594
- - \`mcp__flow-nexus__workflow_create\` - Event-driven automation
595
- - Parallel task processing with message queues
596
- - Reusable workflow templates
597
-
598
- **🎯 Challenges & Learning**
599
- - \`mcp__flow-nexus__challenges_list\` - Coding challenges
600
- - Earn rUv credits by completing tasks
601
- - Global leaderboard and achievements
602
-
603
- **🧠 Neural Networks**
604
- - \`mcp__flow-nexus__neural_train\` - Train custom models
605
- - Distributed training across sandboxes
606
- - Pre-built templates for ML tasks
607
-
608
- **💰 Credits & Billing**
609
- - Pay-as-you-go with rUv credits
610
- - Auto-refill configuration available
611
- - Free tier for getting started
612
-
613
- ### Example: Deploy a Swarm
614
- \`\`\`javascript
615
- // Login and deploy
616
- mcp__flow-nexus__user_login { email: "user@example.com", password: "***" }
617
- mcp__flow-nexus__swarm_init { topology: "mesh", maxAgents: 5 }
618
- mcp__flow-nexus__sandbox_create { template: "node", name: "api-dev" }
619
- \`\`\`
620
-
621
- Learn more: https://github.com/ruvnet/claude-flow#flow-nexus
622
- `;
623
- }
624
-
625
- // Create optimized SPARC CLAUDE.md with batchtools integration
626
- export function createOptimizedSparcClaudeMd() {
627
- return `# Claude Code Configuration - SPARC Development Environment
628
-
629
- ## 🚨 CRITICAL: CONCURRENT EXECUTION & FILE MANAGEMENT
630
-
631
- **ABSOLUTE RULES**:
632
- 1. ALL operations MUST be concurrent/parallel in a single message
633
- 2. **NEVER save working files, text/mds and tests to the root folder**
634
- 3. ALWAYS organize files in appropriate subdirectories
635
- 4. **USE CLAUDE CODE'S TASK TOOL** for spawning agents concurrently, not just MCP
636
-
637
- ### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
638
-
639
- **MANDATORY PATTERNS:**
640
- - **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
641
- - **Task tool (Claude Code)**: ALWAYS spawn ALL agents in ONE message with full instructions
642
- - **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
643
- - **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
644
- - **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message
645
-
646
- ### 🎯 CRITICAL: Claude Code Task Tool for Agent Execution
647
-
648
- **Claude Code's Task tool is the PRIMARY way to spawn agents:**
649
- \`\`\`javascript
650
- // ✅ CORRECT: Use Claude Code's Task tool for parallel agent execution
651
- [Single Message]:
652
- Task("Research agent", "Analyze requirements and patterns...", "researcher")
653
- Task("Coder agent", "Implement core features...", "coder")
654
- Task("Tester agent", "Create comprehensive tests...", "tester")
655
- Task("Reviewer agent", "Review code quality...", "reviewer")
656
- Task("Architect agent", "Design system architecture...", "system-architect")
657
- \`\`\`
658
-
659
- **MCP tools are ONLY for coordination setup:**
660
- - \`mcp__claude-flow__swarm_init\` - Initialize coordination topology
661
- - \`mcp__claude-flow__agent_spawn\` - Define agent types for coordination
662
- - \`mcp__claude-flow__task_orchestrate\` - Orchestrate high-level workflows
663
-
664
- ### 📁 File Organization Rules
665
-
666
- **NEVER save to root folder. Use these directories:**
667
- - \`/src\` - Source code files
668
- - \`/tests\` - Test files
669
- - \`/docs\` - Documentation and markdown files
670
- - \`/config\` - Configuration files
671
- - \`/scripts\` - Utility scripts
672
- - \`/examples\` - Example code
673
-
674
- ## Project Overview
675
-
676
- This project uses SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) methodology with Claude-Flow orchestration for systematic Test-Driven Development.
677
-
678
- ## SPARC Commands
679
-
680
- ### Core Commands
681
- - \`npx claude-flow sparc modes\` - List available modes
682
- - \`npx claude-flow sparc run <mode> "<task>"\` - Execute specific mode
683
- - \`npx claude-flow sparc tdd "<feature>"\` - Run complete TDD workflow
684
- - \`npx claude-flow sparc info <mode>\` - Get mode details
685
-
686
- ### Batchtools Commands
687
- - \`npx claude-flow sparc batch <modes> "<task>"\` - Parallel execution
688
- - \`npx claude-flow sparc pipeline "<task>"\` - Full pipeline processing
689
- - \`npx claude-flow sparc concurrent <mode> "<tasks-file>"\` - Multi-task processing
690
-
691
- ### Build Commands
692
- - \`npm run build\` - Build project
693
- - \`npm run test\` - Run tests
694
- - \`npm run lint\` - Linting
695
- - \`npm run typecheck\` - Type checking
696
-
697
- ## SPARC Workflow Phases
698
-
699
- 1. **Specification** - Requirements analysis (\`sparc run spec-pseudocode\`)
700
- 2. **Pseudocode** - Algorithm design (\`sparc run spec-pseudocode\`)
701
- 3. **Architecture** - System design (\`sparc run architect\`)
702
- 4. **Refinement** - TDD implementation (\`sparc tdd\`)
703
- 5. **Completion** - Integration (\`sparc run integration\`)
704
-
705
- ## Code Style & Best Practices
706
-
707
- - **Modular Design**: Files under 500 lines
708
- - **Environment Safety**: Never hardcode secrets
709
- - **Test-First**: Write tests before implementation
710
- - **Clean Architecture**: Separate concerns
711
- - **Documentation**: Keep updated
712
-
713
- ## 🚀 Available Agents (54 Total)
714
-
715
- ### Core Development
716
- \`coder\`, \`reviewer\`, \`tester\`, \`planner\`, \`researcher\`
717
-
718
- ### Swarm Coordination
719
- \`hierarchical-coordinator\`, \`mesh-coordinator\`, \`adaptive-coordinator\`, \`collective-intelligence-coordinator\`, \`swarm-memory-manager\`
720
-
721
- ### Consensus & Distributed
722
- \`byzantine-coordinator\`, \`raft-manager\`, \`gossip-coordinator\`, \`consensus-builder\`, \`crdt-synchronizer\`, \`quorum-manager\`, \`security-manager\`
723
-
724
- ### Performance & Optimization
725
- \`perf-analyzer\`, \`performance-benchmarker\`, \`task-orchestrator\`, \`memory-coordinator\`, \`smart-agent\`
726
-
727
- ### GitHub & Repository
728
- \`github-modes\`, \`pr-manager\`, \`code-review-swarm\`, \`issue-tracker\`, \`release-manager\`, \`workflow-automation\`, \`project-board-sync\`, \`repo-architect\`, \`multi-repo-swarm\`
729
-
730
- ### SPARC Methodology
731
- \`sparc-coord\`, \`sparc-coder\`, \`specification\`, \`pseudocode\`, \`architecture\`, \`refinement\`
732
-
733
- ### Specialized Development
734
- \`backend-dev\`, \`mobile-dev\`, \`ml-developer\`, \`cicd-engineer\`, \`api-docs\`, \`system-architect\`, \`code-analyzer\`, \`base-template-generator\`
735
-
736
- ### Testing & Validation
737
- \`tdd-london-swarm\`, \`production-validator\`
738
-
739
- ### Migration & Planning
740
- \`migration-planner\`, \`swarm-init\`
741
-
742
- ## 🎯 Claude Code vs MCP Tools
743
-
744
- ### Claude Code Handles ALL EXECUTION:
745
- - **Task tool**: Spawn and run agents concurrently for actual work
746
- - File operations (Read, Write, Edit, MultiEdit, Glob, Grep)
747
- - Code generation and programming
748
- - Bash commands and system operations
749
- - Implementation work
750
- - Project navigation and analysis
751
- - TodoWrite and task management
752
- - Git operations
753
- - Package management
754
- - Testing and debugging
755
-
756
- ### MCP Tools ONLY COORDINATE:
757
- - Swarm initialization (topology setup)
758
- - Agent type definitions (coordination patterns)
759
- - Task orchestration (high-level planning)
760
- - Memory management
761
- - Neural features
762
- - Performance tracking
763
- - GitHub integration
764
-
765
- **KEY**: MCP coordinates the strategy, Claude Code's Task tool executes with real agents.
766
-
767
- ## 🚀 Quick Setup
768
-
769
- \`\`\`bash
770
- # Add MCP servers (Claude Flow required, others optional)
771
- claude mcp add claude-flow npx claude-flow@alpha mcp start
772
- claude mcp add ruv-swarm npx ruv-swarm mcp start # Optional: Enhanced coordination
773
- claude mcp add flow-nexus npx flow-nexus@latest mcp start # Optional: Cloud features
774
- \`\`\`
775
-
776
- ## MCP Tool Categories
777
-
778
- ### Coordination
779
- \`swarm_init\`, \`agent_spawn\`, \`task_orchestrate\`
780
-
781
- ### Monitoring
782
- \`swarm_status\`, \`agent_list\`, \`agent_metrics\`, \`task_status\`, \`task_results\`
783
-
784
- ### Memory & Neural
785
- \`memory_usage\`, \`neural_status\`, \`neural_train\`, \`neural_patterns\`
786
-
787
- ### GitHub Integration
788
- \`github_swarm\`, \`repo_analyze\`, \`pr_enhance\`, \`issue_triage\`, \`code_review\`
789
-
790
- ### System
791
- \`benchmark_run\`, \`features_detect\`, \`swarm_monitor\`
792
-
793
- ### Flow-Nexus MCP Tools (Optional Advanced Features)
794
- Flow-Nexus extends MCP capabilities with 70+ cloud-based orchestration tools:
795
-
796
- **Key MCP Tool Categories:**
797
- - **Swarm & Agents**: \`swarm_init\`, \`swarm_scale\`, \`agent_spawn\`, \`task_orchestrate\`
798
- - **Sandboxes**: \`sandbox_create\`, \`sandbox_execute\`, \`sandbox_upload\` (cloud execution)
799
- - **Templates**: \`template_list\`, \`template_deploy\` (pre-built project templates)
800
- - **Neural AI**: \`neural_train\`, \`neural_patterns\`, \`seraphina_chat\` (AI assistant)
801
- - **GitHub**: \`github_repo_analyze\`, \`github_pr_manage\` (repository management)
802
- - **Real-time**: \`execution_stream_subscribe\`, \`realtime_subscribe\` (live monitoring)
803
- - **Storage**: \`storage_upload\`, \`storage_list\` (cloud file management)
804
-
805
- **Authentication Required:**
806
- - Register: \`mcp__flow-nexus__user_register\` or \`npx flow-nexus@latest register\`
807
- - Login: \`mcp__flow-nexus__user_login\` or \`npx flow-nexus@latest login\`
808
- - Access 70+ specialized MCP tools for advanced orchestration
809
-
810
- ## 🚀 Agent Execution Flow with Claude Code
811
-
812
- ### The Correct Pattern:
813
-
814
- 1. **Optional**: Use MCP tools to set up coordination topology
815
- 2. **REQUIRED**: Use Claude Code's Task tool to spawn agents that do actual work
816
- 3. **REQUIRED**: Each agent runs hooks for coordination
817
- 4. **REQUIRED**: Batch all operations in single messages
818
-
819
- ### Example Full-Stack Development:
820
-
821
- \`\`\`javascript
822
- // Single message with all agent spawning via Claude Code's Task tool
823
- [Parallel Agent Execution]:
824
- Task("Backend Developer", "Build REST API with Express. Use hooks for coordination.", "backend-dev")
825
- Task("Frontend Developer", "Create React UI. Coordinate with backend via memory.", "coder")
826
- Task("Database Architect", "Design PostgreSQL schema. Store schema in memory.", "code-analyzer")
827
- Task("Test Engineer", "Write Jest tests. Check memory for API contracts.", "tester")
828
- Task("DevOps Engineer", "Setup Docker and CI/CD. Document in memory.", "cicd-engineer")
829
- Task("Security Auditor", "Review authentication. Report findings via hooks.", "reviewer")
830
-
831
- // All todos batched together
832
- TodoWrite { todos: [...8-10 todos...] }
833
-
834
- // All file operations together
835
- Write "backend/server.js"
836
- Write "frontend/App.jsx"
837
- Write "database/schema.sql"
838
- \`\`\`
839
-
840
- ## 📋 Agent Coordination Protocol
841
-
842
- ### Every Agent Spawned via Task Tool MUST:
843
-
844
- **1️⃣ BEFORE Work:**
845
- \`\`\`bash
846
- npx claude-flow@alpha hooks pre-task --description "[task]"
847
- npx claude-flow@alpha hooks session-restore --session-id "swarm-[id]"
848
- \`\`\`
849
-
850
- **2️⃣ DURING Work:**
851
- \`\`\`bash
852
- npx claude-flow@alpha hooks post-edit --file "[file]" --memory-key "swarm/[agent]/[step]"
853
- npx claude-flow@alpha hooks notify --message "[what was done]"
854
- \`\`\`
855
-
856
- **3️⃣ AFTER Work:**
857
- \`\`\`bash
858
- npx claude-flow@alpha hooks post-task --task-id "[task]"
859
- npx claude-flow@alpha hooks session-end --export-metrics true
860
- \`\`\`
861
-
862
- ## 🎯 Concurrent Execution Examples
863
-
864
- ### ✅ CORRECT WORKFLOW: MCP Coordinates, Claude Code Executes
865
-
866
- \`\`\`javascript
867
- // Step 1: MCP tools set up coordination (optional, for complex tasks)
868
- [Single Message - Coordination Setup]:
869
- mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 6 }
870
- mcp__claude-flow__agent_spawn { type: "researcher" }
871
- mcp__claude-flow__agent_spawn { type: "coder" }
872
- mcp__claude-flow__agent_spawn { type: "tester" }
873
-
874
- // Step 2: Claude Code Task tool spawns ACTUAL agents that do the work
875
- [Single Message - Parallel Agent Execution]:
876
- // Claude Code's Task tool spawns real agents concurrently
877
- Task("Research agent", "Analyze API requirements and best practices. Check memory for prior decisions.", "researcher")
878
- Task("Coder agent", "Implement REST endpoints with authentication. Coordinate via hooks.", "coder")
879
- Task("Database agent", "Design and implement database schema. Store decisions in memory.", "code-analyzer")
880
- Task("Tester agent", "Create comprehensive test suite with 90% coverage.", "tester")
881
- Task("Reviewer agent", "Review code quality and security. Document findings.", "reviewer")
882
-
883
- // Batch ALL todos in ONE call
884
- TodoWrite { todos: [
885
- {id: "1", content: "Research API patterns", status: "in_progress", priority: "high"},
886
- {id: "2", content: "Design database schema", status: "in_progress", priority: "high"},
887
- {id: "3", content: "Implement authentication", status: "pending", priority: "high"},
888
- {id: "4", content: "Build REST endpoints", status: "pending", priority: "high"},
889
- {id: "5", content: "Write unit tests", status: "pending", priority: "medium"},
890
- {id: "6", content: "Integration tests", status: "pending", priority: "medium"},
891
- {id: "7", content: "API documentation", status: "pending", priority: "low"},
892
- {id: "8", content: "Performance optimization", status: "pending", priority: "low"}
893
- ]}
894
-
895
- // Parallel file operations
896
- Bash "mkdir -p app/{src,tests,docs,config}"
897
- Write "app/package.json"
898
- Write "app/src/server.js"
899
- Write "app/tests/server.test.js"
900
- Write "app/docs/API.md"
901
- \`\`\`
902
-
903
- ### ❌ WRONG (Multiple Messages):
904
- \`\`\`javascript
905
- Message 1: mcp__claude-flow__swarm_init
906
- Message 2: Task("agent 1")
907
- Message 3: TodoWrite { todos: [single todo] }
908
- Message 4: Write "file.js"
909
- // This breaks parallel coordination!
910
- \`\`\`
911
-
912
- ## Performance Benefits
913
-
914
- - **84.8% SWE-Bench solve rate**
915
- - **32.3% token reduction**
916
- - **2.8-4.4x speed improvement**
917
- - **27+ neural models**
918
-
919
- ## Hooks Integration
920
-
921
- ### Pre-Operation
922
- - Auto-assign agents by file type
923
- - Validate commands for safety
924
- - Prepare resources automatically
925
- - Optimize topology by complexity
926
- - Cache searches
927
-
928
- ### Post-Operation
929
- - Auto-format code
930
- - Train neural patterns
931
- - Update memory
932
- - Analyze performance
933
- - Track token usage
934
-
935
- ### Session Management
936
- - Generate summaries
937
- - Persist state
938
- - Track metrics
939
- - Restore context
940
- - Export workflows
941
-
942
- ## Advanced Features (v2.0.0)
943
-
944
- - 🚀 Automatic Topology Selection
945
- - ⚡ Parallel Execution (2.8-4.4x speed)
946
- - 🧠 Neural Training
947
- - 📊 Bottleneck Analysis
948
- - 🤖 Smart Auto-Spawning
949
- - 🛡️ Self-Healing Workflows
950
- - 💾 Cross-Session Memory
951
- - 🔗 GitHub Integration
952
-
953
- ## Integration Tips
954
-
955
- 1. Start with basic swarm init
956
- 2. Scale agents gradually
957
- 3. Use memory for context
958
- 4. Monitor progress regularly
959
- 5. Train patterns from success
960
- 6. Enable hooks automation
961
- 7. Use GitHub tools first
962
-
963
- ## Support
964
-
965
- - Documentation: https://github.com/ruvnet/claude-flow
966
- - Issues: https://github.com/ruvnet/claude-flow/issues
967
- - Flow-Nexus Platform: https://flow-nexus.ruv.io (registration required for cloud features)
968
-
969
- ---
970
-
971
- Remember: **Claude Flow coordinates, Claude Code creates!**
972
-
973
- # important-instruction-reminders
974
- Do what has been asked; nothing more, nothing less.
975
- NEVER create files unless they're absolutely necessary for achieving your goal.
976
- ALWAYS prefer editing an existing file to creating a new one.
977
- NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.
978
- Never save working files, text/mds and tests to the root folder.
979
- `;
980
- }
981
-
982
- export function createFlowNexusClaudeMd() {
983
- return `# Claude Code Configuration - Flow Nexus Integration
984
-
985
- ## 🌐 Flow Nexus Cloud Platform
986
-
987
- Flow Nexus extends Claude Flow with cloud-powered features for AI development and deployment.
988
-
989
- ### Quick Start
990
- 1. **Register**: Use \`mcp__flow-nexus__user_register\` with email/password
991
- 2. **Login**: Use \`mcp__flow-nexus__user_login\` to access features
992
- 3. **Check Balance**: Use \`mcp__flow-nexus__check_balance\` for credits
993
-
994
- ### 🚀 Key Capabilities
995
-
996
- **🤖 AI Swarms**
997
- - Deploy multi-agent swarms in cloud sandboxes
998
- - Pre-built templates for common architectures
999
- - Auto-scaling and load balancing
1000
-
1001
- **📦 E2B Sandboxes**
1002
- - \`mcp__flow-nexus__sandbox_create\` - Isolated execution environments
1003
- - Support for Node.js, Python, React, Next.js
1004
- - Real-time code execution with environment variables
1005
-
1006
- **⚡ Workflows**
1007
- - \`mcp__flow-nexus__workflow_create\` - Event-driven automation
1008
- - Parallel task processing with message queues
1009
- - Reusable workflow templates
1010
-
1011
- **🎯 Challenges & Learning**
1012
- - \`mcp__flow-nexus__challenges_list\` - Coding challenges
1013
- - Earn rUv credits by completing tasks
1014
- - Global leaderboard and achievements
1015
-
1016
- **🧠 Neural Networks**
1017
- - \`mcp__flow-nexus__neural_train\` - Train custom models
1018
- - Distributed training across sandboxes
1019
- - Pre-built templates for ML tasks
1020
-
1021
- **💰 Credits & Billing**
1022
- - Pay-as-you-go with rUv credits
1023
- - Auto-refill configuration available
1024
- - Free tier for getting started
1025
-
1026
- ### 🤖 Flow Nexus Agents
1027
-
1028
- Specialized agents for Flow Nexus operations available in \`.claude/agents/flow-nexus/\`:
1029
-
1030
- - **flow-nexus-auth**: Authentication and user management
1031
- - **flow-nexus-sandbox**: E2B sandbox deployment and management
1032
- - **flow-nexus-swarm**: AI swarm orchestration and scaling
1033
- - **flow-nexus-workflow**: Event-driven workflow automation
1034
- - **flow-nexus-neural**: Neural network training and deployment
1035
- - **flow-nexus-challenges**: Coding challenges and gamification
1036
- - **flow-nexus-app-store**: Application marketplace management
1037
- - **flow-nexus-payments**: Credit management and billing
1038
- - **flow-nexus-user-tools**: User management and system utilities
1039
-
1040
- ### 📁 Flow Nexus Commands
1041
-
1042
- Detailed Flow Nexus command documentation available in \`.claude/commands/flow-nexus/\`:
1043
-
1044
- - \`login-registration.md\` - Authentication workflows
1045
- - \`sandbox.md\` - E2B sandbox management
1046
- - \`swarm.md\` - AI swarm deployment
1047
- - \`workflow.md\` - Automation workflows
1048
- - \`neural-network.md\` - ML model training
1049
- - \`challenges.md\` - Coding challenges
1050
- - \`app-store.md\` - App marketplace
1051
- - \`payments.md\` - Credit and billing
1052
- - \`user-tools.md\` - User utilities
1053
-
1054
- ### 💡 Example: Deploy a Swarm
1055
- \`\`\`javascript
1056
- // 1. Login to Flow Nexus
1057
- mcp__flow-nexus__user_login({
1058
- email: "user@example.com",
1059
- password: "password"
1060
- })
1061
-
1062
- // 2. Initialize swarm
1063
- mcp__flow-nexus__swarm_init({
1064
- topology: "mesh",
1065
- maxAgents: 5
1066
- })
1067
-
1068
- // 3. Create sandbox
1069
- mcp__flow-nexus__sandbox_create({
1070
- template: "node",
1071
- name: "api-dev"
1072
- })
1073
-
1074
- // 4. Orchestrate task
1075
- mcp__flow-nexus__task_orchestrate({
1076
- task: "Build REST API with authentication",
1077
- strategy: "parallel"
1078
- })
1079
- \`\`\`
1080
-
1081
- ### 🔗 Integration with Claude Code
1082
-
1083
- Flow Nexus seamlessly integrates with Claude Code through MCP (Model Context Protocol):
1084
-
1085
- 1. **Add MCP Server**: \`claude mcp add flow-nexus npx flow-nexus@latest mcp start\`
1086
- 2. **Use in Claude Code**: Access all Flow Nexus tools through MCP interface
1087
- 3. **Agent Coordination**: Use Flow Nexus agents for specialized cloud operations
1088
- 4. **Command Reference**: Use slash commands for quick Flow Nexus operations
1089
-
1090
- ### 📚 Learn More
1091
-
1092
- - Documentation: https://github.com/ruvnet/claude-flow#flow-nexus
1093
- - MCP Integration: Use \`mcp__flow-nexus__*\` tools in Claude Code
1094
- - Agent Usage: Type \`/\` in Claude Code to see Flow Nexus commands
1095
- - Community: Join discussions and share templates
1096
-
1097
- ---
1098
-
1099
- **Ready to build with Flow Nexus? Start with authentication and explore the cloud-powered AI development platform!**
1100
- `;
1101
- }