@monoes/monomindcli 2.10.9 → 2.10.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 (265) hide show
  1. package/.claude/commands/mastermind/brain.md +14 -14
  2. package/.claude/commands/mastermind/help.md +2 -2
  3. package/.claude/commands/mastermind/master.md +24 -19
  4. package/.claude/commands/mastermind/memory.md +8 -8
  5. package/.claude/commands/mastermind/monoswarm.md +4 -4
  6. package/.claude/commands/mastermind.md +7 -7
  7. package/.claude/commands/truth/start.md +3 -3
  8. package/.claude/settings.json +0 -4
  9. package/.claude/skills/mastermind/SKILL.md +7 -16
  10. package/.claude/skills/mastermind/references/antigravity-tools.md +0 -62
  11. package/.claude/skills/mastermind/references/claude-code-tools.md +0 -52
  12. package/.claude/skills/mastermind/references/codex-tools.md +0 -66
  13. package/.claude/skills/mastermind/references/copilot-tools.md +0 -51
  14. package/.claude/skills/mastermind/references/gemini-tools.md +0 -65
  15. package/.claude/skills/mastermind/references/pi-tools.md +0 -30
  16. package/.claude/skills/mastermind-createorg/SKILL.md +3 -1
  17. package/.claude/skills/mastermind-debug/SKILL.md +3 -277
  18. package/.claude/skills/mastermind-design/SKILL.md +2 -0
  19. package/.claude/skills/mastermind-execute/SKILL.md +59 -103
  20. package/.claude/skills/mastermind-idea/SKILL.md +9 -2
  21. package/.claude/skills/mastermind-intake/SKILL.md +31 -7
  22. package/.claude/skills/mastermind-issue-detail/SKILL.md +70 -16
  23. package/.claude/skills/mastermind-issues/SKILL.md +111 -16
  24. package/.claude/skills/mastermind-liveness/SKILL.md +96 -26
  25. package/.claude/skills/mastermind-memory/SKILL.md +0 -316
  26. package/.claude/skills/mastermind-my-issues/SKILL.md +40 -8
  27. package/.claude/skills/mastermind-org/SKILL.md +1 -12
  28. package/.claude/skills/mastermind-plan/SKILL.md +7 -228
  29. package/.claude/skills/mastermind-plan-to-tasks/SKILL.md +132 -24
  30. package/.claude/skills/mastermind-protocol/SKILL.md +33 -22
  31. package/.claude/skills/mastermind-research/SKILL.md +0 -163
  32. package/.claude/skills/mastermind-review/SKILL.md +0 -228
  33. package/.claude/skills/mastermind-runorg/SKILL.md +22 -3
  34. package/.claude/skills/mastermind-skill-builder/SKILL.md +1 -1
  35. package/.claude/skills/mastermind-tasks/SKILL.md +5 -0
  36. package/.claude/skills/mastermind-techport/SKILL.md +1 -1
  37. package/.claude/skills/performance-analysis/SKILL.md +1 -1
  38. package/.claude/skills/verification-quality/SKILL.md +2 -3
  39. package/README.md +2 -2
  40. package/dist/src/commands/agent-exec.d.ts +2 -0
  41. package/dist/src/commands/agent-exec.d.ts.map +1 -1
  42. package/dist/src/commands/agent-exec.js +16 -0
  43. package/dist/src/commands/agent-exec.js.map +1 -1
  44. package/dist/src/commands/doc.js +2 -2
  45. package/dist/src/commands/doc.js.map +1 -1
  46. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  47. package/dist/src/commands/doctor-project-checks.js +20 -1
  48. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  49. package/dist/src/commands/init-wizard.d.ts.map +1 -1
  50. package/dist/src/commands/init-wizard.js +6 -0
  51. package/dist/src/commands/init-wizard.js.map +1 -1
  52. package/dist/src/commands/init.d.ts.map +1 -1
  53. package/dist/src/commands/init.js +12 -2
  54. package/dist/src/commands/init.js.map +1 -1
  55. package/dist/src/commands/monograph.d.ts.map +1 -1
  56. package/dist/src/commands/monograph.js +11 -4
  57. package/dist/src/commands/monograph.js.map +1 -1
  58. package/dist/src/commands/org-observe.d.ts +2 -0
  59. package/dist/src/commands/org-observe.d.ts.map +1 -1
  60. package/dist/src/commands/org-observe.js +115 -6
  61. package/dist/src/commands/org-observe.js.map +1 -1
  62. package/dist/src/commands/org.d.ts +26 -0
  63. package/dist/src/commands/org.d.ts.map +1 -1
  64. package/dist/src/commands/org.js +186 -28
  65. package/dist/src/commands/org.js.map +1 -1
  66. package/dist/src/init/codex-generator.d.ts +5 -0
  67. package/dist/src/init/codex-generator.d.ts.map +1 -1
  68. package/dist/src/init/codex-generator.js +12 -3
  69. package/dist/src/init/codex-generator.js.map +1 -1
  70. package/dist/src/init/executor.d.ts.map +1 -1
  71. package/dist/src/init/executor.js +10 -9
  72. package/dist/src/init/executor.js.map +1 -1
  73. package/dist/src/init/settings-generator.d.ts.map +1 -1
  74. package/dist/src/init/settings-generator.js +0 -5
  75. package/dist/src/init/settings-generator.js.map +1 -1
  76. package/dist/src/init/write-codex.d.ts.map +1 -1
  77. package/dist/src/init/write-codex.js +6 -5
  78. package/dist/src/init/write-codex.js.map +1 -1
  79. package/dist/src/knowledge/document-pipeline.d.ts +5 -0
  80. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  81. package/dist/src/knowledge/document-pipeline.js +32 -16
  82. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  83. package/dist/src/mcp-tools/hooks-routing.d.ts +9 -0
  84. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  85. package/dist/src/mcp-tools/hooks-routing.js +12 -1
  86. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  87. package/dist/src/mcp-tools/knowledge-tools.d.ts.map +1 -1
  88. package/dist/src/mcp-tools/knowledge-tools.js +105 -13
  89. package/dist/src/mcp-tools/knowledge-tools.js.map +1 -1
  90. package/dist/src/mcp-tools/memory-tools.d.ts +13 -0
  91. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  92. package/dist/src/mcp-tools/memory-tools.js +257 -31
  93. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  94. package/dist/src/mcp-tools/monograph/health-tools.d.ts.map +1 -1
  95. package/dist/src/mcp-tools/monograph/health-tools.js +99 -42
  96. package/dist/src/mcp-tools/monograph/health-tools.js.map +1 -1
  97. package/dist/src/mcp-tools/monograph/impact-tools.d.ts.map +1 -1
  98. package/dist/src/mcp-tools/monograph/impact-tools.js +123 -51
  99. package/dist/src/mcp-tools/monograph/impact-tools.js.map +1 -1
  100. package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
  101. package/dist/src/mcp-tools/monograph/query-tools.js +113 -96
  102. package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
  103. package/dist/src/mcp-tools/monograph/shared.d.ts +37 -4
  104. package/dist/src/mcp-tools/monograph/shared.d.ts.map +1 -1
  105. package/dist/src/mcp-tools/monograph/shared.js +75 -56
  106. package/dist/src/mcp-tools/monograph/shared.js.map +1 -1
  107. package/dist/src/memory/embedding-operations.d.ts.map +1 -1
  108. package/dist/src/memory/embedding-operations.js +9 -4
  109. package/dist/src/memory/embedding-operations.js.map +1 -1
  110. package/dist/src/memory/memory-bridge.d.ts +60 -1
  111. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  112. package/dist/src/memory/memory-bridge.js +185 -42
  113. package/dist/src/memory/memory-bridge.js.map +1 -1
  114. package/dist/src/memory/memory-kg.d.ts +495 -28
  115. package/dist/src/memory/memory-kg.d.ts.map +1 -1
  116. package/dist/src/memory/memory-kg.js +2186 -251
  117. package/dist/src/memory/memory-kg.js.map +1 -1
  118. package/dist/src/memory/query-router.d.ts +51 -0
  119. package/dist/src/memory/query-router.d.ts.map +1 -1
  120. package/dist/src/memory/query-router.js +38 -2
  121. package/dist/src/memory/query-router.js.map +1 -1
  122. package/dist/src/orgrt/agent-exec.d.ts +14 -0
  123. package/dist/src/orgrt/agent-exec.d.ts.map +1 -1
  124. package/dist/src/orgrt/agent-exec.js +88 -4
  125. package/dist/src/orgrt/agent-exec.js.map +1 -1
  126. package/dist/src/orgrt/agent-runner.d.ts +26 -1
  127. package/dist/src/orgrt/agent-runner.d.ts.map +1 -1
  128. package/dist/src/orgrt/agent-runner.js +73 -22
  129. package/dist/src/orgrt/agent-runner.js.map +1 -1
  130. package/dist/src/orgrt/antigravity-runner.d.ts +1 -1
  131. package/dist/src/orgrt/antigravity-runner.d.ts.map +1 -1
  132. package/dist/src/orgrt/antigravity-runner.js +36 -19
  133. package/dist/src/orgrt/antigravity-runner.js.map +1 -1
  134. package/dist/src/orgrt/approvals.d.ts +26 -2
  135. package/dist/src/orgrt/approvals.d.ts.map +1 -1
  136. package/dist/src/orgrt/approvals.js +67 -7
  137. package/dist/src/orgrt/approvals.js.map +1 -1
  138. package/dist/src/orgrt/broker.d.ts +21 -2
  139. package/dist/src/orgrt/broker.d.ts.map +1 -1
  140. package/dist/src/orgrt/broker.js +56 -8
  141. package/dist/src/orgrt/broker.js.map +1 -1
  142. package/dist/src/orgrt/bus.d.ts +8 -0
  143. package/dist/src/orgrt/bus.d.ts.map +1 -1
  144. package/dist/src/orgrt/bus.js +27 -0
  145. package/dist/src/orgrt/bus.js.map +1 -1
  146. package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
  147. package/dist/src/orgrt/checkpoint-ops.js +15 -5
  148. package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
  149. package/dist/src/orgrt/checkpoint.d.ts +42 -4
  150. package/dist/src/orgrt/checkpoint.d.ts.map +1 -1
  151. package/dist/src/orgrt/checkpoint.js +75 -4
  152. package/dist/src/orgrt/checkpoint.js.map +1 -1
  153. package/dist/src/orgrt/codex-runner.d.ts +1 -1
  154. package/dist/src/orgrt/codex-runner.d.ts.map +1 -1
  155. package/dist/src/orgrt/codex-runner.js +50 -23
  156. package/dist/src/orgrt/codex-runner.js.map +1 -1
  157. package/dist/src/orgrt/copilot-runner.d.ts +24 -2
  158. package/dist/src/orgrt/copilot-runner.d.ts.map +1 -1
  159. package/dist/src/orgrt/copilot-runner.js +257 -157
  160. package/dist/src/orgrt/copilot-runner.js.map +1 -1
  161. package/dist/src/orgrt/cross-org.d.ts +10 -3
  162. package/dist/src/orgrt/cross-org.d.ts.map +1 -1
  163. package/dist/src/orgrt/cross-org.js +225 -10
  164. package/dist/src/orgrt/cross-org.js.map +1 -1
  165. package/dist/src/orgrt/crush-runner.d.ts +22 -2
  166. package/dist/src/orgrt/crush-runner.d.ts.map +1 -1
  167. package/dist/src/orgrt/crush-runner.js +227 -120
  168. package/dist/src/orgrt/crush-runner.js.map +1 -1
  169. package/dist/src/orgrt/daemon.d.ts +77 -7
  170. package/dist/src/orgrt/daemon.d.ts.map +1 -1
  171. package/dist/src/orgrt/daemon.js +989 -385
  172. package/dist/src/orgrt/daemon.js.map +1 -1
  173. package/dist/src/orgrt/decisions.d.ts +2 -2
  174. package/dist/src/orgrt/decisions.d.ts.map +1 -1
  175. package/dist/src/orgrt/decisions.js +90 -18
  176. package/dist/src/orgrt/decisions.js.map +1 -1
  177. package/dist/src/orgrt/grok-runner.d.ts +29 -3
  178. package/dist/src/orgrt/grok-runner.d.ts.map +1 -1
  179. package/dist/src/orgrt/grok-runner.js +286 -150
  180. package/dist/src/orgrt/grok-runner.js.map +1 -1
  181. package/dist/src/orgrt/kimicode-runner.d.ts +5 -5
  182. package/dist/src/orgrt/kimicode-runner.d.ts.map +1 -1
  183. package/dist/src/orgrt/kimicode-runner.js +53 -32
  184. package/dist/src/orgrt/kimicode-runner.js.map +1 -1
  185. package/dist/src/orgrt/mailbox.d.ts +15 -0
  186. package/dist/src/orgrt/mailbox.d.ts.map +1 -1
  187. package/dist/src/orgrt/mailbox.js +29 -1
  188. package/dist/src/orgrt/mailbox.js.map +1 -1
  189. package/dist/src/orgrt/migrate.d.ts.map +1 -1
  190. package/dist/src/orgrt/migrate.js +8 -5
  191. package/dist/src/orgrt/migrate.js.map +1 -1
  192. package/dist/src/orgrt/opencode-runner.d.ts +1 -1
  193. package/dist/src/orgrt/opencode-runner.d.ts.map +1 -1
  194. package/dist/src/orgrt/opencode-runner.js +29 -3
  195. package/dist/src/orgrt/opencode-runner.js.map +1 -1
  196. package/dist/src/orgrt/org-memory.d.ts +19 -3
  197. package/dist/src/orgrt/org-memory.d.ts.map +1 -1
  198. package/dist/src/orgrt/org-memory.js +110 -38
  199. package/dist/src/orgrt/org-memory.js.map +1 -1
  200. package/dist/src/orgrt/pi-rpc-runner.d.ts +3 -1
  201. package/dist/src/orgrt/pi-rpc-runner.d.ts.map +1 -1
  202. package/dist/src/orgrt/pi-rpc-runner.js +35 -3
  203. package/dist/src/orgrt/pi-rpc-runner.js.map +1 -1
  204. package/dist/src/orgrt/pi-runner.d.ts +25 -2
  205. package/dist/src/orgrt/pi-runner.d.ts.map +1 -1
  206. package/dist/src/orgrt/pi-runner.js +271 -152
  207. package/dist/src/orgrt/pi-runner.js.map +1 -1
  208. package/dist/src/orgrt/policy.d.ts +1 -0
  209. package/dist/src/orgrt/policy.d.ts.map +1 -1
  210. package/dist/src/orgrt/policy.js +199 -39
  211. package/dist/src/orgrt/policy.js.map +1 -1
  212. package/dist/src/orgrt/provider.d.ts +4 -0
  213. package/dist/src/orgrt/provider.d.ts.map +1 -1
  214. package/dist/src/orgrt/provider.js +16 -0
  215. package/dist/src/orgrt/provider.js.map +1 -1
  216. package/dist/src/orgrt/qwen-rpc-runner.d.ts +3 -1
  217. package/dist/src/orgrt/qwen-rpc-runner.d.ts.map +1 -1
  218. package/dist/src/orgrt/qwen-rpc-runner.js +35 -3
  219. package/dist/src/orgrt/qwen-rpc-runner.js.map +1 -1
  220. package/dist/src/orgrt/qwen-runner.d.ts +30 -3
  221. package/dist/src/orgrt/qwen-runner.d.ts.map +1 -1
  222. package/dist/src/orgrt/qwen-runner.js +282 -142
  223. package/dist/src/orgrt/qwen-runner.js.map +1 -1
  224. package/dist/src/orgrt/role-slot.d.ts +88 -0
  225. package/dist/src/orgrt/role-slot.d.ts.map +1 -0
  226. package/dist/src/orgrt/role-slot.js +133 -0
  227. package/dist/src/orgrt/role-slot.js.map +1 -0
  228. package/dist/src/orgrt/runtime-options.d.ts +17 -0
  229. package/dist/src/orgrt/runtime-options.d.ts.map +1 -0
  230. package/dist/src/orgrt/runtime-options.js +32 -0
  231. package/dist/src/orgrt/runtime-options.js.map +1 -0
  232. package/dist/src/orgrt/scheduler-integration.d.ts +11 -0
  233. package/dist/src/orgrt/scheduler-integration.d.ts.map +1 -1
  234. package/dist/src/orgrt/scheduler-integration.js +75 -17
  235. package/dist/src/orgrt/scheduler-integration.js.map +1 -1
  236. package/dist/src/orgrt/scheduler.d.ts +4 -0
  237. package/dist/src/orgrt/scheduler.d.ts.map +1 -1
  238. package/dist/src/orgrt/scheduler.js +7 -1
  239. package/dist/src/orgrt/scheduler.js.map +1 -1
  240. package/dist/src/orgrt/server.d.ts +8 -3
  241. package/dist/src/orgrt/server.d.ts.map +1 -1
  242. package/dist/src/orgrt/server.js +48 -13
  243. package/dist/src/orgrt/server.js.map +1 -1
  244. package/dist/src/orgrt/session.d.ts +26 -2
  245. package/dist/src/orgrt/session.d.ts.map +1 -1
  246. package/dist/src/orgrt/session.js +99 -5
  247. package/dist/src/orgrt/session.js.map +1 -1
  248. package/dist/src/orgrt/task-dag.d.ts +5 -0
  249. package/dist/src/orgrt/task-dag.d.ts.map +1 -1
  250. package/dist/src/orgrt/task-dag.js +41 -0
  251. package/dist/src/orgrt/task-dag.js.map +1 -1
  252. package/dist/src/orgrt/test-loop.js +2 -2
  253. package/dist/src/orgrt/test-loop.js.map +1 -1
  254. package/dist/src/orgrt/types.d.ts +14 -2
  255. package/dist/src/orgrt/types.d.ts.map +1 -1
  256. package/dist/src/orgrt/types.js +15 -1
  257. package/dist/src/orgrt/types.js.map +1 -1
  258. package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
  259. package/dist/src/orgrt/vercel-runner.js +4 -0
  260. package/dist/src/orgrt/vercel-runner.js.map +1 -1
  261. package/dist/src/ui/routes-org.mjs +27 -7
  262. package/dist/src/ui/server.mjs +82 -48
  263. package/dist/tsconfig.tsbuildinfo +1 -1
  264. package/package.json +2 -1
  265. package/dist/src/ui/data/mastermind-sessions.json +0 -1
