@monoes/monomindcli 2.9.6 → 2.9.8

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 (295) hide show
  1. package/.claude/agents/design/design-monodesign.md +1 -2
  2. package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +1 -2
  3. package/.claude/agents/engineering/engineering-ai-engineer.md +1 -2
  4. package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -1
  5. package/.claude/agents/engineering/engineering-backend-architect.md +1 -2
  6. package/.claude/agents/engineering/engineering-code-reviewer.md +1 -2
  7. package/.claude/agents/engineering/engineering-data-engineer.md +1 -2
  8. package/.claude/agents/engineering/engineering-database-optimizer.md +1 -2
  9. package/.claude/agents/engineering/engineering-devops-automator.md +1 -2
  10. package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +1 -2
  11. package/.claude/agents/engineering/engineering-feishu-integration-developer.md +1 -2
  12. package/.claude/agents/engineering/engineering-frontend-developer.md +1 -2
  13. package/.claude/agents/engineering/engineering-git-workflow-master.md +1 -2
  14. package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -1
  15. package/.claude/agents/engineering/engineering-mobile-app-builder.md +1 -2
  16. package/.claude/agents/engineering/engineering-rapid-prototyper.md +1 -2
  17. package/.claude/agents/engineering/engineering-security-engineer.md +1 -2
  18. package/.claude/agents/engineering/engineering-senior-developer.md +1 -2
  19. package/.claude/agents/engineering/engineering-software-architect.md +1 -2
  20. package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +1 -2
  21. package/.claude/agents/engineering/engineering-sre.md +0 -1
  22. package/.claude/agents/engineering/engineering-technical-writer.md +1 -2
  23. package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -1
  24. package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +1 -2
  25. package/.claude/agents/github/code-review-swarm.md +0 -1
  26. package/.claude/agents/github/github-modes.md +0 -1
  27. package/.claude/agents/github/issue-tracker.md +0 -1
  28. package/.claude/agents/github/multi-repo-swarm.md +0 -1
  29. package/.claude/agents/github/pr-manager.md +0 -1
  30. package/.claude/agents/github/project-board-sync.md +0 -1
  31. package/.claude/agents/github/release-manager.md +0 -1
  32. package/.claude/agents/github/repo-architect.md +0 -1
  33. package/.claude/agents/github/swarm-issue.md +0 -1
  34. package/.claude/agents/github/swarm-pr.md +0 -1
  35. package/.claude/agents/github/sync-coordinator.md +0 -1
  36. package/.claude/agents/github/workflow-automation.md +0 -1
  37. package/.claude/agents/marketing/marketing-competitive-content.md +1 -2
  38. package/.claude/agents/marketing/marketing-cro-specialist.md +1 -2
  39. package/.claude/agents/marketing/marketing-email-specialist.md +1 -2
  40. package/.claude/agents/marketing/marketing-launch-strategist.md +1 -2
  41. package/.claude/agents/marketing/marketing-pricing-strategist.md +1 -2
  42. package/.claude/agents/specialized/agentic-identity-trust.md +0 -1
  43. package/.claude/agents/specialized/agents-orchestrator.md +1 -2
  44. package/.claude/agents/specialized/automation-governance-architect.md +1 -2
  45. package/.claude/agents/specialized/blockchain-security-auditor.md +1 -2
  46. package/.claude/agents/specialized/compliance-auditor.md +1 -2
  47. package/.claude/agents/specialized/identity-graph-operator.md +0 -1
  48. package/.claude/agents/specialized/lsp-index-engineer.md +1 -2
  49. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -1
  50. package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -1
  51. package/.claude/agents/specialized/specialized-developer-advocate.md +1 -2
  52. package/.claude/agents/specialized/specialized-document-generator.md +1 -2
  53. package/.claude/agents/specialized/specialized-mcp-builder.md +1 -2
  54. package/.claude/agents/specialized/specialized-model-qa.md +0 -1
  55. package/.claude/agents/specialized/specialized-workflow-architect.md +1 -2
  56. package/.claude/agents/specialized/zk-steward.md +1 -2
  57. package/.claude/agents/testing/production-validator.md +0 -1
  58. package/.claude/agents/testing/tdd-london-swarm.md +0 -1
  59. package/.claude/agents/testing/testing-accessibility-auditor.md +0 -1
  60. package/.claude/agents/testing/testing-api-tester.md +1 -2
  61. package/.claude/agents/testing/testing-evidence-collector.md +1 -2
  62. package/.claude/agents/testing/testing-performance-benchmarker.md +1 -2
  63. package/.claude/agents/testing/testing-test-results-analyzer.md +1 -2
  64. package/.claude/agents/testing/testing-tool-evaluator.md +1 -2
  65. package/.claude/agents/testing/testing-workflow-optimizer.md +1 -2
  66. package/.claude/commands/hooks/README.md +1 -1
  67. package/.claude/commands/memory/README.md +6 -7
  68. package/.claude/commands/monitoring/README.md +1 -1
  69. package/.claude/helpers/control-start.cjs +27 -7
  70. package/.claude/helpers/handlers/route-handler.cjs +22 -3
  71. package/.claude/helpers/handlers/session-handler.cjs +43 -0
  72. package/.claude/helpers/intelligence.cjs +27 -6
  73. package/.claude/helpers/statusline.cjs +45 -11
  74. package/.claude/skills/agentic-jujutsu/SKILL.md +17 -15
  75. package/.claude/skills/hive-mind-advanced/SKILL.md +212 -559
  76. package/.claude/skills/hooks-automation/SKILL.md +1 -1
  77. package/.claude/skills/mastermind-adapters/SKILL.md +0 -11
  78. package/.claude/skills/mastermind-agents/SKILL.md +0 -11
  79. package/.claude/skills/mastermind-backup/SKILL.md +0 -11
  80. package/.claude/skills/mastermind-bootstrap/SKILL.md +0 -11
  81. package/.claude/skills/mastermind-delegation/SKILL.md +14 -12
  82. package/.claude/skills/mastermind-idea/SKILL.md +0 -5
  83. package/.claude/skills/mastermind-monitor/SKILL.md +0 -15
  84. package/.claude/skills/mastermind-org-settings/SKILL.md +0 -11
  85. package/.claude/skills/mastermind-plugins/SKILL.md +0 -11
  86. package/.claude/skills/mastermind-protocol/SKILL.md +6 -124
  87. package/.claude/skills/mastermind-repeat/SKILL.md +0 -25
  88. package/.claude/skills/mastermind-review/SKILL.md +1 -1
  89. package/.claude/skills/mastermind-stoporg/SKILL.md +0 -19
  90. package/.claude/skills/memory-toolkit/SKILL.md +12 -11
  91. package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +8 -1
  92. package/.claude/skills/pair-programming/SKILL.md +1 -1
  93. package/.claude/skills/performance-analysis/SKILL.md +228 -484
  94. package/.claude/skills/specialagent/SKILL.md +31 -133
  95. package/.claude/skills/swarm-advanced/SKILL.md +2 -2
  96. package/.claude/skills/swarm-orchestration/SKILL.md +220 -150
  97. package/.claude/skills/verification-quality/SKILL.md +247 -571
  98. package/README.md +3 -3
  99. package/dist/src/commands/agent-lifecycle.js +3 -3
  100. package/dist/src/commands/agent-lifecycle.js.map +1 -1
  101. package/dist/src/commands/autopilot.d.ts.map +1 -1
  102. package/dist/src/commands/autopilot.js +7 -1
  103. package/dist/src/commands/autopilot.js.map +1 -1
  104. package/dist/src/commands/doc.d.ts.map +1 -1
  105. package/dist/src/commands/doc.js +14 -3
  106. package/dist/src/commands/doc.js.map +1 -1
  107. package/dist/src/commands/doctor-env-checks.d.ts +1 -1
  108. package/dist/src/commands/doctor-env-checks.d.ts.map +1 -1
  109. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  110. package/dist/src/commands/doctor-project-checks.js +3 -37
  111. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  112. package/dist/src/commands/doctor.d.ts.map +1 -1
  113. package/dist/src/commands/doctor.js +30 -1
  114. package/dist/src/commands/doctor.js.map +1 -1
  115. package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
  116. package/dist/src/commands/hooks-coverage-commands.js +75 -67
  117. package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
  118. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  119. package/dist/src/commands/hooks-workers.js +41 -10
  120. package/dist/src/commands/hooks-workers.js.map +1 -1
  121. package/dist/src/commands/hooks.js +1 -1
  122. package/dist/src/commands/index.d.ts +1 -1
  123. package/dist/src/commands/index.d.ts.map +1 -1
  124. package/dist/src/commands/index.js +20 -4
  125. package/dist/src/commands/index.js.map +1 -1
  126. package/dist/src/commands/init.d.ts.map +1 -1
  127. package/dist/src/commands/init.js +80 -7
  128. package/dist/src/commands/init.js.map +1 -1
  129. package/dist/src/commands/mcp.d.ts.map +1 -1
  130. package/dist/src/commands/mcp.js +78 -2
  131. package/dist/src/commands/mcp.js.map +1 -1
  132. package/dist/src/commands/neural-optimize.d.ts.map +1 -1
  133. package/dist/src/commands/neural-optimize.js +27 -5
  134. package/dist/src/commands/neural-optimize.js.map +1 -1
  135. package/dist/src/commands/org-observe.d.ts.map +1 -1
  136. package/dist/src/commands/org-observe.js +1 -0
  137. package/dist/src/commands/org-observe.js.map +1 -1
  138. package/dist/src/commands/org.d.ts.map +1 -1
  139. package/dist/src/commands/org.js +129 -2
  140. package/dist/src/commands/org.js.map +1 -1
  141. package/dist/src/commands/performance.js +1 -1
  142. package/dist/src/commands/performance.js.map +1 -1
  143. package/dist/src/commands/security-cve.d.ts.map +1 -1
  144. package/dist/src/commands/security-cve.js +1 -11
  145. package/dist/src/commands/security-cve.js.map +1 -1
  146. package/dist/src/commands/security-misc.d.ts +0 -9
  147. package/dist/src/commands/security-misc.d.ts.map +1 -1
  148. package/dist/src/commands/security-misc.js +33 -54
  149. package/dist/src/commands/security-misc.js.map +1 -1
  150. package/dist/src/commands/security-scan.d.ts.map +1 -1
  151. package/dist/src/commands/security-scan.js +3 -11
  152. package/dist/src/commands/security-scan.js.map +1 -1
  153. package/dist/src/commands/swarm.d.ts.map +1 -1
  154. package/dist/src/commands/swarm.js +7 -2
  155. package/dist/src/commands/swarm.js.map +1 -1
  156. package/dist/src/commands/ui.d.ts +8 -0
  157. package/dist/src/commands/ui.d.ts.map +1 -0
  158. package/dist/src/commands/ui.js +94 -0
  159. package/dist/src/commands/ui.js.map +1 -0
  160. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  161. package/dist/src/init/claudemd-generator.js +7 -9
  162. package/dist/src/init/claudemd-generator.js.map +1 -1
  163. package/dist/src/init/executor.d.ts.map +1 -1
  164. package/dist/src/init/executor.js +13 -3
  165. package/dist/src/init/executor.js.map +1 -1
  166. package/dist/src/init/kimi-generator.d.ts +3 -2
  167. package/dist/src/init/kimi-generator.d.ts.map +1 -1
  168. package/dist/src/init/kimi-generator.js +45 -13
  169. package/dist/src/init/kimi-generator.js.map +1 -1
  170. package/dist/src/init/statusline-generator.d.ts +1 -1
  171. package/dist/src/init/statusline-generator.js +1 -1
  172. package/dist/src/init/write-capabilities.js +7 -7
  173. package/dist/src/init/write-capabilities.js.map +1 -1
  174. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  175. package/dist/src/knowledge/document-pipeline.js +1 -0
  176. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  177. package/dist/src/knowledge/eval/golden-set.d.ts.map +1 -1
  178. package/dist/src/knowledge/eval/golden-set.js +21 -32
  179. package/dist/src/knowledge/eval/golden-set.js.map +1 -1
  180. package/dist/src/mcp-tools/embeddings-tools.js +2 -2
  181. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  182. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  183. package/dist/src/mcp-tools/hooks-intelligence.js +29 -3
  184. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  185. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  186. package/dist/src/mcp-tools/hooks-routing.js +32 -19
  187. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  188. package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
  189. package/dist/src/mcp-tools/monograph/query-tools.js +48 -18
  190. package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
  191. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
  192. package/dist/src/mcp-tools/performance-tools.js +15 -10
  193. package/dist/src/mcp-tools/performance-tools.js.map +1 -1
  194. package/dist/src/memory/embedding-operations.d.ts +4 -0
  195. package/dist/src/memory/embedding-operations.d.ts.map +1 -1
  196. package/dist/src/memory/embedding-operations.js +125 -32
  197. package/dist/src/memory/embedding-operations.js.map +1 -1
  198. package/dist/src/memory/hnsw-operations.d.ts +1 -1
  199. package/dist/src/memory/hnsw-operations.js +1 -1
  200. package/dist/src/memory/memory-bridge.d.ts +8 -0
  201. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  202. package/dist/src/memory/memory-bridge.js +37 -8
  203. package/dist/src/memory/memory-bridge.js.map +1 -1
  204. package/dist/src/memory/memory-read.d.ts +1 -1
  205. package/dist/src/memory/memory-read.js +2 -2
  206. package/dist/src/memory/memory-read.js.map +1 -1
  207. package/dist/src/orgrt/antigravity-runner.d.ts.map +1 -1
  208. package/dist/src/orgrt/antigravity-runner.js +6 -6
  209. package/dist/src/orgrt/antigravity-runner.js.map +1 -1
  210. package/dist/src/orgrt/checkpoint-ops.d.ts +11 -1
  211. package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
  212. package/dist/src/orgrt/checkpoint-ops.js +18 -86
  213. package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
  214. package/dist/src/orgrt/checkpoint.d.ts +1 -1
  215. package/dist/src/orgrt/checkpoint.d.ts.map +1 -1
  216. package/dist/src/orgrt/checkpoint.js +3 -3
  217. package/dist/src/orgrt/checkpoint.js.map +1 -1
  218. package/dist/src/orgrt/daemon.d.ts +9 -1
  219. package/dist/src/orgrt/daemon.d.ts.map +1 -1
  220. package/dist/src/orgrt/daemon.js +267 -139
  221. package/dist/src/orgrt/daemon.js.map +1 -1
  222. package/dist/src/orgrt/decisions.d.ts +13 -0
  223. package/dist/src/orgrt/decisions.d.ts.map +1 -1
  224. package/dist/src/orgrt/decisions.js +95 -0
  225. package/dist/src/orgrt/decisions.js.map +1 -1
  226. package/dist/src/orgrt/forwarder.d.ts.map +1 -1
  227. package/dist/src/orgrt/forwarder.js +148 -15
  228. package/dist/src/orgrt/forwarder.js.map +1 -1
  229. package/dist/src/orgrt/kimicode-runner.js +1 -1
  230. package/dist/src/orgrt/kimicode-runner.js.map +1 -1
  231. package/dist/src/orgrt/opencode-runner.js +1 -1
  232. package/dist/src/orgrt/opencode-runner.js.map +1 -1
  233. package/dist/src/orgrt/session.d.ts +27 -1
  234. package/dist/src/orgrt/session.d.ts.map +1 -1
  235. package/dist/src/orgrt/session.js +67 -6
  236. package/dist/src/orgrt/session.js.map +1 -1
  237. package/dist/src/orgrt/task-dag.d.ts +11 -1
  238. package/dist/src/orgrt/task-dag.d.ts.map +1 -1
  239. package/dist/src/orgrt/task-dag.js +93 -2
  240. package/dist/src/orgrt/task-dag.js.map +1 -1
  241. package/dist/src/orgrt/templates.d.ts.map +1 -1
  242. package/dist/src/orgrt/templates.js +26 -2
  243. package/dist/src/orgrt/templates.js.map +1 -1
  244. package/dist/src/orgrt/types.d.ts +77 -1
  245. package/dist/src/orgrt/types.d.ts.map +1 -1
  246. package/dist/src/orgrt/types.js +28 -2
  247. package/dist/src/orgrt/types.js.map +1 -1
  248. package/dist/src/orgrt/vercel-providers.d.ts.map +1 -1
  249. package/dist/src/orgrt/vercel-providers.js +9 -4
  250. package/dist/src/orgrt/vercel-providers.js.map +1 -1
  251. package/dist/src/orgrt/vercel-runner.d.ts +0 -23
  252. package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
  253. package/dist/src/orgrt/vercel-runner.js +38 -7
  254. package/dist/src/orgrt/vercel-runner.js.map +1 -1
  255. package/dist/tsconfig.tsbuildinfo +1 -1
  256. package/package.json +3 -3
  257. package/.claude/commands/mastermind/approvev1.md +0 -94
  258. package/.claude/commands/mastermind/architect.md +0 -52
  259. package/.claude/commands/mastermind/autodev.md +0 -28
  260. package/.claude/commands/mastermind/build.md +0 -23
  261. package/.claude/commands/mastermind/finish.md +0 -17
  262. package/.claude/commands/mastermind/runorgv1.md +0 -159
  263. package/.claude/commands/mastermind/taskdev.md +0 -23
  264. package/.claude/commands/mastermind/tdd.md +0 -19
  265. package/.claude/commands/mastermind/verify.md +0 -19
  266. package/.claude/skills/mastermind-approvev1/SKILL.md +0 -191
  267. package/.claude/skills/mastermind-architect/SKILL.md +0 -862
  268. package/.claude/skills/mastermind-autodev/SKILL.md +0 -360
  269. package/.claude/skills/mastermind-build/SKILL.md +0 -169
  270. package/.claude/skills/mastermind-companies/SKILL.md +0 -256
  271. package/.claude/skills/mastermind-content/SKILL.md +0 -197
  272. package/.claude/skills/mastermind-costs/SKILL.md +0 -151
  273. package/.claude/skills/mastermind-finance/SKILL.md +0 -166
  274. package/.claude/skills/mastermind-finish/SKILL.md +0 -251
  275. package/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -167
  276. package/.claude/skills/mastermind-instance-settings/SKILL.md +0 -315
  277. package/.claude/skills/mastermind-marketing/SKILL.md +0 -228
  278. package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -181
  279. package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -158
  280. package/.claude/skills/mastermind-ops/SKILL.md +0 -168
  281. package/.claude/skills/mastermind-org-chart/SKILL.md +0 -209
  282. package/.claude/skills/mastermind-project-detail/SKILL.md +0 -249
  283. package/.claude/skills/mastermind-project-workspace/SKILL.md +0 -244
  284. package/.claude/skills/mastermind-projects/SKILL.md +0 -167
  285. package/.claude/skills/mastermind-runorgv1/SKILL.md +0 -731
  286. package/.claude/skills/mastermind-sales/SKILL.md +0 -170
  287. package/.claude/skills/mastermind-taskdev/SKILL.md +0 -377
  288. package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -60
  289. package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -144
  290. package/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -114
  291. package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -80
  292. package/.claude/skills/mastermind-tdd/SKILL.md +0 -424
  293. package/.claude/skills/mastermind-verify/SKILL.md +0 -196
  294. package/.claude/skills/mastermind-wiki/SKILL.md +0 -314
  295. package/.claude/skills/monolean-review/SKILL.md +0 -57
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: specialagent
3
- description: Find the single best specialized agent from the full 160+ agent roster using two-stage LLM domain→agent selection
3
+ description: Find the single best specialized agent from the verified ~98-agent roster using two-stage LLM domain→agent selection
4
4
  version: 2.0.0
