monomind 2.7.11 → 2.7.13

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 (1002) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/bin/cli.js +55 -4
  4. package/package.json +4 -47
  5. package/bin/npx-safe-launch.js +0 -9
  6. package/packages/@monomind/cli/.claude/agents/architecture/system-design/arch-system-design.md +0 -54
  7. package/packages/@monomind/cli/.claude/agents/consensus/crdt-synchronizer.md +0 -977
  8. package/packages/@monomind/cli/.claude/agents/consensus/quorum-manager.md +0 -106
  9. package/packages/@monomind/cli/.claude/agents/consensus/security-manager.md +0 -602
  10. package/packages/@monomind/cli/.claude/agents/core/coder.md +0 -271
  11. package/packages/@monomind/cli/.claude/agents/core/coordinator.md +0 -133
  12. package/packages/@monomind/cli/.claude/agents/core/planner.md +0 -179
  13. package/packages/@monomind/cli/.claude/agents/core/researcher.md +0 -197
  14. package/packages/@monomind/cli/.claude/agents/core/reviewer.md +0 -336
  15. package/packages/@monomind/cli/.claude/agents/core/tester.md +0 -326
  16. package/packages/@monomind/cli/.claude/agents/design/design-monodesign.md +0 -121
  17. package/packages/@monomind/cli/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +0 -212
  18. package/packages/@monomind/cli/.claude/agents/engineering/engineering-ai-engineer.md +0 -165
  19. package/packages/@monomind/cli/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -108
  20. package/packages/@monomind/cli/.claude/agents/engineering/engineering-backend-architect.md +0 -254
  21. package/packages/@monomind/cli/.claude/agents/engineering/engineering-code-reviewer.md +0 -95
  22. package/packages/@monomind/cli/.claude/agents/engineering/engineering-data-engineer.md +0 -307
  23. package/packages/@monomind/cli/.claude/agents/engineering/engineering-database-optimizer.md +0 -200
  24. package/packages/@monomind/cli/.claude/agents/engineering/engineering-devops-automator.md +0 -430
  25. package/packages/@monomind/cli/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +0 -174
  26. package/packages/@monomind/cli/.claude/agents/engineering/engineering-feishu-integration-developer.md +0 -607
  27. package/packages/@monomind/cli/.claude/agents/engineering/engineering-frontend-developer.md +0 -249
  28. package/packages/@monomind/cli/.claude/agents/engineering/engineering-git-workflow-master.md +0 -108
  29. package/packages/@monomind/cli/.claude/agents/engineering/engineering-incident-response-commander.md +0 -482
  30. package/packages/@monomind/cli/.claude/agents/engineering/engineering-mobile-app-builder.md +0 -499
  31. package/packages/@monomind/cli/.claude/agents/engineering/engineering-rapid-prototyper.md +0 -463
  32. package/packages/@monomind/cli/.claude/agents/engineering/engineering-security-engineer.md +0 -303
  33. package/packages/@monomind/cli/.claude/agents/engineering/engineering-senior-developer.md +0 -195
  34. package/packages/@monomind/cli/.claude/agents/engineering/engineering-software-architect.md +0 -100
  35. package/packages/@monomind/cli/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +0 -528
  36. package/packages/@monomind/cli/.claude/agents/engineering/engineering-sre.md +0 -114
  37. package/packages/@monomind/cli/.claude/agents/engineering/engineering-technical-writer.md +0 -412
  38. package/packages/@monomind/cli/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -540
  39. package/packages/@monomind/cli/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +0 -351
  40. package/packages/@monomind/cli/.claude/agents/github/code-review-swarm.md +0 -557
  41. package/packages/@monomind/cli/.claude/agents/github/github-modes.md +0 -154
  42. package/packages/@monomind/cli/.claude/agents/github/issue-tracker.md +0 -297
  43. package/packages/@monomind/cli/.claude/agents/github/multi-repo-swarm.md +0 -525
  44. package/packages/@monomind/cli/.claude/agents/github/pr-manager.md +0 -161
  45. package/packages/@monomind/cli/.claude/agents/github/project-board-sync.md +0 -478
  46. package/packages/@monomind/cli/.claude/agents/github/release-manager.md +0 -296
  47. package/packages/@monomind/cli/.claude/agents/github/repo-architect.md +0 -351
  48. package/packages/@monomind/cli/.claude/agents/github/swarm-issue.md +0 -548
  49. package/packages/@monomind/cli/.claude/agents/github/swarm-pr.md +0 -427
  50. package/packages/@monomind/cli/.claude/agents/github/sync-coordinator.md +0 -355
  51. package/packages/@monomind/cli/.claude/agents/github/workflow-automation.md +0 -640
  52. package/packages/@monomind/cli/.claude/agents/goal/goal-planner.md +0 -167
  53. package/packages/@monomind/cli/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -93
  54. package/packages/@monomind/cli/.claude/agents/hive-mind/scout-explorer.md +0 -241
  55. package/packages/@monomind/cli/.claude/agents/hive-mind/swarm-memory-manager.md +0 -192
  56. package/packages/@monomind/cli/.claude/agents/hive-mind/worker-specialist.md +0 -216
  57. package/packages/@monomind/cli/.claude/agents/marketing/marketing-competitive-content.md +0 -155
  58. package/packages/@monomind/cli/.claude/agents/marketing/marketing-cro-specialist.md +0 -147
  59. package/packages/@monomind/cli/.claude/agents/marketing/marketing-email-specialist.md +0 -90
  60. package/packages/@monomind/cli/.claude/agents/marketing/marketing-launch-strategist.md +0 -129
  61. package/packages/@monomind/cli/.claude/agents/marketing/marketing-pricing-strategist.md +0 -127
  62. package/packages/@monomind/cli/.claude/agents/optimization/benchmark-suite.md +0 -665
  63. package/packages/@monomind/cli/.claude/agents/optimization/load-balancer.md +0 -431
  64. package/packages/@monomind/cli/.claude/agents/optimization/performance-monitor.md +0 -672
  65. package/packages/@monomind/cli/.claude/agents/optimization/resource-allocator.md +0 -674
  66. package/packages/@monomind/cli/.claude/agents/optimization/topology-optimizer.md +0 -808
  67. package/packages/@monomind/cli/.claude/agents/schemas/architecture-output.json +0 -43
  68. package/packages/@monomind/cli/.claude/agents/schemas/code-review-output.json +0 -28
  69. package/packages/@monomind/cli/.claude/agents/schemas/generic-task-input.json +0 -12
  70. package/packages/@monomind/cli/.claude/agents/schemas/implementation-output.json +0 -18
  71. package/packages/@monomind/cli/.claude/agents/schemas/research-output.json +0 -31
  72. package/packages/@monomind/cli/.claude/agents/schemas/security-audit-output.json +0 -29
  73. package/packages/@monomind/cli/.claude/agents/schemas/test-report-output.json +0 -29
  74. package/packages/@monomind/cli/.claude/agents/specialists/integration-architect.md +0 -94
  75. package/packages/@monomind/cli/.claude/agents/specialized/agentic-identity-trust.md +0 -388
  76. package/packages/@monomind/cli/.claude/agents/specialized/agents-orchestrator.md +0 -368
  77. package/packages/@monomind/cli/.claude/agents/specialized/automation-governance-architect.md +0 -217
  78. package/packages/@monomind/cli/.claude/agents/specialized/blockchain-security-auditor.md +0 -497
  79. package/packages/@monomind/cli/.claude/agents/specialized/compliance-auditor.md +0 -159
  80. package/packages/@monomind/cli/.claude/agents/specialized/identity-graph-operator.md +0 -261
  81. package/packages/@monomind/cli/.claude/agents/specialized/lsp-index-engineer.md +0 -315
  82. package/packages/@monomind/cli/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -89
  83. package/packages/@monomind/cli/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -89
  84. package/packages/@monomind/cli/.claude/agents/specialized/specialized-developer-advocate.md +0 -318
  85. package/packages/@monomind/cli/.claude/agents/specialized/specialized-document-generator.md +0 -56
  86. package/packages/@monomind/cli/.claude/agents/specialized/specialized-mcp-builder.md +0 -64
  87. package/packages/@monomind/cli/.claude/agents/specialized/specialized-model-qa.md +0 -489
  88. package/packages/@monomind/cli/.claude/agents/specialized/specialized-workflow-architect.md +0 -595
  89. package/packages/@monomind/cli/.claude/agents/specialized/zk-steward.md +0 -212
  90. package/packages/@monomind/cli/.claude/agents/swarm/mesh-coordinator.md +0 -97
  91. package/packages/@monomind/cli/.claude/agents/templates/automation-smart-agent.md +0 -185
  92. package/packages/@monomind/cli/.claude/agents/templates/coordinator-swarm-init.md +0 -83
  93. package/packages/@monomind/cli/.claude/agents/testing/production-validator.md +0 -375
  94. package/packages/@monomind/cli/.claude/agents/testing/tdd-london-swarm.md +0 -241
  95. package/packages/@monomind/cli/.claude/agents/testing/testing-accessibility-auditor.md +0 -322
  96. package/packages/@monomind/cli/.claude/agents/testing/testing-api-tester.md +0 -307
  97. package/packages/@monomind/cli/.claude/agents/testing/testing-evidence-collector.md +0 -213
  98. package/packages/@monomind/cli/.claude/agents/testing/testing-performance-benchmarker.md +0 -269
  99. package/packages/@monomind/cli/.claude/agents/testing/testing-test-results-analyzer.md +0 -306
  100. package/packages/@monomind/cli/.claude/agents/testing/testing-tool-evaluator.md +0 -395
  101. package/packages/@monomind/cli/.claude/agents/testing/testing-workflow-optimizer.md +0 -451
  102. package/packages/@monomind/cli/.claude/commands/agents/README.md +0 -14
  103. package/packages/@monomind/cli/.claude/commands/agents/agent-capabilities.md +0 -25
  104. package/packages/@monomind/cli/.claude/commands/agents/agent-coordination.md +0 -32
  105. package/packages/@monomind/cli/.claude/commands/agents/agent-spawning.md +0 -32
  106. package/packages/@monomind/cli/.claude/commands/agents/agent-types.md +0 -30
  107. package/packages/@monomind/cli/.claude/commands/analysis/README.md +0 -18
  108. package/packages/@monomind/cli/.claude/commands/analysis/bottleneck-detect.md +0 -69
  109. package/packages/@monomind/cli/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  110. package/packages/@monomind/cli/.claude/commands/analysis/performance-report.md +0 -52
  111. package/packages/@monomind/cli/.claude/commands/analysis/token-usage.md +0 -47
  112. package/packages/@monomind/cli/.claude/commands/automation/README.md +0 -19
  113. package/packages/@monomind/cli/.claude/commands/automation/auto-agent.md +0 -86
  114. package/packages/@monomind/cli/.claude/commands/automation/self-healing.md +0 -108
  115. package/packages/@monomind/cli/.claude/commands/automation/session-memory.md +0 -89
  116. package/packages/@monomind/cli/.claude/commands/automation/smart-agents.md +0 -81
  117. package/packages/@monomind/cli/.claude/commands/automation/smart-spawn.md +0 -66
  118. package/packages/@monomind/cli/.claude/commands/automation/workflow-select.md +0 -60
  119. package/packages/@monomind/cli/.claude/commands/coordination/README.md +0 -13
  120. package/packages/@monomind/cli/.claude/commands/coordination/agent-spawn.md +0 -69
  121. package/packages/@monomind/cli/.claude/commands/coordination/swarm-init.md +0 -82
  122. package/packages/@monomind/cli/.claude/commands/coordination/task-orchestrate.md +0 -79
  123. package/packages/@monomind/cli/.claude/commands/github/README.md +0 -24
  124. package/packages/@monomind/cli/.claude/commands/github/github-modes.md +0 -151
  125. package/packages/@monomind/cli/.claude/commands/github/issue-tracker.md +0 -291
  126. package/packages/@monomind/cli/.claude/commands/github/pr-manager.md +0 -171
  127. package/packages/@monomind/cli/.claude/commands/github/release-manager.md +0 -343
  128. package/packages/@monomind/cli/.claude/commands/github/repo-architect.md +0 -372
  129. package/packages/@monomind/cli/.claude/commands/github/sync-coordinator.md +0 -297
  130. package/packages/@monomind/cli/.claude/commands/hive-mind/README.md +0 -42
  131. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-consensus.md +0 -72
  132. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-init.md +0 -68
  133. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-memory.md +0 -73
  134. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-spawn.md +0 -82
  135. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-status.md +0 -56
  136. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-stop.md +0 -55
  137. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind.md +0 -87
  138. package/packages/@monomind/cli/.claude/commands/hooks/README.md +0 -66
  139. package/packages/@monomind/cli/.claude/commands/hooks/overview.md +0 -112
  140. package/packages/@monomind/cli/.claude/commands/hooks/post-edit.md +0 -78
  141. package/packages/@monomind/cli/.claude/commands/hooks/post-task.md +0 -62
  142. package/packages/@monomind/cli/.claude/commands/hooks/pre-edit.md +0 -81
  143. package/packages/@monomind/cli/.claude/commands/hooks/pre-task.md +0 -73
  144. package/packages/@monomind/cli/.claude/commands/hooks/session-end.md +0 -82
  145. package/packages/@monomind/cli/.claude/commands/hooks/setup.md +0 -132
  146. package/packages/@monomind/cli/.claude/commands/mastermind/_repeat.md +0 -492
  147. package/packages/@monomind/cli/.claude/commands/mastermind/_taskfile.md +0 -232
  148. package/packages/@monomind/cli/.claude/commands/mastermind/adr.md +0 -9
  149. package/packages/@monomind/cli/.claude/commands/mastermind/approvev1.md +0 -94
  150. package/packages/@monomind/cli/.claude/commands/mastermind/architect.md +0 -52
  151. package/packages/@monomind/cli/.claude/commands/mastermind/autodev.md +0 -28
  152. package/packages/@monomind/cli/.claude/commands/mastermind/brain.md +0 -99
  153. package/packages/@monomind/cli/.claude/commands/mastermind/budget.md +0 -5
  154. package/packages/@monomind/cli/.claude/commands/mastermind/build.md +0 -23
  155. package/packages/@monomind/cli/.claude/commands/mastermind/code-review.md +0 -314
  156. package/packages/@monomind/cli/.claude/commands/mastermind/content.md +0 -23
  157. package/packages/@monomind/cli/.claude/commands/mastermind/createorg.md +0 -143
  158. package/packages/@monomind/cli/.claude/commands/mastermind/createtask.md +0 -372
  159. package/packages/@monomind/cli/.claude/commands/mastermind/debug.md +0 -19
  160. package/packages/@monomind/cli/.claude/commands/mastermind/design.md +0 -17
  161. package/packages/@monomind/cli/.claude/commands/mastermind/do.md +0 -525
  162. package/packages/@monomind/cli/.claude/commands/mastermind/execute.md +0 -17
  163. package/packages/@monomind/cli/.claude/commands/mastermind/finance.md +0 -23
  164. package/packages/@monomind/cli/.claude/commands/mastermind/finish.md +0 -17
  165. package/packages/@monomind/cli/.claude/commands/mastermind/graph-status.md +0 -5
  166. package/packages/@monomind/cli/.claude/commands/mastermind/help.md +0 -133
  167. package/packages/@monomind/cli/.claude/commands/mastermind/idea.md +0 -23
  168. package/packages/@monomind/cli/.claude/commands/mastermind/ideate.md +0 -258
  169. package/packages/@monomind/cli/.claude/commands/mastermind/improve.md +0 -342
  170. package/packages/@monomind/cli/.claude/commands/mastermind/loops.md +0 -5
  171. package/packages/@monomind/cli/.claude/commands/mastermind/marketing.md +0 -23
  172. package/packages/@monomind/cli/.claude/commands/mastermind/master.md +0 -1140
  173. package/packages/@monomind/cli/.claude/commands/mastermind/memory.md +0 -227
  174. package/packages/@monomind/cli/.claude/commands/mastermind/okf-export.md +0 -14
  175. package/packages/@monomind/cli/.claude/commands/mastermind/okf-import.md +0 -15
  176. package/packages/@monomind/cli/.claude/commands/mastermind/ops.md +0 -23
  177. package/packages/@monomind/cli/.claude/commands/mastermind/orgs.md +0 -18
  178. package/packages/@monomind/cli/.claude/commands/mastermind/orgstatus.md +0 -56
  179. package/packages/@monomind/cli/.claude/commands/mastermind/plan.md +0 -23
  180. package/packages/@monomind/cli/.claude/commands/mastermind/receive-review.md +0 -17
  181. package/packages/@monomind/cli/.claude/commands/mastermind/references/antigravity-tools.md +0 -60
  182. package/packages/@monomind/cli/.claude/commands/mastermind/references/claude-code-tools.md +0 -50
  183. package/packages/@monomind/cli/.claude/commands/mastermind/references/codex-tools.md +0 -64
  184. package/packages/@monomind/cli/.claude/commands/mastermind/references/copilot-tools.md +0 -49
  185. package/packages/@monomind/cli/.claude/commands/mastermind/references/gemini-tools.md +0 -63
  186. package/packages/@monomind/cli/.claude/commands/mastermind/references/pi-tools.md +0 -28
  187. package/packages/@monomind/cli/.claude/commands/mastermind/release.md +0 -23
  188. package/packages/@monomind/cli/.claude/commands/mastermind/repeat.md +0 -254
  189. package/packages/@monomind/cli/.claude/commands/mastermind/research.md +0 -23
  190. package/packages/@monomind/cli/.claude/commands/mastermind/review.md +0 -34
  191. package/packages/@monomind/cli/.claude/commands/mastermind/runorg.md +0 -71
  192. package/packages/@monomind/cli/.claude/commands/mastermind/runorgv1.md +0 -159
  193. package/packages/@monomind/cli/.claude/commands/mastermind/sales.md +0 -23
  194. package/packages/@monomind/cli/.claude/commands/mastermind/skill-builder.md +0 -17
  195. package/packages/@monomind/cli/.claude/commands/mastermind/specialagents.md +0 -122
  196. package/packages/@monomind/cli/.claude/commands/mastermind/stoporg.md +0 -78
  197. package/packages/@monomind/cli/.claude/commands/mastermind/swarm.md +0 -158
  198. package/packages/@monomind/cli/.claude/commands/mastermind/taskdev.md +0 -23
  199. package/packages/@monomind/cli/.claude/commands/mastermind/tdd.md +0 -19
  200. package/packages/@monomind/cli/.claude/commands/mastermind/techport.md +0 -27
  201. package/packages/@monomind/cli/.claude/commands/mastermind/topology.md +0 -121
  202. package/packages/@monomind/cli/.claude/commands/mastermind/understand.md +0 -136
  203. package/packages/@monomind/cli/.claude/commands/mastermind/verify.md +0 -19
  204. package/packages/@monomind/cli/.claude/commands/mastermind/worktree.md +0 -17
  205. package/packages/@monomind/cli/.claude/commands/mastermind.md +0 -140
  206. package/packages/@monomind/cli/.claude/commands/memory/README.md +0 -79
  207. package/packages/@monomind/cli/.claude/commands/memory/memory-search.md +0 -77
  208. package/packages/@monomind/cli/.claude/commands/monitoring/README.md +0 -69
  209. package/packages/@monomind/cli/.claude/commands/monitoring/agent-metrics.md +0 -65
  210. package/packages/@monomind/cli/.claude/commands/monitoring/agents.md +0 -71
  211. package/packages/@monomind/cli/.claude/commands/monitoring/status.md +0 -108
  212. package/packages/@monomind/cli/.claude/commands/monobrowse.md +0 -21
  213. package/packages/@monomind/cli/.claude/commands/monoes/README.md +0 -30
  214. package/packages/@monomind/cli/.claude/commands/monoes/install.md +0 -163
  215. package/packages/@monomind/cli/.claude/commands/monoes/monoagent.md +0 -148
  216. package/packages/@monomind/cli/.claude/commands/monoes/monoclip.md +0 -64
  217. package/packages/@monomind/cli/.claude/commands/monoes/monotask.md +0 -137
  218. package/packages/@monomind/cli/.claude/commands/monograph/README.md +0 -102
  219. package/packages/@monomind/cli/.claude/commands/monograph/monograph-build.md +0 -79
  220. package/packages/@monomind/cli/.claude/commands/monograph/monograph-search.md +0 -96
  221. package/packages/@monomind/cli/.claude/commands/monograph/monograph-stats.md +0 -53
  222. package/packages/@monomind/cli/.claude/commands/monograph/monograph-watch.md +0 -63
  223. package/packages/@monomind/cli/.claude/commands/monograph/monograph-wiki.md +0 -91
  224. package/packages/@monomind/cli/.claude/commands/optimization/auto-topology.md +0 -85
  225. package/packages/@monomind/cli/.claude/commands/optimization/performance-optimize.md +0 -79
  226. package/packages/@monomind/cli/.claude/commands/pair/README.md +0 -79
  227. package/packages/@monomind/cli/.claude/commands/pair/examples.md +0 -156
  228. package/packages/@monomind/cli/.claude/commands/pair/modes.md +0 -122
  229. package/packages/@monomind/cli/.claude/commands/pair/session.md +0 -124
  230. package/packages/@monomind/cli/.claude/commands/stream-chain/pipeline.md +0 -116
  231. package/packages/@monomind/cli/.claude/commands/stream-chain/run.md +0 -156
  232. package/packages/@monomind/cli/.claude/commands/swarm/README.md +0 -40
  233. package/packages/@monomind/cli/.claude/commands/swarm/analysis.md +0 -73
  234. package/packages/@monomind/cli/.claude/commands/swarm/development.md +0 -72
  235. package/packages/@monomind/cli/.claude/commands/swarm/examples.md +0 -103
  236. package/packages/@monomind/cli/.claude/commands/swarm/maintenance.md +0 -75
  237. package/packages/@monomind/cli/.claude/commands/swarm/optimization.md +0 -84
  238. package/packages/@monomind/cli/.claude/commands/swarm/research.md +0 -76
  239. package/packages/@monomind/cli/.claude/commands/swarm/swarm.md +0 -79
  240. package/packages/@monomind/cli/.claude/commands/swarm/testing.md +0 -80
  241. package/packages/@monomind/cli/.claude/commands/tokens.md +0 -18
  242. package/packages/@monomind/cli/.claude/commands/truth/start.md +0 -121
  243. package/packages/@monomind/cli/.claude/commands/ts.md +0 -14
  244. package/packages/@monomind/cli/.claude/commands/workflows/README.md +0 -64
  245. package/packages/@monomind/cli/.claude/commands/workflows/development.md +0 -86
  246. package/packages/@monomind/cli/.claude/commands/workflows/research.md +0 -89
  247. package/packages/@monomind/cli/.claude/commands/workflows/workflow-create.md +0 -83
  248. package/packages/@monomind/cli/.claude/commands/workflows/workflow-execute.md +0 -101
  249. package/packages/@monomind/cli/.claude/commands/workflows/workflow-export.md +0 -88
  250. package/packages/@monomind/cli/.claude/helpers/build-skill-registry.cjs +0 -323
  251. package/packages/@monomind/cli/.claude/helpers/control-start.cjs +0 -327
  252. package/packages/@monomind/cli/.claude/helpers/control-stop.cjs +0 -95
  253. package/packages/@monomind/cli/.claude/helpers/event-logger.cjs +0 -266
  254. package/packages/@monomind/cli/.claude/helpers/graphify-freshen.cjs +0 -148
  255. package/packages/@monomind/cli/.claude/helpers/handlers/adr-draft-handler.cjs +0 -78
  256. package/packages/@monomind/cli/.claude/helpers/handlers/agent-start-handler.cjs +0 -132
  257. package/packages/@monomind/cli/.claude/helpers/handlers/budget-status-handler.cjs +0 -14
  258. package/packages/@monomind/cli/.claude/helpers/handlers/capture-handler.cjs +0 -736
  259. package/packages/@monomind/cli/.claude/helpers/handlers/compact-handler.cjs +0 -35
  260. package/packages/@monomind/cli/.claude/helpers/handlers/edit-handler.cjs +0 -178
  261. package/packages/@monomind/cli/.claude/helpers/handlers/gates-handler.cjs +0 -494
  262. package/packages/@monomind/cli/.claude/helpers/handlers/graph-status-handler.cjs +0 -45
  263. package/packages/@monomind/cli/.claude/helpers/handlers/loops-status-handler.cjs +0 -48
  264. package/packages/@monomind/cli/.claude/helpers/handlers/route-handler.cjs +0 -770
  265. package/packages/@monomind/cli/.claude/helpers/handlers/session-handler.cjs +0 -286
  266. package/packages/@monomind/cli/.claude/helpers/handlers/session-restore-handler.cjs +0 -573
  267. package/packages/@monomind/cli/.claude/helpers/handlers/stats-handler.cjs +0 -14
  268. package/packages/@monomind/cli/.claude/helpers/handlers/task-handler.cjs +0 -241
  269. package/packages/@monomind/cli/.claude/helpers/hook-handler.cjs +0 -951
  270. package/packages/@monomind/cli/.claude/helpers/intelligence.cjs +0 -510
  271. package/packages/@monomind/cli/.claude/helpers/learning-service.mjs +0 -61
  272. package/packages/@monomind/cli/.claude/helpers/loop-tracker.cjs +0 -119
  273. package/packages/@monomind/cli/.claude/helpers/mastermind-activate.cjs +0 -35
  274. package/packages/@monomind/cli/.claude/helpers/memory-palace.cjs +0 -461
  275. package/packages/@monomind/cli/.claude/helpers/memory.cjs +0 -193
  276. package/packages/@monomind/cli/.claude/helpers/metrics-db.mjs +0 -87
  277. package/packages/@monomind/cli/.claude/helpers/monolean-activate.cjs +0 -30
  278. package/packages/@monomind/cli/.claude/helpers/monolean-config.cjs +0 -76
  279. package/packages/@monomind/cli/.claude/helpers/monolean-instructions.cjs +0 -109
  280. package/packages/@monomind/cli/.claude/helpers/monolean-propagate.cjs +0 -13
  281. package/packages/@monomind/cli/.claude/helpers/monolean-tracker.cjs +0 -18
  282. package/packages/@monomind/cli/.claude/helpers/router.cjs +0 -571
  283. package/packages/@monomind/cli/.claude/helpers/session.cjs +0 -145
  284. package/packages/@monomind/cli/.claude/helpers/skill-registry.json +0 -4948
  285. package/packages/@monomind/cli/.claude/helpers/statusline.cjs +0 -1368
  286. package/packages/@monomind/cli/.claude/helpers/toggle-statusline.cjs +0 -73
  287. package/packages/@monomind/cli/.claude/helpers/token-tracker.cjs +0 -1034
  288. package/packages/@monomind/cli/.claude/helpers/utils/agent-registrations.cjs +0 -41
  289. package/packages/@monomind/cli/.claude/helpers/utils/fs-helpers.cjs +0 -183
  290. package/packages/@monomind/cli/.claude/helpers/utils/micro-agents.cjs +0 -358
  291. package/packages/@monomind/cli/.claude/helpers/utils/monograph.cjs +0 -692
  292. package/packages/@monomind/cli/.claude/helpers/utils/system-pressure.cjs +0 -46
  293. package/packages/@monomind/cli/.claude/helpers/utils/telemetry.cjs +0 -162
  294. package/packages/@monomind/cli/.claude/settings.json +0 -448
  295. package/packages/@monomind/cli/.claude/skills/agent-browser-testing/SKILL.md +0 -964
  296. package/packages/@monomind/cli/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  297. package/packages/@monomind/cli/.claude/skills/github-issue-triage/SKILL.md +0 -354
  298. package/packages/@monomind/cli/.claude/skills/github-repo-recap/SKILL.md +0 -207
  299. package/packages/@monomind/cli/.claude/skills/hive-mind-advanced/SKILL.md +0 -694
  300. package/packages/@monomind/cli/.claude/skills/hooks-automation/SKILL.md +0 -1192
  301. package/packages/@monomind/cli/.claude/skills/mastermind-access/SKILL.md +0 -236
  302. package/packages/@monomind/cli/.claude/skills/mastermind-activity/SKILL.md +0 -191
  303. package/packages/@monomind/cli/.claude/skills/mastermind-adapter-manager/SKILL.md +0 -259
  304. package/packages/@monomind/cli/.claude/skills/mastermind-adapters/SKILL.md +0 -204
  305. package/packages/@monomind/cli/.claude/skills/mastermind-agent-detail/SKILL.md +0 -242
  306. package/packages/@monomind/cli/.claude/skills/mastermind-agent-select/SKILL.md +0 -132
  307. package/packages/@monomind/cli/.claude/skills/mastermind-agents/SKILL.md +0 -182
  308. package/packages/@monomind/cli/.claude/skills/mastermind-approval-detail/SKILL.md +0 -259
  309. package/packages/@monomind/cli/.claude/skills/mastermind-approvev1/SKILL.md +0 -191
  310. package/packages/@monomind/cli/.claude/skills/mastermind-architect/SKILL.md +0 -862
  311. package/packages/@monomind/cli/.claude/skills/mastermind-autodev/SKILL.md +0 -360
  312. package/packages/@monomind/cli/.claude/skills/mastermind-backup/SKILL.md +0 -197
  313. package/packages/@monomind/cli/.claude/skills/mastermind-bootstrap/SKILL.md +0 -190
  314. package/packages/@monomind/cli/.claude/skills/mastermind-budgets/SKILL.md +0 -237
  315. package/packages/@monomind/cli/.claude/skills/mastermind-build/SKILL.md +0 -169
  316. package/packages/@monomind/cli/.claude/skills/mastermind-companies/SKILL.md +0 -256
  317. package/packages/@monomind/cli/.claude/skills/mastermind-content/SKILL.md +0 -197
  318. package/packages/@monomind/cli/.claude/skills/mastermind-costs/SKILL.md +0 -151
  319. package/packages/@monomind/cli/.claude/skills/mastermind-createorg/SKILL.md +0 -247
  320. package/packages/@monomind/cli/.claude/skills/mastermind-debug/SKILL.md +0 -277
  321. package/packages/@monomind/cli/.claude/skills/mastermind-delegation/SKILL.md +0 -83
  322. package/packages/@monomind/cli/.claude/skills/mastermind-design/SKILL.md +0 -190
  323. package/packages/@monomind/cli/.claude/skills/mastermind-diagnose/SKILL.md +0 -249
  324. package/packages/@monomind/cli/.claude/skills/mastermind-env/SKILL.md +0 -203
  325. package/packages/@monomind/cli/.claude/skills/mastermind-environments/SKILL.md +0 -250
  326. package/packages/@monomind/cli/.claude/skills/mastermind-execute/SKILL.md +0 -104
  327. package/packages/@monomind/cli/.claude/skills/mastermind-export/SKILL.md +0 -333
  328. package/packages/@monomind/cli/.claude/skills/mastermind-finance/SKILL.md +0 -166
  329. package/packages/@monomind/cli/.claude/skills/mastermind-finish/SKILL.md +0 -251
  330. package/packages/@monomind/cli/.claude/skills/mastermind-goal-detail/SKILL.md +0 -255
  331. package/packages/@monomind/cli/.claude/skills/mastermind-goals/SKILL.md +0 -149
  332. package/packages/@monomind/cli/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -167
  333. package/packages/@monomind/cli/.claude/skills/mastermind-idea/SKILL.md +0 -1142
  334. package/packages/@monomind/cli/.claude/skills/mastermind-import/SKILL.md +0 -281
  335. package/packages/@monomind/cli/.claude/skills/mastermind-inbox/SKILL.md +0 -226
  336. package/packages/@monomind/cli/.claude/skills/mastermind-instance/SKILL.md +0 -235
  337. package/packages/@monomind/cli/.claude/skills/mastermind-instance-settings/SKILL.md +0 -315
  338. package/packages/@monomind/cli/.claude/skills/mastermind-intake/SKILL.md +0 -83
  339. package/packages/@monomind/cli/.claude/skills/mastermind-invite-landing/SKILL.md +0 -227
  340. package/packages/@monomind/cli/.claude/skills/mastermind-invites/SKILL.md +0 -254
  341. package/packages/@monomind/cli/.claude/skills/mastermind-issue-detail/SKILL.md +0 -291
  342. package/packages/@monomind/cli/.claude/skills/mastermind-issues/SKILL.md +0 -235
  343. package/packages/@monomind/cli/.claude/skills/mastermind-join-queue/SKILL.md +0 -170
  344. package/packages/@monomind/cli/.claude/skills/mastermind-liveness/SKILL.md +0 -392
  345. package/packages/@monomind/cli/.claude/skills/mastermind-marketing/SKILL.md +0 -228
  346. package/packages/@monomind/cli/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -181
  347. package/packages/@monomind/cli/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -158
  348. package/packages/@monomind/cli/.claude/skills/mastermind-memory/SKILL.md +0 -321
  349. package/packages/@monomind/cli/.claude/skills/mastermind-monitor/SKILL.md +0 -1284
  350. package/packages/@monomind/cli/.claude/skills/mastermind-monotask/SKILL.md +0 -350
  351. package/packages/@monomind/cli/.claude/skills/mastermind-my-issues/SKILL.md +0 -146
  352. package/packages/@monomind/cli/.claude/skills/mastermind-new-agent/SKILL.md +0 -241
  353. package/packages/@monomind/cli/.claude/skills/mastermind-ops/SKILL.md +0 -168
  354. package/packages/@monomind/cli/.claude/skills/mastermind-org-chart/SKILL.md +0 -209
  355. package/packages/@monomind/cli/.claude/skills/mastermind-org-settings/SKILL.md +0 -274
  356. package/packages/@monomind/cli/.claude/skills/mastermind-orgs/SKILL.md +0 -120
  357. package/packages/@monomind/cli/.claude/skills/mastermind-orgstatus/SKILL.md +0 -254
  358. package/packages/@monomind/cli/.claude/skills/mastermind-plan/SKILL.md +0 -217
  359. package/packages/@monomind/cli/.claude/skills/mastermind-plan-to-tasks/SKILL.md +0 -136
  360. package/packages/@monomind/cli/.claude/skills/mastermind-plugin-manager/SKILL.md +0 -241
  361. package/packages/@monomind/cli/.claude/skills/mastermind-plugin-settings/SKILL.md +0 -273
  362. package/packages/@monomind/cli/.claude/skills/mastermind-plugins/SKILL.md +0 -190
  363. package/packages/@monomind/cli/.claude/skills/mastermind-profile/SKILL.md +0 -187
  364. package/packages/@monomind/cli/.claude/skills/mastermind-project-detail/SKILL.md +0 -249
  365. package/packages/@monomind/cli/.claude/skills/mastermind-project-workspace/SKILL.md +0 -244
  366. package/packages/@monomind/cli/.claude/skills/mastermind-projects/SKILL.md +0 -167
  367. package/packages/@monomind/cli/.claude/skills/mastermind-protocol/SKILL.md +0 -404
  368. package/packages/@monomind/cli/.claude/skills/mastermind-receive-review/SKILL.md +0 -213
  369. package/packages/@monomind/cli/.claude/skills/mastermind-release/SKILL.md +0 -168
  370. package/packages/@monomind/cli/.claude/skills/mastermind-repeat/SKILL.md +0 -171
  371. package/packages/@monomind/cli/.claude/skills/mastermind-research/SKILL.md +0 -168
  372. package/packages/@monomind/cli/.claude/skills/mastermind-review/SKILL.md +0 -233
  373. package/packages/@monomind/cli/.claude/skills/mastermind-routine-detail/SKILL.md +0 -253
  374. package/packages/@monomind/cli/.claude/skills/mastermind-routines/SKILL.md +0 -203
  375. package/packages/@monomind/cli/.claude/skills/mastermind-runorg/SKILL.md +0 -43
  376. package/packages/@monomind/cli/.claude/skills/mastermind-runorgv1/SKILL.md +0 -731
  377. package/packages/@monomind/cli/.claude/skills/mastermind-sales/SKILL.md +0 -170
  378. package/packages/@monomind/cli/.claude/skills/mastermind-search/SKILL.md +0 -186
  379. package/packages/@monomind/cli/.claude/skills/mastermind-secrets/SKILL.md +0 -199
  380. package/packages/@monomind/cli/.claude/skills/mastermind-skill-builder/SKILL.md +0 -447
  381. package/packages/@monomind/cli/.claude/skills/mastermind-skills/SKILL.md +0 -156
  382. package/packages/@monomind/cli/.claude/skills/mastermind-stoporg/SKILL.md +0 -147
  383. package/packages/@monomind/cli/.claude/skills/mastermind-taskdev/SKILL.md +0 -377
  384. package/packages/@monomind/cli/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -60
  385. package/packages/@monomind/cli/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -144
  386. package/packages/@monomind/cli/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -114
  387. package/packages/@monomind/cli/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -80
  388. package/packages/@monomind/cli/.claude/skills/mastermind-tasks/SKILL.md +0 -152
  389. package/packages/@monomind/cli/.claude/skills/mastermind-tdd/SKILL.md +0 -424
  390. package/packages/@monomind/cli/.claude/skills/mastermind-techport/SKILL.md +0 -777
  391. package/packages/@monomind/cli/.claude/skills/mastermind-threads/SKILL.md +0 -259
  392. package/packages/@monomind/cli/.claude/skills/mastermind-tree-control/SKILL.md +0 -250
  393. package/packages/@monomind/cli/.claude/skills/mastermind-verify/SKILL.md +0 -196
  394. package/packages/@monomind/cli/.claude/skills/mastermind-wiki/SKILL.md +0 -314
  395. package/packages/@monomind/cli/.claude/skills/mastermind-workspace-detail/SKILL.md +0 -317
  396. package/packages/@monomind/cli/.claude/skills/mastermind-workspaces/SKILL.md +0 -261
  397. package/packages/@monomind/cli/.claude/skills/mastermind-worktree/SKILL.md +0 -215
  398. package/packages/@monomind/cli/.claude/skills/monolean/SKILL.md +0 -118
  399. package/packages/@monomind/cli/.claude/skills/monolean-audit/SKILL.md +0 -41
  400. package/packages/@monomind/cli/.claude/skills/monolean-debt/SKILL.md +0 -46
  401. package/packages/@monomind/cli/.claude/skills/monolean-help/SKILL.md +0 -60
  402. package/packages/@monomind/cli/.claude/skills/monolean-review/SKILL.md +0 -57
  403. package/packages/@monomind/cli/.claude/skills/monomind/browse-agentcore.md +0 -115
  404. package/packages/@monomind/cli/.claude/skills/monomind/browse-electron.md +0 -188
  405. package/packages/@monomind/cli/.claude/skills/monomind/browse-qa.md +0 -228
  406. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/authentication.md +0 -161
  407. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/trust-boundaries.md +0 -40
  408. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/video-recording.md +0 -83
  409. package/packages/@monomind/cli/.claude/skills/monomind/browse-slack.md +0 -188
  410. package/packages/@monomind/cli/.claude/skills/monomind/browse-vercel.md +0 -239
  411. package/packages/@monomind/cli/.claude/skills/monomind/browse.md +0 -724
  412. package/packages/@monomind/cli/.claude/skills/monomotion/SKILL.md +0 -145
  413. package/packages/@monomind/cli/.claude/skills/monomotion/rules/api-control.md +0 -139
  414. package/packages/@monomind/cli/.claude/skills/monomotion/rules/effects.md +0 -109
  415. package/packages/@monomind/cli/.claude/skills/monomotion/rules/integration.md +0 -140
  416. package/packages/@monomind/cli/.claude/skills/monomotion/rules/scroll.md +0 -131
  417. package/packages/@monomind/cli/.claude/skills/monomotion/rules/sequencing.md +0 -105
  418. package/packages/@monomind/cli/.claude/skills/monomotion/rules/svg.md +0 -101
  419. package/packages/@monomind/cli/.claude/skills/monomotion/rules/text.md +0 -119
  420. package/packages/@monomind/cli/.claude/skills/pair-programming/SKILL.md +0 -1202
  421. package/packages/@monomind/cli/.claude/skills/performance-analysis/SKILL.md +0 -560
  422. package/packages/@monomind/cli/.claude/skills/skill-builder/SKILL.md +0 -910
  423. package/packages/@monomind/cli/.claude/skills/specialagent/SKILL.md +0 -206
  424. package/packages/@monomind/cli/.claude/skills/stop-slop/SKILL.md +0 -67
  425. package/packages/@monomind/cli/.claude/skills/stop-slop/references/examples.md +0 -61
  426. package/packages/@monomind/cli/.claude/skills/stop-slop/references/phrases.md +0 -130
  427. package/packages/@monomind/cli/.claude/skills/stop-slop/references/structures.md +0 -136
  428. package/packages/@monomind/cli/.claude/skills/swarm-advanced/SKILL.md +0 -936
  429. package/packages/@monomind/cli/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  430. package/packages/@monomind/cli/.claude/skills/verification-quality/SKILL.md +0 -674
  431. package/packages/@monomind/cli/README.md +0 -414
  432. package/packages/@monomind/cli/bin/cli.js +0 -379
  433. package/packages/@monomind/cli/bin/mcp-server.js +0 -208
  434. package/packages/@monomind/cli/bin/preinstall.cjs +0 -2
  435. package/packages/@monomind/cli/dist/src/agents/registry-builder.d.ts +0 -64
  436. package/packages/@monomind/cli/dist/src/agents/registry-builder.js +0 -228
  437. package/packages/@monomind/cli/dist/src/autopilot-state.d.ts +0 -77
  438. package/packages/@monomind/cli/dist/src/autopilot-state.js +0 -336
  439. package/packages/@monomind/cli/dist/src/browser/action-builder/analyzer.d.ts +0 -11
  440. package/packages/@monomind/cli/dist/src/browser/action-builder/analyzer.js +0 -64
  441. package/packages/@monomind/cli/dist/src/browser/action-builder/types.d.ts +0 -47
  442. package/packages/@monomind/cli/dist/src/browser/action-builder/types.js +0 -2
  443. package/packages/@monomind/cli/dist/src/browser/adapters/gemini.d.ts +0 -3
  444. package/packages/@monomind/cli/dist/src/browser/adapters/gemini.js +0 -16
  445. package/packages/@monomind/cli/dist/src/browser/adapters/index.d.ts +0 -19
  446. package/packages/@monomind/cli/dist/src/browser/adapters/index.js +0 -23
  447. package/packages/@monomind/cli/dist/src/browser/adapters/instagram.d.ts +0 -3
  448. package/packages/@monomind/cli/dist/src/browser/adapters/instagram.js +0 -17
  449. package/packages/@monomind/cli/dist/src/browser/adapters/linkedin.d.ts +0 -3
  450. package/packages/@monomind/cli/dist/src/browser/adapters/linkedin.js +0 -19
  451. package/packages/@monomind/cli/dist/src/browser/adapters/x.d.ts +0 -3
  452. package/packages/@monomind/cli/dist/src/browser/adapters/x.js +0 -19
  453. package/packages/@monomind/cli/dist/src/browser/dashboard/server.d.ts +0 -9
  454. package/packages/@monomind/cli/dist/src/browser/dashboard/server.js +0 -215
  455. package/packages/@monomind/cli/dist/src/browser/dashboard/ui.html +0 -261
  456. package/packages/@monomind/cli/dist/src/browser/workflow/engine.d.ts +0 -15
  457. package/packages/@monomind/cli/dist/src/browser/workflow/engine.js +0 -127
  458. package/packages/@monomind/cli/dist/src/browser/workflow/expression.d.ts +0 -4
  459. package/packages/@monomind/cli/dist/src/browser/workflow/expression.js +0 -64
  460. package/packages/@monomind/cli/dist/src/browser/workflow/store.d.ts +0 -24
  461. package/packages/@monomind/cli/dist/src/browser/workflow/store.js +0 -145
  462. package/packages/@monomind/cli/dist/src/browser/workflow/types.d.ts +0 -48
  463. package/packages/@monomind/cli/dist/src/browser/workflow/types.js +0 -2
  464. package/packages/@monomind/cli/dist/src/capabilities/cap-code.d.ts +0 -3
  465. package/packages/@monomind/cli/dist/src/capabilities/cap-code.js +0 -20
  466. package/packages/@monomind/cli/dist/src/capabilities/cap-data.d.ts +0 -3
  467. package/packages/@monomind/cli/dist/src/capabilities/cap-data.js +0 -165
  468. package/packages/@monomind/cli/dist/src/capabilities/cap-documents.d.ts +0 -5
  469. package/packages/@monomind/cli/dist/src/capabilities/cap-documents.js +0 -139
  470. package/packages/@monomind/cli/dist/src/capabilities/cap-graph.d.ts +0 -3
  471. package/packages/@monomind/cli/dist/src/capabilities/cap-graph.js +0 -84
  472. package/packages/@monomind/cli/dist/src/capabilities/cap-media.d.ts +0 -3
  473. package/packages/@monomind/cli/dist/src/capabilities/cap-media.js +0 -147
  474. package/packages/@monomind/cli/dist/src/capabilities/cap-timeline.d.ts +0 -3
  475. package/packages/@monomind/cli/dist/src/capabilities/cap-timeline.js +0 -90
  476. package/packages/@monomind/cli/dist/src/capabilities/index.d.ts +0 -10
  477. package/packages/@monomind/cli/dist/src/capabilities/index.js +0 -18
  478. package/packages/@monomind/cli/dist/src/capabilities/manager.d.ts +0 -13
  479. package/packages/@monomind/cli/dist/src/capabilities/manager.js +0 -79
  480. package/packages/@monomind/cli/dist/src/capabilities/scanner.d.ts +0 -10
  481. package/packages/@monomind/cli/dist/src/capabilities/scanner.js +0 -125
  482. package/packages/@monomind/cli/dist/src/capabilities/types.d.ts +0 -64
  483. package/packages/@monomind/cli/dist/src/capabilities/types.js +0 -2
  484. package/packages/@monomind/cli/dist/src/commands/agent-lifecycle.d.ts +0 -17
  485. package/packages/@monomind/cli/dist/src/commands/agent-lifecycle.js +0 -346
  486. package/packages/@monomind/cli/dist/src/commands/agent-ops.d.ts +0 -8
  487. package/packages/@monomind/cli/dist/src/commands/agent-ops.js +0 -277
  488. package/packages/@monomind/cli/dist/src/commands/agent.d.ts +0 -8
  489. package/packages/@monomind/cli/dist/src/commands/agent.js +0 -40
  490. package/packages/@monomind/cli/dist/src/commands/analyze-ast.d.ts +0 -26
  491. package/packages/@monomind/cli/dist/src/commands/analyze-ast.js +0 -284
  492. package/packages/@monomind/cli/dist/src/commands/analyze-diff.d.ts +0 -8
  493. package/packages/@monomind/cli/dist/src/commands/analyze-diff.js +0 -395
  494. package/packages/@monomind/cli/dist/src/commands/analyze-imports.d.ts +0 -11
  495. package/packages/@monomind/cli/dist/src/commands/analyze-imports.js +0 -287
  496. package/packages/@monomind/cli/dist/src/commands/analyze-symbols.d.ts +0 -14
  497. package/packages/@monomind/cli/dist/src/commands/analyze-symbols.js +0 -302
  498. package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +0 -53
  499. package/packages/@monomind/cli/dist/src/commands/analyze.js +0 -217
  500. package/packages/@monomind/cli/dist/src/commands/autopilot.d.ts +0 -15
  501. package/packages/@monomind/cli/dist/src/commands/autopilot.js +0 -370
  502. package/packages/@monomind/cli/dist/src/commands/browse-action.d.ts +0 -4
  503. package/packages/@monomind/cli/dist/src/commands/browse-action.js +0 -244
  504. package/packages/@monomind/cli/dist/src/commands/browse-platform.d.ts +0 -4
  505. package/packages/@monomind/cli/dist/src/commands/browse-platform.js +0 -117
  506. package/packages/@monomind/cli/dist/src/commands/browse-workflow.d.ts +0 -4
  507. package/packages/@monomind/cli/dist/src/commands/browse-workflow.js +0 -183
  508. package/packages/@monomind/cli/dist/src/commands/browse.d.ts +0 -12
  509. package/packages/@monomind/cli/dist/src/commands/browse.js +0 -17
  510. package/packages/@monomind/cli/dist/src/commands/cleanup.d.ts +0 -45
  511. package/packages/@monomind/cli/dist/src/commands/cleanup.js +0 -581
  512. package/packages/@monomind/cli/dist/src/commands/completions.d.ts +0 -10
  513. package/packages/@monomind/cli/dist/src/commands/completions.js +0 -261
  514. package/packages/@monomind/cli/dist/src/commands/config.d.ts +0 -8
  515. package/packages/@monomind/cli/dist/src/commands/config.js +0 -462
  516. package/packages/@monomind/cli/dist/src/commands/crash-reporting.d.ts +0 -8
  517. package/packages/@monomind/cli/dist/src/commands/crash-reporting.js +0 -50
  518. package/packages/@monomind/cli/dist/src/commands/design-detect.d.ts +0 -27
  519. package/packages/@monomind/cli/dist/src/commands/design-detect.js +0 -220
  520. package/packages/@monomind/cli/dist/src/commands/design-palette.d.ts +0 -21
  521. package/packages/@monomind/cli/dist/src/commands/design-palette.js +0 -538
  522. package/packages/@monomind/cli/dist/src/commands/doc.d.ts +0 -7
  523. package/packages/@monomind/cli/dist/src/commands/doc.js +0 -268
  524. package/packages/@monomind/cli/dist/src/commands/doctor-env-checks.d.ts +0 -26
  525. package/packages/@monomind/cli/dist/src/commands/doctor-env-checks.js +0 -194
  526. package/packages/@monomind/cli/dist/src/commands/doctor-monoes-checks.d.ts +0 -12
  527. package/packages/@monomind/cli/dist/src/commands/doctor-monoes-checks.js +0 -160
  528. package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.d.ts +0 -46
  529. package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.js +0 -764
  530. package/packages/@monomind/cli/dist/src/commands/doctor.d.ts +0 -10
  531. package/packages/@monomind/cli/dist/src/commands/doctor.js +0 -232
  532. package/packages/@monomind/cli/dist/src/commands/guidance.d.ts +0 -12
  533. package/packages/@monomind/cli/dist/src/commands/guidance.js +0 -163
  534. package/packages/@monomind/cli/dist/src/commands/hooks-core-commands.d.ts +0 -10
  535. package/packages/@monomind/cli/dist/src/commands/hooks-core-commands.js +0 -377
  536. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-commands.d.ts +0 -11
  537. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-commands.js +0 -417
  538. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-gaps.d.ts +0 -6
  539. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-gaps.js +0 -219
  540. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-routing.d.ts +0 -7
  541. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-routing.js +0 -399
  542. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-utils.d.ts +0 -42
  543. package/packages/@monomind/cli/dist/src/commands/hooks-coverage-utils.js +0 -220
  544. package/packages/@monomind/cli/dist/src/commands/hooks-extended-commands.d.ts +0 -11
  545. package/packages/@monomind/cli/dist/src/commands/hooks-extended-commands.js +0 -243
  546. package/packages/@monomind/cli/dist/src/commands/hooks-formatting.d.ts +0 -9
  547. package/packages/@monomind/cli/dist/src/commands/hooks-formatting.js +0 -25
  548. package/packages/@monomind/cli/dist/src/commands/hooks-routing-commands.d.ts +0 -15
  549. package/packages/@monomind/cli/dist/src/commands/hooks-routing-commands.js +0 -725
  550. package/packages/@monomind/cli/dist/src/commands/hooks-workers.d.ts +0 -9
  551. package/packages/@monomind/cli/dist/src/commands/hooks-workers.js +0 -547
  552. package/packages/@monomind/cli/dist/src/commands/hooks.d.ts +0 -16
  553. package/packages/@monomind/cli/dist/src/commands/hooks.js +0 -497
  554. package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -65
  555. package/packages/@monomind/cli/dist/src/commands/index.js +0 -236
  556. package/packages/@monomind/cli/dist/src/commands/init-subcommands.d.ts +0 -8
  557. package/packages/@monomind/cli/dist/src/commands/init-subcommands.js +0 -156
  558. package/packages/@monomind/cli/dist/src/commands/init-upgrade.d.ts +0 -6
  559. package/packages/@monomind/cli/dist/src/commands/init-upgrade.js +0 -203
  560. package/packages/@monomind/cli/dist/src/commands/init-wizard.d.ts +0 -6
  561. package/packages/@monomind/cli/dist/src/commands/init-wizard.js +0 -244
  562. package/packages/@monomind/cli/dist/src/commands/init.d.ts +0 -8
  563. package/packages/@monomind/cli/dist/src/commands/init.js +0 -411
  564. package/packages/@monomind/cli/dist/src/commands/mcp.d.ts +0 -11
  565. package/packages/@monomind/cli/dist/src/commands/mcp.js +0 -747
  566. package/packages/@monomind/cli/dist/src/commands/memory-admin.d.ts +0 -9
  567. package/packages/@monomind/cli/dist/src/commands/memory-admin.js +0 -345
  568. package/packages/@monomind/cli/dist/src/commands/memory-crud.d.ts +0 -9
  569. package/packages/@monomind/cli/dist/src/commands/memory-crud.js +0 -389
  570. package/packages/@monomind/cli/dist/src/commands/memory-list.d.ts +0 -10
  571. package/packages/@monomind/cli/dist/src/commands/memory-list.js +0 -321
  572. package/packages/@monomind/cli/dist/src/commands/memory-transfer.d.ts +0 -8
  573. package/packages/@monomind/cli/dist/src/commands/memory-transfer.js +0 -199
  574. package/packages/@monomind/cli/dist/src/commands/memory.d.ts +0 -14
  575. package/packages/@monomind/cli/dist/src/commands/memory.js +0 -282
  576. package/packages/@monomind/cli/dist/src/commands/monograph.d.ts +0 -8
  577. package/packages/@monomind/cli/dist/src/commands/monograph.js +0 -548
  578. package/packages/@monomind/cli/dist/src/commands/neural-core.d.ts +0 -10
  579. package/packages/@monomind/cli/dist/src/commands/neural-core.js +0 -413
  580. package/packages/@monomind/cli/dist/src/commands/neural-optimize.d.ts +0 -7
  581. package/packages/@monomind/cli/dist/src/commands/neural-optimize.js +0 -330
  582. package/packages/@monomind/cli/dist/src/commands/neural-registry.d.ts +0 -7
  583. package/packages/@monomind/cli/dist/src/commands/neural-registry.js +0 -290
  584. package/packages/@monomind/cli/dist/src/commands/org-observe.d.ts +0 -18
  585. package/packages/@monomind/cli/dist/src/commands/org-observe.js +0 -353
  586. package/packages/@monomind/cli/dist/src/commands/org.d.ts +0 -25
  587. package/packages/@monomind/cli/dist/src/commands/org.js +0 -860
  588. package/packages/@monomind/cli/dist/src/commands/performance.d.ts +0 -10
  589. package/packages/@monomind/cli/dist/src/commands/performance.js +0 -656
  590. package/packages/@monomind/cli/dist/src/commands/platforms.d.ts +0 -11
  591. package/packages/@monomind/cli/dist/src/commands/platforms.js +0 -600
  592. package/packages/@monomind/cli/dist/src/commands/providers.d.ts +0 -10
  593. package/packages/@monomind/cli/dist/src/commands/providers.js +0 -351
  594. package/packages/@monomind/cli/dist/src/commands/report-crash.d.ts +0 -10
  595. package/packages/@monomind/cli/dist/src/commands/report-crash.js +0 -66
  596. package/packages/@monomind/cli/dist/src/commands/route.d.ts +0 -16
  597. package/packages/@monomind/cli/dist/src/commands/route.js +0 -944
  598. package/packages/@monomind/cli/dist/src/commands/search-universal.d.ts +0 -19
  599. package/packages/@monomind/cli/dist/src/commands/search-universal.js +0 -151
  600. package/packages/@monomind/cli/dist/src/commands/security-cve.d.ts +0 -6
  601. package/packages/@monomind/cli/dist/src/commands/security-cve.js +0 -308
  602. package/packages/@monomind/cli/dist/src/commands/security-misc.d.ts +0 -8
  603. package/packages/@monomind/cli/dist/src/commands/security-misc.js +0 -336
  604. package/packages/@monomind/cli/dist/src/commands/security-scan.d.ts +0 -47
  605. package/packages/@monomind/cli/dist/src/commands/security-scan.js +0 -447
  606. package/packages/@monomind/cli/dist/src/commands/security.d.ts +0 -10
  607. package/packages/@monomind/cli/dist/src/commands/security.js +0 -41
  608. package/packages/@monomind/cli/dist/src/commands/session.d.ts +0 -8
  609. package/packages/@monomind/cli/dist/src/commands/session.js +0 -660
  610. package/packages/@monomind/cli/dist/src/commands/start.d.ts +0 -8
  611. package/packages/@monomind/cli/dist/src/commands/start.js +0 -490
  612. package/packages/@monomind/cli/dist/src/commands/status.d.ts +0 -8
  613. package/packages/@monomind/cli/dist/src/commands/status.js +0 -642
  614. package/packages/@monomind/cli/dist/src/commands/swarm.d.ts +0 -8
  615. package/packages/@monomind/cli/dist/src/commands/swarm.js +0 -906
  616. package/packages/@monomind/cli/dist/src/commands/task.d.ts +0 -8
  617. package/packages/@monomind/cli/dist/src/commands/task.js +0 -639
  618. package/packages/@monomind/cli/dist/src/commands/tokens.d.ts +0 -8
  619. package/packages/@monomind/cli/dist/src/commands/tokens.js +0 -206
  620. package/packages/@monomind/cli/dist/src/commands/update.d.ts +0 -8
  621. package/packages/@monomind/cli/dist/src/commands/update.js +0 -288
  622. package/packages/@monomind/cli/dist/src/consensus/audit-writer.d.ts +0 -77
  623. package/packages/@monomind/cli/dist/src/consensus/audit-writer.js +0 -196
  624. package/packages/@monomind/cli/dist/src/consensus/tally.d.ts +0 -19
  625. package/packages/@monomind/cli/dist/src/consensus/tally.js +0 -34
  626. package/packages/@monomind/cli/dist/src/index.d.ts +0 -81
  627. package/packages/@monomind/cli/dist/src/index.js +0 -574
  628. package/packages/@monomind/cli/dist/src/init/claudemd-generator.d.ts +0 -25
  629. package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +0 -624
  630. package/packages/@monomind/cli/dist/src/init/executor.d.ts +0 -47
  631. package/packages/@monomind/cli/dist/src/init/executor.js +0 -2387
  632. package/packages/@monomind/cli/dist/src/init/helpers-generator.d.ts +0 -73
  633. package/packages/@monomind/cli/dist/src/init/helpers-generator.js +0 -1335
  634. package/packages/@monomind/cli/dist/src/init/index.d.ts +0 -13
  635. package/packages/@monomind/cli/dist/src/init/index.js +0 -15
  636. package/packages/@monomind/cli/dist/src/init/mcp-generator.d.ts +0 -26
  637. package/packages/@monomind/cli/dist/src/init/mcp-generator.js +0 -107
  638. package/packages/@monomind/cli/dist/src/init/settings-generator.d.ts +0 -14
  639. package/packages/@monomind/cli/dist/src/init/settings-generator.js +0 -487
  640. package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.d.ts +0 -38
  641. package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.js +0 -602
  642. package/packages/@monomind/cli/dist/src/init/statusline-generator.d.ts +0 -25
  643. package/packages/@monomind/cli/dist/src/init/statusline-generator.js +0 -1358
  644. package/packages/@monomind/cli/dist/src/init/types.d.ts +0 -308
  645. package/packages/@monomind/cli/dist/src/init/types.js +0 -247
  646. package/packages/@monomind/cli/dist/src/knowledge/document-pipeline.d.ts +0 -75
  647. package/packages/@monomind/cli/dist/src/knowledge/document-pipeline.js +0 -556
  648. package/packages/@monomind/cli/dist/src/mcp-client.d.ts +0 -64
  649. package/packages/@monomind/cli/dist/src/mcp-client.js +0 -338
  650. package/packages/@monomind/cli/dist/src/mcp-server.d.ts +0 -170
  651. package/packages/@monomind/cli/dist/src/mcp-server.js +0 -964
  652. package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -30
  653. package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.js +0 -603
  654. package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
  655. package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.js +0 -389
  656. package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +0 -75
  657. package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.js +0 -125
  658. package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.d.ts +0 -12
  659. package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.js +0 -237
  660. package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -11
  661. package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.js +0 -1111
  662. package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
  663. package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.js +0 -827
  664. package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
  665. package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.js +0 -447
  666. package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -11
  667. package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +0 -866
  668. package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.d.ts +0 -9
  669. package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.js +0 -582
  670. package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.d.ts +0 -10
  671. package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.js +0 -58
  672. package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.d.ts +0 -15
  673. package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +0 -634
  674. package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -17
  675. package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +0 -1237
  676. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-embedding.d.ts +0 -161
  677. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-embedding.js +0 -516
  678. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-intelligence.d.ts +0 -22
  679. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-intelligence.js +0 -888
  680. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-routing.d.ts +0 -26
  681. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-routing.js +0 -1582
  682. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -9
  683. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +0 -51
  684. package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -31
  685. package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -31
  686. package/packages/@monomind/cli/dist/src/mcp-tools/knowledge-tools.d.ts +0 -6
  687. package/packages/@monomind/cli/dist/src/mcp-tools/knowledge-tools.js +0 -156
  688. package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -35
  689. package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +0 -776
  690. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.d.ts +0 -26
  691. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +0 -136
  692. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.d.ts +0 -27
  693. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +0 -2443
  694. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -15
  695. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +0 -506
  696. package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
  697. package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.js +0 -680
  698. package/packages/@monomind/cli/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.d.ts +0 -261
  699. package/packages/@monomind/cli/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js +0 -423
  700. package/packages/@monomind/cli/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts +0 -137
  701. package/packages/@monomind/cli/dist/src/mcp-tools/quality/security-compliance/detect-secrets.js +0 -383
  702. package/packages/@monomind/cli/dist/src/mcp-tools/quality-tools.d.ts +0 -14
  703. package/packages/@monomind/cli/dist/src/mcp-tools/quality-tools.js +0 -58
  704. package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.d.ts +0 -17
  705. package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.js +0 -44
  706. package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
  707. package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.js +0 -576
  708. package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
  709. package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.js +0 -431
  710. package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -9
  711. package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.js +0 -411
  712. package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
  713. package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.js +0 -561
  714. package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.d.ts +0 -28
  715. package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.js +0 -514
  716. package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -10
  717. package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.js +0 -397
  718. package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -27
  719. package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.js +0 -76
  720. package/packages/@monomind/cli/dist/src/mcp-tools/types.d.ts +0 -58
  721. package/packages/@monomind/cli/dist/src/mcp-tools/types.js +0 -98
  722. package/packages/@monomind/cli/dist/src/memory/embedding-operations.d.ts +0 -58
  723. package/packages/@monomind/cli/dist/src/memory/embedding-operations.js +0 -262
  724. package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.d.ts +0 -319
  725. package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.js +0 -698
  726. package/packages/@monomind/cli/dist/src/memory/hnsw-operations.d.ts +0 -142
  727. package/packages/@monomind/cli/dist/src/memory/hnsw-operations.js +0 -465
  728. package/packages/@monomind/cli/dist/src/memory/intelligence.d.ts +0 -368
  729. package/packages/@monomind/cli/dist/src/memory/intelligence.js +0 -1456
  730. package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +0 -333
  731. package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +0 -1104
  732. package/packages/@monomind/cli/dist/src/memory/memory-crud.d.ts +0 -67
  733. package/packages/@monomind/cli/dist/src/memory/memory-crud.js +0 -454
  734. package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +0 -101
  735. package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +0 -431
  736. package/packages/@monomind/cli/dist/src/memory/memory-kg.d.ts +0 -186
  737. package/packages/@monomind/cli/dist/src/memory/memory-kg.js +0 -450
  738. package/packages/@monomind/cli/dist/src/memory/memory-migrations.d.ts +0 -30
  739. package/packages/@monomind/cli/dist/src/memory/memory-migrations.js +0 -136
  740. package/packages/@monomind/cli/dist/src/memory/memory-read.d.ts +0 -87
  741. package/packages/@monomind/cli/dist/src/memory/memory-read.js +0 -333
  742. package/packages/@monomind/cli/dist/src/memory/memory-schema.d.ts +0 -13
  743. package/packages/@monomind/cli/dist/src/memory/memory-schema.js +0 -167
  744. package/packages/@monomind/cli/dist/src/memory/query-router.d.ts +0 -44
  745. package/packages/@monomind/cli/dist/src/memory/query-router.js +0 -113
  746. package/packages/@monomind/cli/dist/src/memory/sona-optimizer.d.ts +0 -237
  747. package/packages/@monomind/cli/dist/src/memory/sona-optimizer.js +0 -647
  748. package/packages/@monomind/cli/dist/src/monovector/command-outcomes.d.ts +0 -37
  749. package/packages/@monomind/cli/dist/src/monovector/command-outcomes.js +0 -126
  750. package/packages/@monomind/cli/dist/src/monovector/coverage-router.d.ts +0 -103
  751. package/packages/@monomind/cli/dist/src/monovector/coverage-router.js +0 -341
  752. package/packages/@monomind/cli/dist/src/monovector/coverage-tools.d.ts +0 -14
  753. package/packages/@monomind/cli/dist/src/monovector/coverage-tools.js +0 -115
  754. package/packages/@monomind/cli/dist/src/monovector/diff-classifier.d.ts +0 -174
  755. package/packages/@monomind/cli/dist/src/monovector/diff-classifier.js +0 -738
  756. package/packages/@monomind/cli/dist/src/monovector/index.d.ts +0 -54
  757. package/packages/@monomind/cli/dist/src/monovector/index.js +0 -55
  758. package/packages/@monomind/cli/dist/src/monovector/init-state.d.ts +0 -35
  759. package/packages/@monomind/cli/dist/src/monovector/init-state.js +0 -36
  760. package/packages/@monomind/cli/dist/src/monovector/route-outcomes.d.ts +0 -56
  761. package/packages/@monomind/cli/dist/src/monovector/route-outcomes.js +0 -189
  762. package/packages/@monomind/cli/dist/src/observability/replay-reader.d.ts +0 -40
  763. package/packages/@monomind/cli/dist/src/observability/replay-reader.js +0 -138
  764. package/packages/@monomind/cli/dist/src/orgrt/broker.d.ts +0 -26
  765. package/packages/@monomind/cli/dist/src/orgrt/broker.js +0 -73
  766. package/packages/@monomind/cli/dist/src/orgrt/bus.d.ts +0 -27
  767. package/packages/@monomind/cli/dist/src/orgrt/bus.js +0 -71
  768. package/packages/@monomind/cli/dist/src/orgrt/daemon.d.ts +0 -175
  769. package/packages/@monomind/cli/dist/src/orgrt/daemon.js +0 -965
  770. package/packages/@monomind/cli/dist/src/orgrt/forwarder.d.ts +0 -16
  771. package/packages/@monomind/cli/dist/src/orgrt/forwarder.js +0 -171
  772. package/packages/@monomind/cli/dist/src/orgrt/inbox.d.ts +0 -11
  773. package/packages/@monomind/cli/dist/src/orgrt/inbox.js +0 -91
  774. package/packages/@monomind/cli/dist/src/orgrt/mailbox.d.ts +0 -49
  775. package/packages/@monomind/cli/dist/src/orgrt/mailbox.js +0 -75
  776. package/packages/@monomind/cli/dist/src/orgrt/migrate.d.ts +0 -26
  777. package/packages/@monomind/cli/dist/src/orgrt/migrate.js +0 -118
  778. package/packages/@monomind/cli/dist/src/orgrt/policy.d.ts +0 -28
  779. package/packages/@monomind/cli/dist/src/orgrt/policy.js +0 -146
  780. package/packages/@monomind/cli/dist/src/orgrt/provider.d.ts +0 -9
  781. package/packages/@monomind/cli/dist/src/orgrt/provider.js +0 -55
  782. package/packages/@monomind/cli/dist/src/orgrt/reporting.d.ts +0 -40
  783. package/packages/@monomind/cli/dist/src/orgrt/reporting.js +0 -134
  784. package/packages/@monomind/cli/dist/src/orgrt/scheduler.d.ts +0 -13
  785. package/packages/@monomind/cli/dist/src/orgrt/scheduler.js +0 -48
  786. package/packages/@monomind/cli/dist/src/orgrt/server.d.ts +0 -9
  787. package/packages/@monomind/cli/dist/src/orgrt/server.js +0 -88
  788. package/packages/@monomind/cli/dist/src/orgrt/session.d.ts +0 -62
  789. package/packages/@monomind/cli/dist/src/orgrt/session.js +0 -157
  790. package/packages/@monomind/cli/dist/src/orgrt/templates.d.ts +0 -17
  791. package/packages/@monomind/cli/dist/src/orgrt/templates.js +0 -62
  792. package/packages/@monomind/cli/dist/src/orgrt/test-loop.d.ts +0 -12
  793. package/packages/@monomind/cli/dist/src/orgrt/test-loop.js +0 -108
  794. package/packages/@monomind/cli/dist/src/orgrt/types.d.ts +0 -910
  795. package/packages/@monomind/cli/dist/src/orgrt/types.js +0 -57
  796. package/packages/@monomind/cli/dist/src/output.d.ts +0 -133
  797. package/packages/@monomind/cli/dist/src/output.js +0 -529
  798. package/packages/@monomind/cli/dist/src/parser.d.ts +0 -93
  799. package/packages/@monomind/cli/dist/src/parser.js +0 -651
  800. package/packages/@monomind/cli/dist/src/pricing/model-pricing.d.ts +0 -41
  801. package/packages/@monomind/cli/dist/src/pricing/model-pricing.js +0 -61
  802. package/packages/@monomind/cli/dist/src/production/circuit-breaker.d.ts +0 -121
  803. package/packages/@monomind/cli/dist/src/production/circuit-breaker.js +0 -262
  804. package/packages/@monomind/cli/dist/src/production/error-handler.d.ts +0 -119
  805. package/packages/@monomind/cli/dist/src/production/error-handler.js +0 -324
  806. package/packages/@monomind/cli/dist/src/production/index.d.ts +0 -6
  807. package/packages/@monomind/cli/dist/src/production/index.js +0 -6
  808. package/packages/@monomind/cli/dist/src/production/monitoring.d.ts +0 -181
  809. package/packages/@monomind/cli/dist/src/production/monitoring.js +0 -375
  810. package/packages/@monomind/cli/dist/src/production/rate-limiter.d.ts +0 -125
  811. package/packages/@monomind/cli/dist/src/production/rate-limiter.js +0 -218
  812. package/packages/@monomind/cli/dist/src/production/retry.d.ts +0 -48
  813. package/packages/@monomind/cli/dist/src/production/retry.js +0 -189
  814. package/packages/@monomind/cli/dist/src/prompt.d.ts +0 -44
  815. package/packages/@monomind/cli/dist/src/prompt.js +0 -501
  816. package/packages/@monomind/cli/dist/src/routing/embed-worker.d.ts +0 -2
  817. package/packages/@monomind/cli/dist/src/routing/embed-worker.js +0 -79
  818. package/packages/@monomind/cli/dist/src/routing/embedder.d.ts +0 -31
  819. package/packages/@monomind/cli/dist/src/routing/embedder.js +0 -0
  820. package/packages/@monomind/cli/dist/src/routing/llm-caller.d.ts +0 -24
  821. package/packages/@monomind/cli/dist/src/routing/llm-caller.js +0 -134
  822. package/packages/@monomind/cli/dist/src/routing/route-layer-factory.d.ts +0 -24
  823. package/packages/@monomind/cli/dist/src/routing/route-layer-factory.js +0 -239
  824. package/packages/@monomind/cli/dist/src/services/config-file-manager.d.ts +0 -80
  825. package/packages/@monomind/cli/dist/src/services/config-file-manager.js +0 -401
  826. package/packages/@monomind/cli/dist/src/services/crash-reporter.d.ts +0 -42
  827. package/packages/@monomind/cli/dist/src/services/crash-reporter.js +0 -374
  828. package/packages/@monomind/cli/dist/src/suggest.d.ts +0 -53
  829. package/packages/@monomind/cli/dist/src/suggest.js +0 -197
  830. package/packages/@monomind/cli/dist/src/sync/checker.d.ts +0 -12
  831. package/packages/@monomind/cli/dist/src/sync/checker.js +0 -26
  832. package/packages/@monomind/cli/dist/src/transfer/anonymization/index.d.ts +0 -22
  833. package/packages/@monomind/cli/dist/src/transfer/anonymization/index.js +0 -192
  834. package/packages/@monomind/cli/dist/src/transfer/types.d.ts +0 -245
  835. package/packages/@monomind/cli/dist/src/transfer/types.js +0 -6
  836. package/packages/@monomind/cli/dist/src/types.d.ts +0 -190
  837. package/packages/@monomind/cli/dist/src/types.js +0 -20
  838. package/packages/@monomind/cli/dist/src/ui/collector.mjs +0 -879
  839. package/packages/@monomind/cli/dist/src/ui/dashboard.html +0 -13949
  840. package/packages/@monomind/cli/dist/src/ui/data/agent-avatars.html +0 -763
  841. package/packages/@monomind/cli/dist/src/ui/data/agent-avatars.json +0 -966
  842. package/packages/@monomind/cli/dist/src/ui/data/avatars/account-strategist.svg +0 -58
  843. package/packages/@monomind/cli/dist/src/ui/data/avatars/accounts-payable.svg +0 -54
  844. package/packages/@monomind/cli/dist/src/ui/data/avatars/adaptive-coordinator.svg +0 -55
  845. package/packages/@monomind/cli/dist/src/ui/data/avatars/adaptive-coordinator2.svg +0 -54
  846. package/packages/@monomind/cli/dist/src/ui/data/avatars/ai-citation.svg +0 -57
  847. package/packages/@monomind/cli/dist/src/ui/data/avatars/ai-engineer.svg +0 -61
  848. package/packages/@monomind/cli/dist/src/ui/data/avatars/analytics-reporter.svg +0 -53
  849. package/packages/@monomind/cli/dist/src/ui/data/avatars/api-tester.svg +0 -53
  850. package/packages/@monomind/cli/dist/src/ui/data/avatars/architecture.svg +0 -54
  851. package/packages/@monomind/cli/dist/src/ui/data/avatars/automation-governance.svg +0 -55
  852. package/packages/@monomind/cli/dist/src/ui/data/avatars/backend-dev.svg +0 -53
  853. package/packages/@monomind/cli/dist/src/ui/data/avatars/benchmarker.svg +0 -54
  854. package/packages/@monomind/cli/dist/src/ui/data/avatars/blockchain-auditor.svg +0 -53
  855. package/packages/@monomind/cli/dist/src/ui/data/avatars/byzantine-coord.svg +0 -57
  856. package/packages/@monomind/cli/dist/src/ui/data/avatars/case-analyst.svg +0 -57
  857. package/packages/@monomind/cli/dist/src/ui/data/avatars/cicd-engineer.svg +0 -55
  858. package/packages/@monomind/cli/dist/src/ui/data/avatars/cloud-architect.svg +0 -54
  859. package/packages/@monomind/cli/dist/src/ui/data/avatars/code-review-swarm.svg +0 -57
  860. package/packages/@monomind/cli/dist/src/ui/data/avatars/coder-v119.svg +0 -57
  861. package/packages/@monomind/cli/dist/src/ui/data/avatars/coder.svg +0 -58
  862. package/packages/@monomind/cli/dist/src/ui/data/avatars/collective-coord.svg +0 -54
  863. package/packages/@monomind/cli/dist/src/ui/data/avatars/compliance-auditor.svg +0 -58
  864. package/packages/@monomind/cli/dist/src/ui/data/avatars/consensus-coordinator.svg +0 -54
  865. package/packages/@monomind/cli/dist/src/ui/data/avatars/content-creator.svg +0 -54
  866. package/packages/@monomind/cli/dist/src/ui/data/avatars/crdt-synchronizer.svg +0 -53
  867. package/packages/@monomind/cli/dist/src/ui/data/avatars/cro-specialist.svg +0 -58
  868. package/packages/@monomind/cli/dist/src/ui/data/avatars/data-consolidator.svg +0 -54
  869. package/packages/@monomind/cli/dist/src/ui/data/avatars/data-engineer.svg +0 -53
  870. package/packages/@monomind/cli/dist/src/ui/data/avatars/database-optimizer.svg +0 -61
  871. package/packages/@monomind/cli/dist/src/ui/data/avatars/deal-strategist.svg +0 -54
  872. package/packages/@monomind/cli/dist/src/ui/data/avatars/defender.svg +0 -53
  873. package/packages/@monomind/cli/dist/src/ui/data/avatars/devops-automator.svg +0 -56
  874. package/packages/@monomind/cli/dist/src/ui/data/avatars/discovery-coach.svg +0 -54
  875. package/packages/@monomind/cli/dist/src/ui/data/avatars/email-marketing.svg +0 -57
  876. package/packages/@monomind/cli/dist/src/ui/data/avatars/embedded-firmware.svg +0 -61
  877. package/packages/@monomind/cli/dist/src/ui/data/avatars/evidence-collector.svg +0 -57
  878. package/packages/@monomind/cli/dist/src/ui/data/avatars/experiment-tracker.svg +0 -53
  879. package/packages/@monomind/cli/dist/src/ui/data/avatars/feedback-synthesizer.svg +0 -54
  880. package/packages/@monomind/cli/dist/src/ui/data/avatars/finance-tracker.svg +0 -54
  881. package/packages/@monomind/cli/dist/src/ui/data/avatars/frontend-developer.svg +0 -54
  882. package/packages/@monomind/cli/dist/src/ui/data/avatars/game-audio-engineer.svg +0 -59
  883. package/packages/@monomind/cli/dist/src/ui/data/avatars/game-designer.svg +0 -54
  884. package/packages/@monomind/cli/dist/src/ui/data/avatars/gossip-coordinator.svg +0 -54
  885. package/packages/@monomind/cli/dist/src/ui/data/avatars/hierarchical-coord.svg +0 -54
  886. package/packages/@monomind/cli/dist/src/ui/data/avatars/incident-commander.svg +0 -57
  887. package/packages/@monomind/cli/dist/src/ui/data/avatars/infrastructure.svg +0 -54
  888. package/packages/@monomind/cli/dist/src/ui/data/avatars/input-validator.svg +0 -53
  889. package/packages/@monomind/cli/dist/src/ui/data/avatars/ios-developer.svg +0 -54
  890. package/packages/@monomind/cli/dist/src/ui/data/avatars/issue-tracker.svg +0 -53
  891. package/packages/@monomind/cli/dist/src/ui/data/avatars/judge.svg +0 -55
  892. package/packages/@monomind/cli/dist/src/ui/data/avatars/launch-strategist.svg +0 -54
  893. package/packages/@monomind/cli/dist/src/ui/data/avatars/legal-compliance.svg +0 -53
  894. package/packages/@monomind/cli/dist/src/ui/data/avatars/level-designer.svg +0 -53
  895. package/packages/@monomind/cli/dist/src/ui/data/avatars/load-balancer.svg +0 -57
  896. package/packages/@monomind/cli/dist/src/ui/data/avatars/mcp-builder.svg +0 -53
  897. package/packages/@monomind/cli/dist/src/ui/data/avatars/memory-coordinator.svg +0 -55
  898. package/packages/@monomind/cli/dist/src/ui/data/avatars/mesh-coordinator.svg +0 -55
  899. package/packages/@monomind/cli/dist/src/ui/data/avatars/ml-developer.svg +0 -58
  900. package/packages/@monomind/cli/dist/src/ui/data/avatars/mobile-app-builder.svg +0 -53
  901. package/packages/@monomind/cli/dist/src/ui/data/avatars/mobile-dev.svg +0 -54
  902. package/packages/@monomind/cli/dist/src/ui/data/avatars/model-qa.svg +0 -58
  903. package/packages/@monomind/cli/dist/src/ui/data/avatars/narrative-designer.svg +0 -58
  904. package/packages/@monomind/cli/dist/src/ui/data/avatars/outbound-strategist.svg +0 -55
  905. package/packages/@monomind/cli/dist/src/ui/data/avatars/path-validator.svg +0 -54
  906. package/packages/@monomind/cli/dist/src/ui/data/avatars/payment-agent.svg +0 -53
  907. package/packages/@monomind/cli/dist/src/ui/data/avatars/perf-analyzer.svg +0 -58
  908. package/packages/@monomind/cli/dist/src/ui/data/avatars/pipeline-analyst.svg +0 -54
  909. package/packages/@monomind/cli/dist/src/ui/data/avatars/planner.svg +0 -55
  910. package/packages/@monomind/cli/dist/src/ui/data/avatars/pr-manager.svg +0 -54
  911. package/packages/@monomind/cli/dist/src/ui/data/avatars/pricing-strategist.svg +0 -54
  912. package/packages/@monomind/cli/dist/src/ui/data/avatars/product-manager.svg +0 -54
  913. package/packages/@monomind/cli/dist/src/ui/data/avatars/production-validator.svg +0 -54
  914. package/packages/@monomind/cli/dist/src/ui/data/avatars/project-shepherd.svg +0 -54
  915. package/packages/@monomind/cli/dist/src/ui/data/avatars/proposal-strategist.svg +0 -54
  916. package/packages/@monomind/cli/dist/src/ui/data/avatars/prosecutor.svg +0 -57
  917. package/packages/@monomind/cli/dist/src/ui/data/avatars/pseudocode.svg +0 -53
  918. package/packages/@monomind/cli/dist/src/ui/data/avatars/queen-coordinator.svg +0 -55
  919. package/packages/@monomind/cli/dist/src/ui/data/avatars/quorum-manager.svg +0 -53
  920. package/packages/@monomind/cli/dist/src/ui/data/avatars/raft-manager.svg +0 -53
  921. package/packages/@monomind/cli/dist/src/ui/data/avatars/reality-checker.svg +0 -58
  922. package/packages/@monomind/cli/dist/src/ui/data/avatars/recruitment.svg +0 -58
  923. package/packages/@monomind/cli/dist/src/ui/data/avatars/refinement.svg +0 -53
  924. package/packages/@monomind/cli/dist/src/ui/data/avatars/release-manager.svg +0 -54
  925. package/packages/@monomind/cli/dist/src/ui/data/avatars/repo-architect.svg +0 -54
  926. package/packages/@monomind/cli/dist/src/ui/data/avatars/researcher.svg +0 -58
  927. package/packages/@monomind/cli/dist/src/ui/data/avatars/resource-allocator.svg +0 -53
  928. package/packages/@monomind/cli/dist/src/ui/data/avatars/reviewer.svg +0 -53
  929. package/packages/@monomind/cli/dist/src/ui/data/avatars/safe-executor.svg +0 -53
  930. package/packages/@monomind/cli/dist/src/ui/data/avatars/sales-coach.svg +0 -53
  931. package/packages/@monomind/cli/dist/src/ui/data/avatars/sales-engineer.svg +0 -58
  932. package/packages/@monomind/cli/dist/src/ui/data/avatars/scout-explorer.svg +0 -58
  933. package/packages/@monomind/cli/dist/src/ui/data/avatars/security-architect.svg +0 -54
  934. package/packages/@monomind/cli/dist/src/ui/data/avatars/security-auditor.svg +0 -55
  935. package/packages/@monomind/cli/dist/src/ui/data/avatars/senior-developer.svg +0 -58
  936. package/packages/@monomind/cli/dist/src/ui/data/avatars/senior-pm.svg +0 -58
  937. package/packages/@monomind/cli/dist/src/ui/data/avatars/seo-specialist.svg +0 -57
  938. package/packages/@monomind/cli/dist/src/ui/data/avatars/social-media.svg +0 -54
  939. package/packages/@monomind/cli/dist/src/ui/data/avatars/solidity-engineer.svg +0 -58
  940. package/packages/@monomind/cli/dist/src/ui/data/avatars/sparc-coder.svg +0 -58
  941. package/packages/@monomind/cli/dist/src/ui/data/avatars/sparc-coord.svg +0 -56
  942. package/packages/@monomind/cli/dist/src/ui/data/avatars/specification.svg +0 -57
  943. package/packages/@monomind/cli/dist/src/ui/data/avatars/sprint-prioritizer.svg +0 -53
  944. package/packages/@monomind/cli/dist/src/ui/data/avatars/sre.svg +0 -54
  945. package/packages/@monomind/cli/dist/src/ui/data/avatars/studio-operations.svg +0 -53
  946. package/packages/@monomind/cli/dist/src/ui/data/avatars/studio-producer.svg +0 -55
  947. package/packages/@monomind/cli/dist/src/ui/data/avatars/support-responder.svg +0 -56
  948. package/packages/@monomind/cli/dist/src/ui/data/avatars/system-architect.svg +0 -54
  949. package/packages/@monomind/cli/dist/src/ui/data/avatars/task-orchestrator.svg +0 -56
  950. package/packages/@monomind/cli/dist/src/ui/data/avatars/technical-artist.svg +0 -53
  951. package/packages/@monomind/cli/dist/src/ui/data/avatars/technical-writer.svg +0 -59
  952. package/packages/@monomind/cli/dist/src/ui/data/avatars/tester.svg +0 -53
  953. package/packages/@monomind/cli/dist/src/ui/data/avatars/threat-detection.svg +0 -61
  954. package/packages/@monomind/cli/dist/src/ui/data/avatars/trend-researcher.svg +0 -54
  955. package/packages/@monomind/cli/dist/src/ui/data/avatars/trial-director.svg +0 -55
  956. package/packages/@monomind/cli/dist/src/ui/data/avatars/unity-architect.svg +0 -54
  957. package/packages/@monomind/cli/dist/src/ui/data/avatars/visionos-engineer.svg +0 -57
  958. package/packages/@monomind/cli/dist/src/ui/data/avatars/worker-specialist.svg +0 -55
  959. package/packages/@monomind/cli/dist/src/ui/data/avatars/workflow-architect.svg +0 -57
  960. package/packages/@monomind/cli/dist/src/ui/data/avatars/workflow-automation.svg +0 -54
  961. package/packages/@monomind/cli/dist/src/ui/data/avatars/zk-steward.svg +0 -54
  962. package/packages/@monomind/cli/dist/src/ui/mastermind-diagram-fallback.html +0 -1069
  963. package/packages/@monomind/cli/dist/src/ui/orgs-files.js +0 -192
  964. package/packages/@monomind/cli/dist/src/ui/orgs.html +0 -2513
  965. package/packages/@monomind/cli/dist/src/ui/server.mjs +0 -7256
  966. package/packages/@monomind/cli/dist/src/ui/sse-manager.mjs +0 -119
  967. package/packages/@monomind/cli/dist/src/update/checker.d.ts +0 -34
  968. package/packages/@monomind/cli/dist/src/update/checker.js +0 -278
  969. package/packages/@monomind/cli/dist/src/update/executor.d.ts +0 -32
  970. package/packages/@monomind/cli/dist/src/update/executor.js +0 -235
  971. package/packages/@monomind/cli/dist/src/update/index.d.ts +0 -43
  972. package/packages/@monomind/cli/dist/src/update/index.js +0 -108
  973. package/packages/@monomind/cli/dist/src/update/rate-limiter.d.ts +0 -37
  974. package/packages/@monomind/cli/dist/src/update/rate-limiter.js +0 -190
  975. package/packages/@monomind/cli/dist/src/update/validator.d.ts +0 -17
  976. package/packages/@monomind/cli/dist/src/update/validator.js +0 -166
  977. package/packages/@monomind/cli/dist/src/utils/cosine-similarity.d.ts +0 -22
  978. package/packages/@monomind/cli/dist/src/utils/cosine-similarity.js +0 -38
  979. package/packages/@monomind/cli/dist/src/utils/input-guards.d.ts +0 -66
  980. package/packages/@monomind/cli/dist/src/utils/input-guards.js +0 -263
  981. package/packages/@monomind/cli/dist/src/utils/json-file.d.ts +0 -33
  982. package/packages/@monomind/cli/dist/src/utils/json-file.js +0 -57
  983. package/packages/@monomind/cli/dist/src/utils/parse-jsonl.d.ts +0 -6
  984. package/packages/@monomind/cli/dist/src/utils/parse-jsonl.js +0 -22
  985. package/packages/@monomind/cli/dist/src/utils/resource-governor.d.ts +0 -32
  986. package/packages/@monomind/cli/dist/src/utils/resource-governor.js +0 -115
  987. package/packages/@monomind/cli/package.json +0 -127
  988. package/packages/@monomind/cli/scripts/deploy-ipfs-node.sh +0 -153
  989. package/packages/@monomind/cli/scripts/publish.sh +0 -61
  990. package/packages/@monomind/cli/scripts/sync-claude-assets.sh +0 -19
  991. package/packages/@monomind/cli/scripts/understand-analyze.mjs +0 -1078
  992. package/scripts/build-fs.mjs +0 -75
  993. package/scripts/build-monovector.sh +0 -10
  994. package/scripts/generate-agent-avatars.mjs +0 -492
  995. package/scripts/generate-channel-profile-assets.sh +0 -67
  996. package/scripts/growth-content-calendar.mjs +0 -260
  997. package/scripts/growth-profile-kit.mjs +0 -156
  998. package/scripts/install.sh +0 -392
  999. package/scripts/publish-monovector.sh +0 -20
  1000. package/scripts/ua-enrich.mjs +0 -229
  1001. package/scripts/ua-import.mjs +0 -288
  1002. package/scripts/verify-appliance.sh +0 -571
