monomind 1.11.13 → 1.11.14

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 (231) hide show
  1. package/.claude/commands/mastermind/idea.md +1 -1
  2. package/.claude/commands/mastermind/master.md +1 -1
  3. package/.claude/scheduled_tasks.lock +1 -1
  4. package/.claude/skills/mastermind/_protocol.md +4 -4
  5. package/.claude/skills/mastermind/architect.md +4 -7
  6. package/.claude/skills/mastermind/autodev.md +2 -4
  7. package/.claude/skills/mastermind/build.md +3 -3
  8. package/.claude/skills/mastermind/content.md +3 -3
  9. package/.claude/skills/mastermind/createorg.md +2 -2
  10. package/.claude/skills/mastermind/finance.md +3 -3
  11. package/.claude/skills/mastermind/idea.md +0 -8
  12. package/.claude/skills/mastermind/marketing.md +3 -3
  13. package/.claude/skills/mastermind/monitor.md +2 -2
  14. package/.claude/skills/mastermind/ops.md +3 -3
  15. package/.claude/skills/mastermind/release.md +3 -3
  16. package/.claude/skills/mastermind/research.md +3 -3
  17. package/.claude/skills/mastermind/review.md +3 -3
  18. package/.claude/skills/mastermind/sales.md +3 -3
  19. package/README.md +286 -129
  20. package/package.json +2 -2
  21. package/packages/@monomind/cli/README.md +286 -129
  22. package/packages/@monomind/cli/bundled-graph/dist/src/build.js +73 -0
  23. package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js +120 -0
  24. package/packages/@monomind/cli/bundled-graph/package.json +57 -0
  25. package/packages/@monomind/cli/dist/src/agents/halt-signal.d.ts +25 -0
  26. package/packages/@monomind/cli/dist/src/agents/halt-signal.js +76 -0
  27. package/packages/@monomind/cli/dist/src/agents/index.d.ts +18 -0
  28. package/packages/@monomind/cli/dist/src/agents/index.js +13 -0
  29. package/packages/@monomind/cli/dist/src/agents/managed-agent.d.ts +41 -0
  30. package/packages/@monomind/cli/dist/src/agents/managed-agent.js +69 -0
  31. package/packages/@monomind/cli/dist/src/agents/prompt-experiment.d.ts +23 -0
  32. package/packages/@monomind/cli/dist/src/agents/prompt-experiment.js +49 -0
  33. package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.d.ts +22 -0
  34. package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.js +80 -0
  35. package/packages/@monomind/cli/dist/src/agents/registry-query.d.ts +71 -0
  36. package/packages/@monomind/cli/dist/src/agents/registry-query.js +125 -0
  37. package/packages/@monomind/cli/dist/src/agents/score-decay.d.ts +19 -0
  38. package/packages/@monomind/cli/dist/src/agents/score-decay.js +22 -0
  39. package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.d.ts +13 -0
  40. package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.js +40 -0
  41. package/packages/@monomind/cli/dist/src/agents/specialization-scorer.d.ts +54 -0
  42. package/packages/@monomind/cli/dist/src/agents/specialization-scorer.js +212 -0
  43. package/packages/@monomind/cli/dist/src/agents/termination-watcher.d.ts +30 -0
  44. package/packages/@monomind/cli/dist/src/agents/termination-watcher.js +84 -0
  45. package/packages/@monomind/cli/dist/src/agents/trigger-index.d.ts +20 -0
  46. package/packages/@monomind/cli/dist/src/agents/trigger-index.js +38 -0
  47. package/packages/@monomind/cli/dist/src/agents/trigger-scanner.d.ts +64 -0
  48. package/packages/@monomind/cli/dist/src/agents/trigger-scanner.js +308 -0
  49. package/packages/@monomind/cli/dist/src/agents/version-diff.d.ts +18 -0
  50. package/packages/@monomind/cli/dist/src/agents/version-diff.js +64 -0
  51. package/packages/@monomind/cli/dist/src/agents/version-store.d.ts +60 -0
  52. package/packages/@monomind/cli/dist/src/agents/version-store.js +235 -0
  53. package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.d.ts +45 -0
  54. package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.js +404 -0
  55. package/packages/@monomind/cli/dist/src/commands/agent-wasm.d.ts +14 -0
  56. package/packages/@monomind/cli/dist/src/commands/agent-wasm.js +333 -0
  57. package/packages/@monomind/cli/dist/src/commands/doctor.js +55 -1
  58. package/packages/@monomind/cli/dist/src/commands/ui.js +68 -0
  59. package/packages/@monomind/cli/dist/src/consensus/index.d.ts +7 -0
  60. package/packages/@monomind/cli/dist/src/consensus/index.js +6 -0
  61. package/packages/@monomind/cli/dist/src/context/context-provider.d.ts +44 -0
  62. package/packages/@monomind/cli/dist/src/context/context-provider.js +25 -0
  63. package/packages/@monomind/cli/dist/src/context/git-state-provider.d.ts +12 -0
  64. package/packages/@monomind/cli/dist/src/context/git-state-provider.js +34 -0
  65. package/packages/@monomind/cli/dist/src/context/index.d.ts +12 -0
  66. package/packages/@monomind/cli/dist/src/context/index.js +12 -0
  67. package/packages/@monomind/cli/dist/src/context/project-conventions-provider.d.ts +15 -0
  68. package/packages/@monomind/cli/dist/src/context/project-conventions-provider.js +19 -0
  69. package/packages/@monomind/cli/dist/src/context/prompt-assembler.d.ts +26 -0
  70. package/packages/@monomind/cli/dist/src/context/prompt-assembler.js +93 -0
  71. package/packages/@monomind/cli/dist/src/context/task-history-provider.d.ts +24 -0
  72. package/packages/@monomind/cli/dist/src/context/task-history-provider.js +32 -0
  73. package/packages/@monomind/cli/dist/src/context/user-preferences-provider.d.ts +14 -0
  74. package/packages/@monomind/cli/dist/src/context/user-preferences-provider.js +27 -0
  75. package/packages/@monomind/cli/dist/src/dlq/dlq-reader.d.ts +31 -0
  76. package/packages/@monomind/cli/dist/src/dlq/dlq-reader.js +81 -0
  77. package/packages/@monomind/cli/dist/src/dlq/dlq-writer.d.ts +24 -0
  78. package/packages/@monomind/cli/dist/src/dlq/dlq-writer.js +65 -0
  79. package/packages/@monomind/cli/dist/src/dlq/index.d.ts +10 -0
  80. package/packages/@monomind/cli/dist/src/dlq/index.js +7 -0
  81. package/packages/@monomind/cli/dist/src/eval/dataset-manager.d.ts +33 -0
  82. package/packages/@monomind/cli/dist/src/eval/dataset-manager.js +107 -0
  83. package/packages/@monomind/cli/dist/src/eval/dataset-runner.d.ts +23 -0
  84. package/packages/@monomind/cli/dist/src/eval/dataset-runner.js +59 -0
  85. package/packages/@monomind/cli/dist/src/eval/index.d.ts +10 -0
  86. package/packages/@monomind/cli/dist/src/eval/index.js +7 -0
  87. package/packages/@monomind/cli/dist/src/eval/trace-collector.d.ts +40 -0
  88. package/packages/@monomind/cli/dist/src/eval/trace-collector.js +102 -0
  89. package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
  90. package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
  91. package/packages/@monomind/cli/dist/src/init/statusline-generator.js +3 -3
  92. package/packages/@monomind/cli/dist/src/interactive/interrupt.d.ts +22 -0
  93. package/packages/@monomind/cli/dist/src/interactive/interrupt.js +71 -0
  94. package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.d.ts +25 -0
  95. package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.js +48 -0
  96. package/packages/@monomind/cli/dist/src/mcp/tool-registry.d.ts +61 -0
  97. package/packages/@monomind/cli/dist/src/mcp/tool-registry.js +246 -0
  98. package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
  99. package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.js +230 -0
  100. package/packages/@monomind/cli/dist/src/model/complexity-scorer.d.ts +21 -0
  101. package/packages/@monomind/cli/dist/src/model/complexity-scorer.js +106 -0
  102. package/packages/@monomind/cli/dist/src/model/index.d.ts +4 -0
  103. package/packages/@monomind/cli/dist/src/model/index.js +4 -0
  104. package/packages/@monomind/cli/dist/src/model/model-settings.d.ts +22 -0
  105. package/packages/@monomind/cli/dist/src/model/model-settings.js +33 -0
  106. package/packages/@monomind/cli/dist/src/model/model-tier-resolver.d.ts +24 -0
  107. package/packages/@monomind/cli/dist/src/model/model-tier-resolver.js +65 -0
  108. package/packages/@monomind/cli/dist/src/monovector/capabilities.d.ts +34 -0
  109. package/packages/@monomind/cli/dist/src/monovector/capabilities.js +37 -0
  110. package/packages/@monomind/cli/dist/src/observability/replay-reader.d.ts +1 -1
  111. package/packages/@monomind/cli/dist/src/orchestration/index.d.ts +7 -0
  112. package/packages/@monomind/cli/dist/src/orchestration/index.js +6 -0
  113. package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.d.ts +11 -0
  114. package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.js +31 -0
  115. package/packages/@monomind/cli/dist/src/orchestration/routing-modes.d.ts +68 -0
  116. package/packages/@monomind/cli/dist/src/orchestration/routing-modes.js +180 -0
  117. package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
  118. package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
  119. package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
  120. package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.js +188 -0
  121. package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
  122. package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
  123. package/packages/@monomind/cli/dist/src/runtime/headless.d.ts +60 -0
  124. package/packages/@monomind/cli/dist/src/runtime/headless.js +284 -0
  125. package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.d.ts +50 -0
  126. package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.js +95 -0
  127. package/packages/@monomind/cli/dist/src/services/container-worker-pool.d.ts +197 -0
  128. package/packages/@monomind/cli/dist/src/services/container-worker-pool.js +623 -0
  129. package/packages/@monomind/cli/dist/src/services/index.d.ts +13 -0
  130. package/packages/@monomind/cli/dist/src/services/index.js +11 -0
  131. package/packages/@monomind/cli/dist/src/services/worker-queue.d.ts +201 -0
  132. package/packages/@monomind/cli/dist/src/services/worker-queue.js +594 -0
  133. package/packages/@monomind/cli/dist/src/swarm/communication-graph.d.ts +25 -0
  134. package/packages/@monomind/cli/dist/src/swarm/communication-graph.js +77 -0
  135. package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.d.ts +31 -0
  136. package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.js +61 -0
  137. package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.d.ts +19 -0
  138. package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.js +68 -0
  139. package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
  140. package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.js +205 -0
  141. package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
  142. package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
  143. package/packages/@monomind/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
  144. package/packages/@monomind/cli/dist/src/transfer/test-seraphine.js +105 -0
  145. package/packages/@monomind/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
  146. package/packages/@monomind/cli/dist/src/transfer/tests/test-store.js +214 -0
  147. package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.d.ts +10 -0
  148. package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.js +82 -0
  149. package/packages/@monomind/cli/dist/src/workflow/context-resolver.d.ts +12 -0
  150. package/packages/@monomind/cli/dist/src/workflow/context-resolver.js +23 -0
  151. package/packages/@monomind/cli/dist/src/workflow/dag-builder.d.ts +17 -0
  152. package/packages/@monomind/cli/dist/src/workflow/dag-builder.js +129 -0
  153. package/packages/@monomind/cli/dist/src/workflow/dag-executor.d.ts +9 -0
  154. package/packages/@monomind/cli/dist/src/workflow/dag-executor.js +116 -0
  155. package/packages/@monomind/cli/dist/src/workflow/dag-types.d.ts +41 -0
  156. package/packages/@monomind/cli/dist/src/workflow/dag-types.js +8 -0
  157. package/packages/@monomind/cli/dist/src/workflow/dsl-parser.d.ts +12 -0
  158. package/packages/@monomind/cli/dist/src/workflow/dsl-parser.js +20 -0
  159. package/packages/@monomind/cli/dist/src/workflow/dsl-schema.d.ts +165 -0
  160. package/packages/@monomind/cli/dist/src/workflow/dsl-schema.js +82 -0
  161. package/packages/@monomind/cli/dist/src/workflow/index.d.ts +13 -0
  162. package/packages/@monomind/cli/dist/src/workflow/index.js +11 -0
  163. package/packages/@monomind/cli/dist/src/workflow/template-engine.d.ts +11 -0
  164. package/packages/@monomind/cli/dist/src/workflow/template-engine.js +40 -0
  165. package/packages/@monomind/cli/dist/src/workflow/workflow-executor.d.ts +29 -0
  166. package/packages/@monomind/cli/dist/src/workflow/workflow-executor.js +227 -0
  167. package/packages/@monomind/cli/package.json +9 -9
  168. package/packages/@monomind/guidance/dist/adversarial.d.ts +284 -0
  169. package/packages/@monomind/guidance/dist/adversarial.js +572 -0
  170. package/packages/@monomind/guidance/dist/analyzer.d.ts +530 -0
  171. package/packages/@monomind/guidance/dist/analyzer.js +2518 -0
  172. package/packages/@monomind/guidance/dist/artifacts.d.ts +283 -0
  173. package/packages/@monomind/guidance/dist/artifacts.js +356 -0
  174. package/packages/@monomind/guidance/dist/authority.d.ts +290 -0
  175. package/packages/@monomind/guidance/dist/authority.js +558 -0
  176. package/packages/@monomind/guidance/dist/capabilities.d.ts +209 -0
  177. package/packages/@monomind/guidance/dist/capabilities.js +485 -0
  178. package/packages/@monomind/guidance/dist/coherence.d.ts +233 -0
  179. package/packages/@monomind/guidance/dist/coherence.js +372 -0
  180. package/packages/@monomind/guidance/dist/compiler.d.ts +87 -0
  181. package/packages/@monomind/guidance/dist/compiler.js +419 -0
  182. package/packages/@monomind/guidance/dist/conformance-kit.d.ts +225 -0
  183. package/packages/@monomind/guidance/dist/conformance-kit.js +629 -0
  184. package/packages/@monomind/guidance/dist/continue-gate.d.ts +214 -0
  185. package/packages/@monomind/guidance/dist/continue-gate.js +353 -0
  186. package/packages/@monomind/guidance/dist/crypto-utils.d.ts +17 -0
  187. package/packages/@monomind/guidance/dist/crypto-utils.js +24 -0
  188. package/packages/@monomind/guidance/dist/evolution.d.ts +282 -0
  189. package/packages/@monomind/guidance/dist/evolution.js +500 -0
  190. package/packages/@monomind/guidance/dist/gates.d.ts +79 -0
  191. package/packages/@monomind/guidance/dist/gates.js +302 -0
  192. package/packages/@monomind/guidance/dist/gateway.d.ts +206 -0
  193. package/packages/@monomind/guidance/dist/gateway.js +452 -0
  194. package/packages/@monomind/guidance/dist/generators.d.ts +153 -0
  195. package/packages/@monomind/guidance/dist/generators.js +682 -0
  196. package/packages/@monomind/guidance/dist/headless.d.ts +177 -0
  197. package/packages/@monomind/guidance/dist/headless.js +342 -0
  198. package/packages/@monomind/guidance/dist/hooks.d.ts +109 -0
  199. package/packages/@monomind/guidance/dist/hooks.js +347 -0
  200. package/packages/@monomind/guidance/dist/index.d.ts +205 -0
  201. package/packages/@monomind/guidance/dist/index.js +321 -0
  202. package/packages/@monomind/guidance/dist/ledger.d.ts +162 -0
  203. package/packages/@monomind/guidance/dist/ledger.js +375 -0
  204. package/packages/@monomind/guidance/dist/manifest-validator.d.ts +289 -0
  205. package/packages/@monomind/guidance/dist/manifest-validator.js +838 -0
  206. package/packages/@monomind/guidance/dist/memory-gate.d.ts +222 -0
  207. package/packages/@monomind/guidance/dist/memory-gate.js +382 -0
  208. package/packages/@monomind/guidance/dist/meta-governance.d.ts +265 -0
  209. package/packages/@monomind/guidance/dist/meta-governance.js +348 -0
  210. package/packages/@monomind/guidance/dist/optimizer.d.ts +104 -0
  211. package/packages/@monomind/guidance/dist/optimizer.js +329 -0
  212. package/packages/@monomind/guidance/dist/persistence.d.ts +189 -0
  213. package/packages/@monomind/guidance/dist/persistence.js +464 -0
  214. package/packages/@monomind/guidance/dist/proof.d.ts +185 -0
  215. package/packages/@monomind/guidance/dist/proof.js +238 -0
  216. package/packages/@monomind/guidance/dist/retriever.d.ts +116 -0
  217. package/packages/@monomind/guidance/dist/retriever.js +394 -0
  218. package/packages/@monomind/guidance/dist/ruvbot-integration.d.ts +370 -0
  219. package/packages/@monomind/guidance/dist/ruvbot-integration.js +738 -0
  220. package/packages/@monomind/guidance/dist/temporal.d.ts +426 -0
  221. package/packages/@monomind/guidance/dist/temporal.js +658 -0
  222. package/packages/@monomind/guidance/dist/trust.d.ts +283 -0
  223. package/packages/@monomind/guidance/dist/trust.js +473 -0
  224. package/packages/@monomind/guidance/dist/truth-anchors.d.ts +276 -0
  225. package/packages/@monomind/guidance/dist/truth-anchors.js +488 -0
  226. package/packages/@monomind/guidance/dist/types.d.ts +378 -0
  227. package/packages/@monomind/guidance/dist/types.js +10 -0
  228. package/packages/@monomind/guidance/dist/uncertainty.d.ts +372 -0
  229. package/packages/@monomind/guidance/dist/uncertainty.js +619 -0
  230. package/packages/@monomind/guidance/dist/wasm-kernel.d.ts +48 -0
  231. package/packages/@monomind/guidance/dist/wasm-kernel.js +158 -0
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind Mascot" width="160" />
2
+ <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="140" />
3
3
  </p>