5
5
  triggers:
6
6
  - /specialagent
@@ -33,157 +33,55 @@ Stage 2: Give LLM agent names in that domain → LLM picks best agent
33
33
 
34
34
  ## Stage 1: Domain Selection
35
35
 
36
- The available domains and their agent counts are:
36
+ The verified roster is ~98 agent definitions (97 registered in `packages/@monomind/cli/.monomind/registry.json`). Domains and representative agents from each:
37
37
 
38
- | Domain | Count |
38
+ | Domain | Representative agents (NOT exhaustive — run `ls .claude/agents/` for the full set) |
39
39
  |---|---|
40
- | development | 20 |
41
- | testing | 10 |
42
- | security | 6 |
43
- | devops | 5 |
44
- | data-ai | 5 |
45
- | architecture | 6 |
46
- | research | 5 |
47
- | marketing | 27 |
48
- | sales | 8 |
49
- | paid-media | 7 |
50
- | design | 8 |
51
- | product | 5 |
52
- | project-management | 6 |
53
- | specialized | 26 |
54
- | academic | 5 |
55
- | support | 6 |
40
+ | development | coder · Backend Architect · Frontend Developer · mobile-dev · Mobile App Builder · Rapid Prototyper · Software Architect · Senior Developer · AI Engineer · Data Engineer · Database Optimizer · AI Data Remediation Engineer · LSP/Index Engineer · Embedded Firmware Engineer · Solidity Smart Contract Engineer · WeChat Mini Program Developer · Feishu Integration Developer · Model QA Specialist |
41
+ | testing | tester · tdd-london-swarm · production-validator · API Tester · Accessibility Auditor · Evidence Collector · Performance Benchmarker · Test Results Analyzer · Tool Evaluator · Workflow Optimizer · Code Reviewer |
42
+ | security | Security Engineer · Compliance Auditor · Blockchain Security Auditor · Threat Detection Engineer · Agentic Identity & Trust Architect · Identity Graph Operator · ZK Steward |
43
+ | devops | DevOps Automator · SRE (Site Reliability Engineer) · Git Workflow Master · Incident Response Commander |
44
+ | architecture | system-architect · Software Architect · Backend Architect · Workflow Architect · Autonomous Optimization Architect · Automation Governance Architect · v1-integration-architect |
45
+ | research | researcher · Technical Writer · Developer Advocate · goal-planner |
46
+ | marketing | Competitive Content Strategist · CRO Specialist · Email Marketing Specialist · Launch Strategist · Pricing Strategist |
47
+ | design | Monodesign · Cultural Intelligence Strategist |
48
+ | github | pr-manager · issue-tracker · release-manager · repo-architect · code-review-swarm · multi-repo-swarm · sync-coordinator · workflow-automation · project-board-sync |
49
+ | swarm / consensus | mesh-coordinator · collective-intelligence-coordinator · scout-explorer · swarm-memory-manager · worker-specialist · coordinator · planner · smart-agent · swarm-init · crdt-synchronizer · quorum-manager |
50
+ | optimization | Benchmark Suite · Load Balancing Coordinator · Performance Monitor · Resource Allocator · Topology Optimizer |
51
+ | specialized | MCP Builder · Document Generator · Agents Orchestrator · dashboard-verifier |
52
+
53
+ **The filesystem is authoritative** — run `ls .claude/agents/` (and `ls packages/@monomind/cli/.claude/agents/`) for the current full list; agents are added over time. Only recommend agents that actually exist there.
56
54
 