@@ -1,4 +1,4 @@
1
- <!-- Mastermind brain management — inspect, compact, refresh, and control the three-tier business memory (LanceDB + Monograph) -->
1
+ <!-- Mastermind brain management — inspect, compact, refresh, and control the three-tier business memory (memory store + Monograph) -->
2
2
 
3
3
  **First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing.
4
4
 
@@ -11,9 +11,9 @@ Parse `$ARGUMENTS` to determine the sub-command and flags.
11
11
  Show the current state of all brain tiers across all domains.
12
12
 
13
13
  For each domain that has data, call:
14
- - `mcp__monomind__lancedb_health` on namespace `mastermind:<domain>:raw` → Tier 1 entry count, last write date, archived count
15
- - `mcp__monomind__lancedb_health` on namespace `mastermind:<domain>:weekly` → Tier 2 summary count, last compaction date
16
- - `mcp__monomind__lancedb_health` on namespace `mastermind:principles` → Tier 3 principle count
14
+ - `mcp__monomind__memory_health` on namespace `mastermind:<domain>:raw` → Tier 1 entry count, last write date, archived count
15
+ - `mcp__monomind__memory_health` on namespace `mastermind:<domain>:weekly` → Tier 2 summary count, last compaction date
16
+ - `mcp__monomind__memory_health` on namespace `mastermind:principles` → Tier 3 principle count
17
17
 
