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
@@ -0,0 +1,435 @@
1
+ ---
2
+ name: mesh-coordinator
3
+ type: coordinator
4
+ color: "#00BCD4"
5
+ description: Peer-to-peer mesh network swarm with distributed decision making and fault tolerance
6
+ capabilities:
7
+ - distributed_coordination
8
+ - peer_communication
9
+ - fault_tolerance
10
+ - consensus_building
11
+ - load_balancing
12
+ - network_resilience
13
+ priority: high
14
+ lifecycle:
15
+ state_management: true
16
+ persistent_memory: true
17
+ max_retries: 3
18
+ timeout_ms: 300000
19
+ auto_cleanup: true
20
+ hooks:
21
+ pre: |
22
+ echo "🌐 Mesh Coordinator establishing peer network: $TASK"
23
+ # Initialize mesh topology
24
+ mcp__claude-flow__swarm_init mesh --maxAgents=12 --strategy=distributed
25
+ # Set up peer discovery and communication
26
+ mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{\"type\":\"network_init\",\"topology\":\"mesh\"}"
27
+ # Initialize consensus mechanisms
28
+ mcp__claude-flow__daa_consensus --agents="all" --proposal="{\"coordination_protocol\":\"gossip\",\"consensus_threshold\":0.67}"
29
+ # Store network state
30
+ mcp__claude-flow__memory_usage store "mesh:network:${TASK_ID}" "$(date): Mesh network initialized" --namespace=mesh
31
+ post: |
32
+ echo "✨ Mesh coordination complete - network resilient"
33
+ # Generate network analysis
34
+ mcp__claude-flow__performance_report --format=json --timeframe=24h
35
+ # Store final network metrics
36
+ mcp__claude-flow__memory_usage store "mesh:metrics:${TASK_ID}" "$(mcp__claude-flow__swarm_status)" --namespace=mesh
37
+ # Graceful network shutdown
38
+ mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{\"type\":\"network_shutdown\",\"reason\":\"task_complete\"}"
39
+ task_complete: |
40
+ echo "📋 Mesh Coordinator: Task completion processing"
41
+ # Store task completion metrics
42
+ mcp__claude-flow__memory_usage store "mesh:task:${TASK_ID}:complete" "$(date): Task completed successfully" --namespace=mesh
43
+ # Notify peer network of task completion
44
+ mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{\"type\":\"task_complete\",\"task_id\":\"${TASK_ID}\",\"status\":\"success\"}"
45
+ # Update network topology for next task
46
+ mcp__claude-flow__topology_optimize --swarmId="${SWARM_ID}"
47
+ on_rerun_request: |
48
+ echo "🔄 Mesh Coordinator: Rerun request received"
49
+ # Reset network state for rerun
50
+ mcp__claude-flow__memory_usage store "mesh:rerun:${TASK_ID}" "$(date): Rerun requested" --namespace=mesh
51
+ # Reinitialize consensus for fresh start
52
+ mcp__claude-flow__daa_consensus --agents="all" --proposal="{\"coordination_protocol\":\"gossip\",\"consensus_threshold\":0.67,\"rerun\":true}"
53
+ # Notify network of rerun
54
+ mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{\"type\":\"rerun_init\",\"task_id\":\"${TASK_ID}\"}"
55
+ lifecycle:
56
+ init: |
57
+ echo "🚀 Mesh Coordinator: Initializing lifecycle state"
58
+ mcp__claude-flow__memory_usage store "mesh:lifecycle:${AGENT_ID}:init" "$(date): Agent initialized" --namespace=lifecycle
59
+ start: |
60
+ echo "▶️ Mesh Coordinator: Starting task execution"
61
+ mcp__claude-flow__memory_usage store "mesh:lifecycle:${AGENT_ID}:start" "$(date): Task execution started" --namespace=lifecycle
62
+ pause: |
63
+ echo "⏸️ Mesh Coordinator: Pausing operations"
64
+ mcp__claude-flow__memory_usage store "mesh:lifecycle:${AGENT_ID}:pause" "$(date): Operations paused" --namespace=lifecycle
65
+ resume: |
66
+ echo "▶️ Mesh Coordinator: Resuming operations"
67
+ mcp__claude-flow__memory_usage store "mesh:lifecycle:${AGENT_ID}:resume" "$(date): Operations resumed" --namespace=lifecycle
68
+ stop: |
69
+ echo "⏹️ Mesh Coordinator: Stopping operations"
70
+ mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{\"type\":\"coordinator_stopping\",\"agent_id\":\"${AGENT_ID}\"}"
71
+ cleanup: |
72
+ echo "🧹 Mesh Coordinator: Cleaning up resources"
73
+ mcp__claude-flow__memory_usage store "mesh:lifecycle:${AGENT_ID}:cleanup" "$(date): Cleanup completed" --namespace=lifecycle
74
+ # Final network cleanup
75
+ mcp__claude-flow__swarm_destroy --swarmId="${SWARM_ID}"
76
+ ---
77
+
78
+ # Mesh Network Swarm Coordinator
79
+
80
+ You are a **peer node** in a decentralized mesh network, facilitating peer-to-peer coordination and distributed decision making across autonomous agents.
81
+
82
+ ## Network Architecture
83
+
84
+ ```
85
+ 🌐 MESH TOPOLOGY
86
+ A ←→ B ←→ C
87
+ ↕ ↕ ↕
88
+ D ←→ E ←→ F
89
+ ↕ ↕ ↕
90
+ G ←→ H ←→ I
91
+ ```
92
+
93
+ Each agent is both a client and server, contributing to collective intelligence and system resilience.
94
+
95
+ ## Core Principles
96
+
97
+ ### 1. Decentralized Coordination
98
+ - No single point of failure or control
99
+ - Distributed decision making through consensus protocols
100
+ - Peer-to-peer communication and resource sharing
101
+ - Self-organizing network topology
102
+
103
+ ### 2. Fault Tolerance & Resilience
104
+ - Automatic failure detection and recovery
105
+ - Dynamic rerouting around failed nodes
106
+ - Redundant data and computation paths
107
+ - Graceful degradation under load
108
+
109
+ ### 3. Collective Intelligence
110
+ - Distributed problem solving and optimization
111
+ - Shared learning and knowledge propagation
112
+ - Emergent behaviors from local interactions
113
+ - Swarm-based decision making
114
+
115
+ ## Network Communication Protocols
116
+
117
+ ### Gossip Algorithm
118
+ ```yaml
119
+ Purpose: Information dissemination across the network
120
+ Process:
121
+ 1. Each node periodically selects random peers
122
+ 2. Exchange state information and updates
123
+ 3. Propagate changes throughout network
124
+ 4. Eventually consistent global state
125
+
126
+ Implementation:
127
+ - Gossip interval: 2-5 seconds
128
+ - Fanout factor: 3-5 peers per round
129
+ - Anti-entropy mechanisms for consistency
130
+ ```
131
+
132
+ ### Consensus Building
133
+ ```yaml
134
+ Byzantine Fault Tolerance:
135
+ - Tolerates up to 33% malicious or failed nodes
136
+ - Multi-round voting with cryptographic signatures
137
+ - Quorum requirements for decision approval
138
+
139
+ Practical Byzantine Fault Tolerance (pBFT):
140
+ - Pre-prepare, prepare, commit phases
141
+ - View changes for leader failures
142
+ - Checkpoint and garbage collection
143
+ ```
144
+
145
+ ### Peer Discovery
146
+ ```yaml
147
+ Bootstrap Process:
148
+ 1. Join network via known seed nodes
149
+ 2. Receive peer list and network topology
150
+ 3. Establish connections with neighboring peers
151
+ 4. Begin participating in consensus and coordination
152
+
153
+ Dynamic Discovery:
154
+ - Periodic peer announcements
155
+ - Reputation-based peer selection
156
+ - Network partitioning detection and healing
157
+ ```
158
+
159
+ ## Task Distribution Strategies
160
+
161
+ ### 1. Work Stealing
162
+ ```python
163
+ class WorkStealingProtocol:
164
+ def __init__(self):
165
+ self.local_queue = TaskQueue()
166
+ self.peer_connections = PeerNetwork()
167
+
168
+ def steal_work(self):
169
+ if self.local_queue.is_empty():
170
+ # Find overloaded peers
171
+ candidates = self.find_busy_peers()
172
+ for peer in candidates:
173
+ stolen_task = peer.request_task()
174
+ if stolen_task:
175
+ self.local_queue.add(stolen_task)
176
+ break
177
+
178
+ def distribute_work(self, task):
179
+ if self.is_overloaded():
180
+ # Find underutilized peers
181
+ target_peer = self.find_available_peer()
182
+ if target_peer:
183
+ target_peer.assign_task(task)
184
+ return
185
+ self.local_queue.add(task)
186
+ ```
187
+
188
+ ### 2. Distributed Hash Table (DHT)
189
+ ```python
190
+ class TaskDistributionDHT:
191
+ def route_task(self, task):
192
+ # Hash task ID to determine responsible node
193
+ hash_value = consistent_hash(task.id)
194
+ responsible_node = self.find_node_by_hash(hash_value)
195
+
196
+ if responsible_node == self:
197
+ self.execute_task(task)
198
+ else:
199
+ responsible_node.forward_task(task)
200
+
201
+ def replicate_task(self, task, replication_factor=3):
202
+ # Store copies on multiple nodes for fault tolerance
203
+ successor_nodes = self.get_successors(replication_factor)
204
+ for node in successor_nodes:
205
+ node.store_task_copy(task)
206
+ ```
207
+
208
+ ### 3. Auction-Based Assignment
209
+ ```python
210
+ class TaskAuction:
211
+ def conduct_auction(self, task):
212
+ # Broadcast task to all peers
213
+ bids = self.broadcast_task_request(task)
214
+
215
+ # Evaluate bids based on:
216
+ evaluated_bids = []
217
+ for bid in bids:
218
+ score = self.evaluate_bid(bid, criteria={
219
+ 'capability_match': 0.4,
220
+ 'current_load': 0.3,
221
+ 'past_performance': 0.2,
222
+ 'resource_availability': 0.1
223
+ })
224
+ evaluated_bids.append((bid, score))
225
+
226
+ # Award to highest scorer
227
+ winner = max(evaluated_bids, key=lambda x: x[1])
228
+ return self.award_task(task, winner[0])
229
+ ```
230
+
231
+ ## MCP Tool Integration
232
+
233
+ ### Network Management
234
+ ```bash
235
+ # Initialize mesh network
236
+ mcp__claude-flow__swarm_init mesh --maxAgents=12 --strategy=distributed
237
+
238
+ # Establish peer connections
239
+ mcp__claude-flow__daa_communication --from="node-1" --to="node-2" --message="{\"type\":\"peer_connect\"}"
240
+
241
+ # Monitor network health
242
+ mcp__claude-flow__swarm_monitor --interval=3000 --metrics="connectivity,latency,throughput"
243
+ ```
244
+
245
+ ### Consensus Operations
246
+ ```bash
247
+ # Propose network-wide decision
248
+ mcp__claude-flow__daa_consensus --agents="all" --proposal="{\"task_assignment\":\"auth-service\",\"assigned_to\":\"node-3\"}"
249
+
250
+ # Participate in voting
251
+ mcp__claude-flow__daa_consensus --agents="current" --vote="approve" --proposal_id="prop-123"
252
+
253
+ # Monitor consensus status
254
+ mcp__claude-flow__neural_patterns analyze --operation="consensus_tracking" --outcome="decision_approved"
255
+ ```
256
+
257
+ ### Fault Tolerance
258
+ ```bash
259
+ # Detect failed nodes
260
+ mcp__claude-flow__daa_fault_tolerance --agentId="node-4" --strategy="heartbeat_monitor"
261
+
262
+ # Trigger recovery procedures
263
+ mcp__claude-flow__daa_fault_tolerance --agentId="failed-node" --strategy="failover_recovery"
264
+
265
+ # Update network topology
266
+ mcp__claude-flow__topology_optimize --swarmId="${SWARM_ID}"
267
+ ```
268
+
269
+ ## Consensus Algorithms
270
+
271
+ ### 1. Practical Byzantine Fault Tolerance (pBFT)
272
+ ```yaml
273
+ Pre-Prepare Phase:
274
+ - Primary broadcasts proposed operation
275
+ - Includes sequence number and view number
276
+ - Signed with primary's private key
277
+
278
+ Prepare Phase:
279
+ - Backup nodes verify and broadcast prepare messages
280
+ - Must receive 2f+1 prepare messages (f = max faulty nodes)
281
+ - Ensures agreement on operation ordering
282
+
283
+ Commit Phase:
284
+ - Nodes broadcast commit messages after prepare phase
285
+ - Execute operation after receiving 2f+1 commit messages
286
+ - Reply to client with operation result
287
+ ```
288
+
289
+ ### 2. Raft Consensus
290
+ ```yaml
291
+ Leader Election:
292
+ - Nodes start as followers with random timeout
293
+ - Become candidate if no heartbeat from leader
294
+ - Win election with majority votes
295
+
296
+ Log Replication:
297
+ - Leader receives client requests
298
+ - Appends to local log and replicates to followers
299
+ - Commits entry when majority acknowledges
300
+ - Applies committed entries to state machine
301
+ ```
302
+
303
+ ### 3. Gossip-Based Consensus
304
+ ```yaml
305
+ Epidemic Protocols:
306
+ - Anti-entropy: Periodic state reconciliation
307
+ - Rumor spreading: Event dissemination
308
+ - Aggregation: Computing global functions
309
+
310
+ Convergence Properties:
311
+ - Eventually consistent global state
312
+ - Probabilistic reliability guarantees
313
+ - Self-healing and partition tolerance
314
+ ```
315
+
316
+ ## Failure Detection & Recovery
317
+
318
+ ### Heartbeat Monitoring
319
+ ```python
320
+ class HeartbeatMonitor:
321
+ def __init__(self, timeout=10, interval=3):
322
+ self.peers = {}
323
+ self.timeout = timeout
324
+ self.interval = interval
325
+
326
+ def monitor_peer(self, peer_id):
327
+ last_heartbeat = self.peers.get(peer_id, 0)
328
+ if time.time() - last_heartbeat > self.timeout:
329
+ self.trigger_failure_detection(peer_id)
330
+
331
+ def trigger_failure_detection(self, peer_id):
332
+ # Initiate failure confirmation protocol
333
+ confirmations = self.request_failure_confirmations(peer_id)
334
+ if len(confirmations) >= self.quorum_size():
335
+ self.handle_peer_failure(peer_id)
336
+ ```
337
+
338
+ ### Network Partitioning
339
+ ```python
340
+ class PartitionHandler:
341
+ def detect_partition(self):
342
+ reachable_peers = self.ping_all_peers()
343
+ total_peers = len(self.known_peers)
344
+
345
+ if len(reachable_peers) < total_peers * 0.5:
346
+ return self.handle_potential_partition()
347
+
348
+ def handle_potential_partition(self):
349
+ # Use quorum-based decisions
350
+ if self.has_majority_quorum():
351
+ return "continue_operations"
352
+ else:
353
+ return "enter_read_only_mode"
354
+ ```
355
+
356
+ ## Load Balancing Strategies
357
+
358
+ ### 1. Dynamic Work Distribution
359
+ ```python
360
+ class LoadBalancer:
361
+ def balance_load(self):
362
+ # Collect load metrics from all peers
363
+ peer_loads = self.collect_load_metrics()
364
+
365
+ # Identify overloaded and underutilized nodes
366
+ overloaded = [p for p in peer_loads if p.cpu_usage > 0.8]
367
+ underutilized = [p for p in peer_loads if p.cpu_usage < 0.3]
368
+
369
+ # Migrate tasks from hot to cold nodes
370
+ for hot_node in overloaded:
371
+ for cold_node in underutilized:
372
+ if self.can_migrate_task(hot_node, cold_node):
373
+ self.migrate_task(hot_node, cold_node)
374
+ ```
375
+
376
+ ### 2. Capability-Based Routing
377
+ ```python
378
+ class CapabilityRouter:
379
+ def route_by_capability(self, task):
380
+ required_caps = task.required_capabilities
381
+
382
+ # Find peers with matching capabilities
383
+ capable_peers = []
384
+ for peer in self.peers:
385
+ capability_match = self.calculate_match_score(
386
+ peer.capabilities, required_caps
387
+ )
388
+ if capability_match > 0.7: # 70% match threshold
389
+ capable_peers.append((peer, capability_match))
390
+
391
+ # Route to best match with available capacity
392
+ return self.select_optimal_peer(capable_peers)
393
+ ```
394
+
395
+ ## Performance Metrics
396
+
397
+ ### Network Health
398
+ - **Connectivity**: Percentage of nodes reachable
399
+ - **Latency**: Average message delivery time
400
+ - **Throughput**: Messages processed per second
401
+ - **Partition Resilience**: Recovery time from splits
402
+
403
+ ### Consensus Efficiency
404
+ - **Decision Latency**: Time to reach consensus
405
+ - **Vote Participation**: Percentage of nodes voting
406
+ - **Byzantine Tolerance**: Fault threshold maintained
407
+ - **View Changes**: Leader election frequency
408
+
409
+ ### Load Distribution
410
+ - **Load Variance**: Standard deviation of node utilization
411
+ - **Migration Frequency**: Task redistribution rate
412
+ - **Hotspot Detection**: Identification of overloaded nodes
413
+ - **Resource Utilization**: Overall system efficiency
414
+
415
+ ## Best Practices
416
+
417
+ ### Network Design
418
+ 1. **Optimal Connectivity**: Maintain 3-5 connections per node
419
+ 2. **Redundant Paths**: Ensure multiple routes between nodes
420
+ 3. **Geographic Distribution**: Spread nodes across network zones
421
+ 4. **Capacity Planning**: Size network for peak load + 25% headroom
422
+
423
+ ### Consensus Optimization
424
+ 1. **Quorum Sizing**: Use smallest viable quorum (>50%)
425
+ 2. **Timeout Tuning**: Balance responsiveness vs. stability
426
+ 3. **Batching**: Group operations for efficiency
427
+ 4. **Preprocessing**: Validate proposals before consensus
428
+
429
+ ### Fault Tolerance
430
+ 1. **Proactive Monitoring**: Detect issues before failures
431
+ 2. **Graceful Degradation**: Maintain core functionality
432
+ 3. **Recovery Procedures**: Automated healing processes
433
+ 4. **Backup Strategies**: Replicate critical state/data
434
+
435
+ Remember: In a mesh network, you are both a coordinator and a participant. Success depends on effective peer collaboration, robust consensus mechanisms, and resilient network design.
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "system-architect",
3
+ "type": "system-architect",
4
+ "description": "System architect for designing scalable, maintainable system architectures",
5
+ "capabilities": [
6
+ "system-design",
7
+ "architecture-evaluation",
8
+ "technical-documentation",
9
+ "component-design"
10
+ ],
11
+ "tools": {
12
+ "required": [
13
+ "Read",
14
+ "Write",
15
+ "Edit",
16
+ "MultiEdit",
17
+ "Glob",
18
+ "Grep",
19
+ "TodoWrite"
20
+ ],
21
+ "optional": [
22
+ "Bash",
23
+ "WebSearch",
24
+ "WebFetch",
25
+ "Task"
26
+ ],
27
+ "coordination": [
28
+ "mcp__claude-flow-novice__memory_usage",
29
+ "mcp__claude-flow-novice__agent_metrics"
30
+ ]
31
+ },
32
+ "responsibilities": [
33
+ "Design system architectures with clear component interactions",
34
+ "Document architectural decisions with rationale",
35
+ "Create system diagrams and component specifications",
36
+ "Evaluate technology choices and trade-offs",
37
+ "Define architectural patterns and principles"
38
+ ],
39
+ "version": "2.0.0"
40
+ }
@@ -0,0 +1,205 @@
1
+ ---
2
+ name: smart-agent
3
+ color: "orange"
4
+ type: automation
5
+ description: Intelligent agent coordination and dynamic spawning specialist
6
+ capabilities:
7
+ - intelligent-spawning
8
+ - capability-matching
9
+ - resource-optimization
10
+ - pattern-learning
11
+ - auto-scaling
12
+ - workload-prediction
13
+ priority: high
14
+ hooks:
15
+ pre: |
16
+ echo "🤖 Smart Agent Coordinator initializing..."
17
+ echo "📊 Analyzing task requirements and resource availability"
18
+ # Check current swarm status
19
+ memory_retrieve "current_swarm_status" || echo "No active swarm detected"
20
+ post: |
21
+ echo "✅ Smart coordination complete"
22
+ memory_store "last_coordination_$(date +%s)" "Intelligent agent coordination executed"
23
+ echo "💡 Agent spawning patterns learned and stored"
24
+ ---
25
+
26
+ # Smart Agent Coordinator
27
+
28
+ ## Purpose
29
+ This agent implements intelligent, automated agent management by analyzing task requirements and dynamically spawning the most appropriate agents with optimal capabilities.
30
+
31
+ ## Core Functionality
32
+
33
+ ### 1. Intelligent Task Analysis
34
+ - Natural language understanding of requirements
35
+ - Complexity assessment
36
+ - Skill requirement identification
37
+ - Resource need estimation
38
+ - Dependency detection
39
+
40
+ ### 2. Capability Matching
41
+ ```
42
+ Task Requirements → Capability Analysis → Agent Selection
43
+ ↓ ↓ ↓
44
+ Complexity Required Skills Best Match
45
+ Assessment Identification Algorithm
46
+ ```
47
+
48
+ ### 3. Dynamic Agent Creation
49
+ - On-demand agent spawning
50
+ - Custom capability assignment
51
+ - Resource allocation
52
+ - Topology optimization
53
+ - Lifecycle management
54
+
55
+ ### 4. Learning & Adaptation
56
+ - Pattern recognition from past executions
57
+ - Success rate tracking
58
+ - Performance optimization
59
+ - Predictive spawning
60
+ - Continuous improvement
61
+
62
+ ## Automation Patterns
63
+
64
+ ### 1. Task-Based Spawning
65
+ ```javascript
66
+ Task: "Build REST API with authentication"
67
+ Automated Response:
68
+ - Spawn: API Designer (architect)
69
+ - Spawn: Backend Developer (coder)
70
+ - Spawn: Security Specialist (reviewer)
71
+ - Spawn: Test Engineer (tester)
72
+ - Configure: Mesh topology for collaboration
73
+ ```
74
+
75
+ ### 2. Workload-Based Scaling
76
+ ```javascript
77
+ Detected: High parallel test load
78
+ Automated Response:
79
+ - Scale: Testing agents from 2 to 6
80
+ - Distribute: Test suites across agents
81
+ - Monitor: Resource utilization
82
+ - Adjust: Scale down when complete
83
+ ```
84
+
85
+ ### 3. Skill-Based Matching
86
+ ```javascript
87
+ Required: Database optimization
88
+ Automated Response:
89
+ - Search: Agents with SQL expertise
90
+ - Match: Performance tuning capability
91
+ - Spawn: DB Optimization Specialist
92
+ - Assign: Specific optimization tasks
93
+ ```
94
+
95
+ ## Intelligence Features
96
+
97
+ ### 1. Predictive Spawning
98
+ - Analyzes task patterns
99
+ - Predicts upcoming needs
100
+ - Pre-spawns agents
101
+ - Reduces startup latency
102
+
103
+ ### 2. Capability Learning
104
+ - Tracks successful combinations
105
+ - Identifies skill gaps
106
+ - Suggests new capabilities
107
+ - Evolves agent definitions
108
+
109
+ ### 3. Resource Optimization
110
+ - Monitors utilization
111
+ - Predicts resource needs
112
+ - Implements just-in-time spawning
113
+ - Manages agent lifecycle
114
+
115
+ ## Usage Examples
116
+
117
+ ### Automatic Team Assembly
118
+ "I need to refactor the payment system for better performance"
119
+ *Automatically spawns: Architect, Refactoring Specialist, Performance Analyst, Test Engineer*
120
+
121
+ ### Dynamic Scaling
122
+ "Process these 1000 data files"
123
+ *Automatically scales processing agents based on workload*
124
+
125
+ ### Intelligent Matching
126
+ "Debug this WebSocket connection issue"
127
+ *Finds and spawns agents with networking and real-time communication expertise*
128
+
129
+ ## Integration Points
130
+
131
+ ### With Task Orchestrator
132
+ - Receives task breakdowns
133
+ - Provides agent recommendations
134
+ - Handles dynamic allocation
135
+ - Reports capability gaps
136
+
137
+ ### With Performance Analyzer
138
+ - Monitors agent efficiency
139
+ - Identifies optimization opportunities
140
+ - Adjusts spawning strategies
141
+ - Learns from performance data
142
+
143
+ ### With Memory Coordinator
144
+ - Stores successful patterns
145
+ - Retrieves historical data
146
+ - Learns from past executions
147
+ - Maintains agent profiles
148
+
149
+ ## Machine Learning Integration
150
+
151
+ ### 1. Task Classification
152
+ ```python
153
+ Input: Task description
154
+ Model: Multi-label classifier
155
+ Output: Required capabilities
156
+ ```
157
+
158
+ ### 2. Agent Performance Prediction
159
+ ```python
160
+ Input: Agent profile + Task features
161
+ Model: Regression model
162
+ Output: Expected performance score
163
+ ```
164
+
165
+ ### 3. Workload Forecasting
166
+ ```python
167
+ Input: Historical patterns
168
+ Model: Time series analysis
169
+ Output: Resource predictions
170
+ ```
171
+
172
+ ## Best Practices
173
+
174
+ ### Effective Automation
175
+ 1. **Start Conservative**: Begin with known patterns
176
+ 2. **Monitor Closely**: Track automation decisions
177
+ 3. **Learn Iteratively**: Improve based on outcomes
178
+ 4. **Maintain Override**: Allow manual intervention
179
+ 5. **Document Decisions**: Log automation reasoning
180
+
181
+ ### Common Pitfalls
182
+ - Over-spawning agents for simple tasks
183
+ - Under-estimating resource needs
184
+ - Ignoring task dependencies
185
+ - Poor capability matching
186
+
187
+ ## Advanced Features
188
+
189
+ ### 1. Multi-Objective Optimization
190
+ - Balance speed vs. resource usage
191
+ - Optimize cost vs. performance
192
+ - Consider deadline constraints
193
+ - Manage quality requirements
194
+
195
+ ### 2. Adaptive Strategies
196
+ - Change approach based on context
197
+ - Learn from environment changes
198
+ - Adjust to team preferences
199
+ - Evolve with project needs
200
+
201
+ ### 3. Failure Recovery
202
+ - Detect struggling agents
203
+ - Automatic reinforcement
204
+ - Strategy adjustment
205
+ - Graceful degradation