@@ -1,1140 +0,0 @@
1
- <!-- Use when starting any conversation or receiving any user request — loads the brain, routes to the right mastermind skill, enforces anti-drift discipline, and spawns domain managers for complex multi-domain work. Single entry point for all mastermind capabilities. -->
2
-
3
- <SUBAGENT-STOP>
4
- If you were dispatched as a subagent to execute a specific task, skip the MASTERMIND PROTOCOL section below and proceed directly to execution.
5
- </SUBAGENT-STOP>
6
-
7
- ---
8
-
9
- ## MASTERMIND PROTOCOL
10
-
11
- <EXTREMELY-IMPORTANT>
12
- If you think there is even a 1% chance a mastermind skill applies to what you are about to do, you ABSOLUTELY MUST invoke the skill — including before any clarifying questions or other action.
13
-
14
- IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST INVOKE IT.
15
-
16
- This is not negotiable. This is not optional. You cannot rationalize your way out of this.
17
- </EXTREMELY-IMPORTANT>
18
-
19
- ### Instruction Priority
20
-
21
- Mastermind skills override default system prompt behavior, but **user instructions always take precedence**:
22
-
23
- 1. **User's explicit instructions** (CLAUDE.md, GEMINI.md, AGENTS.md, direct requests, `$ARGUMENTS`) — highest priority
24
- 2. **Mastermind skills** — override default behavior where they conflict
25
- 3. **Default system prompt** — lowest priority
26
-
27
- If CLAUDE.md, GEMINI.md, or AGENTS.md says "skip review" and the skill says "always review," follow the user's instructions.
28
-
29
- ### How to Access Mastermind Skills
30
-
31
- > **Never read skill files manually with file tools.** Always use your platform's skill-loading mechanism so the skill is properly activated with its full harness context.
32
-
33
- **In Claude Code:** Use the `Skill` tool. When you invoke a skill, its content is loaded and presented to you — follow it directly.
34
-
35
- **In Copilot CLI:** Use the `skill` tool. Skills are auto-discovered from installed plugins and work the same as Claude Code's `Skill` tool.
36
-
37
- **In Gemini CLI:** Skills activate via the `activate_skill` tool. Gemini loads skill metadata at session start and activates the full content on demand.
38
-
39
- **In Codex:** Skills load natively. Follow the instructions presented when a skill activates.
40
-
41
- **In other environments:** Check your platform's documentation for how skills are loaded.
42
-
43
- ### Platform Adaptation
44
-
45
- Mastermind skills speak in actions ("dispatch a subagent", "invoke the skill tool", "create a todo") rather than naming any one runtime's tools. For per-platform tool equivalents and instructions-file conventions, see [claude-code-tools.md](references/claude-code-tools.md), [codex-tools.md](references/codex-tools.md), [copilot-tools.md](references/copilot-tools.md), [gemini-tools.md](references/gemini-tools.md), [pi-tools.md](references/pi-tools.md), and [antigravity-tools.md](references/antigravity-tools.md). Gemini CLI users get the tool mapping loaded automatically via GEMINI.md.
46
-
47
- ### User Instructions vs. Skill Workflows
48
-
49
- User instructions say **WHAT** to do, not **HOW** to do it. "Build X" or "Fix Y" is a goal statement — it does not mean skip Brain Load, skip review, or bypass the domain decomposition flow. The skills define the how. Always apply the workflow unless the user explicitly opts out.
50
-
51
- ### The Rule
52
-
53
- **Invoke the matching mastermind skill BEFORE any response or action.** Even a 1% chance a skill applies means you must check. If you invoke a skill and it turns out not to fit the situation, you don't need to follow it — but you must check first.
54
-
55
- ### Command-to-Skill Routing
56
-
57
- ```dot
58
- digraph mastermind_routing {
59
- "User command / prompt received" [shape=doublecircle];
60
- "About to EnterPlanMode?" [shape=doublecircle];
61
- "Already ran mastermind:design?" [shape=diamond];
62
- "Invoke mastermind:design first" [shape=box];
63
- "Brain already loaded?" [shape=diamond];
64
- "Load brain (Brain Load Procedure)" [shape=box];
65
- "Might a mastermind skill apply?" [shape=diamond];
66
- "Invoke Skill() tool" [shape=box];
67
- "Announce: Using [skill] for [purpose]" [shape=box];
68
- "Has checklist?" [shape=diamond];
69
- "Execute skill exactly" [shape=box];
70
- "Respond or act (including clarifications)" [shape=doublecircle];
71
-
72
- "About to EnterPlanMode?" -> "Already ran mastermind:design?";
73
- "Already ran mastermind:design?" -> "Invoke mastermind:design first" [label="no"];
74
- "Already ran mastermind:design?" -> "Brain already loaded?" [label="yes"];
75
- "Invoke mastermind:design first" -> "Brain already loaded?";
76
-
77
- "User command / prompt received" -> "Brain already loaded?";
78
- "Brain already loaded?" -> "Load brain (Brain Load Procedure)" [label="no"];
79
- "Brain already loaded?" -> "Might a mastermind skill apply?" [label="yes"];
80
- "Load brain (Brain Load Procedure)" -> "Might a mastermind skill apply?";
81
- "Might a mastermind skill apply?" -> "Invoke Skill() tool" [label="yes, even 1%"];
82
- "Might a mastermind skill apply?" -> "Respond or act (including clarifications)" [label="definitely not"];
83
- "Invoke Skill() tool" -> "Announce: Using [skill] for [purpose]";
84
- "Announce: Using [skill] for [purpose]" -> "Has checklist?";
85
- "Has checklist?" -> "Create TodoWrite item per checklist step" [label="yes"];
86
- "Has checklist?" -> "Execute skill exactly" [label="no"];
87
- "Create TodoWrite item per checklist step" -> "Execute skill exactly";
88
- }
89
- ```
90
-
91
- | Situation | Skill to invoke |
92
- |---|---|
93
- | Debug a bug, test failure, unexpected behavior | `Skill("mastermind-debug")` |
94
- | Verify a claim — tests pass, feature works, fix resolved | `Skill("mastermind-verify")` |
95
- | Write tests first, enforce Red-Green-Refactor | `Skill("mastermind-tdd")` |
96
- | Write a structured implementation plan (no placeholders) | `Skill("mastermind-plan")` |
97
- | Execute a written plan step-by-step with stop-on-blocker | `Skill("mastermind-execute")` |
98
- | Execute a plan via fresh subagents with 2-stage review | `Skill("mastermind-taskdev")` |
99
- | Fix or investigate 2+ independent problems concurrently (different files, subsystems, or bugs) | dispatch parallel subagents in one message — one per independent domain; use `Skill("mastermind-taskdev")` for plan-driven parallel work |
100
- | Ingest a prompt/spec/folder and generate agent-optimized tasks | `Skill("mastermind-createtask")` |
101
- | Execute tasks from a task file or monotask board (parallel/sequential/minimal modes, review cycles, loop) | `Skill("mastermind-do")` |
102
- | Design first — spec, approaches, approval gate before code | `Skill("mastermind-design")` |
103
- | Build a feature, fix a bug, implement anything | `Skill("mastermind-build")` |
104
- | Code review, content critique, strategy audit | `Skill("mastermind-review")` |
105
- | Receive a code review and apply it correctly | `Skill("mastermind-receive-review")` |
106
- | System architecture, DDD, technical design | `Skill("mastermind-architect")` |
107
- | Market research, competitive analysis, user insights | `Skill("mastermind-research")` |
108
- | Ideas, feature generation, opportunity framing | `Skill("mastermind-idea")` |
109
- | Research ideas, evaluate with PM lens, decompose into subtasks | `Skill("mastermind-ideate")` |
110
- | Analyze a component, research improvements, generate improvement tasks | `Skill("mastermind-improve")` |
111
- | Marketing campaign, copy, SEO | `Skill("mastermind-marketing")` |
112
- | Sales outreach, proposals, pipeline | `Skill("mastermind-sales")` |
113
- | Blog, docs, newsletters, threads | `Skill("mastermind-content")` |
114
- | Versioning, changelogs, deployment | `Skill("mastermind-release")` |
115
- | Finish a branch — tests, options menu, merge/PR/discard | `Skill("mastermind-finish")` |
116
- | Workflow, process, reporting | `Skill("mastermind-ops")` |
117
- | Invoicing, forecasting, cost | `Skill("mastermind-finance")` |
118
- | Inspect or manage brain memory | `Skill("mastermind-brain")` |
119
- | Technical portfolio, project state assessment | `Skill("mastermind-techport")` |
120
- | Define/run an agent organization | `Skill("mastermind-createorg")` / `Skill("mastermind-runorg")` |
121
- | Review and action pending agent approval requests | `Skill("mastermind-approvev1")` (v1 orgs only — v2 approvals arrive in the dashboard Human Input tab) |
122
- | Autonomous build + review until clean | `Skill("mastermind-autodev")` |
123
- | Isolate work in a git worktree | `Skill("mastermind-worktree")` |
124
- | Write or improve a mastermind skill | `Skill("mastermind-skill-builder")` |
125
-
126
- ### Skill Execution Order
127
-
128
- When multiple skills could apply to a **single-skill invocation** (not a full mastermind:master multi-domain run):
129
-
130
- 1. **Process skills first** — debug (`mastermind:debug`), brainstorming (`mastermind:idea`), architecture (`mastermind:architect`), research (`mastermind:research`) determine HOW to approach the work
131
- 2. **Execution skills second** — build, review, release execute the approach
132
-
133
- "Let's build X" → `mastermind:architect` first if approach is unclear, then `mastermind:build`.
134
- "Fix this" → `mastermind:debug` to find root cause first, then `mastermind:build` to fix.
135
- "Ship it" → `mastermind:review` to verify clean, then `mastermind:release`.
136
-
137
- **Multi-domain runs (Steps 4–7 of this command):** Domain manager agents for different domains run concurrently — there is no enforced serial order between `build` and `architect` domain managers when both are active. The order above applies when you (the master) are choosing which single skill to invoke directly.
138
-
139
- ### Skill Types
140
-
141
- **Rigid** (tdd, debug, autodev, review with `--tillend`): Follow exactly. Don't adapt away the discipline — it exists to catch the failures that "one quick look" misses.
142
-
143
- **Flexible** (idea, research, content, architect): Adapt principles to context. Use judgment on scope.
144
-
145
- The skill itself tells you which it is.
146
-
147
- ### Anti-Drift Guards
148
-
149
- These thoughts mean **STOP** — you are rationalizing. Check for a skill first.
150
-
151
- | Thought | Reality |
152
- |---|---|
153
- | "This is just a simple question" | Questions are tasks. Check for skills. |
154
- | "This is just a simple task" | Simple tasks define the floor. Check for skills. |
155
- | "I need more context first" | Skill check comes BEFORE gathering context. |
156
- | "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
157
- | "I can check git/files quickly before invoking a skill" | Files lack conversation context. Brain Load + skill check come first. |
158
- | "Let me gather information first, then I'll check" | Skills tell you HOW to gather information. Check first. |
159
- | "The brain isn't loaded yet — let me just answer" | Brain Load is the first step. Load it. |
160
- | "This doesn't need a formal skill" | If a skill exists for this domain, use it. |
161
- | "This doesn't count as a real task" | Action = task. Check for skills. |
162
- | "I remember how this works" | Skills evolve. Read current version. Always. |
163
- | "I know what that command does" | Knowing the concept ≠ invoking the skill. Invoke it. |
164
- | "The skill is overkill for this" | Small tasks become complex. Use it. |
165
- | "I'll just do this one thing first" | Check BEFORE doing anything. |
166
- | "This feels productive" | Undisciplined action creates drift. Skills prevent this. |
167
- | "Auto mode means I should move fast" | Speed without discipline creates drift. Use skills. |
168
- | "The user said --auto, so I skip confirmation" | --auto skips user confirmation. It does NOT skip skill invocation. |
169
- | "Spawned agents don't need to check skills" | Subagents that have Skill access MUST use it. Only subagents with the `<SUBAGENT-STOP>` gate may skip. |
170
- | "Agent said success" / "should work now" | Agent reports ≠ evidence. Run `mastermind:verify` independently — fresh and complete. |
171
- | "I'll just make a quick change on main" | No changes on main/master without explicit user consent. `mastermind:worktree` first. |
172
- | "Should I continue?" (in auto mode) | Never ask. Auto mode means execute continuously until blocked or all tasks complete. |
173
- | "TBD / TODO / implement later" (in a plan) | Placeholder = plan failure. Every step needs exact paths, complete code, runnable commands. |
174
- | "Code quality review first, then spec" | Wrong order every time. Spec compliance FIRST, code quality SECOND. Never reversed. |
175
- | "The subagent can read the plan file itself" | Controller extracts each task into a brief file and hands over that path. Subagents never read whole plan files. |
176
-
177
- ### Mandatory Patterns
178
-
179
- These sequences are non-negotiable in all modes:
180
-
181
- - **Before building**: Load brain → `mastermind:design` (questions → approaches → approved spec) → `mastermind:plan` (complete plan + execution handoff) → then build
182
- - **When fixing bugs**: `mastermind:debug` first (root cause) → write failing test via `mastermind:tdd` → fix → `mastermind:verify`
183
- - **After building**: `mastermind:review` — at minimum one pass before reporting complete
184
- - **Consuming a review**: `mastermind:receive-review` — verify before implementing, clarify unclear items first
185
- - **After any run**: Brain Write Procedure — score decisions, append to LanceDB
186
- - **Before releasing**: `mastermind:review --tillend --auto` → `mastermind:verify` → `mastermind:finish`
187
- - **Isolated work**: `mastermind:worktree` before making changes to avoid contaminating main
188
- - **Before claiming complete**: Run `mastermind:verify` — never claim completion based on agent reports, linter passes, or partial checks
189
- - **When writing a plan**: Map file structure first → copy spec-wide Global Constraints into the plan header → right-size tasks (smallest unit with its own test cycle) with exact paths, complete code, and Interfaces (Consumes/Produces) blocks — no placeholders → self-review (spec coverage, placeholder scan, type consistency) → offer execution mode choice (subagent-driven vs inline)
190
- - **When executing with subagents**: Hand each implementer its task as a brief file (never make them read the plan file) → spec compliance review FIRST → code quality review SECOND → re-review until both ✅ → record each completed task in the durable progress ledger (`.monomind/taskdev/progress.md`) → dispatch final whole-branch reviewer (most capable model, diff handed over as a file) after all tasks complete → then `mastermind:finish`
191
- - **When blocked during execution**: Stop immediately — do not guess or force through. Diagnose, provide context, re-dispatch with more capable model, or escalate to user
192
-
193
- ### Iron Laws
194
-
195
- These are inviolable regardless of mode, pressure, or context. Violating the letter of any law is violating its spirit — "I ran verify but only checked one file" or "I found the root cause but skipped the failing test" are not exceptions.
196
-
197
- | Law | Rule |
198
- |---|---|
199
- | **TDD** | No production code without a failing test first. Entry point: `mastermind:tdd`. |
200
- | **Debug** | No fix without root cause investigation first. Entry point: `mastermind:debug`. |
201
- | **Verify** | No completion claim without fresh verification evidence. Entry point: `mastermind:verify`. |
202
- | **Isolation** | No changes on main/master without explicit user consent. Entry point: `mastermind:worktree`. |
203
- | **Plans** | No placeholders: every plan step has exact file paths, complete code, and runnable commands. Entry point: `mastermind:plan`. |
204
-
205
- ### Platform Note
206
-
207
- Mastermind is designed for **Claude Code** but runs on any platform that supports the skill-loading mechanism described in "How to Access Mastermind Skills" above. On all platforms: never use file-reading tools to load skills — always use the platform's skill invocation mechanism. Skill content is loaded and injected by the harness when you call the skill tool with `"mastermind:<name>"`.
208
-
209
- ---
210
-
211
- **If $ARGUMENTS is empty:** Output the capability menu below and wait.
212
-
213
- ---
214
-
215
- **MASTERMIND** — autonomous business execution across specialist domains.
216
-
217
- Describe your goal. Mastermind identifies the relevant domains, spawns specialist agents in parallel, and synthesizes results. Or invoke a domain directly.
218
-
219
- ---
220
-
221
- **Debug & quality**
222
- `/mastermind:debug` — systematic root-cause investigation before any fix attempt
223
- `/mastermind:verify` — confirm claims with evidence: tests pass, feature works, fix resolved
224
- `/mastermind:tdd` — enforce Red-Green-Refactor; no production code before failing test
225
-
226
- **Plan & execute**
227
- `/mastermind:design` — brainstorm, propose approaches, write approved spec before building
228
- `/mastermind:plan` — write a complete implementation plan (no placeholders, exact file paths)
229
- `/mastermind:execute` — run a written plan step-by-step with stop-on-blocker discipline
230
- `/mastermind:taskdev` — execute a plan via fresh subagents with two-stage per-task review
231
- `/mastermind:finish` — complete a branch: verify tests → options menu → merge/PR/keep/discard
232
-
233
- **Build & ship**
234
- `/mastermind:build` — code, features, bug fixes, test suites
235
- `/mastermind:architect` — system structure, DDD, deduplication, migration (`--scope review|design|deduplicate|migrate|all`)
236
- `/mastermind:idea` — products, features, pivots, opportunity framing
237
- `/mastermind:content` — blog, threads, documentation, newsletters
238
-
239
- **Review & improve**
240
- `/mastermind:review` — code quality, content critique, strategy audit
241
- `/mastermind:receive-review` — consume a code review correctly: verify, clarify, push back with evidence
242
-
243
- **Understand & decide**
244
- `/mastermind:research` — market intelligence, competitors, user insights
245
- `/mastermind:brain` — inspect and manage business memory
246
-
247
- **Go to market & operate**
248
- `/mastermind:marketing` — campaigns, copy, SEO, social strategy
249
- `/mastermind:sales` — outreach, proposals, pipeline management
250
- `/mastermind:release` — versioning, changelogs, deployment
251
- `/mastermind:ops` — workflow automation, process reporting
252
- `/mastermind:finance` — invoicing, forecasting, cost tracking
253
-
254
- **Persistent agent orgs** — named teams that coordinate across sessions
255
- `/mastermind:createorg` — define an org: roles, hierarchy, goal
256
- `/mastermind:runorg` — start a saved org via the Org Runtime v2 daemon (auto-migrates v1 configs); legacy prompt-orchestrated path: `/mastermind:runorgv1`
257
- `/mastermind:approvev1` — review and action pending approval requests from running org agents (v1 orgs only — v2 approvals arrive in the dashboard Human Input tab)
258
-
259
- **Autonomous & advanced**
260
- `/mastermind:autodev` — research → build → review loop until clean (`--tillend` supported)
261
- `/mastermind:techport` — technical portfolio assessment; port capabilities from other projects
262
- `/mastermind:worktree` — isolate work in a git worktree safely
263
- `/mastermind:skill-builder` — write or improve a mastermind skill with TDD discipline
264
-
265
- ---
266
- Flags: `--auto` · `--confirm` · `--project <name>` · `--iterate <N>` · `--monotask`
267
-
268
- ---
269
-
270
- **If $ARGUMENTS is non-empty:** Execute the full flow below.
271
-
272
- ---
273
-
274
- ## Execution Flow
275
-
276
- ### Step 1 — Parse flags
277
-
278
- Extract from `$ARGUMENTS`:
279
- - `--auto` → mode = auto
280
- - `--confirm` → mode = confirm
281
- - `--project <name>` → project_name = <name>
282
- - `--iterate <N>` → iterate = N (integer ≥ 1; when flag is absent, no iteration runs)
283
- - `--monotask` → use_monotask = true (default: false — domain tracking writes to session files only)
284
- - Remaining text = prompt
285
-
286
- If `--project` was not provided, default `project_name` to the current directory name:
287
- ```bash
288
- project_name="${project_name:-$(basename "$PWD")}"
289
- ```
290
-
291
- ### Step 2 — Brain Load
292
-
293
- Follow the Brain Load Procedure from `mastermind-protocol/SKILL.md`:
294
-
295
- 1. Call `mcp__monomind__lancedb_hierarchical-recall` namespace `mastermind:principles` (limit 20)
296
- 2. For each domain that appears relevant to the prompt, call `mcp__monomind__lancedb_context-synthesize` namespace `mastermind:<domain>:weekly`
297
- 3. Call `mcp__monomind__monograph_query` with 3-5 keywords from the prompt
298
-
299
- Assemble the BRAIN CONTEXT block from results.
300
-
301
- ### Step 3 — Intake
302
-
303
- Invoke the intake logic from `mastermind-intake/SKILL.md`:
304
-
305
- - Check if prompt is rich (≥20 words + domain signals + goal phrase)
306
- - If vague: ask intake questions one at a time (Q1–Q5, stop when enough context)
307
- - If user says "decide yourself": make explicit LLM decision, state it, log it with confidence 0.7
308
- - Resolve: mode (auto/confirm), project_name, domains_needed
309
-
310
- **After intake resolves:** Assign shell variables from the intake outputs (these are LLM-resolved values that must be echoed into the bash environment before the curl block runs):
311
- - `resolved_prompt` = the full cleaned prompt string
312
- - `mode` = `"auto"` or `"confirm"`
313
-
314
- Then generate `SESSION_ID` and persist it so iteration cycles can retrieve it across separate Bash calls:
315
-
316
- ```bash
317
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
318
- # Resolve git-safe monomind data root — shared across worktrees and branch-agnostic.
319
- # In a worktree .git is a pointer file; we navigate to the common .git directory.
320
- _get_mono_dir() {
321
- local w="${1:-$(pwd)}"
322
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
323
- if [ -f "$w/.git" ]; then
324
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
325
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
326
- [[ "$m" != /* ]] && m="$w/$m"
327
- echo "$(dirname "$(dirname "$m")")/monomind"; return
328
- fi
329
- echo "$w/.monomind"
330
- }
331
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
332
- SESSION_ID="mm-$(date -u +%Y%m%dT%H%M%S)"
333
- mkdir -p "$MONO_DIR/sessions"
334
- # Persist SESSION_ID and project context so Step 12 can restore it in a new shell
335
- jq -n --arg sid "$SESSION_ID" --arg proj "$project_name" --arg prompt "$resolved_prompt" \
336
- '{sessionId:$sid,project_name:$proj,prompt:$prompt}' \
337
- > "$MONO_DIR/sessions/current.json.tmp" \
338
- && mv "$MONO_DIR/sessions/current.json.tmp" \
339
- "$MONO_DIR/sessions/current.json"
340
- CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
341
- curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
342
- -H "Content-Type: application/json" \
343
- -d "$(jq -cn --arg sid "$SESSION_ID" --arg prompt "$resolved_prompt" --arg mode "$mode" --arg proj "$REPO_ROOT" \
344
- '{type:"session:start",session:$sid,prompt:$prompt,mode:$mode,project:$proj,ts:(now*1000|floor)}')" || true
345
- ```
346
-
347
- ### Step 3.5 — Design Gate
348
-
349
- <HARD-GATE>
350
- STOP before Step 4. If `domains_needed` includes `build` (or any code/feature/fix work):
351
-
352
- 1. Invoke `Skill("mastermind-design")` NOW — pass `resolved_prompt` as the task description
353
- 2. Do NOT write any code, do NOT spawn any domain managers, do NOT proceed to Step 4 until the design skill returns with an approved spec
354
- 3. When design returns: save the approved spec as `build_spec` in `current.json`
355
- 4. Only then continue to Step 4
356
-
357
- If `domains_needed` contains ONLY non-build domains (marketing, sales, research, content, ops, finance, idea): skip this gate and go directly to Step 4.
358
-
359
- Rationale: without a design gate, master spawns agents before the user has confirmed what to build. The design gate replicates the superpowers workflow: questions → approaches → spec approval → plan → execute.
360
- </HARD-GATE>
361
-
362
- ### Step 3.6 — Plan Gate
363
-
364
- <HARD-GATE>
365
- If the Design Gate ran (build work), do NOT skip planning. After `mastermind:design` returns with an approved spec:
366
-
367
- 1. Invoke `Skill("mastermind-plan")` NOW — pass `build_spec`, the brain context, and mode
368
- 2. The plan skill produces `docs/mastermind/plans/YYYY-MM-DD-<feature>.md` with the complete header (Goal, Architecture, Tech Stack, Global Constraints), right-sized tasks with Interfaces (Consumes/Produces) blocks, bite-sized TDD steps, and no placeholders — then runs its self-review (spec coverage, placeholder scan, type consistency)
369
- 3. The plan skill's Execution Handoff resolves the execution mode. Record it: `build_exec_mode` = `taskdev` (subagent-driven) or `execute` (inline), and save the plan path as `build_plan` in `current.json`
370
- 4. Step 5 MUST NOT re-ask the execution-mode question when this gate already resolved `build_exec_mode`
371
- 5. Only then continue to Step 4
372
-
373
- If `domains_needed` contains ONLY non-build domains: skip this gate (same rule as Step 3.5).
374
-
375
- Rationale: superpowers' pipeline is brainstorm → spec approval → writing-plans → execution handoff. Without a plan gate, master hands an un-planned spec straight to domain managers and the plan discipline (exact paths, complete code, interface contracts between tasks) is lost.
376
- </HARD-GATE>
377
-
378
- ### Step 4 — Decompose
379
-
380
- For each domain in `domains_needed`, assess complexity:
381
- - **Simple** (skill-only): single task, single agent, < 30 minutes estimated — invoke skill directly
382
- - **Complex** (manager agent): multi-step, multi-file, multi-day, or multi-agent — spawn a Task agent
383
-
384
- Complexity threshold for manager agent: any of these is true:
385
- - Requires 3+ files to be created/modified
386
- - Requires 2+ specialized agent types
387
- - Has external dependencies (APIs, services)
388
- - Is estimated to take more than one conversation turn
389
-
390
- **DOMAIN EXCEPTION — `idea`:** The `idea` domain MUST always be handled by the master invoking `Skill("mastermind-idea")` directly — NEVER by spawning a Task agent. Spawned agents do not have Skill tool access, so delegating `idea` to a Task agent silently degrades to raw analysis with no pipeline execution. After `mastermind:idea` returns, treat its output as the `idea` domain's unified output schema and proceed to the next domain.
391
-
392
- **Per-domain goal extraction:** For each activated domain, extract a one-sentence goal from the prompt describing what that domain must accomplish. Then **run the following Bash block**, substituting `<domain_goals_json>` with a JSON object mapping each domain name to its one-sentence goal (use the full `resolved_prompt` as the value for any domain where no specific goal is extractable):
393
-
394
- ```bash
395
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
396
- _get_mono_dir() {
397
- local w="${1:-$(pwd)}"
398
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
399
- if [ -f "$w/.git" ]; then
400
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
401
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
402
- [[ "$m" != /* ]] && m="$w/$m"
403
- echo "$(dirname "$(dirname "$m")")/monomind"; return
404
- fi
405
- echo "$w/.monomind"
406
- }
407
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
408
- SESSION_STATE="$MONO_DIR/sessions/current.json"
409
- [ -f "$SESSION_STATE" ] || { echo "ERROR: current.json not found"; exit 1; }
410
-
411
- # LLM: write the extracted goals JSON object to the temp file below.
412
- # Use a file (not a shell variable) to avoid quoting issues with apostrophes in goal text.
413
- # Example content: {"build":"Ship the auth module","marketing":"Draft launch email series"}
414
- # One JSON object, keys = domain names, values = one-sentence goals.
415
- SESSION_ID=$(jq -r '.sessionId // empty' "$SESSION_STATE" 2>/dev/null)
416
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID missing in current.json — run Step 3 first"; exit 1; }
417
- GOALS_FILE="$MONO_DIR/sessions/${SESSION_ID}_goals.json"
418
- cat > "$GOALS_FILE" << 'GOALS_EOF'
419
- <domain_goals_json>
420
- GOALS_EOF
421
-
422
- # Validate it's real JSON before merging
423
- jq . "$GOALS_FILE" > /dev/null 2>&1 || { echo "ERROR: domain_goals_json is not valid JSON — check LLM substitution"; exit 1; }
424
-
425
- jq --slurpfile goals "$GOALS_FILE" '. + {domain_goals:$goals[0]}' \
426
- "$SESSION_STATE" > "$SESSION_STATE.tmp" && mv "$SESSION_STATE.tmp" "$SESSION_STATE"
427
- echo "Domain goals written to current.json"
428
- ```
429
-
430
- ### Step 5 — Plan Output
431
-
432
- Build a plan summary:
433
-
434
- ```
435
- MASTERMIND PLAN — <project_name>
436
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
437
- Prompt: <prompt>
438
- Mode: <auto|confirm>
439
-
440
- Domains activated:
441
- ✦ build → Development Manager agent → board: <project>/development (will be created in Step 6)
442
- ✦ marketing → Marketing Manager agent → board: <project>/marketing (will be created in Step 6)
443
-
444
- Monotask space: <project_name>
445
- Brain loaded: <N> principles, <M> domain summaries
446
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
447
- ```
448
-
449
- If mode = confirm: show plan and wait for user response. Valid responses:
450
- - "go" or "proceed" — continue immediately
451
- - Any modification (e.g. "add sales domain", "remove marketing") — apply the change, re-show the plan, wait again
452
- - "cancel" or "stop" — emit `session:complete` with `status: blocked`, reason "cancelled by user", then STOP
453
-
454
- If the Step 3.6 Plan Gate already resolved `build_exec_mode`, skip the question below and use that value. Otherwise, after the user says "go" (and `build` is in `domains_needed`), ask once:
455
- > "For the build work: **subagents** (recommended — fresh agent per task with 2-stage review, like mastermind:taskdev) or **inline** (direct execution, mastermind:execute)?"
456
-
457
- - "subagents" → `build_exec_mode = "taskdev"`
458
- - "inline" → `build_exec_mode = "execute"`
459
- - No answer / skipped → `build_exec_mode = "taskdev"` (default)
460
-
461
- If mode = auto and Step 3.6 did not set it: `build_exec_mode = "taskdev"` (default).
462
-
463
- **Persist `build_exec_mode` to `current.json`** (required — Phase C reads it from there):
464
-
465
- ```bash
466
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
467
- _get_mono_dir() {
468
- local w="${1:-$(pwd)}"
469
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
470
- if [ -f "$w/.git" ]; then
471
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
472
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
473
- [[ "$m" != /* ]] && m="$w/$m"
474
- echo "$(dirname "$(dirname "$m")")/monomind"; return
475
- fi
476
- echo "$w/.monomind"
477
- }
478
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
479
- SESSION_STATE="$MONO_DIR/sessions/current.json"
480
- # LLM: replace EXEC_MODE_VALUE with the resolved value: taskdev or execute
481
- build_exec_mode="EXEC_MODE_VALUE"
482
- [ "$build_exec_mode" = "EXEC_MODE_VALUE" ] && build_exec_mode="taskdev"
483
- jq --arg m "$build_exec_mode" '. + {build_exec_mode: $m}' \
484
- "$SESSION_STATE" > "$SESSION_STATE.tmp" && mv "$SESSION_STATE.tmp" "$SESSION_STATE"
485
- echo "build_exec_mode=$build_exec_mode written to current.json"
486
- ```
487
-
488
- ### Step 6 — Monotask Setup
489
-
490
- **Skip this step entirely if `use_monotask` is false** (the default). Domain tracking uses session JSON files only — no boards are created. Set `monotask_available: false` in `current.json` so Step 7 runs without board IDs.
491
-
492
- If `use_monotask` is true: follow the Monotask Space+Board Setup Procedure from `mastermind-protocol/SKILL.md`. Resolve the space **once**, then create one board per active domain. Use `project_name` as the space name so all boards across repos and domains share the same space.
493
-
494
- **Board naming convention:** Every board is named `<project_name>-<domain>` (e.g. `factory-idea`, `factory-build`). This canonical name is stable across runs — mastermind finds the existing board instead of creating a new one every time.
495
-
496
- ```bash
497
- # Compatible with macOS bash 3.2 — no associative arrays, uses jq accumulation instead
498
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
499
- SESSION_STATE="$MONO_DIR/sessions/current.json"
500
-
501
- # monotask availability guard — all card/board operations below require it
502
- if ! command -v monotask >/dev/null 2>&1; then
503
- echo "WARN: monotask CLI not found — board and card creation will be skipped."
504
- echo "Install via: npm install -g monotask"
505
- echo "Domain managers will run without board IDs (text-only output)."
506
- # Write marker to current.json so Step 7 Phase C skips Task spawning with empty boards
507
- jq '. + {monotask_available: false}' "$SESSION_STATE" > "$SESSION_STATE.tmp" \
508
- && mv "$SESSION_STATE.tmp" "$SESSION_STATE" 2>/dev/null || true
509
- exit 0
510
- fi
511
-
512
- SESSION_ID=$(jq -r '.sessionId // empty' "$SESSION_STATE" 2>/dev/null)
513
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID missing in current.json — run Step 3 first"; exit 1; }
514
- project_name=$(jq -r '.project_name // ""' "$SESSION_STATE")
515
- [ -z "$project_name" ] && { echo "ERROR: project_name is empty in current.json — run Step 3 first"; exit 1; }
516
- resolved_prompt=$(jq -r '.prompt // ""' "$SESSION_STATE")
517
-
518
- # LLM: replace DOMAINS_LIST_HERE with space-separated domain names, e.g.: build marketing sales
519
- domains_needed="DOMAINS_LIST_HERE"
520
- [ "$domains_needed" = "DOMAINS_LIST_HERE" ] && { echo "ERROR: LLM did not substitute DOMAINS_LIST_HERE"; exit 1; }
521
- [ -z "$domains_needed" ] && { echo "ERROR: domains_needed is empty — nothing to do"; exit 1; }
522
-
523
- # Resolve space once — find existing by exact name or create
524
- space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
525
- [ -z "$space_id" ] && space_id=$(monotask space create "$project_name" 2>/dev/null | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
526
- [ -z "$space_id" ] && { echo "ERROR: Could not find or create space '$project_name'"; exit 1; }
527
- echo "Space: $space_id ($project_name)"
528
-
529
- # jq accumulation state (replaces bash 4.3+ associative arrays)
530
- state_patch='{}'
531
-
532
- for domain in $domains_needed; do
533
- canonical="${project_name}-${domain}"
534
-
535
- # Find existing board by canonical name — reuse across runs
536
- # board list format is "uuid: name" (colon-space separator, NOT pipe)
537
- board_id=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$canonical" | head -1)
538
-
539
- # Domain-specific column schema:
540
- # idea → New | Evaluated | Elaborated | Tasked | Iced | Rejected (intake = "New")
541
- # all others → Todo | In Progress | Human in Loop | Review | Done | Cancelled (intake = "Todo")
542
- if [ "$domain" = "idea" ]; then
543
- intake_col_name="New"
544
- else
545
- intake_col_name="Todo"
546
- fi
547
-
548
- if [ -n "$board_id" ]; then
549
- echo "Reusing board: $board_id ($canonical)"
550
- cols_json=$(monotask column list "$board_id" --json 2>/dev/null || echo '[]')
551
- todo_col=$(echo "$cols_json" | jq -r --arg n "$intake_col_name" '[.[] | select(.title==$n)] | .[0].id // empty')
552
- doing_col=$(echo "$cols_json" | jq -r '[.[] | select(.title=="In Progress" or .title=="Doing")] | .[0].id // empty')
553
- done_col=$(echo "$cols_json" | jq -r '[.[] | select(.title=="Done")] | .[0].id // empty')
554
- else
555
- echo "Creating board: $canonical"
556
- board_id=$(monotask board create --space "$space_id" "$canonical" --json 2>/dev/null | jq -r '.id // empty')
557
- [ -z "$board_id" ] && echo "[mastermind] monotask board unavailable — board tracking skipped."
558
- monotask space boards add "$space_id" "$board_id" >/dev/null 2>&1 || true
559
- if [ "$domain" = "idea" ]; then
560
- todo_col=$(monotask column create "$board_id" "New" --json | jq -r '.id // empty')
561
- doing_col=$(monotask column create "$board_id" "Evaluated" --json | jq -r '.id // empty')
562
- monotask column create "$board_id" "Elaborated" --json >/dev/null
563
- monotask column create "$board_id" "Tasked" --json >/dev/null
564
- monotask column create "$board_id" "Iced" --json >/dev/null
565
- done_col=$(monotask column create "$board_id" "Rejected" --json | jq -r '.id // empty')
566
- else
567
- todo_col=$(monotask column create "$board_id" "Todo" --json | jq -r '.id // empty')
568
- doing_col=$(monotask column create "$board_id" "In Progress" --json | jq -r '.id // empty')
569
- monotask column create "$board_id" "Human in Loop" --json >/dev/null
570
- monotask column create "$board_id" "Review" --json >/dev/null
571
- done_col=$(monotask column create "$board_id" "Done" --json | jq -r '.id // empty')
572
- monotask column create "$board_id" "Cancelled" --json >/dev/null
573
- fi
574
- [ -z "$todo_col" ] && { echo "ERROR: Failed to create intake column for $domain"; exit 1; }
575
- fi
576
-
577
- domain_goal=$(jq -r --arg d "$domain" '.domain_goals[$d] // empty' "$SESSION_STATE")
578
- [ -z "$domain_goal" ] && domain_goal="$resolved_prompt"
579
-
580
- state_patch=$(echo "$state_patch" | jq \
581
- --arg d "$domain" --arg b "$board_id" \
582
- --arg t "$todo_col" --arg g "$doing_col" --arg e "$done_col" \
583
- --arg goal "$domain_goal" \
584
- '.board_ids[$d]=$b | .todo_cols[$d]=$t | .doing_cols[$d]=$g | .done_cols[$d]=$e | .domain_goals[$d]=$goal')
585
-
586
- echo "DOMAIN=$domain BOARD=$board_id TODO=$todo_col DOING=$doing_col DONE=$done_col"
587
- done
588
-
589
- # Persist to current.json — one atomic merge
590
- jq --arg domains "$domains_needed" \
591
- --argjson patch "$state_patch" \
592
- '. + $patch + {domains_needed:($domains | split(" ") | map(select(length>0)))}' \
593
- "$SESSION_STATE" > "$SESSION_STATE.tmp" && mv "$SESSION_STATE.tmp" "$SESSION_STATE"
594
- echo "Session state saved to current.json"
595
- ```
596
-
597
- ### Step 7 — Spawn Domain Managers
598
-
599
- **BEFORE THIS STEP:** If `idea` is in `domains_needed`, invoke `Skill("mastermind-idea")` directly now (master context has Skill tool access). Pass the resolved prompt, project path, and mode. The idea skill's Step 7 writes its output to `$MONO_DIR/sessions/<SESSION_ID>/idea.json` automatically — do not write it again. Mark the `idea` domain as handled. Do NOT include `idea` in the Task spawning below.
600
-
601
- **IDEA PIPELINE REQUIREMENT:** `mastermind:idea` runs a multi-step pipeline (Steps 3–6 inside idea.md). You MUST follow all of those steps — do NOT shortcut to manually creating cards. The full pipeline is:
602
- - Step 3: Board setup — find-or-create `<project_name>-idea` board (master's Step 6 already created it with correct columns: New → Evaluated → Elaborated → Tasked → Iced → Rejected). Load column IDs from existing board.
603
- - Step 4: Spawn Idea Manager agent (coordinator) with specialist sub-agents per angle — generates ideas as cards in the `New` column.
604
- - Step 5: Spawn PM agent for validation — moves each card to `Evaluated`, `Iced`, or `Rejected`, sets impact/effort.
605
- - Step 6a: Elaboration agents enrich each `Evaluated` card and move it to `Elaborated`.
606
- - Step 6b: User gate (skip in auto mode).
607
- - Step 6c: Task decomposition — creates subtask cards on `<project_name>-tasks-dev` and `<project_name>-tasks-ops` boards, linked as subtasks of their parent idea card. Moves parent idea cards to `Tasked`.
608
-
609
- Skipping any of these steps produces an incomplete pipeline run — card content is generated but no evaluation, elaboration, or task breakdown occurs.
610
-
611
- **Before spawning**, select the best domain manager agent type from the registry for each active domain. Do not hardcode `coordinator` — pick the agent whose expertise best fits the domain goal.
612
-
613
- **BASH TOOL REQUIREMENT:** Domain managers must run `monotask` CLI commands. Only use subagent_types that include Bash in their tool list. If the registry returns an agent without Bash (e.g. `Product Manager`, `Backend Architect`), override it with `general-purpose` (which has all tools). Agents without Bash cannot create cards, emit curl events, or write session files — they will silently produce degraded output.
614
-
615
- **Phase A — Registry selection** (run as one Bash call; must complete before Phase C):
616
-
617
- ```bash
618
- # Compatible with macOS bash 3.2 — uses jq accumulation instead of declare -A
619
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
620
- REGISTRY="$REPO_ROOT/.monomind/registry.json"
621
-
622
- # Reload state from current.json — this is a new shell; no inherited variables
623
- SESSION_STATE="$MONO_DIR/sessions/current.json"
624
- [ -f "$SESSION_STATE" ] || { echo "ERROR: current.json not found — run from Step 3"; exit 1; }
625
- # If Step 6 skipped due to missing monotask, board_ids are empty — skip Task agent spawning
626
- if [ "$(jq -r '.monotask_available // true' "$SESSION_STATE")" = "false" ]; then
627
- echo "INFO: monotask_available=false — domain managers will be spawned in text-only mode (no board IDs)"
628
- echo " Install monotask (npm install -g monotask) and re-run to enable board tracking."
629
- fi
630
- domains_needed=$(jq -r '.domains_needed[]? // empty' "$SESSION_STATE" | grep -v '^idea$' | tr '\n' ' ')
631
- [ -z "$domains_needed" ] && { echo "INFO: no non-idea domains to spawn as Task agents"; } # idea-only runs are valid
632
-
633
- # Returns: best agent name from registry for the given domain+goal
634
- pick_domain_manager() {
635
- local domain="$1"
636
- local goal="$2"
637
- local kw cats result
638
- kw=$(echo "$goal" | tr '[:upper:]' '[:lower:]' | grep -oE '[a-z]{5,}' | sort -u | tr '\n' ' ')
639
- case "$domain" in
640
- build) cats="engineering development architecture" ;;
641
- marketing) cats="marketing paid-media strategy" ;;
642
- sales) cats="sales strategy" ;;
643
- research) cats="academic specialized strategy" ;;
644
- content) cats="marketing specialized" ;;
645
- ops) cats="project-management strategy support" ;;
646
- release) cats="devops github engineering" ;;
647
- review) cats="engineering testing analysis" ;;
648
- finance) cats="strategy specialized" ;;
649
- architect) cats="architecture engineering" ;;
650
- idea) cats="product strategy marketing" ;;
651
- *) cats="core strategy" ;;
652
- esac
653
- result=$(jq -r \
654
- --arg cats "$cats" \
655
- --arg kw "$kw" \
656
- '[ .agents[] | select(.deprecated != true)
657
- | select(.category as $c | ($cats | split(" ") | any(. == $c)))
658
- | {name: .name,
659
- score: (
660
- (.name | ascii_downcase) as $n |
661
- # Score on ANY keyword match, not just the first
662
- (if ($kw | length) > 0
663
- then ([$kw | split(" ")[] | select(length > 0) | if ($n | contains(.)) then 1 else 0 end] | add // 0)
664
- else 0 end) +
665
- (if $n | test("manager|director|coordinator") then 1 else 0 end)
666
- )}
667
- ] | sort_by(-.score) | .[0].name // empty' \
668
- "$REGISTRY" 2>/dev/null)
669
- if [ -z "$result" ]; then
670
- echo "WARN: registry lookup failed for domain=$domain, using coordinator fallback" >&2
671
- echo "coordinator"
672
- else
673
- echo "$result"
674
- fi
675
- }
676
-
677
- # jq accumulation (replaces bash 4.3+ declare -A — compatible with macOS bash 3.2)
678
- domain_managers_json='{}'
679
- for domain in $domains_needed; do
680
- goal=$(jq -r --arg d "$domain" '.domain_goals[$d] // empty' "$SESSION_STATE")
681
- [ -z "$goal" ] && goal=$(jq -r '.prompt // ""' "$SESSION_STATE")
682
- manager=$(pick_domain_manager "$domain" "$goal")
683
- domain_managers_json=$(echo "$domain_managers_json" | jq --arg d "$domain" --arg m "$manager" '. + {($d): $m}')
684
- echo "Domain manager for $domain: $manager"
685
- done
686
-
687
- # Persist domain_managers so Phase C can reload them without stdout parsing
688
- [ -z "$domain_managers_json" ] && domain_managers_json="{}"
689
- jq --argjson mgrs "$domain_managers_json" '. + {domain_managers:$mgrs}' \
690
- "$SESSION_STATE" > "$SESSION_STATE.tmp" && mv "$SESSION_STATE.tmp" "$SESSION_STATE"
691
-
692
- # Emit board/column lookup for LLM use in Phase C Task construction:
693
- echo "--- Phase C board/col IDs (loaded from current.json) ---"
694
- for domain in $domains_needed; do
695
- board=$(jq -r --arg d "$domain" '.board_ids[$d] // ""' "$SESSION_STATE")
696
- todo=$(jq -r --arg d "$domain" '.todo_cols[$d] // ""' "$SESSION_STATE")
697
- doing=$(jq -r --arg d "$domain" '.doing_cols[$d] // ""' "$SESSION_STATE")
698
- done_c=$(jq -r --arg d "$domain" '.done_cols[$d] // ""' "$SESSION_STATE")
699
- mgr=$(jq -r --arg d "$domain" '.domain_managers[$d] // "coordinator"' "$SESSION_STATE")
700
- echo "DOMAIN=$domain MANAGER=$mgr BOARD=$board TODO=$todo DOING=$doing DONE=$done_c"
701
- done
702
- ```
703
-
704
- **Phase B — Dashboard dispatch** + **Phase C — Task spawning** (run in one message — B is a Bash call, C is the Task tool calls; they are independent of each other):
705
-
706
- Phase B:
707
- ```bash
708
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
709
- SESSION_STATE="$MONO_DIR/sessions/current.json"
710
- SESSION_ID=$(jq -r '.sessionId // empty' "$SESSION_STATE" 2>/dev/null)
711
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID not found in current.json"; exit 1; }
712
- CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
713
- # Filter idea — it was already handled by Skill tool before Phase A, not dispatched as a Task agent
714
- domains_needed=$(jq -r '.domains_needed[]? // empty' "$SESSION_STATE" | grep -v '^idea$' | tr '\n' ' ')
715
- for domain in $domains_needed; do
716
- goal=$(jq -r --arg d "$domain" '.domain_goals[$d] // empty' "$SESSION_STATE")
717
- [ -z "$goal" ] && goal=$(jq -r '.prompt // ""' "$SESSION_STATE")
718
- curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
719
- -H "Content-Type: application/json" \
720
- -d "$(jq -cn --arg sid "$SESSION_ID" --arg d "$domain" --arg cmd "$goal" \
721
- '{type:"domain:dispatch",session:$sid,domain:$d,cmd:$cmd,ts:(now*1000|floor)}')" || true
722
- done
723
- ```
724
-
725
- Spawn ALL domain manager agents in ONE message using the Task tool (parallel execution).
726
-
727
- **Before constructing the Task calls:** load board/column UUIDs and domain manager names from `current.json` — that is the authoritative source. The Phase A echo lines are a human-readable diagnostic only; do not parse them as the primary data source.
728
-
729
- ```bash
730
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
731
- SESSION_STATE="$MONO_DIR/sessions/current.json"
732
- SESSION_ID=$(jq -r '.sessionId // empty' "$SESSION_STATE" 2>/dev/null)
733
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID missing"; exit 1; }
734
-
735
- # Emit one line per domain for LLM to read before constructing Task calls
736
- for domain in $(jq -r '.domains_needed[]? // empty' "$SESSION_STATE" | grep -v '^idea$'); do
737
- board_id=$(jq -r --arg d "$domain" '.board_ids[$d] // ""' "$SESSION_STATE")
738
- if [ -z "$board_id" ]; then
739
- echo "WARN: DOMAIN=$domain has no board_id — Step 6 may not have run or monotask is missing. Task agent will run without board tracking."
740
- fi
741
- exec_mode=""
742
- [ "$domain" = "build" ] && exec_mode=$(jq -r '.build_exec_mode // "taskdev"' "$SESSION_STATE")
743
- echo "DOMAIN=$domain \
744
- MANAGER=$(jq -r --arg d "$domain" '.domain_managers[$d] // "coordinator"' "$SESSION_STATE") \
745
- BOARD=$board_id \
746
- TODO=$(jq -r --arg d "$domain" '.todo_cols[$d] // ""' "$SESSION_STATE") \
747
- DOING=$(jq -r --arg d "$domain" '.doing_cols[$d] // ""' "$SESSION_STATE") \
748
- DONE=$(jq -r --arg d "$domain" '.done_cols[$d] // ""' "$SESSION_STATE") \
749
- EXEC_MODE=$exec_mode \
750
- GOAL=$(jq -r --arg d "$domain" '.domain_goals[$d] // .prompt' "$SESSION_STATE" | tr -d '\n')"
751
- done
752
- ```
753
-
754
- Use each `MANAGER` value as `subagent_type`, `BOARD`/`TODO`/`DOING`/`DONE` as board and column IDs. Do NOT use placeholder strings.
755
-
756
- Each Task call must include a complete briefing following the Monotask Task Briefing Standard from `mastermind-protocol/SKILL.md`. Include:
757
- - The full BRAIN CONTEXT block
758
- - The board ID (from `current.json` above)
759
- - The specific goal for this domain
760
- - The project name and run context
761
- - Instruction to create monotask cards directly using `monotask card create $BOARD_ID $COL_TODO_ID "<title>" --json` for all sub-tasks
762
- - Instruction to use `Skill("mastermind-do")` to execute tasks (Task agents have Skill tool access — do NOT use slash command syntax)
763
- - Instruction to spawn specialized agents using the domain-appropriate swarm topology
764
- - **For the `build` domain only:** include `build_exec_mode` (value: `"taskdev"` or `"execute"`) and instruct the manager: "Use `Skill("mastermind-taskdev")` if build_exec_mode is `taskdev`, or `Skill("mastermind-execute")` if `execute`. This was resolved in the Step 3.6 Plan Gate (or Step 5)." If `build_plan` is set in `current.json`, include the plan path and instruct the manager to execute THAT plan task-by-task rather than re-deriving tasks from the goal.
765
- - Instruction to return the unified output schema when done
766
-
767
- Example Task call for Development Manager. Substitute all **pre-known** `<…>` placeholders (project_name, SESSION_ID, board/col IDs, goals, manager name) before calling Task. Placeholders like `<status>`, `<path1>`, `<action1>` are filled at runtime by the spawned agent — do not attempt to substitute them. `subagent_type` is the **string value** of `$domain_manager_build` (e.g. `"Backend Architect"`), not a variable reference.
768
-
769
- **IMPORTANT — `<SESSION_ID>` appears 6 times in the template below. ALL must be replaced with the resolved value:**
770
- 1. `SESSION ID: <SESSION_ID>` — the header line in the prompt
771
- 2. `--arg sid '<SESSION_ID>'` in the agent:spawn curl call
772
- 3. `--arg sid '<SESSION_ID>'` in the intercom curl call
773
- 4. `mkdir -p "…/sessions/<SESSION_ID>"` — the output directory
774
- 5. `> "…/sessions/<SESSION_ID>/build.json"` — the output file path
775
- 6. `--arg sid '<SESSION_ID>'` in the domain:complete curl call
776
-
777
- Missing any one causes silent failures (output files written to a literal `<SESSION_ID>` directory that doesn't exist; Step 9 finds nothing and reports `complete` with zero domains).
778
-
779
- ```javascript
780
- Task({
781
- subagent_type: "<value of domain_manager_build, e.g. Backend Architect>",
782
- description: "Development Manager for project <project_name>",
783
- run_in_background: false, // foreground so Step 8 can collect output synchronously
784
- prompt: "You are the Development Manager for project <project_name>.\n\n" +
785
- "CONTEXT: Mastermind run <date> | Project: <project_name> | Master spawned you.\n\n" +
786
- "SESSION ID: <SESSION_ID> — use in all dashboard events below.\n\n" +
787
- "BRAIN CONTEXT:\n<paste brain context here>\n\n" +
788
- "YOUR BOARD: <board_build> (monotask://<project_name>/build)\n" +
789
- "TODO COL: <todo_col_build> | DOING COL: <doing_col_build> | DONE COL: <done_col_build>\n\n" +
790
- "GOAL: <build_goal>\n\n" +
791
- "YOUR RESPONSIBILITIES:\n" +
792
- "1. Break this goal into discrete tasks using:\n" +
793
- " monotask card create <board_build> <todo_col_build> '<title>' --json\n" +
794
- " Each card description MUST include: context, goal, scope, constraints, success criteria, agent, dependencies.\n\n" +
795
- "2. Spawn specialized agents for each task using the Task tool:\n" +
796
- " - Backend work: subagent_type 'backend-dev'\n" +
797
- " - Frontend work: subagent_type 'frontend-dev'\n" +
798
- " - Testing: subagent_type 'tester'\n" +
799
- " - Code review: subagent_type 'reviewer'\n" +
800
- " Default swarm: hierarchical 6 agents raft\n\n" +
801
- "3. BEFORE spawning each agent, emit agent:spawn via curl (NOT WebFetch — use jq for correct ms timestamps):\n" +
802
- " REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)\n" +
803
- " CTRL_URL=$(jq -r '.url // \"http://localhost:4242\"' \"$REPO_ROOT/.monomind/control.json\" 2>/dev/null || echo \"http://localhost:4242\")\n" +
804
- " curl -s -o /dev/null -X POST ${CTRL_URL}/api/mastermind/event \\\n" +
805
- " -H 'Content-Type: application/json' \\\n" +
806
- " -d \"$(jq -cn --arg sid '<SESSION_ID>' --arg agent '<slug>' --arg task '<title>' \\\n" +
807
- " '{type:\"agent:spawn\",session:$sid,domain:\"build\",agent:$agent,task:$task,ts:(now*1000|floor)}')\" || true\n\n" +
808
- "4. If handing off artifacts to another domain, emit intercom via curl:\n" +
809
- " curl -s -o /dev/null -X POST ${CTRL_URL}/api/mastermind/event \\\n" +
810
- " -H 'Content-Type: application/json' \\\n" +
811
- " -d \"$(jq -cn --arg sid '<SESSION_ID>' --arg to '<domain>' --arg msg '<summary>' \\\n" +
812
- " '{type:\"intercom\",session:$sid,from:\"build\",to:$to,msg:$msg,ts:(now*1000|floor)}')\" || true\n\n" +
813
- "5. Execute tasks via Skill(\"mastermind:do\") --board <board_build> (use Skill tool — slash command syntax does not work inside a Task agent)\n" +
814
- "6. Collect all agent outputs\n\n" +
815
- "7. BEFORE returning, write your output schema to disk AND emit domain:complete:\n" +
816
- " REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)\n" +
817
- " _mm() { local w=\"$1\"; if [ -d \"$w/.git\" ]; then echo \"$w/.git/monomind\"; elif [ -f \"$w/.git\" ]; then local m; m=$(grep '^gitdir:' \"$w/.git\" | sed 's/gitdir: *//'); [ -z \"$m\" ] && { echo \"$w/.monomind\"; return; }; [[ \"$m\" != /* ]] && m=\"$w/$m\"; echo \"$(dirname \"$(dirname \"$m\")\")/monomind\"; else echo \"$w/.monomind\"; fi; }\n" +
818
- " MONO_DIR=$(_mm \"$REPO_ROOT\")\n" +
819
- " CTRL_URL=$(jq -r '.url // \"http://localhost:4242\"' \"$REPO_ROOT/.monomind/control.json\" 2>/dev/null || echo \"http://localhost:4242\")\n" +
820
- " mkdir -p \"$MONO_DIR/sessions/<SESSION_ID>\"\n" +
821
- " jq -n --arg domain 'build' --arg status '<status>' \\\n" +
822
- " --argjson artifacts '[\"<path1>\",\"<path2>\"]' \\\n" +
823
- " --argjson next_actions '[\"<action1>\"]' \\\n" +
824
- " '{domain:$domain,status:$status,artifacts:$artifacts,next_actions:$next_actions}' \\\n" +
825
- " > \"$MONO_DIR/sessions/<SESSION_ID>/build.json\"\n" +
826
- " curl -s -o /dev/null -X POST ${CTRL_URL}/api/mastermind/event \\\n" +
827
- " -H 'Content-Type: application/json' \\\n" +
828
- " -d \"$(jq -cn --arg sid '<SESSION_ID>' --arg status '<status>' \\\n" +
829
- " '{type:\"domain:complete\",session:$sid,domain:\"build\",status:$status,ts:(now*1000|floor)}')\" || true\n\n" +
830
- "8. Return unified output schema:\n" +
831
- " domain: build\n" +
832
- " status: complete|partial|blocked\n" +
833
- " artifacts: [...]\n" +
834
- " decisions: [...]\n" +
835
- " lessons: [...]\n" +
836
- " next_actions: [...]\n" +
837
- " board_url: monotask://<project_name>/build\n" +
838
- " run_id: <ISO8601-timestamp>"
839
- })
840
- ```
841
-
842
- ### Step 8 — Collect Reports
843
-
844
- Domain managers run in foreground (no `run_in_background`), so their unified output schemas are returned synchronously as each Task call completes. Each domain manager writes its canonical output schema to `$MONO_DIR/sessions/<SESSION_ID>/<domain>.json` before returning — that file is the source of truth for Step 9 aggregation. The Task tool's text return value is informational only; do not attempt to parse it as JSON. If a manager reports `status: blocked`, record it but continue collecting from all others — do not abort the run.
845
-
846
- ### Step 9 — Synthesize
847
-
848
- 1. Collect all domain output schemas from Step 8
849
- 2. Compute aggregate status — read from per-domain output files (precedence: blocked > partial > complete):
850
-
851
- ```bash
852
- # Single bash block: aggregate status + emit dashboard event
853
- # (variables don't persist between Bash tool calls — keep aggregation and curl together)
854
- # Compatible with macOS bash 3.2 — only uses indexed arrays
855
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
856
- _get_mono_dir() {
857
- local w="${1:-$(pwd)}"
858
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
859
- if [ -f "$w/.git" ]; then
860
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
861
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
862
- [[ "$m" != /* ]] && m="$w/$m"
863
- echo "$(dirname "$(dirname "$m")")/monomind"; return
864
- fi
865
- echo "$w/.monomind"
866
- }
867
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
868
- SESSION_ID=$(jq -r '.sessionId // empty' "$MONO_DIR/sessions/current.json" 2>/dev/null)
869
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID missing"; exit 1; }
870
- CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
871
-
872
- overall_status="complete"
873
- completed_domains=()
874
- found_domain_files=0
875
- for domain_file in "$MONO_DIR/sessions/${SESSION_ID}"/*.json; do
876
- [ -f "$domain_file" ] || continue
877
- domain=$(jq -r '.domain // ""' "$domain_file")
878
- [ -z "$domain" ] && continue # skip auxiliary files that aren't domain output schemas
879
- found_domain_files=$(( found_domain_files + 1 ))
880
- status=$(jq -r '.status // "blocked"' "$domain_file")
881
- case "$status" in
882
- blocked) overall_status="blocked" ;;
883
- partial) [ "$overall_status" != "blocked" ] && overall_status="partial" ;;
884
- esac
885
- [ "$status" = "complete" ] && completed_domains+=("$domain")
886
- done
887
- (( found_domain_files == 0 )) && { overall_status="blocked"; echo "WARN: no domain output files found for session $SESSION_ID — all domain managers may have failed"; }
888
- echo "overall_status=$overall_status completed_domains=${completed_domains[*]}"
889
-
890
- completed_domains_json=$(jq -n '$ARGS.positional' --args "${completed_domains[@]}")
891
-
892
- curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
893
- -H "Content-Type: application/json" \
894
- -d "$(jq -cn \
895
- --arg sid "$SESSION_ID" \
896
- --arg status "$overall_status" \
897
- --argjson domains "$completed_domains_json" \
898
- '{type:"session:complete",session:$sid,status:$status,domains:$domains,ts:(now*1000|floor)}')" || true
899
- ```
900
-
901
- 3. Identify any cross-domain artifacts needed (e.g. a release that requires both build and review)
902
- 4. Write cross-domain artifacts to disk if needed
903
- 5. Compose the action summary for the user:
904
-
905
- ```
906
- MASTERMIND RUN COMPLETE — <project_name>
907
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
908
- Status: complete | partial | blocked
909
-
910
- Domains completed: build ✓ | marketing ✓
911
- Domains blocked: (none)
912
-
913
- Artifacts produced:
914
- /path/to/file1 (code)
915
- /path/to/file2 (copy)
916
-
917
- Key decisions made:
918
- • [what] — [why] (confidence: X)
919
-
920
- Next actions suggested:
921
- • /mastermind:review --project <project_name>
922
- • /mastermind:release --project <project_name>
923
-
924
- Monotask boards:
925
- → monotask://<project_name>/development
926
- → monotask://<project_name>/marketing
927
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
928
- ```
929
-
930
- ### Step 10 — Brain Write
931
-
932
- Follow the Brain Write Procedure from `mastermind-protocol/SKILL.md` for each domain that ran:
933
- 1. Score all decisions from this run
934
- 2. Append to Tier 1 raw log (LanceDB)
935
- 3. Check and trigger weekly compaction if threshold met
936
- 4. Check and trigger graph consolidation if cluster detected
937
-
938
- ### Step 11 — Output to User
939
-
940
- Show the action summary (Step 9). If any compaction ran during Step 10, append:
941
- > "Brain updated: compacted <N> entries into <M> summaries."
942
-
943
- **Persist session state for iteration cycles:** Aggregate artifacts from per-domain output files written by each domain manager, then persist to disk so Step 12 can load it:
944
-
945
- ```bash
946
- # Compatible with macOS bash 3.2 — only uses indexed arrays
947
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
948
- _get_mono_dir() {
949
- local w="${1:-$(pwd)}"
950
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
951
- if [ -f "$w/.git" ]; then
952
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
953
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
954
- [[ "$m" != /* ]] && m="$w/$m"
955
- echo "$(dirname "$(dirname "$m")")/monomind"; return
956
- fi
957
- echo "$w/.monomind"
958
- }
959
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
960
- SESSION_STATE="$MONO_DIR/sessions/current.json"
961
-
962
- # Restore variables from current.json (this is a fresh shell)
963
- SESSION_ID=$(jq -r '.sessionId // empty' "$SESSION_STATE" 2>/dev/null)
964
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID not found"; exit 1; }
965
- resolved_prompt=$(jq -r '.prompt // ""' "$SESSION_STATE")
966
- project_name=$(jq -r '.project_name // ""' "$SESSION_STATE")
967
-
968
- # Aggregate artifacts, next_actions, completed_domains, and overall_status
969
- # from per-domain output files (single source of truth — Step 9 shell is gone)
970
- all_artifacts=()
971
- all_next_actions=()
972
- completed_domains=()
973
- overall_status="complete"
974
- found_domain_files=0
975
- for domain_file in "$MONO_DIR/sessions/${SESSION_ID}"/*.json; do
976
- [ -f "$domain_file" ] || continue
977
- domain=$(jq -r '.domain // ""' "$domain_file")
978
- [ -z "$domain" ] && continue # skip auxiliary files that aren't domain output schemas
979
- found_domain_files=$(( found_domain_files + 1 ))
980
- status=$(jq -r '.status // "blocked"' "$domain_file")
981
- case "$status" in
982
- blocked) overall_status="blocked" ;;
983
- partial) [ "$overall_status" != "blocked" ] && overall_status="partial" ;;
984
- esac
985
- [ "$status" = "complete" ] && completed_domains+=("$domain")
986
- while IFS= read -r art; do all_artifacts+=("$art"); done \
987
- < <(jq -r '.artifacts[]? // empty' "$domain_file" 2>/dev/null)
988
- while IFS= read -r act; do all_next_actions+=("$act"); done \
989
- < <(jq -r '.next_actions[]? // empty' "$domain_file" 2>/dev/null)
990
- done
991
- (( found_domain_files == 0 )) && { overall_status="blocked"; echo "WARN: no domain output files found for session $SESSION_ID"; }
992
-
993
- artifacts_json=$(jq -n '$ARGS.positional' --args "${all_artifacts[@]}")
994
- next_actions_json=$(jq -n '$ARGS.positional' --args "${all_next_actions[@]}")
995
- completed_domains_json=$(jq -n '$ARGS.positional' --args "${completed_domains[@]}")
996
-
997
- jq -n \
998
- --arg sessionId "$SESSION_ID" \
999
- --arg prompt "$resolved_prompt" \
1000
- --arg project_name "$project_name" \
1001
- --arg status "$overall_status" \
1002
- --argjson completed_domains "$completed_domains_json" \
1003
- --argjson artifacts "$artifacts_json" \
1004
- --argjson next_actions "$next_actions_json" \
1005
- --arg run_id "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
1006
- '{sessionId:$sessionId,prompt:$prompt,project_name:$project_name,status:$status,
1007
- completed_domains:$completed_domains,artifacts:$artifacts,next_actions:$next_actions,
1008
- run_id:$run_id}' \
1009
- > "$MONO_DIR/sessions/${SESSION_ID}.json.tmp" \
1010
- && mv "$MONO_DIR/sessions/${SESSION_ID}.json.tmp" \
1011
- "$MONO_DIR/sessions/${SESSION_ID}.json"
1012
- ```
1013
-
1014
- ---
1015
-
1016
- ### Step 12 — Iteration Loop (only if `--iterate <N>` was set and N ≥ 1)
1017
-
1018
- After Step 11, run N autonomous improvement cycles. Each cycle is a full self-directed run — no user input required.
1019
-
1020
- **For each cycle i = 1 … N:**
1021
-
1022
- #### 12a — Assess Current State
1023
-
1024
- Load fresh brain context (repeat Brain Load Procedure from `mastermind-protocol/SKILL.md`). Load the persisted session state:
1025
-
1026
- ```bash
1027
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
1028
- _get_mono_dir() {
1029
- local w="${1:-$(pwd)}"
1030
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
1031
- if [ -f "$w/.git" ]; then
1032
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
1033
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
1034
- [[ "$m" != /* ]] && m="$w/$m"
1035
- echo "$(dirname "$(dirname "$m")")/monomind"; return
1036
- fi
1037
- echo "$w/.monomind"
1038
- }
1039
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
1040
- # Restore SESSION_ID — may be in a new shell context
1041
- SESSION_ID=$(jq -r '.sessionId // empty' "$MONO_DIR/sessions/current.json" 2>/dev/null)
1042
- [ -z "$SESSION_ID" ] && { echo "ERROR: SESSION_ID not found in current.json — cannot continue iteration."; exit 1; }
1043
-
1044
- SESSION_FILE="$MONO_DIR/sessions/${SESSION_ID}.json"
1045
- SESSION_STATE="$MONO_DIR/sessions/current.json"
1046
- # Echo to stdout — bash variables don't survive tool call boundaries; only stdout is visible to the LLM
1047
- # Emit run summary (artifacts, next_actions, project_name) from the session file
1048
- jq '{artifacts:.artifacts,next_actions:.next_actions,project_name:.project_name}' "$SESSION_FILE" 2>/dev/null \
1049
- || echo '{"artifacts":[],"next_actions":[],"project_name":""}'
1050
-
1051
- # Emit board_ids from current.json (not carried in SESSION_FILE) so Step 12c can look up board UUIDs
1052
- echo "--- board_ids (from current.json) ---"
1053
- jq '{board_ids:(.board_ids // {})}' "$SESSION_STATE" 2>/dev/null \
1054
- || echo '{"board_ids":{}}'
1055
- ```
1056
-
1057
- Then evaluate the project's current state by examining:
1058
- - What was just completed (artifacts from the `artifacts` array printed above)
1059
- - What `next_actions` entries printed above suggest
1060
- - What the `next_actions` from all domain outputs say
1061
- - What the git diff shows (if applicable) — any test failures, TODOs, or incomplete work
1062
- - What gaps exist relative to the original prompt's success criteria
1063
-
1064
- #### 12b — Decide Next Activity
1065
-
1066
- Choose the single highest-value activity for this cycle. Rank candidates by this priority:
1067
-
1068
- | Priority | Activity | Choose when |
1069
- |---|---|---|
1070
- | 1 | **Test** | New code exists with no test coverage, or tests failed |
1071
- | 2 | **Debug / Fix** | Tests are failing or artifacts have known errors |
1072
- | 3 | **Review** | Significant new code exists with no review pass |
1073
- | 4 | **Improve / Refactor** | Code works but has quality issues surfaced by review or brain |
1074
- | 5 | **Add feature** | Core is stable; next_actions suggest new capability aligned with project goal |
1075
- | 6 | **Research** | Significant unknowns remain before next feature can be decided |
1076
- | 7 | **Content / Docs** | Feature is complete and undocumented |
1077
- | 8 | **Release** | Project is stable, tested, reviewed — ready to ship |
1078
-
1079
- State the decision explicitly:
1080
- > "Cycle <i>/<N>: I'm choosing to **<activity>** because <one-sentence reason>. Confidence: <0.0–1.0>"
1081
-
1082
- Log this as a decision in the cycle's output schema with `confidence` set accordingly.
1083
-
1084
- #### 12c — Execute
1085
-
1086
- Execute the chosen activity by invoking the appropriate domain skill via the `Skill` tool (Steps 4–10 of the main flow, condensed). Use `Skill("mastermind-<domain>")` — do NOT use slash command syntax (`/<name>`), which only works when typed interactively in the Claude Code CLI, not within an executing command or skill:
1087
-
1088
- - Test → `Skill("mastermind-tdd")` with the untested artifacts as prompt (enforce Red-Green-Refactor)
1089
- - Debug/Fix → `Skill("mastermind-debug")` with the failing test or error as prompt (root-cause first, then fix)
1090
- - Review → `Skill("mastermind-review")` with scope = artifacts from last run
1091
- - Improve/Refactor → `Skill("mastermind-build")` with refactor prompt
1092
- - Add feature → `Skill("mastermind-build")` with the next feature from the `next_actions` array printed by the Step 12a output above
1093
- - Research → `Skill("mastermind-research")` with the open question as prompt
1094
- - Content/Docs → `Skill("mastermind-content")` with scope = new artifacts
1095
- - Release → `Skill("mastermind-release")` with project scope
1096
-
1097
- Always pass: the current brain_context, project_name (from the `project_name` field above), the relevant board_id, and mode = auto (iteration cycles never pause for confirmation).
1098
-
1099
- **Board ID lookup per activity:**
1100
- - `tdd`, `debug`, `Improve/Refactor`, `Add feature` → use `board_ids['build']` (these are build-domain activities)
1101
- - `review` → use `board_ids['review']`; fallback to `board_ids['build']` if not present
1102
- - `research` → use `board_ids['research']`; fallback to `board_ids['build']`
1103
- - `content` → use `board_ids['content']`; fallback to `board_ids['build']`
1104
- - `release` → use `board_ids['release']`; fallback to `board_ids['build']`
1105
-
1106
- **Constraint:** Only invoke a skill whose domain board_id exists in the `board_ids` map. If `board_ids['build']` is missing (rare), skip to the next activity whose board IS present. `build` is almost always present.
1107
-
1108
- #### 12d — Brain Write
1109
-
1110
- Follow Brain Write Procedure from `mastermind-protocol/SKILL.md` for this cycle's domain. Score and append.
1111
-
1112
- #### 12e — Cycle Summary
1113
-
1114
- Output a compact progress line:
1115
-
1116
- ```
1117
- ITERATION <i>/<N> — <activity> — <status: complete|partial|blocked>
1118
- → <one-line summary of what was done>
1119
- → Next cycle will: <predicted next activity based on current state>
1120
- ```
1121
-
1122
- If the cycle returns `status: blocked`, skip remaining cycles and report:
1123
- > "Iteration halted at cycle <i>: blocked on <reason>. Remaining <N-i> cycles skipped."
1124
-
1125
- ---
1126
-
1127
- After all N cycles complete, output a final iteration summary:
1128
-
1129
- ```
1130
- ITERATION COMPLETE — <N> cycles — <project_name>
1131
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1132
- Cycle 1: test → 12 tests added, all passing
1133
- Cycle 2: review → 3 issues found, 2 fixed inline
1134
- Cycle 3: improve → auth module refactored, 15% complexity reduction
1135
- ...
1136
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1137
- Brain updated: <total decisions scored and logged>
1138
- Project state: <one-sentence assessment of where things stand>
1139
- Suggested next: <what a human should do or approve next>
1140
- ```