4
4
 
5
5
  <h1 align="center">Monomind</h1>
6
6
 
7
7
  <p align="center">
8
- <strong>The autonomous Claude Code orchestration layer.</strong><br/>
9
- Research Build Review Repeat. While you sleep.
8
+ <strong>Hire an AI team. Set a goal. Walk away.</strong><br/>
9
+ Autonomous Claude Code orchestration with persistent memory, self-coordinating agent orgs, and a codebase knowledge graph.
10
10
  </p>
11
11
 
12
12
  <p align="center">
@@ -19,169 +19,283 @@
19
19
  </p>
20
20
 
21
21
  <p align="center">
22
- <a href="https://monoes.github.io/monomind/">📖 Docs</a> &nbsp;·&nbsp;
23
- <a href="#quickstart">Quickstart</a> &nbsp;·&nbsp;
24
- <a href="#what-it-does">What It Does</a> &nbsp;·&nbsp;
25
- <a href="#commands">Commands</a> &nbsp;·&nbsp;
26
- <a href="#packages">Packages</a> &nbsp;·&nbsp;
27
- <a href="https://github.com/monoes/monomind">GitHub</a>
22
+ <a href="https://monoes.github.io/monomind/#orgs">🏢 Orgs</a> &nbsp;·&nbsp;
23
+ <a href="https://monoes.github.io/monomind/#getting-started">🚀 Quickstart</a> &nbsp;·&nbsp;
24
+ <a href="https://monoes.github.io/monomind/#mastermind">⚡ Mastermind</a> &nbsp;·&nbsp;
25
+ <a href="https://monoes.github.io/monomind/#slash">📋 Commands</a> &nbsp;·&nbsp;
26
+ <a href="https://monoes.github.io/monomind/#architecture">🏗️ Architecture</a>
28
27
  </p>