18
18
  Display as a table:
19
19
 
@@ -39,9 +39,9 @@ Avg memory score: 0.64 | Entries below archive threshold: 3
39
39
  Force immediate weekly distillation across all domains (or `--domain <name>` for one domain).
40
40
 
41
41
  For each domain (or the specified domain):
42
- 1. Retrieve all Tier 1 raw entries since last compaction via `mcp__monomind__lancedb_hierarchical-recall` (namespace `mastermind:<domain>:raw`)
42
+ 1. Retrieve all Tier 1 raw entries since last compaction via `mcp__monomind__memory_hierarchical-recall` (namespace `mastermind:<domain>:raw`)
43
43
  2. Produce per-domain weekly summary: synthesize decisions, patterns, and lessons into ≤300 words
44
- 3. Store to Tier 2 via `mcp__monomind__lancedb_hierarchical-store` (namespace `mastermind:<domain>:weekly`)
44
+ 3. Store to Tier 2 via `mcp__monomind__memory_hierarchical-store` (namespace `mastermind:<domain>:weekly`)
45
45
  4. Archive Tier 1 entries with score < 0.1 (update metadata: `{ archived: true }`)
46
46
  5. Report: "Compacted <domain>: <N> entries → <M> summary, <K> archived"
47
47
 
@@ -53,8 +53,8 @@ Re-cluster the knowledge graph for a specific domain and rebuild Tier 3 principl
53
53
 
54
54
  1. Call `mcp__monomind__monograph_community` for nodes matching `mastermind:<domain>`
55
55
  2. For any cluster of 3+ similar nodes: merge into a single principle (LLM synthesis)
56
- 3. Store merged principle: `mcp__monomind__lancedb_hierarchical-store` namespace `mastermind:principles`
57
- 4. For conflicting nodes: add `EXCEPTION` edge via `mcp__monomind__monograph_add_fact`
56
+ 3. Store merged principle: `mcp__monomind__memory_hierarchical-store` namespace `mastermind:principles`
57
+ 4. For conflicting nodes: add the exception relation via `mcp__monomind__memory_kg_ingest`
58
58
  5. Report: "Refreshed <domain>: <N> clusters found, <M> principles updated, <K> exceptions noted"