57
55
  **Stage 1 prompt to yourself:**
58
- > "Given the task: `<task>` — which single domain from this list best fits: development, testing, security, devops, data-ai, architecture, research, marketing, sales, paid-media, design, product, project-management, specialized, academic, support? Answer with just the domain name."
56
+ > "Given the task: `<task>` — which single domain from this list best fits: development, testing, security, devops, architecture, research, marketing, design, github, swarm, optimization, specialized? Answer with just the domain name."
59
57
 
60
58
  ## Stage 2: Agent Selection Per Domain
61
59
 
62
- Once the domain is selected, use only the agent names for that domain:
63
-
64
- ### development
65
- coder, backend-dev, Frontend Developer, mobile-dev, ml-developer, Rapid Prototyper, base-template-generator, LSP/Index Engineer, macOS Spatial/Metal Engineer, Terminal Integration Specialist, Embedded Firmware Engineer, Solidity Smart Contract Engineer, WeChat Mini Program Developer, Feishu Integration Developer, Roblox Systems Scripter, Godot Gameplay Scripter, Unity Architect, Unreal Systems Engineer, visionOS Spatial Engineer
66
-
67
- ### testing
68
- tdd-london-swarm, API Tester, production-validator, Evidence Collector, agent-browser-testing, Accessibility Auditor, Reality Checker, Code Reviewer, code-analyzer, feature-dev:code-reviewer
69
-
70
- ### security
71
- Security Engineer, Compliance Auditor, Blockchain Security Auditor, v1-security-architect, Threat Detection Engineer, Agentic Identity & Trust Architect
72
-
73
- ### devops
74
- DevOps Automator, SRE, cicd-engineer, Incident Response Commander, Git Workflow Master
75
-
76
- ### data-ai
77
- Data Engineer, AI Engineer, Database Optimizer, AI Data Remediation Engineer, Model QA Specialist
78
-
79
- ### architecture
80
- system-architect, Software Architect, Backend Architect, Plan, UX Architect, Workflow Architect
81
-
82
- ### research
83
- Explore, Trend Researcher, Technical Writer, api-docs
84
-
85
- ### marketing
86
- AI Citation Strategist, App Store Optimizer, Baidu SEO Specialist, Bilibili Content Strategist, Carousel Growth Engine, China E-Commerce Operator, Content Creator, Cross-Border E-Commerce Specialist, Developer Advocate, Douyin Strategist, Growth Hacker, Healthcare Marketing Compliance Specialist, Instagram Curator, Kuaishou Strategist, LinkedIn Content Creator, Podcast Strategist, Reddit Community Builder, SEO Specialist, Short-Video Editing Coach, Social Media Strategist, TikTok Strategist, Twitter Engager, WeChat Official Account Manager, Weibo Strategist, Xiaohongshu Specialist, Zhihu Strategist, Livestream Commerce Coach
87
-
88
- ### sales
89
- Account Strategist, Sales Coach, Deal Strategist, Discovery Coach, Outbound Strategist, Pipeline Analyst, Sales Engineer, Proposal Strategist
90
-
91
- ### paid-media
92
- Paid Media Auditor, Ad Creative Strategist, Paid Social Strategist, PPC Campaign Strategist, Programmatic & Display Buyer, Search Query Analyst, Tracking & Measurement Specialist
93
-
94
- ### design
95
- Brand Guardian, Image Prompt Engineer, Inclusive Visuals Specialist, Cultural Intelligence Strategist, Behavioral Nudge Engine, Whimsy Injector, UI Designer, Visual Storyteller
96
-
97
- ### product
98
- Feedback Synthesizer, Product Manager, Sprint Prioritizer, Experiment Tracker, UX Researcher
99
-
100
- ### project-management
101
- Jira Workflow Steward, Project Shepherd, Studio Operations, Studio Producer, Automation Governance Architect, Autonomous Optimization Architect
102
-
103
- ### specialized
104
- Accounts Payable Agent, Agents Orchestrator, Analytics Reporter, Book Co-Author, Corporate Training Designer, Document Generator, Executive Summary Generator, Finance Tracker, French Consulting Market Navigator, Government Digital Presales Consultant, Identity Graph Operator, Infrastructure Maintainer, Korean Business Navigator, Legal Compliance Checker, MCP Builder, Narrative Designer, Private Domain Operator, Recruitment Specialist, Report Distribution Agent, Salesforce Architect, Supply Chain Strategist, Support Responder, Tool Evaluator, ZK Steward, agentic-payments, adaptive-coordinator
105
-
106
- ### academic
107
- Anthropologist, Geographer, Historian, Narratologist, Psychologist
108
-
109
- ### support
110
- Analytics Reporter, Executive Summary Generator, Finance Tracker, Support Responder, Study Abroad Advisor, Trend Researcher
60
+ From the chosen domain's agents (table above), pick the best fit. **Before recommending, verify the name exists** as a `.md` file under `.claude/agents/` (or `packages/@monomind/cli/.claude/agents/`). If the name you want is not on disk, fall back to another agent in the domain or to a core agent (`coder`, `reviewer`, `tester`, `researcher`, `planner`).
111
61
 