29
28
 
30
29
  ---
31
30
 
32
31
  ## What is Monomind?
33
32
 
34
- You already use Claude Code. Monomind makes it **autonomous**.
33
+ Claude Code is already powerful. Monomind makes it **run itself**.
35
34
 
36
- Give it a direction. Walk away. Come back to a finished feature.
35
+ Install once. Wire it into Claude Code. Then instead of prompting Claude to do individual tasks, you tell Monomind what outcome you want — and it assembles a team, coordinates the work, and delivers.
37
36
 
38
37
  ```bash
38
+ # Assemble an AI content team and let it run
39
+ /mastermind:createorg content-team "publish 3 SEO-optimized posts per week"
40
+ /mastermind:runorg --org content-team
41
+
42
+ # Or run the autonomous code improvement loop
39
43
  /mastermind:autodev --tillend --focus security
40
44
  ```
41
45
 
42
- Monomind researches your project, selects the highest-impact improvement, builds it with a coordinated agent chain, reviews until zero findings — then loops. Indefinitely. Until there is nothing left to fix.
46
+ That's it. Come back later.
43
47
 
44
- ```
45
- Without Monomind You prompt Claude → wait → review → iterate manually
46
- With Monomind You set a direction → Monomind executes the entire loop
48
+ ---
49
+
50
+ ## 🏢 Autonomous Organizations
51
+
52
+ > **This is the headline feature.** Build a persistent AI organization — roles, hierarchy, shared task board — and start it as a background daemon that runs without you.
53
+
54
+ ### The idea
55
+
56
+ Every business function needs a team. Monomind lets you design that team in one command, then run it forever. The org persists across sessions. It checkpoints, recovers from failures, and coordinates its agents through a shared task board — all automatically.
57
+
58
+ ```mermaid
59
+ flowchart TD
60
+ U(["You"])
61
+ CO["/mastermind:createorg\nDefine goal + roles"]
62
+ RO["/mastermind:runorg\nStart daemon"]
63
+ BOSS["Boss Agent\ncoordinator"]
64
+ W["Writer\nContent Creator"]
65
+ S["SEO Specialist"]
66
+ R["Reviewer"]
67
+ M["Growth Marketer"]
68
+ BOARD[("Shared\nTask Board")]
69
+ MEM[("AgentDB\nMemory")]
70
+
71
+ U --> CO --> RO --> BOSS
72
+ BOSS -->|spawns| W
73
+ BOSS -->|spawns| S
74
+ BOSS -->|spawns| R
75
+ BOSS -->|spawns| M
76
+ BOSS <-->|claims + reports| BOARD
77
+ W <-->|stores output| MEM
78
+ S <-->|reads context| MEM
79
+
80
+ style BOSS fill:#00D2AA22,stroke:#00D2AA
81
+ style BOARD fill:#F59E0B22,stroke:#F59E0B
82
+ style MEM fill:#8B5CF622,stroke:#8B5CF6
47
83
  ```
48
84
 
49
- ---
85
+ ### Two commands to a running org
50
86
 
51
- ## Quickstart
87
+ **Step 1 — Design it:**
52
88
 
53
- ```bash
54
- # Install globally
55
- npm install -g monomind
89
+ ```
90
+ / mastermind:createorg content-team
91
+ "Build and publish 3 blog posts per week on AI dev tools"
56
92
 
57
- # Initialise in your project
58
- cd your-project
59
- monomind init
93
+ Deriving roles from goal...
60
94
 
61
- # Wire into Claude Code as an MCP server
62
- claude mcp add monomind npx monomind mcp start
95
+ ORG: content-team
96
+ TOPOLOGY: star (5 roles)
63
97
 
64
- # Start the background daemon
65
- monomind daemon start
66
- ```
98
+ boss → coordinator
99
+ writer → Content Creator
100
+ reviewer → reviewer
101
+ marketer → Growth Hacker
102
+ seo → SEO Specialist
67
103
 