59
59
 
60
60
  ---
@@ -63,9 +63,9 @@ Re-cluster the knowledge graph for a specific domain and rebuild Tier 3 principl
63
63
 
64
64
  Show raw contents of a specific brain tier.
65
65
 
66
- - Tier 1: Call `mcp__monomind__lancedb_hierarchical-recall` on `mastermind:<domain>:raw`, display each entry with its score and date.
67
- - Tier 2: Call `mcp__monomind__lancedb_hierarchical-recall` on `mastermind:<domain>:weekly`, display summaries with dates.
68
- - Tier 3: Call `mcp__monomind__lancedb_hierarchical-recall` on `mastermind:principles`, display all principles.
66
+ - Tier 1: Call `mcp__monomind__memory_hierarchical-recall` on `mastermind:<domain>:raw`, display each entry with its score and date.
67
+ - Tier 2: Call `mcp__monomind__memory_hierarchical-recall` on `mastermind:<domain>:weekly`, display summaries with dates.
68
+ - Tier 3: Call `mcp__monomind__memory_hierarchical-recall` on `mastermind:principles`, display all principles.
69
69
 
70
70
  Default limit: 10. Use `--limit N` to override.
71
71
 
@@ -75,7 +75,7 @@ Default limit: 10. Use `--limit N` to override.
75
75
 
76
76
  Find and archive all brain entries semantically matching the query.
77
77
 
78
- 1. Call `mcp__monomind__lancedb_pattern-search` with query text across all mastermind namespaces
78
+ 1. Call `mcp__monomind__memory_pattern-search` with query text across all mastermind namespaces
79
79
  2. Display matching entries with their scores and domains
80
80
  3. Ask: "Archive these N entries? (yes/no)"
81
81
  4. If yes: update each entry's metadata to `{ archived: true }`
@@ -88,8 +88,8 @@ Find and archive all brain entries semantically matching the query.
88
88
  **Destructive.** Wipes all brain data for a specific domain. Requires `--confirm` flag explicitly — refuse if missing.
89
89
 
90
90
  If `--confirm` is present:
91
- 1. Delete all Tier 1 entries: `mcp__monomind__memory_delete` on namespace `mastermind:<domain>:raw`
92
- 2. Delete all Tier 2 entries: `mcp__monomind__memory_delete` on namespace `mastermind:<domain>:weekly`
91
+ 1. Delete all Tier 1 entries: `npx monomind@latest memory delete --namespace mastermind:<domain>:raw`
92
+ 2. Delete all Tier 2 entries: `npx monomind@latest memory delete --namespace mastermind:<domain>:weekly`
93
93
  3. Remove domain nodes from Monograph graph
94
94
  4. Report: "Reset complete for domain <name>. All memory wiped."
95
95
 
@@ -119,8 +119,8 @@ mcp__monomind__monograph_suggest({ task: "..." })
119
119
  mcp__monomind__monograph_query({ query: "..." })
120
120
 
121
121
  // Swarm
122
- mcp__monomind__swarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })
123
- mcp__monomind__swarm_status({})
122
+ mcp__monomind__monoswarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })
123
+ mcp__monomind__monoswarm_status({})
124
124
 
125
125
  // System
126
126
  mcp__monomind__system_health({})