112
62
  **Stage 2 prompt to yourself:**
113
- > "Given the task: `<task>` — which single agent from this list is the best fit: `<comma-separated agent names for selected domain>`? Answer with just the agent name."
63
+ > "Given the task: `<task>` — which single agent from this domain's list is the best fit: `<comma-separated agent names for the selected domain>`? Answer with just the agent name."
114
64
 
115
65
  ## Execution Steps
116
66
 
117
67
  1. Read the user's task
118
68
  2. **Stage 1**: Internally reason through the domain list → select one domain
119
69
  3. **Stage 2**: Internally reason through agent names in that domain → select one agent
120
- 4. Retrieve that agent's `subagent_type` slug from the mapping below
70
+ 4. Verify the agent exists: `ls .claude/agents/**/<slug>.md` (names double as slugs; confirm via the frontmatter `name:` field)
121
71
  5. Output the recommendation
122
72
 
123
- ## Slug Mapping (agent name → subagent_type)
73
+ ## Slug Mapping
124
74
 
125
- Use this to convert the chosen agent name to a callable slug:
75
+ Agent names double as their `subagent_type` slug — the slug is the agent's frontmatter `name` (or the filename without `.md`). Resolve a name to its slug from the definition on disk:
126
76
 
77
+ ```bash
78
+ # list every available agent definition
79
+ ls .claude/agents/ packages/@monomind/cli/.claude/agents/
80
+ # read a specific agent's registered name
81
+ grep -m1 "^name:" .claude/agents/**/<file>.md
127
82
  ```