68
- Open Claude Code and run your first autonomous loop:
104
+ Type "go" to save, or describe changes.
105
+ → go
69
106
 
70
- ```bash
71
- /mastermind:autodev --tillend
107
+ ✓ Saved .monomind/orgs/content-team.json
108
+ → Run: /mastermind:runorg --org content-team
72
109
  ```
73
110
 
74
- **[→ Full setup guide](https://monoes.github.io/monomind/#getting-started)**
111
+ **Step 2 Start it:**
75
112
 
76
- ---
113
+ ```bash
114
+ /mastermind:runorg --org content-team
77
115
 
78
- ## What It Does
116
+ # Boss agent spawns in background
117
+ # Coordinates all roles via shared task board
118
+ # Checkpoints every 30 minutes
119
+ # Loops until you stop it
120
+ ```
79
121
 
80
- ### `/mastermind:autodev` The Autonomous Build Loop
122
+ ### What runs under the hood
81
123
 
124
+ | What | How |
125
+ |---|---|
126
+ | **Boss agent** | Coordinator type, no supervisor — owns the goal |
127
+ | **Role agents** | Spawned on demand, specialized by task type |
128
+ | **Task board** | Todo → Doing → Done, shared across all agents |
129
+ | **Memory** | All output stored in org-scoped AgentDB namespace |
130
+ | **Checkpoint** | State saved every 30 min — survives crashes and restarts |
131
+ | **Governance** | `auto` (free), `board` (approve sensitive), `strict` (approve all external actions) |
132
+
133
+ ### Topology is auto-derived
134
+
135
+ ```mermaid
136
+ graph LR
137
+ A["1-3 roles"] -->|mesh| B["All-to-all\ndirect comms"]
138
+ C["4-6 roles"] -->|star| D["Boss to workers\nfan-out"]
139
+ E["7+ roles"] -->|hierarchical| F["Boss to leads to workers\nmiddle management"]
82
140
  ```
83
- Phase 1 Research Parallel scan: git log, file analysis, TODO/FIXME grep,
84
- monograph god nodes, memory search for prior work.
85
- Returns ranked list of 3–5 improvement candidates.
86
141
 
87
- Phase 2 Select Picks by feasibility × blast-radius × focus alignment.
88
- Stores selection to AgentDB. Avoids repeating past work.
142
+ ### Pre-built org types
89
143
 
90
- Phase 3 Build Spawns architect coder tester → reviewer chain.
91
- Runs with concrete spec and acceptance criteria.
144
+ | Org | Goal | Roles |
145
+ |---|---|---|
146
+ | `content-team` | 3 posts/week on AI tools | Director · Writer · Reviewer · SEO · Growth |
147
+ | `dev-squad` | Features from design spec | Lead · Architect · Developer · QA |
148
+ | `research-lab` | Weekly competitive intelligence | Director · Researcher · Analyst · Writer |
149
+ | `sales-engine` | ICP research + outreach sequences | Director · Outbound · Email · Researcher |
150
+ | `ops-squad` | 24/7 monitoring + incident response | SRE · Security · Perf · Incident Cmdr |
92
151
 
93
- Phase 4 Review Code Reviewer + Security Engineer + Reality Checker
94
- run in parallel. Auto-fixes. Repeats up to 5× until clean.
152
+ ### Org management commands
95
153
 
96
- Phase 5 Loop Records completion. Continues to next improvement.
97
- --tillend loops until zero findings remain.
154
+ ```bash
155
+ /mastermind:createorg <name> "<goal>" # design org from a goal
156
+ /mastermind:runorg --org <name> # start as background daemon
157
+ /mastermind:orgs # list all orgs + status
158
+ /mastermind:orgstatus --org <name> # detailed status for one org
159
+ /mastermind:stoporg --org <name> # stop a running org
160
+ /mastermind:approve # review pending approval requests
98
161
  ```
99
162
 
100
- ### Swarm Topologies
163
+ ---
164
+
165
+ ## ⚡ The Autonomous Build Loop
166
+
167
+ For code, `/mastermind:autodev` is the equivalent of Orgs — a loop that researches, builds, and reviews your codebase without stopping.
168
+
169
+ ```mermaid
170
+ flowchart LR
171
+ R["Research\nParallel scan:\ngit log, files\nTODOs, graph\nmemory"] --> S
172
+ S["Select\nFeasibility x\nblast-radius x\nfocus"] --> B
173
+ B["Build\nArchitect\nCoder\nTester\nReviewer"] --> V
174
+ V["Review Loop\nCode + Security\n+ Reality\nmax 5 iterations"] --> L
175
+ L["Log + Loop\nStore to memory\n--tillend:\nschedule next"]
176
+ L -->|"more to do"| R
101
177
 
178
+ style R fill:#00D2AA22,stroke:#00D2AA
179
+ style B fill:#8B5CF622,stroke:#8B5CF6
180
+ style V fill:#F59E0B22,stroke:#F59E0B
181
+ style L fill:#10B98122,stroke:#10B981
102
182
  ```
103
- Hierarchical Coordinator → specialists → reviewers. Best for features.
104
- Mesh All-to-all communication. Best for codebase analysis.
105
- Adaptive Changes topology based on task complexity.
106
- Hive-Mind Byzantine fault-tolerant consensus across 6+ agents.
183
+
184
+ ```bash
185
+ /mastermind:autodev --tillend # loop until nothing left
186
+ /mastermind:autodev --tillend --focus security # bias toward security fixes
187
+ /mastermind:autodev 3 # exactly 3 improvements
107
188
  ```
108
189
 
109
- ### Memory & Intelligence
190
+ ### Universal loop flags
110
191
 
111
- Every session writes to [AgentDB](https://github.com/monoes/monomind) — a hybrid SQLite + HNSW vector store. The next session reads it. Monomind learns which improvements it already shipped, which patterns failed, and which agents perform best on which tasks.
192
+ | Flag | Purpose |
193
+ |---|---|
194
+ | `--tillend` | Repeat until empty round (zero findings, zero actions) |
195
+ | `--repeat <N>` | Repeat exactly N times |
196
+ | `--focus <area>` | Bias toward: `security` · `dx` · `performance` |
197
+ | `--auto` | No confirmation prompts |
198
+ | `--maxruns <N>` | Safety cap (default 50) |
112
199
 
113
200
  ---
114
201
 
115
- ## Commands
202
+ ## 🚀 Quickstart
116
203
 
117
- ### Core Loop Commands
204
+ ```bash
205
+ # 1. Install
206
+ npm install -g monomind
118
207
 
119
- | Command | What it does |
120
- |---|---|
121
- | `/mastermind:autodev` | Autonomous research → build → review loop |
122
- | `/mastermind:autodev --tillend` | Loops until zero findings remain |
123
- | `/mastermind:build` | Build a feature from a brief |
124
- | `/mastermind:review` | Iterative code review until clean |
125
- | `/mastermind:debug` | Systematic root-cause debugging |
126
- | `/mastermind:tdd` | Test-Driven Development: Red→Green→Refactor |
127
- | `/mastermind:plan` | Write a comprehensive implementation plan |
208
+ # 2. Initialize in your project
209
+ cd your-project
210
+ monomind init
128
211
 
129
- ### Research & Ideas
212
+ # 3. Wire into Claude Code as an MCP server
213
+ claude mcp add monomind npx monomind mcp start
130
214
 
131
- | Command | What it does |
132
- |---|---|
133
- | `/mastermind:research` | Deep research with structured output |
134
- | `/mastermind:idea` | Idea generation and evaluation |
135
- | `/mastermind:architect` | Architecture review and design |
136
- | `/mastermind:techport` | Assess a foreign codebase |
215
+ # 4. Start the background daemon
216
+ monomind daemon start
217
+
218
+ # 5. Health check
219
+ monomind doctor --fix
220
+ ```
137
221
 
138
- ### Autonomous Orgs
222
+ Open Claude Code. You now have 80+ slash commands available:
139
223
 
140
224
  ```bash
141
- /mastermind:createorg --schedule 1h # define + schedule an agent org
142
- /mastermind:runorg # start the loop
143
- /mastermind:orgs # list all orgs + status
144
- /mastermind:stoporg # stop a running org
225
+ /mastermind:autodev --tillend # start autonomous code loop
226
+ /mastermind:createorg my-team # create your first AI org
227
+ /mastermind:help # show all commands
145
228
  ```
146
229
 
147
- ### Business Domains
230
+ ---
148
231
 
149
- ```bash
150
- /mastermind:marketing /mastermind:content /mastermind:sales
151
- /mastermind:finance /mastermind:ops /mastermind:release
232
+ ## 🧠 Memory That Persists
233
+
234
+ Every session, every agent, every org writes to **AgentDB** — a hybrid SQLite + HNSW vector store that survives across sessions. The next time you run anything, Monomind already knows what was built, what failed, and which patterns work.
235
+
236
+ ```mermaid
237
+ graph TD
238
+ L0["L0 - In-flight\nCurrent session drawers\nephemeral"]
239
+ L1["L1 - Working\nCross-session memory\nBM25 K1=1.5, B=0.75"]
240
+ L2["L2 - Long-term\nAgentDB + HNSW index\nSemantic search"]
241
+ L3["L3 - Shared\nCross-agent namespace\nFederated swarm reads"]
242
+
243
+ L0 -->|promoted| L1 --> L2 --> L3
244
+
245
+ style L0 fill:#00D2AA11,stroke:#00D2AA
246
+ style L1 fill:#F59E0B11,stroke:#F59E0B
247
+ style L2 fill:#8B5CF611,stroke:#8B5CF6
248
+ style L3 fill:#EF444411,stroke:#EF4444
152
249
  ```
153
250
 
154
- **[→ Full command reference (80+ commands)](https://monoes.github.io/monomind/#slash)**
251
+ ```bash
252
+ monomind memory store "key insight" --namespace my-project
253
+ monomind memory search "auth implementation" # BM25 + semantic hybrid
254
+ ```
155
255
 
156
256
  ---
157
257
 
158
- ## CLI
258
+ ## 🗺️ Monograph — Your Codebase, as a Graph
259
+
260
+ Before touching any file, Monomind queries **Monograph** — a SQLite-backed knowledge graph of your entire codebase. Nodes are files, classes, and functions. Edges are imports, calls, and dependencies.
159
261
 
160
262
  ```bash
161
- monomind init # project setup wizard
162
- monomind daemon start # start background workers
163
- monomind agent spawn <type> # spawn a named agent
164
- monomind swarm init # initialise a multi-agent swarm
165
- monomind memory store # store to AgentDB
166
- monomind memory search # semantic search over AgentDB
167
- monomind hooks pre-task # run pre-task security scan
168
- monomind doctor # diagnose your setup
263
+ /mastermind:understand # build the graph
264
+ /mastermind:graph-status # nodes · edges · freshness
265
+
266
+ # Inside Claude Code, Monograph runs automatically:
267
+ # "what files does auth.ts import?"
268
+ # "what breaks if I change UserService?"
269
+ # "find all callers of validateToken()"
169
270
  ```
170
271
 
272
+ 23 MCP tools. Impact analysis. Shortest-path queries. Community detection. Zero grep.
273
+
171
274
  ---
172
275
 
173
- ## Packages
276
+ ## 🎣 Hooks & Workers
174
277
 
175
- | Package | npm | Purpose |
176
- |---|---|---|
177
- | `monomind` | [![npm](https://img.shields.io/npm/v/monomind?style=flat-square&color=00D2AA)](https://www.npmjs.com/package/monomind) | Umbrella — install this |
178
- | `@monoes/monomindcli` | [![npm](https://img.shields.io/npm/v/@monoes/monomindcli?style=flat-square&color=4F46E5)](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (41 commands) |
179
- | `monofence-ai` | [![npm](https://img.shields.io/npm/v/monofence-ai?style=flat-square&color=EF4444)](https://www.npmjs.com/package/monofence-ai) | AI manipulation defence |
180
- | `@monoes/monograph` | [![npm](https://img.shields.io/npm/v/@monoes/monograph?style=flat-square&color=F59E0B)](https://www.npmjs.com/package/@monoes/monograph) | Knowledge graph engine |
278
+ Monomind wires 22 hook events into Claude Code. Every edit, task, command, and session fires hooks that log patterns, route agents, and train the intelligence system.
279
+
280
+ ```mermaid
281
+ flowchart LR
282
+ CE["Claude Code\nEvent"] --> H["Hook Router"]
283
+ H --> P["pre-edit\npre-task\npre-command"]
284
+ H --> SS["session-start\nsession-end\nnotify"]
285
+ H --> I["route\nlearn\nbuild-agents"]
286
+ H --> T["teammate-idle\ntask-completed"]
181
287
 
182
- ### monofence-ai — AI Security
288
+ I --> DB[("AgentDB\npatterns.json")]
289
+ DB -->|next session| CE
290
+ ```
291
+
292
+ **12 background workers** run continuously: `security` · `health` · `swarm` · `learning` · `patterns` · `git` · `performance` and more.
293
+
294
+ ---
295
+
296
+ ## 🛡️ MonoFence AI — Security Layer
183
297
 
184
- Protect your LLM pipelines from prompt injection, jailbreaks, and evasion attacks:
298
+ Every agent boundary is defended by **monofence-ai** — real-time detection of prompt injection, jailbreaks, homoglyphs, base64 evasion, multi-turn escalation, and PII leakage.
185
299
 
186
300
  ```typescript
187
301
  import { isSafe, createMonoDefence } from 'monofence-ai';
@@ -190,50 +304,93 @@ isSafe('Ignore all previous instructions'); // → false (~0.04ms)
190
304
 
191
305
  const fence = createMonoDefence({ enableContextTracking: true });
192
306
  const result = await fence.detect(userInput);
193
- // result.safe, result.threats, result.overallRisk
307
+ // result.safe · result.threats · result.overallRisk
194
308
  ```
195
309
 
196
- Features: **EvasionDetector** (homoglyphs, leetspeak, base64) · **ContextTracker** (multi-turn escalation) · **OutputScanner** (PII leakage, echo attacks) · **Allowlist** (5 built-in + custom rules) · **SecurityHook** (pre-task blocking)
197
-
198
310
  ---
199
311
 
200
- ## How the Agents Work
312
+ ## 📋 80+ Slash Commands
201
313
 
202
- ```
203
- Claude Code ←→ MCP Server ←→ Monomind Daemon
204
-
205
- ┌─────────────────┼─────────────────┐
206
- ▼ ▼ ▼
207
- AgentDB Monograph Hooks
208
- (vector memory) (knowledge graph) (17 hook types)
209
- │ │ │
210
- └─────────────────┼─────────────────┘
211
-
212
- Agent Swarm
213
- architect · coder · tester · reviewer
214
- security · perf · docs · researcher
215
- ```
314
+ Everything runs from inside Claude Code via slash commands. Here's the highlight reel:
216
315
 
217
- Monomind coordinates. Claude Code creates. You ship.
316
+ ### Development
317
+ | Command | What it does |
318
+ |---|---|
319
+ | `/mastermind:autodev` | Autonomous research → build → review loop |
320
+ | `/mastermind:build` | Build a feature from a brief |
321
+ | `/mastermind:review` | Iterative review until zero findings |
322
+ | `/mastermind:debug` | Systematic root-cause debugging |
323
+ | `/mastermind:tdd` | Red → Green → Refactor |
324
+ | `/mastermind:architect` | Architecture review + file structure |
325
+ | `/mastermind:plan` | Comprehensive implementation plan |
326
+ | `/mastermind:worktree` | Feature work in isolated git worktree |
327
+
328
+ ### Organizations
329
+ | Command | What it does |
330
+ |---|---|
331
+ | `/mastermind:createorg` | Design an autonomous agent org |
332
+ | `/mastermind:runorg` | Start it as a background daemon |
333
+ | `/mastermind:orgs` | List all orgs + status |
334
+ | `/mastermind:approve` | Action pending approval requests |
335
+
336
+ ### Business Domains
337
+ | Command | What it does |
338
+ |---|---|
339
+ | `/mastermind:marketing` | Campaigns, copy, SEO, social |
340
+ | `/mastermind:content` | Blog posts, threads, newsletters |
341
+ | `/mastermind:sales` | Outreach, proposals, pipeline |
342
+ | `/mastermind:finance` | Budgets, invoicing, modeling |
343
+ | `/mastermind:ops` | Operations and workflow automation |
344
+
345
+ **[→ Full reference (80+ commands)](https://monoes.github.io/monomind/#slash)**
218
346
 
219
347
  ---
220
348
 
221
- ## Why Monomind?
349
+ ## 📦 Packages
350
+
351
+ | Package | npm | Purpose |
352
+ |---|---|---|
353
+ | `monomind` | [![npm](https://img.shields.io/npm/v/monomind?style=flat-square&color=00D2AA)](https://www.npmjs.com/package/monomind) | Umbrella — **install this one** |
354
+ | `@monoes/monomindcli` | [![npm](https://img.shields.io/npm/v/@monoes/monomindcli?style=flat-square&color=4F46E5)](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (41 commands) |
355
+ | `monofence-ai` | [![npm](https://img.shields.io/npm/v/monofence-ai?style=flat-square&color=EF4444)](https://www.npmjs.com/package/monofence-ai) | AI manipulation defence |
356
+ | `@monoes/monograph` | [![npm](https://img.shields.io/npm/v/@monoes/monograph?style=flat-square&color=F59E0B)](https://www.npmjs.com/package/@monoes/monograph) | Code knowledge graph |
357
+
358
+ ---
359
+
360
+ ## 🏗️ How It's Built
361
+
362
+ ```mermaid
363
+ graph TD
364
+ CC["Claude Code"]
365
+ MCP["MCP Server\nmonomind mcp start"]
366
+ D["Background Daemon\n12 workers"]
367
+
368
+ CC <-->|"23 tools: monograph, memory, swarm"| MCP
369
+ MCP <--> D
370
+
371
+ D --> ADB[("AgentDB\nSQLite + HNSW")]
372
+ D --> MG[("Monograph\ncode graph")]
373
+ D --> HK["Hooks\n22 event types"]
374
+ D --> SW["Swarm\n6 topologies\n5 consensus algos"]
375
+
376
+ CC -->|"Task tool - spawns agents"| AG["Agent Swarm\narchitect, coder\ntester, reviewer\nsecurity, perf"]
377
+ AG <-->|reads and writes| ADB
378
+
379
+ style CC fill:#00D2AA22,stroke:#00D2AA
380
+ style AG fill:#8B5CF622,stroke:#8B5CF6
381
+ style ADB fill:#F59E0B22,stroke:#F59E0B
382
+ ```
222
383
 
223
- - **80+ slash commands** wired directly into Claude Code
224
- - **60+ agent types** for every engineering task
225
- - **Self-learning routing** — agents improve with every session
226
- - **Monograph** — full codebase knowledge graph, always fresh
227
- - **AgentDB** — hybrid SQLite + HNSW vector memory
228
- - **17 hook types** — pre/post edit, task, command, session
229
- - **Security layer** — monofence-ai defends every agent boundary
230
- - **One command** to set direction. Nothing else needed.
384
+ **Claude Code handles all execution.** MCP tools only coordinate. Your data never leaves your machine.
231
385
 
232
386
  ---
233
387
 
234
388
  ## Resources
235
389
 
236
- - 📖 [Documentation](https://monoes.github.io/monomind/)
390
+ - 📖 [Full Documentation](https://monoes.github.io/monomind/)
391
+ - 🏢 [Autonomous Orgs](https://monoes.github.io/monomind/#orgs)
392
+ - ⚡ [Mastermind Reference](https://monoes.github.io/monomind/#mastermind)
393
+ - 📋 [All Slash Commands](https://monoes.github.io/monomind/#slash)
237
394
  - 🐛 [Issues](https://github.com/monoes/monomind/issues)
238
395
  - 💬 [Discussions](https://github.com/monoes/monomind/discussions)
239
396
  - 📦 [Changelog v1.11](https://github.com/monoes/monomind/blob/main/CHANGELOG-v1.11.md)
@@ -241,6 +398,6 @@ Monomind coordinates. Claude Code creates. You ship.
241
398
  ---
242
399
 
243
400
  <p align="center">
244
- <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="80" /><br/>
401
+ <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="72" /><br/>
245
402
  <sub>Built with ♥ by <a href="https://github.com/monoes">monoes</a> · MIT License</sub>
246
403
  </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monomind",
3
- "version": "1.11.13",
3
+ "version": "1.11.14",
4
4
  "description": "Monomind - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "semver": "^7.6.0",
59
- "@monoes/monograph": "^1.1.0"
59
+ "@monoes/monograph": "^1.2.0"
60
60
  },
61
61
  "overrides": {
62
62
  "hono": ">=4.11.4"