@@ -91,19 +91,19 @@ digraph mastermind_routing {
91
91
  | Situation | Skill to invoke |
92
92
  |---|---|
93
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")` |
94
+ | Verify a claim — tests pass, feature works, fix resolved | `Skill("mastermind-review")` |
95
+ | Write tests first, enforce Red-Green-Refactor | `Skill("mastermind-debug")` (Phase 4 covers the failing-test-first loop) |
96
96
  | Write a structured implementation plan (no placeholders) | `Skill("mastermind-plan")` |
97
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 |
98
+ | Execute a plan via fresh subagents with 2-stage review | `Skill("mastermind-execute")` |
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-execute")` for plan-driven parallel work |
100
100
  | Ingest a prompt/spec/folder and generate agent-optimized tasks | `Skill("mastermind-createtask")` |
101
101
  | Execute tasks from a task file or monotask board (parallel/sequential/minimal modes, review cycles, loop) | `Skill("mastermind-do")` |
102
102
  | Design first — spec, approaches, approval gate before code | `Skill("mastermind-design")` |
103
- | Build a feature, fix a bug, implement anything | `Skill("mastermind-build")` |
103
+ | Build a feature, fix a bug, implement anything | `Skill("mastermind-plan")` then `Skill("mastermind-execute")` |
104
104
  | Code review, content critique, strategy audit | `Skill("mastermind-review")` |
105
105
  | Receive a code review and apply it correctly | `Skill("mastermind-receive-review")` |
106
- | System architecture, DDD, technical design | `Skill("mastermind-architect")` |
106
+ | System architecture, DDD, technical design | `Skill("mastermind-design")` |
107
107
  | Market research, competitive analysis, user insights | `Skill("mastermind-research")` |
108
108
  | Ideas, feature generation, opportunity framing | `Skill("mastermind-idea")` |
109
109
  | Research ideas, evaluate with PM lens, decompose into subtasks | `Skill("mastermind-ideate")` |
@@ -112,14 +112,13 @@ digraph mastermind_routing {
112
112
  | Sales outreach, proposals, pipeline | `Skill("mastermind-sales")` |
113
113
  | Blog, docs, newsletters, threads | `Skill("mastermind-content")` |
114
114
  | Versioning, changelogs, deployment | `Skill("mastermind-release")` |
115
- | Finish a branch — tests, options menu, merge/PR/discard | `Skill("mastermind-finish")` |
115
+ | Finish a branch — tests, options menu, merge/PR/discard | `Skill("mastermind-review")` |
116
116
  | Workflow, process, reporting | `Skill("mastermind-ops")` |
117
117
  | Invoicing, forecasting, cost | `Skill("mastermind-finance")` |
118
118
  | Inspect or manage brain memory | `Skill("mastermind-brain")` |
119
119
  | Technical portfolio, project state assessment | `Skill("mastermind-techport")` |
120
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")` |
121
+ | Autonomous build + review until clean | `Skill("mastermind-execute")` |
123
122
  | Isolate work in a git worktree | `Skill("mastermind-worktree")` |
124
123
  | Write or improve a mastermind skill | `Skill("mastermind-skill-builder")` |
125
124
 
@@ -182,7 +181,7 @@ These sequences are non-negotiable in all modes:
182
181
  - **When fixing bugs**: `mastermind:debug` first (root cause) → write failing test via `mastermind:tdd` → fix → `mastermind:verify`
183
182
  - **After building**: `mastermind:review` — at minimum one pass before reporting complete
184
183
  - **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
184
+ - **After any run**: Brain Write Procedure — score decisions, append to the memory store
186
185
  - **Before releasing**: `mastermind:review --tillend --auto` → `mastermind:verify` → `mastermind:finish`
187
186
  - **Isolated work**: `mastermind:worktree` before making changes to avoid contaminating main
188
187
  - **Before claiming complete**: Run `mastermind:verify` — never claim completion based on agent reports, linter passes, or partial checks
@@ -292,8 +291,8 @@ project_name="${project_name:-$(basename "$PWD")}"
292
291
 
293
292
  Follow the Brain Load Procedure from `mastermind-protocol/SKILL.md`:
294
293
 
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`
294
+ 1. Call `mcp__monomind__memory_hierarchical-recall` namespace `mastermind:principles` (limit 20)
295
+ 2. For each domain that appears relevant to the prompt, call `mcp__monomind__memory_context-synthesize` namespace `mastermind:<domain>:weekly`
297
296
  3. Call `mcp__monomind__monograph_query` with 3-5 keywords from the prompt
298
297
 
299
298
  Assemble the BRAIN CONTEXT block from results.
@@ -658,9 +657,15 @@ pick_domain_manager() {
658
657
  | {name: .name,
659
658
  score: (
660
659
  (.name | ascii_downcase) as $n |
661
- # Score on ANY keyword match, not just the first
660
+ (.description // "" | ascii_downcase) as $desc |
661
+ # Score keyword matches against both name (weight 2) and description (weight 1) —
662
+ # name match is a stronger signal. Bind each word to $w before contains(): piping
663
+ # into contains(.) rebinds "." to the piped value, which would silently match everything.
662
664
  (if ($kw | length) > 0
663
- then ([$kw | split(" ")[] | select(length > 0) | if ($n | contains(.)) then 1 else 0 end] | add // 0)
665
+ then ([$kw | split(" ")[] | select(length > 0) | . as $w |
666
+ (if ($n | contains($w)) then 2 else 0 end) +
667
+ (if ($desc | contains($w)) then 1 else 0 end)
668
+ ] | add // 0)
664
669
  else 0 end) +
665
670
  (if $n | test("manager|director|coordinator") then 1 else 0 end)
666
671
  )}
@@ -761,7 +766,7 @@ Each Task call must include a complete briefing following the Monotask Task Brie
761
766
  - Instruction to create monotask cards directly using `monotask card create $BOARD_ID $COL_TODO_ID "<title>" --json` for all sub-tasks
762
767
  - Instruction to use `Skill("mastermind-do")` to execute tasks (Task agents have Skill tool access — do NOT use slash command syntax)
763
768
  - 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.
769
+ - **For the `build` domain only:** instruct the manager: "Use `Skill("mastermind-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
770
  - Instruction to return the unified output schema when done
766
771
 
767
772
  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.
@@ -931,7 +936,7 @@ Monotask boards:
931
936
 
932
937
  Follow the Brain Write Procedure from `mastermind-protocol/SKILL.md` for each domain that ran:
933
938
  1. Score all decisions from this run
934
- 2. Append to Tier 1 raw log (LanceDB)
939
+ 2. Append to Tier 1 raw log (the memory store)
935
940
  3. Check and trigger weekly compaction if threshold met
936
941
  4. Check and trigger graph consolidation if cluster detected
937
942
 
@@ -1085,11 +1090,11 @@ Log this as a decision in the cycle's output schema with `confidence` set accord
1085
1090
 
1086
1091
  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
1092
 
1088
- - Test → `Skill("mastermind-tdd")` with the untested artifacts as prompt (enforce Red-Green-Refactor)
1093
+ - Test → `Skill("mastermind-debug")` Phase 4 with the untested artifacts as prompt (write the failing test first, enforce Red-Green-Refactor)
1089
1094
  - Debug/Fix → `Skill("mastermind-debug")` with the failing test or error as prompt (root-cause first, then fix)
1090
1095
  - 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
1096
+ - Improve/Refactor → `Skill("mastermind-plan")` then `Skill("mastermind-execute")` with refactor prompt
1097
+ - Add feature → `Skill("mastermind-plan")` then `Skill("mastermind-execute")` with the next feature from the `next_actions` array printed by the Step 12a output above
1093
1098
  - Research → `Skill("mastermind-research")` with the open question as prompt
1094
1099
  - Content/Docs → `Skill("mastermind-content")` with scope = new artifacts
1095
1100
  - Release → `Skill("mastermind-release")` with project scope
@@ -193,17 +193,17 @@ mcp__monomind__memory_pattern-store({ key: "pattern/auth", value: "JWT + refresh
193
193
  // Search
194
194
  mcp__monomind__memory_pattern-search({ query: "authentication", namespace: "patterns" })
195
195
 
196
- // Retrieve
197
- mcp__monomind__memory_retrieve({ key: "pattern/auth", namespace: "patterns" })
196
+ // Retrieve (CLI only — no MCP tool)
197
+ // npx monomind@latest memory retrieve --key "pattern/auth" --namespace patterns
198
198
 
199
- // List
200
- mcp__monomind__memory_list({ namespace: "patterns" })
199
+ // List (CLI only — no MCP tool)
200
+ // npx monomind@latest memory list --namespace patterns
201
201
 
202
- // Delete
203
- mcp__monomind__memory_delete({ key: "pattern/auth", namespace: "patterns" })
202
+ // Delete (CLI only — no MCP tool)
203
+ // npx monomind@latest memory delete --key "pattern/auth" --namespace patterns
204
204
 
205
- // Stats
206
- mcp__monomind__memory_stats({})
205
+ // Stats (CLI only — no MCP tool)
206
+ // npx monomind@latest memory stats
207
207
  ```
208
208
 
209
209
  ## Common Workflows
@@ -113,16 +113,16 @@ npx monomind monoswarm scale swarm-abc123 --agents 8 --type coder
113
113
 
114
114
  ```javascript
115
115
  // Initialize swarm
116
- mcp__monomind__swarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })
116
+ mcp__monomind__monoswarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })
117
117
 
118
118
  // Check status
119
- mcp__monomind__swarm_status({})
119
+ mcp__monomind__monoswarm_status({})
120
120
 
121
121
  // Health check
122
- mcp__monomind__swarm_health({})
122
+ mcp__monomind__monoswarm_health({})
123
123
 
124
124
  // Shutdown swarm
125
- mcp__monomind__swarm_shutdown({})
125
+ mcp__monomind__monoswarm_shutdown({})
126
126
  ```
127
127
 
128
128
  ## Agent Team Routing
@@ -47,14 +47,14 @@ Match the intent against this catalog. Pick ONE primary route, plus supporting s
47
47
  | Intent | Primary route |
48
48
  |---|---|
49
49
  | Fix a bug, test failure, unexpected behavior | `Skill("mastermind-debug")` → root cause first, then fix |
50
- | Build a feature / implement anything | `Skill("mastermind-design")` → spec, then `Skill("mastermind-build")` |
51
- | Plan before coding | `Skill("mastermind-plan")` (write) / `Skill("mastermind-execute")` or `Skill("mastermind-taskdev")` (run) |
52
- | TDD workflow | `Skill("mastermind-tdd")` |
53
- | Refactor / architecture / DDD / dedup | `Skill("mastermind-architect")` |
50
+ | Build a feature / implement anything | `Skill("mastermind-design")` → spec, then `Skill("mastermind-plan")` → `Skill("mastermind-execute")` |
51
+ | Plan before coding | `Skill("mastermind-plan")` (write) / `Skill("mastermind-execute")` (run) |
52
+ | TDD workflow | `Skill("mastermind-debug")` (Phase 4 covers the failing-test-first loop) |
53
+ | Refactor / architecture / DDD / dedup | `Skill("mastermind-design")` |
54
54
  | Code review, audit quality | `Skill("mastermind-review")`; apply one received: `Skill("mastermind-receive-review")` |
55
- | Verify a claim ("it works", "tests pass") | `Skill("mastermind-verify")` |
56
- | Autonomous improve-loop | `Skill("mastermind-autodev")` (`--tillend` for until-clean) |
57
- | Finish/merge/PR a branch | `Skill("mastermind-finish")`; release/versioning: `Skill("mastermind-release")` |
55
+ | Verify a claim ("it works", "tests pass") | `Skill("mastermind-review")` |
56
+ | Autonomous improve-loop | `Skill("mastermind-execute")`, re-invoking `Skill("mastermind-review")` between passes until clean |
57
+ | Finish/merge/PR a branch | `Skill("mastermind-review")`; release/versioning: `Skill("mastermind-release")` |
58
58
  | Isolate risky work | `Skill("mastermind-worktree")` |
59
59
  | Spec → agent task file/board | `Skill("mastermind-createtask")`, execute with `Skill("mastermind-do")` |
60
60
 
@@ -74,8 +74,8 @@ mcp__monomind__hooks_intelligence_stats({})
74
74
  mcp__monomind__task_summary({})
75
75
  mcp__monomind__progress_summary({})
76
76
 
77
- // LanceDB health (memory integrity)
78
- mcp__monomind__lancedb_health({})
77
+ // Memory store health (memory integrity)
78
+ mcp__monomind__memory_health({})
79
79
  ```
80
80
 
81
81
  ### Performance
@@ -105,7 +105,7 @@ When invoked, run these checks in parallel:
105
105
  mcp__monomind__system_health({})
106
106
  mcp__monomind__agent_health({})
107
107
  mcp__monomind__neural_status({ verbose: true })
108
- mcp__monomind__lancedb_health({})
108
+ mcp__monomind__memory_health({})
109
109
  mcp__monomind__performance_report({ format: "detailed" })
110
110
  ```
111
111
 
@@ -326,10 +326,6 @@
326
326
  }
327
327
  ]
328
328
  },
329
- "attribution": {
330
- "commit": "Co-Authored-By: nokhodian <nokhodian@gmail.com>",
331
- "pr": "\ud83e\udd16 Generated with [monomind](https://github.com/monoes/monomind)"
332
- },
333
329
  "monomind": {
334
330
  "version": "3.5.2",
335
331
  "enabled": true,
@@ -7,30 +7,21 @@ description: Use when a request may need a Mastermind workflow such as planning,
7
7
 
8
8
  Load only the workflow that matches the request:
9
9
 
10
+ - `mastermind-idea` to shape a raw prompt into a stated problem and options.
11
+ - `mastermind-design` before building a feature — this is a gate, not a suggestion.
10
12
  - `mastermind-plan` before multi-file implementation.
13
+ - `mastermind-execute` for a written plan.
11
14
  - `mastermind-review` for audits and critiques.
12
15
  - `mastermind-debug` for failures or unexpected behavior.
13
16
  - `mastermind-research` for open questions.
14
- - `mastermind-execute` for a written plan.
15
17
  - `mastermind-org` for organization lifecycle work.
16
18
  - `mastermind-memory` for persistent knowledge.
17
19
 
20
+ **For build/feature work, the gates are mandatory and ordered:** idea → design → plan →
21
+ execute → review. The full routing table for the other 20+ Mastermind workflows lives in
22
+ `.claude/commands/mastermind-master.md`; consult it before concluding that no workflow applies.
23
+
18
24
  Use Monograph before broad repository search when the platform exposes the
19
25
  Monomind MCP server. Without native skills, run
20
26
  `monomind mastermind run <skill> --print` and follow the printed procedure.
21
27
  Platform tool mappings are in [references/](references/).
22
- # monomind:start skills:claude:mastermind
23
- # Mastermind
24
-
25
- Load only the workflow that matches the current task:
26
- - `mastermind` — Route a request to the relevant Mastermind workflow.
27
- - `mastermind-plan` — Write a detailed implementation plan before changing code.
28
- - `mastermind-review` — Review code, content, strategy, or security work.
29
- - `mastermind-debug` — Investigate a failure or unexpected behavior before fixing it.
30
- - `mastermind-research` — Research an open question before making a decision.
31
- - `mastermind-execute` — Execute a written implementation plan step by step.
32
- - `mastermind-org` — Create, run, inspect, and manage a Mastermind organization.
33
- - `mastermind-memory` — Store, retrieve, and maintain persistent organization knowledge.
34
-
35
- If skills cannot be loaded natively, run `monomind mastermind run <skill> --print`.
36
- # monomind:end skills:claude:mastermind
@@ -58,65 +58,3 @@ Put multiple entries in a single `invoke_subagent` call's `Subagents` array to r
58
58
  Antigravity has **no todo / `TodoWrite` tool** (`manage_task` manages background processes — it is *not* a checklist). When a skill says to create a todo list or track tasks, maintain a **task artifact**: a markdown checklist saved with `write_to_file` (`IsArtifact: true`, `ArtifactMetadata.ArtifactType: "task"`), edited with `replace_file_content` / `multi_replace_file_content` as you go.
59
59
 
60
60
  At the start of any multi-step task, create the task artifact listing every step of your plan. As you complete each step, edit the artifact to mark it done (`- [x]`). If the plan changes, update the checklist. Keep it current — it is your source of truth for what remains; once the conversation gets long, re-read it before starting each step.
61
- # monomind:start skills:claude:mastermind:references/antigravity-tools.md
62
- # Antigravity CLI (`agy`) Tool Mapping
63
-
64
- Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On the Antigravity CLI (`agy`) these resolve to the tools below.
65
-
66
- | Action skills request | Antigravity CLI equivalent |
67
- |----------------------|----------------------|
68
- | Read a file | `view_file` |
69
- | Create a new file | `write_to_file` |
70
- | Edit a file | `replace_file_content` |
71
- | Edit a file in several places at once | `multi_replace_file_content` |
72
- | Run a shell command | `run_command` |
73
- | Search file contents | `grep_search` |
74
- | Find files by name / list a directory | `list_dir` (no dedicated glob tool — combine `list_dir` with `grep_search`) |
75
- | Fetch a URL | `read_url_content` |
76
- | Search the web | `search_web` |
77
- | Pose a structured question to your human partner | `ask_question` |
78
- | Dispatch a subagent (`Subagent (general-purpose):` template) | `invoke_subagent` with a built-in `TypeName` — `self` for full-capability work, `research` for read-only (see [Subagent support](#subagent-support)) |
79
- | Multiple parallel dispatches | Multiple entries in one `invoke_subagent` call's `Subagents` array |
80
- | Task tracking ("create a todo", "mark complete") | a **task artifact** — `write_to_file` with `IsArtifact: true` and `ArtifactType: "task"` (see [Task tracking](#task-tracking)). **Not** `manage_task`, which manages background processes. |
81
-
82
- ## Invoking a skill — read its `SKILL.md`
83
-
84
- Antigravity surfaces every installed skill's `name` + `description` to you at the start of each session, but it has **no `Skill`/`activate_skill` tool**. To load a skill, **read its `SKILL.md` with `view_file`, setting `IsSkillFile: true`** when the skill applies — e.g. `view_file` on `.../mastermind/skills/<skill-name>/SKILL.md` with `IsSkillFile: true`.
85
-
86
- (`IsSkillFile` is agy's own signal that you're reading a file to *execute its instructions*, not to edit or preview it — set it whenever you load a skill.)
87
-
88
- This is the blessed skill-loading mechanism on this harness. The general rule "never read skill files manually" means "don't bypass your platform's skill-loading mechanism" — and on Antigravity, reading `SKILL.md` *is* that mechanism. Reading it honors the rule rather than breaking it.
89
-
90
- You already know which skills exist and what they're for: their names and descriptions are in front of you at session start. When a description matches what you're about to do, read that skill's `SKILL.md` before acting.
91
-
92
- ## Subagent support
93
-
94
- Antigravity dispatches subagents with `invoke_subagent`, passing each one a `TypeName` in the `Subagents` array. Two `TypeName`s are **built in** — use them directly, no `define_subagent` needed:
95
-
96
- - **`self`** — a full clone of you, with every tool you have (including `write_to_file`/`replace_file_content`/`run_command`). The safe default for general-purpose work: implementing, fixing, anything that edits files or runs commands.
97
- - **`research`** — read-only (file reading, `grep_search`, web/URL fetch; no write or command access). Use it when you specifically want a subagent that can't make changes — investigation and read-only review.
98
-
99
- Call `define_subagent` only for a custom system prompt or capability mix: set `enable_write_tools: true` to grant file edits **and** `run_command`, `enable_subagent_tools` for nested dispatch, `enable_mcp_tools` for MCP. Then invoke it by the name you gave it.
100
-
101
- Skills dispatch with `Subagent (general-purpose):` and either reference a prompt-template file or supply an inline prompt. On Antigravity:
102
-
103
- | Skill dispatch form | Antigravity equivalent |
104
- |---------------------|----------------------|
105
- | An implementer-style template (writes code, runs tests) | Fill the template, then `invoke_subagent` with `TypeName: "self"` and the filled prompt |
106
- | A read-only reviewer template (`mastermind:review`) | `invoke_subagent` with `TypeName: "research"` and the filled review template |
107
- | Inline prompt (no template referenced) | `invoke_subagent` with `TypeName: "self"` (or `"research"` if the task only reads) and your inline prompt |
108
-
109
- ### Prompt filling
110
-
111
- Skills provide prompt templates with placeholders like `{WHAT_WAS_IMPLEMENTED}` or `[FULL TEXT of task]`. Fill all placeholders before passing the complete prompt to `invoke_subagent`. The prompt template itself contains the agent's role, review criteria, and expected output format — the subagent will follow it.
112
-
113
- ### Parallel dispatch
114
-
115
- Put multiple entries in a single `invoke_subagent` call's `Subagents` array to run independent subagent work in parallel. Keep dependent tasks sequential, but do not serialize independent subagent tasks just to preserve a simpler history.
116
-
117
- ## Task tracking
118
-
119
- Antigravity has **no todo / `TodoWrite` tool** (`manage_task` manages background processes — it is *not* a checklist). When a skill says to create a todo list or track tasks, maintain a **task artifact**: a markdown checklist saved with `write_to_file` (`IsArtifact: true`, `ArtifactMetadata.ArtifactType: "task"`), edited with `replace_file_content` / `multi_replace_file_content` as you go.
120
-
121
- At the start of any multi-step task, create the task artifact listing every step of your plan. As you complete each step, edit the artifact to mark it done (`- [x]`). If the plan changes, update the checklist. Keep it current — it is your source of truth for what remains; once the conversation gets long, re-read it before starting each step.
122
- # monomind:end skills:claude:mastermind:references/antigravity-tools.md
@@ -48,55 +48,3 @@ For path-scoped rules and larger-project organization, see `.claude/rules/` (rul
48
48
  ## Personal skills directory
49
49
 
50
50
  User-level skills live at **`~/.claude/skills/`**. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter) plus any supporting files. Claude Code does not currently recognize the cross-runtime `~/.agents/skills/` path that Codex, Copilot CLI, and Gemini CLI read; if you're relying on cross-runtime support in the future, verify against the official skills docs.
51
- # monomind:start skills:claude:mastermind:references/claude-code-tools.md
52
- # Claude Code Tool Mapping
53
-
54
- Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Claude Code these resolve to the tools below.
55
-
56
- ## Tools
57
-
58
- | Action skills request | Claude Code tool |
59
- |----------------------|------------------|
60
- | Read a file | `Read` |
61
- | Create a new file | `Write` |
62
- | Edit a file | `Edit` |
63
- | Run a shell command | `Bash` |
64
- | Search file contents | `Grep` |
65
- | Find files by name | `Glob` |
66
- | Fetch a URL | `WebFetch` |
67
- | Search the web | `WebSearch` |
68
- | Invoke a skill | `Skill` |
69
- | Dispatch a subagent (`Subagent (general-purpose):` template) | `Agent` (older releases named this `Task`) |
70
- | Multiple parallel dispatches | Multiple `Agent` calls in one response |
71
- | Task tracking ("create a todo", "mark complete") | `TaskCreate`, `TaskUpdate`, `TaskList`, `TaskGet`; `TodoWrite` in `claude -p` / Agent SDK unless `CLAUDE_CODE_ENABLE_TASKS=1` is set |
72
- | Background-process / subagent lifecycle (read output, cancel) | `TaskOutput`, `TaskStop` — these are distinct from the todo tools above and apply to running shells, agents, and remote sessions |
73
-
74
- ## Instructions file
75
-
76
- When a skill mentions "your instructions file", on Claude Code this is **`CLAUDE.md`**. Claude Code walks up the directory tree from the current working directory and concatenates every `CLAUDE.md` and `CLAUDE.local.md` it finds along the way. Standard locations:
77
-
78
- | Scope | Location |
79
- |-------|----------|
80
- | Project (team-shared) | `./CLAUDE.md` or `./.claude/CLAUDE.md` |
81
- | User global | `~/.claude/CLAUDE.md` |
82
- | Local-private (gitignored) | `./CLAUDE.local.md` |
83
- | Managed policy (org-wide) | `/Library/Application Support/ClaudeCode/CLAUDE.md` (macOS), `/etc/claude-code/CLAUDE.md` (Linux/WSL), `C:\Program Files\ClaudeCode\CLAUDE.md` (Windows) |
84
-
85
- CLAUDE.md files can pull in additional content with `@path/to/file` imports (relative or absolute, max five hops deep). Subdirectory `CLAUDE.md` files are also discovered automatically and loaded on-demand when Claude Code reads files in those subdirectories.
86
-
87
- Claude Code does **not** read `AGENTS.md` directly. If a project already maintains `AGENTS.md` for other agents, import it from `CLAUDE.md` so both runtimes share the same instructions:
88
-
89
- ```markdown
90
- @AGENTS.md
91
-
92
- ## Claude Code
93
-
94
- (Claude-Code-specific instructions go here.)
95
- ```
96
-
97
- For path-scoped rules and larger-project organization, see `.claude/rules/` (rules can be scoped to specific files via `paths` frontmatter and load on demand).
98
-
99
- ## Personal skills directory
100
-
101
- User-level skills live at **`~/.claude/skills/`**. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter) plus any supporting files. Claude Code does not currently recognize the cross-runtime `~/.agents/skills/` path that Codex, Copilot CLI, and Gemini CLI read; if you're relying on cross-runtime support in the future, verify against the official skills docs.
102
- # monomind:end skills:claude:mastermind:references/claude-code-tools.md
@@ -62,69 +62,3 @@ When the sandbox blocks branch/push operations (detached HEAD in an externally m
62
62
  - **"Hand off to local"** — transfers work to the user's local checkout
63
63
 
64
64
  The agent can still run tests, stage files, and output suggested branch names, commit messages, and PR descriptions for the user to copy.
65
- # monomind:start skills:claude:mastermind:references/codex-tools.md
66
- # Codex Tool Mapping
67
-
68
- Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Codex these resolve to the tools below.
69
-
70
- | Action skills request | Codex equivalent |
71
- |----------------------|------------------|
72
- | Read a file | `shell` (e.g., `cat`, `head`, `tail`) — Codex reads files via shell |
73
- | Create / edit / delete a file | `apply_patch` (structured diff for create, update, delete) |
74
- | Run a shell command | `shell` |
75
- | Search file contents | `shell` (e.g., `grep`, `rg`) |
76
- | Find files by name | `shell` (e.g., `find`, `ls`) |
77
- | Fetch a URL | `shell` with `curl` / `wget` — Codex has no native fetch tool |
78
- | Search the web | `web_search` (enabled by default; configurable in `config.toml` via the top-level `web_search` setting — `live`, `cached`, or `disabled`) |
79
- | Invoke a skill | Skills load natively — just follow the instructions |
80
- | Dispatch a subagent (`Subagent (general-purpose):` template) | `spawn_agent` (see [Subagent dispatch requires multi-agent support](#subagent-dispatch-requires-multi-agent-support)) |
81
- | Multiple parallel dispatches | Multiple `spawn_agent` calls in one response |
82
- | Wait for subagent result | `wait_agent` |
83
- | Free up subagent slot when done | `close_agent` |
84
- | Task tracking ("create a todo", "mark complete") | `update_plan` |
85
-
86
- ## Instructions file
87
-
88
- When a skill mentions "your instructions file", on Codex this is **`AGENTS.md`** at the project root. Codex also reads `~/.codex/AGENTS.md` for global context, and an `AGENTS.override.md` (in the project tree or `~/.codex/`) takes precedence when present. Codex walks from the project root down to the current working directory, concatenating `AGENTS.md` files it finds along the way, up to `project_doc_max_bytes` (32 KiB by default).
89
-
90
- ## Personal skills directory
91
-
92
- User-level skills live at **`$CODEX_HOME/skills/`** (default `~/.codex/skills/`). Codex also reads the cross-runtime path **`~/.agents/skills/`** (shared with Copilot CLI and Gemini CLI). When both directories exist at the same scope, Codex loads them both as separate skill catalogs. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter).
93
-
94
- ## Subagent dispatch requires multi-agent support
95
-
96
- Add to your Codex config (`~/.codex/config.toml`):
97
-
98
- ```toml
99
- [features]
100
- multi_agent = true
101
- ```
102
-
103
- This enables `spawn_agent`, `wait_agent`, and `close_agent` for skills like `mastermind:taskdev` and `mastermind:review`.
104
-
105
- Legacy note: Codex builds before `rust-v0.115.0` exposed spawned-agent waiting as `wait`. Current Codex uses `wait_agent` for spawned agents. The `wait` name now belongs to code-mode `exec/wait`, which resumes a yielded exec cell by `cell_id`; it is not the spawned-agent result tool.
106
-
107
- ## Environment Detection
108
-
109
- Skills that create worktrees or finish branches should detect their environment with read-only git commands before proceeding:
110
-
111
- ```bash
112
- GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
113
- GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
114
- BRANCH=$(git branch --show-current)
115
- ```
116
-
117
- - `GIT_DIR != GIT_COMMON` → already in a linked worktree (skip creation)
118
- - `BRANCH` empty → detached HEAD (cannot branch/push/PR from sandbox)
119
-
120
- See `mastermind:worktree` Step 0 and `mastermind:finish` Step 1 for how each skill uses these signals.
121
-
122
- ## Codex App Finishing
123
-
124
- When the sandbox blocks branch/push operations (detached HEAD in an externally managed worktree), the agent commits all work and informs the user to use the App's native controls:
125
-
126
- - **"Create branch"** — names the branch, then commit/push/PR via App UI
127
- - **"Hand off to local"** — transfers work to the user's local checkout
128
-
129
- The agent can still run tests, stage files, and output suggested branch names, commit messages, and PR descriptions for the user to copy.
130
- # monomind:end skills:claude:mastermind:references/codex-tools.md
@@ -47,54 +47,3 @@ Copilot CLI supports persistent async shell sessions:
47
47
  | `sql` | Query the session's SQLite database (todos, metadata) |
48
48
  | `fetch_copilot_cli_documentation` | Look up Copilot CLI documentation |
49
49
  | GitHub MCP tools (`github-mcp-server-*`) | Native GitHub API access (issues, PRs, code search) |
50
- # monomind:start skills:claude:mastermind:references/copilot-tools.md
51
- # Copilot CLI Tool Mapping
52
-
53
- Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Copilot CLI these resolve to the tools below.
54
-
55
- | Action skills request | Copilot CLI equivalent |
56
- |----------------------|----------------------|
57
- | Read a file | `view` |
58
- | Create / edit / delete a file | `apply_patch` (Copilot CLI has no separate create/edit/write tools) |
59
- | Run a shell command | `bash` |
60
- | Search file contents | `rg` (ripgrep; Copilot CLI does not expose a `grep` tool) |
61
- | Find files by name | `glob` |
62
- | Fetch a URL | `web_fetch` |
63
- | Search the web | `web_search` |
64
- | Invoke a skill | `skill` |
65
- | Dispatch a subagent (`Subagent (general-purpose):` template) | `task` with `agent_type: "general-purpose"` (other accepted types: `explore`, `task`, `code-review`, `research`, `configure-copilot`) |
66
- | Multiple parallel dispatches | Multiple `task` calls in one response |
67
- | Subagent status/output/control | `read_agent`, `list_agents`, `write_agent` |
68
- | Task tracking ("create a todo", "mark complete") | `update_todo` |
69
- | Enter / exit plan mode | No equivalent — stay in the main session |
70
-
71
- ## Instructions file
72
-
73
- When a skill mentions "your instructions file", on Copilot CLI this is **`AGENTS.md`** at the repository root. If both `AGENTS.md` and `.github/copilot-instructions.md` are present, Copilot reads both.
74
-
75
- ## Personal skills directory
76
-
77
- User-level skills live at **`~/.copilot/skills/`**. Copilot CLI also recognizes the cross-runtime alias **`~/.agents/skills/`**, which is shared with Codex and Gemini CLI. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter).
78
-
79
- ## Async shell sessions
80
-
81
- Copilot CLI supports persistent async shell sessions:
82
-
83
- | Tool | Purpose |
84
- |------|---------|
85
- | `bash` with `mode: "async"` (and optionally `detach: true`) | Start a long-running command in the background; returns a `shellId` |
86
- | `write_bash` | Send input to a running async session |
87
- | `read_bash` | Read output from an async session |
88
- | `stop_bash` | Terminate an async session |
89
- | `list_bash` | List all active shell sessions |
90
-
91
- ## Additional Copilot CLI tools
92
-
93
- | Tool | Purpose |
94
- |------|---------|
95
- | `store_memory` | Persist facts about the codebase for future sessions |
96
- | `report_intent` | Update the UI status line with current intent |
97
- | `sql` | Query the session's SQLite database (todos, metadata) |
98
- | `fetch_copilot_cli_documentation` | Look up Copilot CLI documentation |
99
- | GitHub MCP tools (`github-mcp-server-*`) | Native GitHub API access (issues, PRs, code search) |
100
- # monomind:end skills:claude:mastermind:references/copilot-tools.md