128
- coder → coder
129
- backend-dev → backend-dev
130
- Frontend Developer → Frontend Developer
131
- mobile-dev → mobile-dev
132
- ml-developer → ml-developer
133
- Rapid Prototyper → Rapid Prototyper
134
- LSP/Index Engineer → LSP/Index Engineer
135
- macOS Spatial/Metal Engineer → macOS Spatial/Metal Engineer
136
- Agentic Identity & Trust Architect → Agentic Identity & Trust Architect
137
- tdd-london-swarm → tdd-london-swarm
138
- API Tester → API Tester
139
- production-validator → production-validator
140
- Evidence Collector → Evidence Collector
141
- agent-browser-testing → agent-browser-testing
142
- Accessibility Auditor → Accessibility Auditor
143
- Reality Checker → Reality Checker
144
- Security Engineer → Security Engineer
145
- Compliance Auditor → Compliance Auditor
146
- Blockchain Security Auditor → Blockchain Security Auditor
147
- DevOps Automator → DevOps Automator
148
- SRE → SRE
149
- cicd-engineer → cicd-engineer
150
- Incident Response Commander → Incident Response Commander
151
- Git Workflow Master → Git Workflow Master
152
- Data Engineer → Data Engineer
153
- AI Engineer → AI Engineer
154
- Database Optimizer → Database Optimizer
155
- system-architect → system-architect
156
- Software Architect → Software Architect
157
- Backend Architect → Backend Architect
158
- Plan → Plan
159
- UX Architect → UX Architect
160
- Explore → Explore
161
- Trend Researcher → Trend Researcher
162
- Technical Writer → Technical Writer
163
- api-docs → api-docs
164
- Code Reviewer → Code Reviewer
165
- code-analyzer → code-analyzer
166
- feature-dev:code-reviewer → feature-dev:code-reviewer
167
- TikTok Strategist → TikTok Strategist
168
- SEO Specialist → SEO Specialist
169
- Content Creator → Content Creator
170
- LinkedIn Content Creator → LinkedIn Content Creator
171
- Growth Hacker → Growth Hacker
172
- Product Manager → Product Manager
173
- Project Shepherd → Project Shepherd
174
- Sales Coach → Sales Coach
175
- Deal Strategist → Deal Strategist
176
- Legal Compliance Checker → Legal Compliance Checker
177
- Finance Tracker → Finance Tracker
178
- Support Responder → Support Responder
179
- Analytics Reporter → Analytics Reporter
180
- Brand Guardian → Brand Guardian
181
- UI Designer → UI Designer
182
- Anthropologist → Anthropologist
183
- Historian → Historian
184
- Psychologist → Psychologist
185
- ```
186
- (For any agent not listed, use the agent name directly as the slug.)
83
+
84
+ If unsure, pass the agent name as the slug. The authoritative set is whatever currently exists in those directories (~98 definitions).
187
85
 
188
86
  ## Output Format
189
87
 
@@ -202,5 +100,5 @@ Then ask: "Should I spawn this agent now?"
202
100
 
203
101
  1. Only pass names at each stage — no descriptions, no keyword dumps, no scoring tables
204
102
  2. Pick exactly one domain, then exactly one agent
205
- 3. For dev tasks that clearly need a specialized tool (e.g. CI/CD → cicd-engineer, not DevOps Automator), prefer the more specific agent
103
+ 3. For tasks that clearly need a specialized tool (e.g. accessibility audits → Accessibility Auditor, not tester), prefer the more specific agent
206
104
  4. Never recommend a generic role (coder, tester) when a specialized agent in the right domain exists
@@ -13,10 +13,10 @@ Master advanced swarm patterns for distributed research, development, and testin
13
13
  ### Prerequisites
14
14
  ```bash
15
15
  # Ensure Monomind is installed
16
- npm install -g monomind@alpha
16
+ npm install -g monomind@latest
17
17
 
18
18
  # Add MCP server (if using MCP tools)
19
- claude mcp add monomind npx monomind@alpha mcp start
19
+ claude mcp add monomind npx monomind@latest mcp start
20
20
  ```
21
21
 
22
22
  ### Basic Pattern
@@ -1,179 +1,249 @@
1
1
  ---
2
2
  name: swarm-orchestration
3
- description: "Orchestrate multi-agent swarms with monomind for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems."
3
+ description: Orchestrate in-process multi-agent swarms with monomind for parallel task execution, topology selection, and shared memory coordination. Use when scaling beyond a single agent on tasks with clear decomposition.
4
4
  ---
5
5
 
6
6
  # Swarm Orchestration
7
7
 
8
8
  ## What This Skill Does
9
9
 
10
- Orchestrates multi-agent swarms using monomind's advanced coordination system. Supports mesh, hierarchical, and adaptive topologies with automatic task distribution, load balancing, and fault tolerance.
10
+ Coordinates multiple Claude Code Task-tool agents inside a single monomind process. The swarm layer tracks topology, agent lifecycle, and task assignment. **Real work happens in spawned Task-tool agents** — the swarm coordinates, agents execute.
11
+
12
+ ## What Swarm Is (and Is Not)
13
+
14
+ **Is:** In-process coordination — topology bookkeeping, agent lifecycle, task routing, vote-count consensus. State persists to `.monomind/swarm/`.
15
+
16
+ **Is not:** A distributed system. There is no networking between separate machines. "Consensus" strategies (`raft`, `bft`, `quorum`) are vote-count thresholds applied inside one process — not Raft/Paxos protocols.
17
+
18
+ If you need persistent, scheduled, autonomous agent organizations, use `monomind org run` instead. **Swarm coordinates a single task; org runtime governs a long-running org.** (See "Successor: Org Runtime" below.)
11
19
 
12
20
  ## Prerequisites
13
21
 
14
- - monomind v1.8.0+
15
- - Node.js 18+
16
- - Understanding of distributed systems (helpful)
22
+ - monomind v2.9.4+
23
+ - Claude Code's Task tool available (agents execute via Task tool, not CLI alone)
24
+ - A task that decomposes into 2+ independent subtasks
25
+
26
+ ## Topology Selection
27
+
28
+ Choose topology by task shape:
29
+
30
+ | Topology | When | Example |
31
+ |---|---|---|
32
+ | `hierarchical` | Default — clear task decomposition, one coordinator | Feature build (architect → coders → testers) |
33
+ | `mesh` | Peer-to-peer exploration, research, knowledge sharing | Multi-source research synthesis |
34
+ | `hierarchical-mesh` | 10+ agents — hierarchy with peer side-channels | Large refactor touching many modules |
35
+ | `ring` | Circular handoff (review → fix → re-review) | Code review cycle |
36
+ | `star` | Central hub with specialist spokes | Coordinator dispatching to niche experts |
37
+ | `hybrid` | Mixed work needing both hierarchy and peer comms | Migration + new feature in parallel |
38
+
39
+ **Rule of thumb:** ≤8 agents → `hierarchical`. 10+ agents → `hierarchical-mesh`. Research/exploration → `mesh`.
40
+
41
+ ## Strategy Selection
42
+
43
+ | Strategy | When |
44
+ |---|---|
45
+ | `specialized` | Fixed roles (default for feature work) |
46
+ | `balanced` | Even work distribution, homogeneous tasks |
47
+ | `development` | Dev pipeline (plan → code → test → review) |
48
+
49
+ ## Lifecycle
17
50
 
18
- ## Quick Start
51
+ ### 1. Initialize
19
52
 
20
53
  ```bash
21
- # Initialize swarm
22
- npx monomind swarm init --topology mesh --max-agents 5
23
-
24
- # Spawn agents
25
- npx monomind agent spawn --type coder
26
- npx monomind agent spawn --type tester
27
- npx monomind agent spawn --type reviewer
28
-
29
- # Orchestrate task
30
- npx monomind task run \
31
- --task "Build REST API with tests" \
32
- --mode parallel
33
- ```
34
-
35
- ## Topology Patterns
36
-
37
- ### 1. Mesh (Peer-to-Peer)
38
- ```typescript
39
- // Equal peers, distributed decision-making
40
- await swarm.init({
41
- topology: 'mesh',
42
- agents: ['coder', 'tester', 'reviewer'],
43
- communication: 'broadcast'
44
- });
45
- ```
46
-
47
- ### 2. Hierarchical (Queen-Worker)
48
- ```typescript
49
- // Centralized coordination, specialized workers
50
- await swarm.init({
51
- topology: 'hierarchical',
52
- queen: 'architect',
53
- workers: ['backend-dev', 'frontend-dev', 'db-designer']
54
- });
55
- ```
56
-
57
- ### 3. Adaptive (Dynamic)
58
- ```typescript
59
- // Automatically switches topology based on task
60
- await swarm.init({
61
- topology: 'adaptive',
62
- optimization: 'task-complexity'
63
- });
64
- ```
65
-
66
- ## Task Orchestration
67
-
68
- ### Parallel Execution
69
- ```typescript
70
- // Execute tasks concurrently
71
- const results = await swarm.execute({
72
- tasks: [
73
- { agent: 'coder', task: 'Implement API endpoints' },
74
- { agent: 'frontend', task: 'Build UI components' },
75
- { agent: 'tester', task: 'Write test suite' }
76
- ],
77
- mode: 'parallel',
78
- timeout: 300000 // 5 minutes
79
- });
80
- ```
81
-
82
- ### Pipeline Execution
83
- ```typescript
84
- // Sequential pipeline with dependencies
85
- await swarm.pipeline([
86
- { stage: 'design', agent: 'architect' },
87
- { stage: 'implement', agent: 'coder', after: 'design' },
88
- { stage: 'test', agent: 'tester', after: 'implement' },
89
- { stage: 'review', agent: 'reviewer', after: 'test' }
90
- ]);
91
- ```
92
-
93
- ### Adaptive Execution
94
- ```typescript
95
- // Let swarm decide execution strategy
96
- await swarm.autoOrchestrate({
97
- goal: 'Build production-ready API',
98
- constraints: {
99
- maxTime: 3600,
100
- maxAgents: 8,
101
- quality: 'high'
102
- }
103
- });
104
- ```
105
-
106
- ## Memory Coordination
107
-
108
- ```typescript
109
- // Share state across swarm
110
- await swarm.memory.store('api-schema', {
111
- endpoints: [...],
112
- models: [...]
113
- });
114
-
115
- // Agents read shared memory
116
- const schema = await swarm.memory.retrieve('api-schema');
117
- ```
118
-
119
- ## Advanced Features
120
-
121
- ### Load Balancing
122
- ```typescript
123
- // Automatic work distribution
124
- await swarm.enableLoadBalancing({
125
- strategy: 'dynamic',
126
- metrics: ['cpu', 'memory', 'task-queue']
127
- });
128
- ```
129
-
130
- ### Fault Tolerance
131
- ```typescript
132
- // Handle agent failures
133
- await swarm.setResiliency({
134
- retry: { maxAttempts: 3, backoff: 'exponential' },
135
- fallback: 'reassign-task'
136
- });
137
- ```
138
-
139
- ### Performance Monitoring
140
- ```typescript
141
- // Track swarm metrics
142
- const metrics = await swarm.getMetrics();
143
- // { throughput, latency, success_rate, agent_utilization }
144
- ```
54
+ npx monomind@latest swarm init \
55
+ --topology hierarchical \
56
+ --max-agents 8 \
57
+ --strategy specialized
58
+ ```
59
+
60
+ ### 2. Spawn agents (CLI or MCP)
61
+
62
+ ```bash
63
+ npx monomind@latest agent spawn -t coordinator --name lead
64
+ npx monomind@latest agent spawn -t coder --name impl
65
+ npx monomind@latest agent spawn -t tester --name qa
66
+ ```
145
67
 
146
- ## Integration with Hooks
68
+ Equivalent MCP: `mcp__monomind__agent_spawn { type: "...", name: "..." }`.
69
+
70
+ ### 3. Start work
147
71
 
148
72
  ```bash
149
- # Pre-task coordination
150
- npx monomind hooks pre-task --description "Build API"
73
+ npx monomind@latest swarm start \
74
+ --objective "Add OAuth2 login with tests" \
75
+ --strategy specialized \
76
+ --agents 4
77
+ ```
151
78
 
152
- # Post-task synchronization
153
- npx monomind hooks post-task --task-id "task-123"
79
+ ### 4. Monitor and stop
154
80
 
155
- # Session restore
156
- npx monomind hooks session-restore --session-id "swarm-001"
81
+ ```bash
82
+ npx monomind@latest swarm status
83
+ npx monomind@latest agent list
84
+ npx monomind@latest agent status <id>
85
+ npx monomind@latest swarm stop
157
86
  ```
158
87
 
88
+ ## Agent Role Assignment
89
+
90
+ Match agent type to task category. Use `mcp__monomind__hooks_route` to auto-pick instead of guessing:
91
+
92
+ ```
93
+ mcp__monomind__hooks_route { task: "implement JWT auth" }
94
+ # → returns the recommended agent type
95
+ ```
96
+
97
+ Common assignments (see `doc/concepts/swarm.md` for the full routing table):
98
+
99
+ | Task | Recommended agents |
100
+ |---|---|
101
+ | Bug fix | coordinator, researcher, coder, tester |
102
+ | Feature | coordinator, architect, coder, tester, reviewer |
103
+ | Refactor | coordinator, architect, coder, reviewer |
104
+ | Performance | coordinator, performance-engineer, coder |
105
+ | Security | coordinator, security-architect, security-auditor |
106
+ | Docs | researcher, documenter |
107
+
108
+ ## Workflow Patterns
109
+
110
+ ### Sequential pipeline (design → code → test → review)
111
+
112
+ ```bash
113
+ npx monomind@latest swarm init --topology hierarchical --strategy development --max-agents 4
114
+ npx monomind@latest swarm start --objective "Build user-profile API with full test coverage"
115
+ ```
116
+
117
+ Drive each stage via task assignment — the next stage picks up when the previous completes:
118
+
119
+ ```
120
+ mcp__monomind__task_create { description: "Design schema", agent_type: "architect" }
121
+ # after architect completes:
122
+ mcp__monomind__task_assign { task_id: "...", agent_id: "<coder-id>" }
123
+ # after coder completes:
124
+ mcp__monomind__task_assign { task_id: "...", agent_id: "<tester-id>" }
125
+ ```
126
+
127
+ ### Parallel fan-out (independent subtasks)
128
+
129
+ ```bash
130
+ npx monomind@latest swarm init --topology mesh --strategy balanced --max-agents 6
131
+ npx monomind@latest swarm start --objective "Audit 6 modules for security issues" --agents 6
132
+ ```
133
+
134
+ Spawn one Task-tool agent per module; each writes findings to the shared namespace.
135
+
136
+ ### Mixed (parallel sub-trees, sequential stages)
137
+
138
+ Use `hierarchical-mesh` — the coordinator fans out parallel work while stages run sequentially. Best for 10+ agent workloads:
139
+
140
+ ```
141
+ mcp__monomind__swarm_init { topology: "hierarchical-mesh", max_agents: 12, strategy: "specialized" }
142
+ ```
143
+
144
+ ## Memory Sharing Across Agents
145
+
146
+ Swarm agents share state through monomind memory (SQLite/JSON) — there is no separate "swarm memory" API. Each agent reads/writes the same namespace.
147
+
148
+ Store context once (CLI), or via MCP inside an agent:
149
+
150
+ ```bash
151
+ npx monomind@latest memory store \
152
+ --key "feature-spec" \
153
+ --value "OAuth2 with PKCE, refresh tokens, 15-min access TTL" \
154
+ --namespace swarm-001 --tags spec,auth
155
+ ```
156
+
157
+ ```
158
+ mcp__monomind__memory_kg_ingest { key: "feature-spec", value: "...", namespace: "swarm-001" }
159
+ ```
160
+
161
+ Retrieve during work:
162
+
163
+ ```bash
164
+ npx monomind@latest memory retrieve --key feature-spec --namespace swarm-001
165
+ npx monomind@latest memory search --query "auth requirements"
166
+ ```
167
+
168
+ **Use one shared namespace per swarm run** so every agent sees the same context.
169
+
170
+ ## Load Balancing (Concept)
171
+
172
+ In-process "load balancing" is task routing, not network LB. Two mechanisms: `hooks_route` (picks the optimal agent type from the routing table) and `strategy` (`balanced` evens work, `specialized` keeps roles fixed).
173
+
174
+ For uneven workloads, scale up and reassign stalled tasks:
175
+
176
+ ```bash
177
+ npx monomind@latest swarm scale --agents 12
178
+ npx monomind@latest swarm status
179
+ npx monomind@latest agent status <id>
180
+ ```
181
+
182
+ ```
183
+ mcp__monomind__task_assign { task_id: "...", agent_id: "<idle-agent-id>" }
184
+ ```
185
+
186
+ ## Full Example: Feature Build
187
+
188
+ ```bash
189
+ npx monomind@latest swarm init --topology hierarchical --max-agents 5 --strategy specialized
190
+
191
+ # Share the spec once — all agents read this
192
+ npx monomind@latest memory store \
193
+ --key "feature-spec" \
194
+ --value "Add CSV import: parse, validate, persist, report errors" \
195
+ --namespace swarm-csv
196
+
197
+ npx monomind@latest agent spawn -t coordinator --name lead
198
+ npx monomind@latest agent spawn -t coder --name impl
199
+ npx monomind@latest agent spawn -t tester --name qa
200
+ npx monomind@latest agent spawn -t reviewer --name audit
201
+
202
+ npx monomind@latest swarm start --objective "Implement CSV import end-to-end" --agents 4
203
+ npx monomind@latest swarm status
204
+ npx monomind@latest swarm stop
205
+ ```
206
+
207
+ Execution happens in Claude Code Task-tool agents. The CLI coordinates; Task agents do the work.
208
+
209
+ ## Successor: Org Runtime
210
+
211
+ For autonomous, recurring, or long-running work, prefer `monomind org run`:
212
+
213
+ ```bash
214
+ npx monomind@latest org run my-team --task "Maintain CI hygiene"
215
+ npx monomind@latest org status
216
+ npx monomind@latest org logs my-team --follow
217
+ npx monomind@latest org stop my-team
218
+ ```
219
+
220
+ Org runtime adds: scheduled wakeups, governance gates, budget enforcement, persistent state across runs. **Swarm is a single coordinated session; org runtime is a durable organization.**
221
+
222
+ - Use **swarm** for: one-off parallel tasks today.
223
+ - Use **org runtime** for: recurring autonomous work, scheduled agents, multi-session goals.
224
+
159
225
  ## Best Practices
160
226
 
161
- 1. **Start small**: Begin with 2-3 agents, scale up
162
- 2. **Use memory**: Share context through swarm memory
163
- 3. **Monitor metrics**: Track performance and bottlenecks
164
- 4. **Enable hooks**: Automatic coordination and sync
165
- 5. **Set timeouts**: Prevent hung tasks
227
+ 1. **Right-size the swarm.** Start with 3–4 agents; scale only when utilization is high.
228
+ 2. **One shared memory namespace per run.** All agents read/write the same context.
229
+ 3. **Pick topology by agent count.** ≤8 → `hierarchical`; 10+ → `hierarchical-mesh`.
230
+ 4. **Route before assigning.** `hooks_route` picks better agent types than guessing.
231
+ 5. **Let Task-tool agents do the work.** CLI coordinates; execution lives in Claude Code Task agents.
232
+ 6. **Set clear boundaries.** Every subtask needs clear inputs and outputs, or agents will thrash.
166
233
 
167
234
  ## Troubleshooting
168
235
 
169
- ### Issue: Agents not coordinating
170
- **Solution**: Verify memory access and enable hooks
171
-
172
- ### Issue: Poor performance
173
- **Solution**: Check topology (use adaptive) and enable load balancing
236
+ | Symptom | Likely cause | Fix |
237
+ |---|---|---|
238
+ | Agents not coordinating | Different namespace per agent | Use one shared `--namespace` |
239
+ | Stalled agent | Blocked on upstream stage | `agent status <id>`, then reassign task |
240
+ | Poor throughput | Wrong topology for count | Switch to `hierarchical-mesh` at 10+ agents |
241
+ | Duplicate work | No shared memory | `memory store` the spec; agents `retrieve` before acting |
242
+ | Swarm won't start | Bad topology/strategy combo | Verify flags against `doc/concepts/swarm.md` |
174
243
 
175
244
  ## Learn More
176
245
 
177
- - Swarm Guide: docs/swarm/orchestration.md
178
- - Topology Patterns: docs/swarm/topologies.md
179
- - Hooks Integration: docs/hooks/coordination.md
246
+ - `doc/concepts/swarm.md` — honest scope, topologies, agent types, full MCP tool list
247
+ - Hive-mind (MCP only): `mcp__monomind__hive-mind_*` tools for vote-count consensus
248
+ - `/mastermind:topology` — interactive topology picker
249
+ - Org runtime: `npx monomind@latest org --help`