@monoes/monomindcli 1.11.7 β†’ 1.11.9

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 (222) hide show
  1. package/.claude/agents/github/issue-tracker.md +5 -5
  2. package/.claude/agents/github/pr-manager.md +5 -5
  3. package/.claude/agents/github/release-manager.md +3 -3
  4. package/.claude/agents/github/repo-architect.md +3 -3
  5. package/.claude/agents/github/swarm-issue.md +1 -1
  6. package/.claude/agents/github/sync-coordinator.md +1 -1
  7. package/.claude/agents/github/workflow-automation.md +1 -1
  8. package/.claude/commands/github/repo-architect.md +1 -1
  9. package/.claude/commands/github/sync-coordinator.md +1 -1
  10. package/.claude/commands/mastermind/createorg.md +4 -1
  11. package/.claude/commands/mastermind/help.md +2 -2
  12. package/.claude/commands/mastermind/orgs.md +21 -0
  13. package/.claude/commands/mastermind/orgstatus.md +59 -0
  14. package/.claude/commands/mastermind/runorg.md +4 -2
  15. package/.claude/commands/mastermind/stoporg.md +78 -0
  16. package/.claude/commands/mastermind/swarm.md +1 -1
  17. package/.claude/helpers/handlers/gates-handler.cjs +135 -0
  18. package/.claude/helpers/handlers/task-handler.cjs +7 -3
  19. package/.claude/helpers/hook-handler.cjs +11 -2
  20. package/.claude/helpers/intelligence.cjs +87 -0
  21. package/.claude/helpers/learning-service.mjs +60 -0
  22. package/.claude/helpers/memory.cjs +69 -0
  23. package/.claude/helpers/router.cjs +68 -0
  24. package/.claude/helpers/session.cjs +63 -0
  25. package/.claude/helpers/utils/monograph.cjs +4 -2
  26. package/.claude/helpers/utils/telemetry.cjs +3 -2
  27. package/.claude/skills/agentic-jujutsu/SKILL.md +1 -1
  28. package/.claude/skills/hive-mind-advanced/SKILL.md +4 -4
  29. package/.claude/skills/mastermind/_agent-select.md +2 -2
  30. package/.claude/skills/mastermind/access.md +11 -11
  31. package/.claude/skills/mastermind/adapter-manager.md +13 -13
  32. package/.claude/skills/mastermind/adapters.md +7 -7
  33. package/.claude/skills/mastermind/agent-detail.md +1 -1
  34. package/.claude/skills/mastermind/agents.md +5 -5
  35. package/.claude/skills/mastermind/approval-detail.md +6 -6
  36. package/.claude/skills/mastermind/approve.md +9 -10
  37. package/.claude/skills/mastermind/backup.md +2 -2
  38. package/.claude/skills/mastermind/bootstrap.md +2 -2
  39. package/.claude/skills/mastermind/companies.md +7 -7
  40. package/.claude/skills/mastermind/createorg.md +213 -8
  41. package/.claude/skills/mastermind/diagnose.md +4 -4
  42. package/.claude/skills/mastermind/env.md +1 -1
  43. package/.claude/skills/mastermind/environments.md +8 -8
  44. package/.claude/skills/mastermind/export.md +12 -3
  45. package/.claude/skills/mastermind/goal-detail.md +9 -9
  46. package/.claude/skills/mastermind/goals.md +4 -4
  47. package/.claude/skills/mastermind/heartbeat.md +1 -1
  48. package/.claude/skills/mastermind/idea.md +4 -4
  49. package/.claude/skills/mastermind/import.md +8 -8
  50. package/.claude/skills/mastermind/inbox.md +4 -4
  51. package/.claude/skills/mastermind/instance-settings.md +9 -9
  52. package/.claude/skills/mastermind/instance.md +9 -7
  53. package/.claude/skills/mastermind/invite-landing.md +5 -5
  54. package/.claude/skills/mastermind/invites.md +12 -12
  55. package/.claude/skills/mastermind/issue-detail.md +8 -8
  56. package/.claude/skills/mastermind/monitor.md +11 -11
  57. package/.claude/skills/mastermind/my-issues.md +6 -6
  58. package/.claude/skills/mastermind/new-agent.md +4 -4
  59. package/.claude/skills/mastermind/org-chart.md +8 -6
  60. package/.claude/skills/mastermind/org-settings.md +58 -21
  61. package/.claude/skills/mastermind/orgs.md +98 -0
  62. package/.claude/skills/mastermind/orgstatus.md +194 -0
  63. package/.claude/skills/mastermind/plan-to-tasks.md +1 -1
  64. package/.claude/skills/mastermind/plugin-manager.md +12 -12
  65. package/.claude/skills/mastermind/plugin-settings.md +5 -5
  66. package/.claude/skills/mastermind/plugins.md +5 -5
  67. package/.claude/skills/mastermind/profile.md +2 -2
  68. package/.claude/skills/mastermind/project-detail.md +12 -12
  69. package/.claude/skills/mastermind/project-workspace.md +4 -4
  70. package/.claude/skills/mastermind/projects.md +4 -4
  71. package/.claude/skills/mastermind/review.md +50 -0
  72. package/.claude/skills/mastermind/routine-detail.md +3 -3
  73. package/.claude/skills/mastermind/routines.md +7 -6
  74. package/.claude/skills/mastermind/runorg.md +178 -8
  75. package/.claude/skills/mastermind/search.md +6 -6
  76. package/.claude/skills/mastermind/secrets.md +6 -6
  77. package/.claude/skills/mastermind/skills.md +4 -4
  78. package/.claude/skills/mastermind/stoporg.md +138 -0
  79. package/.claude/skills/mastermind/workspace-detail.md +5 -5
  80. package/.claude/skills/mastermind/workspaces.md +9 -9
  81. package/.claude/skills/performance-analysis/SKILL.md +3 -3
  82. package/.claude/skills/sparc-methodology/SKILL.md +2 -2
  83. package/.claude/skills/swarm-advanced/SKILL.md +4 -4
  84. package/README.md +129 -376
  85. package/dist/src/agents/registry-builder.d.ts +27 -1
  86. package/dist/src/agents/registry-builder.d.ts.map +1 -1
  87. package/dist/src/agents/registry-builder.js +2 -2
  88. package/dist/src/agents/registry-builder.js.map +1 -1
  89. package/dist/src/commands/agent.d.ts.map +1 -1
  90. package/dist/src/commands/agent.js +4 -9
  91. package/dist/src/commands/agent.js.map +1 -1
  92. package/dist/src/commands/analyze.d.ts +1 -1
  93. package/dist/src/commands/analyze.js +1 -1
  94. package/dist/src/commands/claims.d.ts +1 -1
  95. package/dist/src/commands/claims.js +2 -2
  96. package/dist/src/commands/claims.js.map +1 -1
  97. package/dist/src/commands/cleanup.d.ts +1 -1
  98. package/dist/src/commands/cleanup.js +1 -1
  99. package/dist/src/commands/completions.d.ts +1 -1
  100. package/dist/src/commands/completions.js +1 -1
  101. package/dist/src/commands/deployment.d.ts +1 -1
  102. package/dist/src/commands/deployment.js +2 -2
  103. package/dist/src/commands/deployment.js.map +1 -1
  104. package/dist/src/commands/doctor.d.ts +1 -1
  105. package/dist/src/commands/doctor.d.ts.map +1 -1
  106. package/dist/src/commands/doctor.js +69 -4
  107. package/dist/src/commands/doctor.js.map +1 -1
  108. package/dist/src/commands/guidance.d.ts.map +1 -1
  109. package/dist/src/commands/guidance.js +129 -0
  110. package/dist/src/commands/guidance.js.map +1 -1
  111. package/dist/src/commands/index.d.ts.map +1 -1
  112. package/dist/src/commands/index.js +4 -0
  113. package/dist/src/commands/index.js.map +1 -1
  114. package/dist/src/commands/init.d.ts.map +1 -1
  115. package/dist/src/commands/init.js +18 -0
  116. package/dist/src/commands/init.js.map +1 -1
  117. package/dist/src/commands/monovector/import.d.ts +1 -1
  118. package/dist/src/commands/monovector/import.js +1 -1
  119. package/dist/src/commands/monovector/index.d.ts +1 -1
  120. package/dist/src/commands/monovector/index.js +1 -1
  121. package/dist/src/commands/monovector/setup.d.ts +1 -1
  122. package/dist/src/commands/monovector/setup.js +2 -2
  123. package/dist/src/commands/neural.d.ts +1 -1
  124. package/dist/src/commands/neural.js +2 -2
  125. package/dist/src/commands/neural.js.map +1 -1
  126. package/dist/src/commands/performance.d.ts +1 -1
  127. package/dist/src/commands/performance.js +2 -2
  128. package/dist/src/commands/performance.js.map +1 -1
  129. package/dist/src/commands/platforms.d.ts +1 -1
  130. package/dist/src/commands/platforms.js +1 -1
  131. package/dist/src/commands/plugins.d.ts +1 -1
  132. package/dist/src/commands/plugins.d.ts.map +1 -1
  133. package/dist/src/commands/plugins.js +2 -4
  134. package/dist/src/commands/plugins.js.map +1 -1
  135. package/dist/src/commands/providers.d.ts +1 -1
  136. package/dist/src/commands/providers.js +2 -2
  137. package/dist/src/commands/providers.js.map +1 -1
  138. package/dist/src/commands/route.d.ts +1 -1
  139. package/dist/src/commands/route.d.ts.map +1 -1
  140. package/dist/src/commands/route.js +5 -11
  141. package/dist/src/commands/route.js.map +1 -1
  142. package/dist/src/commands/security.d.ts +1 -1
  143. package/dist/src/commands/security.d.ts.map +1 -1
  144. package/dist/src/commands/security.js +140 -91
  145. package/dist/src/commands/security.js.map +1 -1
  146. package/dist/src/dlq/dlq-replayer.d.ts +7 -1
  147. package/dist/src/dlq/dlq-replayer.d.ts.map +1 -1
  148. package/dist/src/dlq/dlq-replayer.js.map +1 -1
  149. package/dist/src/index.d.ts +1 -1
  150. package/dist/src/index.d.ts.map +1 -1
  151. package/dist/src/index.js +10 -26
  152. package/dist/src/index.js.map +1 -1
  153. package/dist/src/init/claudemd-generator.js +2 -2
  154. package/dist/src/init/claudemd-generator.js.map +1 -1
  155. package/dist/src/init/executor.js +3 -3
  156. package/dist/src/init/settings-generator.js +2 -2
  157. package/dist/src/init/settings-generator.js.map +1 -1
  158. package/dist/src/mcp-client.d.ts +5 -0
  159. package/dist/src/mcp-client.d.ts.map +1 -1
  160. package/dist/src/mcp-client.js +7 -0
  161. package/dist/src/mcp-client.js.map +1 -1
  162. package/dist/src/mcp-server.d.ts.map +1 -1
  163. package/dist/src/mcp-server.js +17 -1
  164. package/dist/src/mcp-server.js.map +1 -1
  165. package/dist/src/mcp-tools/a2a-tools.js +6 -6
  166. package/dist/src/mcp-tools/a2a-tools.js.map +1 -1
  167. package/dist/src/mcp-tools/auto-install.d.ts +2 -2
  168. package/dist/src/mcp-tools/auto-install.js +1 -1
  169. package/dist/src/mcp-tools/auto-install.js.map +1 -1
  170. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  171. package/dist/src/mcp-tools/hive-mind-tools.js +1 -52
  172. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  173. package/dist/src/mcp-tools/index.d.ts +4 -0
  174. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  175. package/dist/src/mcp-tools/index.js +4 -0
  176. package/dist/src/mcp-tools/index.js.map +1 -1
  177. package/dist/src/mcp-tools/monograph-compat.d.ts.map +1 -1
  178. package/dist/src/mcp-tools/monograph-compat.js +1 -2
  179. package/dist/src/mcp-tools/monograph-compat.js.map +1 -1
  180. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  181. package/dist/src/mcp-tools/monograph-tools.js +107 -5
  182. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  183. package/dist/src/mcp-tools/security-tools.d.ts +6 -6
  184. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
  185. package/dist/src/mcp-tools/security-tools.js +48 -61
  186. package/dist/src/mcp-tools/security-tools.js.map +1 -1
  187. package/dist/src/memory/memory-bridge.d.ts +0 -1
  188. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  189. package/dist/src/memory/memory-bridge.js +232 -57
  190. package/dist/src/memory/memory-bridge.js.map +1 -1
  191. package/dist/src/memory/memory-initializer.d.ts.map +1 -1
  192. package/dist/src/memory/memory-initializer.js +3 -32
  193. package/dist/src/memory/memory-initializer.js.map +1 -1
  194. package/dist/src/plugins/store/discovery.d.ts.map +1 -1
  195. package/dist/src/plugins/store/discovery.js +0 -69
  196. package/dist/src/plugins/store/discovery.js.map +1 -1
  197. package/dist/src/routing/embed-worker.d.ts +2 -0
  198. package/dist/src/routing/embed-worker.d.ts.map +1 -0
  199. package/dist/src/routing/embed-worker.js +55 -0
  200. package/dist/src/routing/embed-worker.js.map +1 -0
  201. package/dist/src/routing/embedder.d.ts +31 -0
  202. package/dist/src/routing/embedder.d.ts.map +1 -0
  203. package/dist/src/routing/embedder.js +0 -0
  204. package/dist/src/routing/embedder.js.map +1 -0
  205. package/dist/src/routing/llm-caller.d.ts +1 -1
  206. package/dist/src/routing/llm-caller.d.ts.map +1 -1
  207. package/dist/src/routing/llm-caller.js +18 -3
  208. package/dist/src/routing/llm-caller.js.map +1 -1
  209. package/dist/src/routing/route-layer-factory.d.ts +9 -0
  210. package/dist/src/routing/route-layer-factory.d.ts.map +1 -0
  211. package/dist/src/routing/route-layer-factory.js +151 -0
  212. package/dist/src/routing/route-layer-factory.js.map +1 -0
  213. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  214. package/dist/src/services/worker-daemon.js +0 -1
  215. package/dist/src/services/worker-daemon.js.map +1 -1
  216. package/dist/src/suggest.d.ts +1 -1
  217. package/dist/src/suggest.js +1 -1
  218. package/dist/src/ui/server.mjs +5 -2
  219. package/dist/tsconfig.tsbuildinfo +1 -1
  220. package/package.json +9 -10
  221. package/scripts/publish-registry.ts +0 -2
  222. package/scripts/understand-analyze.mjs +1 -1
package/README.md CHANGED
@@ -1,38 +1,30 @@
1
1
  <p align="center">
2
- <img src="assets/hero-banner.png" alt="Monomind β€” Autonomous Claude Code Orchestration" width="100%" />
3
- </p>
4
-
5
- <p align="center">
6
- <img src="assets/logo.png" alt="Monomind Logo" width="120" />
2
+ <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind Mascot" width="160" />
7
3
  </p>
8
4
 
9
5
  <h1 align="center">Monomind</h1>
10
6
 
11
7
  <p align="center">
12
- <strong>Build. Learn. Evolve. Without stopping.</strong>
8
+ <strong>The autonomous Claude Code orchestration layer.</strong><br/>
9
+ Research β†’ Build β†’ Review β†’ Repeat. While you sleep.
13
10
  </p>
14
11
 
15
12
  <p align="center">
16
- The self-learning orchestration layer that turns Claude Code<br/>
17
- into an autonomous, multi-agent engineering team.
18
- </p>
19
-
20
- <p align="center">
21
- <a href="https://monoes.github.io/monomind/"><img src="https://img.shields.io/badge/docs-monoes.github.io%2Fmonomind-00D2AA?style=flat-square" alt="Documentation" /></a>
22
- <a href="https://www.npmjs.com/package/monomind"><img src="https://img.shields.io/npm/v/monomind?color=%234F46E5&label=npm&style=flat-square" alt="npm version" /></a>
13
+ <a href="https://monoes.github.io/monomind/"><img src="https://img.shields.io/badge/docs-monoes.github.io%2Fmonomind-00D2AA?style=flat-square" alt="Docs" /></a>
14
+ <a href="https://www.npmjs.com/package/monomind"><img src="https://img.shields.io/npm/v/monomind?color=%2300D2AA&label=monomind&style=flat-square" alt="npm" /></a>
23
15
  <a href="https://www.npmjs.com/package/monomind"><img src="https://img.shields.io/npm/dm/monomind?color=%2310B981&style=flat-square" alt="downloads" /></a>
24
- <a href="https://github.com/nokhodian/monomind/stargazers"><img src="https://img.shields.io/github/stars/nokhodian/monomind?color=%23F59E0B&style=flat-square" alt="stars" /></a>
25
- <a href="https://github.com/nokhodian/monomind/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-%238B5CF6?style=flat-square" alt="license" /></a>
26
- <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-green?style=flat-square" alt="node" /></a>
16
+ <a href="https://github.com/monoes/monomind/stargazers"><img src="https://img.shields.io/github/stars/monoes/monomind?color=%23F59E0B&style=flat-square" alt="stars" /></a>
17
+ <a href="https://github.com/monoes/monomind/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-%238B5CF6?style=flat-square" alt="license" /></a>
18
+ <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-339933?style=flat-square&logo=node.js&logoColor=white" alt="node" /></a>
27
19
  </p>
28
20
 
29
21
  <p align="center">
30
- <a href="https://monoes.github.io/monomind/">πŸ“– Full Docs</a> &nbsp;&bull;&nbsp;
31
- <a href="#quickstart">Quickstart</a> &nbsp;&bull;&nbsp;
32
- <a href="#what-monomind-does">What It Does</a> &nbsp;&bull;&nbsp;
33
- <a href="#features">Features</a> &nbsp;&bull;&nbsp;
34
- <a href="#commands">Commands</a> &nbsp;&bull;&nbsp;
35
- <a href="#memory--intelligence">Memory</a>
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>
36
28
  </p>
37
29
 
38
30
  ---
@@ -41,453 +33,214 @@
41
33
 
42
34
  You already use Claude Code. Monomind makes it **autonomous**.
43
35
 
44
- Type one command. Walk away. Come back to a clean codebase.
36
+ Give it a direction. Walk away. Come back to a finished feature.
45
37
 
46
38
  ```bash
47
39
  /mastermind:autodev --tillend --focus security
48
40
  ```
49
41
 
50
- Monomind researches your project, selects the highest-impact improvement, builds it with a coordinated agent chain, reviews until zero findings β€” then repeats. Indefinitely. Until there's nothing left to fix.
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.
51
43
 
52
- > **Without Monomind:** You prompt Claude, wait, review, iterate.
53
- > **With Monomind:** You set a direction. Monomind executes.
44
+ ```
45
+ Without Monomind You prompt Claude β†’ wait β†’ review β†’ iterate manually
46
+ With Monomind You set a direction β†’ Monomind executes the entire loop
47
+ ```
54
48
 
55
49
  ---
56
50
 
57
51
  ## Quickstart
58
52
 
59
53
  ```bash
60
- # Install
54
+ # Install globally
61
55
  npm install -g monomind
62
56
 
63
- # Initialize in your project
57
+ # Initialise in your project
64
58
  cd your-project
65
59
  monomind init
66
60
 
67
- # Wire into Claude Code
61
+ # Wire into Claude Code as an MCP server
68
62
  claude mcp add monomind npx monomind mcp start
69
63
 
70
64
  # Start the background daemon
71
65
  monomind daemon start
72
66
  ```
73
67
 
74
- That's it. Open Claude Code and start orchestrating.
68
+ Open Claude Code and run your first autonomous loop:
69
+
70
+ ```bash
71
+ /mastermind:autodev --tillend
72
+ ```
75
73
 
76
74
  **[β†’ Full setup guide](https://monoes.github.io/monomind/#getting-started)**
77
75
 
78
76
  ---
79
77
 
80
- ## What Monomind Does
81
-
82
- ### Autonomous Build Loop β€” `/mastermind:autodev`
78
+ ## What It Does
83
79
 
84
- The flagship command. Research β†’ Build β†’ Review β†’ Repeat.
80
+ ### `/mastermind:autodev` β€” The Autonomous Build Loop
85
81
 
86
82
  ```
87
- Phase 1 Research Parallel scan: git log, file analysis, TODO/FIXME grep,
88
- monograph god nodes, memory search for prior work.
89
- Returns ranked list of 3-5 improvement candidates.
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.
90
86
 
91
- Phase 2 Selection Picks by feasibility Γ— blast radius Γ— focus alignment.
92
- Stores selection to memory. Avoids repeating past work.
87
+ Phase 2 Select Picks by feasibility Γ— blast-radius Γ— focus alignment.
88
+ Stores selection to AgentDB. Avoids repeating past work.
93
89
 
94
- Phase 3 Build Spawns architect β†’ coder β†’ tester β†’ reviewer chain.
95
- Runs with concrete spec and acceptance criteria.
90
+ Phase 3 Build Spawns architect β†’ coder β†’ tester β†’ reviewer chain.
91
+ Runs with concrete spec and acceptance criteria.
96
92
 
97
- Phase 4 Review Loop Code Reviewer + Security Engineer + Reality Checker
98
- run in parallel. Auto-fixes. Repeats up to 5Γ— until clean.
93
+ Phase 4 Review Code Reviewer + Security Engineer + Reality Checker
94
+ run in parallel. Auto-fixes. Repeats up to 5Γ— until clean.
99
95
 
100
- Phase 5 Log Records completion. Continues to next improvement.
101
- --tillend schedules the next session automatically.
96
+ Phase 5 Loop Records completion. Continues to next improvement.
97
+ --tillend loops until zero findings remain.
102
98
  ```
103
99
 
104
- ```bash
105
- /mastermind:autodev # 1 improvement
106
- /mastermind:autodev 5 # 5 improvements in sequence
107
- /mastermind:autodev --tillend # run until nothing is left
108
- /mastermind:autodev --focus security # bias toward security work
109
- /mastermind:autodev --focus dx # bias toward developer experience
110
- /mastermind:autodev --newfeature 3 # discover & fully deliver 3 brand-new features
111
- # (build β†’ review β†’ document β†’ stage each one)
112
- ```
113
-
114
- ### From Prompt to Coordinated Execution
100
+ ### Swarm Topologies
115
101
 
116
102
  ```
117
- You: "Add webhook delivery with retries and a dead-letter queue"
118
-
119
- Monomind:
120
- 1. Software Architect β†’ designs the system
121
- 2. backend-dev β†’ implements webhook dispatcher
122
- 3. backend-dev β†’ implements retry logic with exponential backoff
123
- 4. Database Optimizer β†’ designs dead-letter queue schema
124
- 5. tester β†’ writes integration tests
125
- 6. Code Reviewer β†’ reviews all changes before merge
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.
126
107
  ```
127
108
 
128
- **[β†’ See all 10 pages of documentation](https://monoes.github.io/monomind/)**
109
+ ### Memory & Intelligence
129
110
 
130
- ---
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.
131
112
 
132
- ## Features
113
+ ---
133
114
 
134
- ### 230+ Specialized Agents
115
+ ## Commands
135
116
 
136
- Not generic assistants β€” domain experts with targeted system prompts, each optimized for a specific class of work.
117
+ ### Core Loop Commands
137
118
 
138
- | Category | Examples |
119
+ | Command | What it does |
139
120
  |---|---|
140
- | **Engineering** | Backend Architect, Frontend Developer, Database Optimizer, SRE, Embedded Firmware Engineer |
141
- | **Security** | Security Engineer, Threat Detection Engineer, Blockchain Security Auditor |
142
- | **Architecture** | Software Architect, System Architect, Salesforce Architect |
143
- | **Game Dev** | Unity Architect, Unreal Systems Engineer, Godot Scripter, Roblox Systems Scripter |
144
- | **Marketing** | SEO Specialist, TikTok Strategist, Content Creator, Growth Hacker |
145
- | **Product** | Product Manager, Sprint Prioritizer, CRO Specialist, Launch Strategist |
146
- | **AI/ML** | AI Engineer, ML Developer, Data Engineer, Model QA Specialist |
147
- | **Swarm/Consensus** | Hierarchical Coordinator, Mesh Coordinator, CRDT Synchronizer, Quorum Manager |
148
-
149
- ### Swarm Topologies
150
-
151
- Coordinate multiple agents working in parallel on the same problem:
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 |
152
128
 
153
- <p align="center">
154
- <img src="assets/swarm-topology.png" alt="Swarm Topology" width="70%" />
155
- </p>
129
+ ### Research & Ideas
156
130
 
157
- | Topology | Best For |
131
+ | Command | What it does |
158
132
  |---|---|
159
- | **Hierarchical** | Feature development β€” coordinator delegates to specialists |
160
- | **Mesh** | Research β€” all agents share findings peer-to-peer |
161
- | **Hierarchical-Mesh** | Complex projects β€” structured delegation with cross-talk |
162
- | **Adaptive** | Unknown complexity β€” topology evolves based on task |
163
- | **Centralized** | Simple tasks β€” single coordinator, minimal overhead |
164
- | **Hybrid** | Mixed β€” star topology with selective mesh connections |
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 |
165
137
 
166
- **Consensus algorithms:** Raft (leader-based), Byzantine (fault-tolerant up to f < n/3), Gossip (eventually consistent), CRDT (conflict-free), Quorum (majority vote).
138
+ ### Autonomous Orgs
167
139
 
168
140
  ```bash
169
- /mastermind # topology picker β€” recommends the best option for your task
170
- monomind swarm init --topology hierarchical --agents 8 --strategy specialized
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
171
145
  ```
172
146
 
173
- ### Self-Learning Memory β€” The Memory Palace
174
-
175
- Every interaction makes Monomind smarter:
176
-
177
- | Layer | What It Stores | Tech |
178
- |---|---|---|
179
- | **Short-term** | In-flight context (current session) | SQLite + in-memory cache |
180
- | **Long-term** | Persistent knowledge and patterns | AgentDB + HNSW |
181
- | **Contextual** | Summarized episode clusters | RAPTOR consolidation worker |
182
- | **Shared** | Cross-agent state and promotions | PartitionedHNSW |
183
-
184
- - **Pure-JS HNSW** semantic search via AgentDB indexing
185
- - **Hybrid backend** β€” SQLite for structured data + AgentDB for semantic
186
- - **BM25 + vector** hybrid retrieval β€” precision + recall
187
- - **Session continuity** β€” pick up exactly where you left off
188
-
189
- ### Knowledge Graph β€” Monograph
190
-
191
- 30 graph tools that build a full dependency map of your codebase:
147
+ ### Business Domains
192
148
 
193
149
  ```bash
194
- monograph_suggest "add webhook retry logic" # β†’ ranked relevant files
195
- monograph_query "UserService dependencies" # β†’ file paths + line numbers
196
- monograph_god_nodes # β†’ high-centrality files
197
- monograph_impact "auth.ts" # β†’ blast radius before changing
150
+ /mastermind:marketing /mastermind:content /mastermind:sales
151
+ /mastermind:finance /mastermind:ops /mastermind:release
198
152
  ```
199
153
 
200
- Queried automatically before every task. No manual invocation needed.
201
-
202
- ### Keyword Routing & Outcome Measurement
203
-
204
- Monomind routes tasks deterministically and measures whether the routing helped:
205
-
206
- - **Keyword routing** β€” `createKeywordRouter` maps tasks to handlers without an LLM call
207
- - **Route-outcome correlation** β€” recommended routes are auto-correlated with actual outcomes; `doctor` surfaces routing accuracy and recommended-vs-actual adherence
208
- - **Trajectory + outcome logging** β€” steps, trajectories, and command results are recorded for later analysis
209
-
210
- > The full neural learning loop (SONA modes, LoRA, EWC++, Reasoning Bank) lives on the `monoes-full-loop` branch.
211
-
212
- ### 3-Tier Model Routing
213
-
214
- Monomind routes every task to the cheapest model that can handle it:
215
-
216
- | Tier | Handler | Latency | Cost | Use Cases |
217
- |---|---|---|---|---|
218
- | **1** | Agent Booster (WASM) | <1ms | $0 | Simple transforms β€” skip the LLM |
219
- | **2** | Haiku | ~500ms | $0.0002 | Low-complexity tasks (<30%) |
220
- | **3** | Sonnet / Opus | 2-5s | $0.003-0.015 | Complex reasoning, architecture |
221
-
222
- ### 29+ Hooks + 12 Background Workers
223
-
224
- Monomind hooks into every phase of your Claude Code workflow:
225
-
226
- | Hook | What It Does |
227
- |---|---|
228
- | `pre-task` | Routes to the best agent, suggests topology |
229
- | `post-task` | Learns from outcomes, updates neural patterns |
230
- | `pre-edit` | Context suggestions, blast radius check |
231
- | `post-edit` | Indexes new code into the knowledge graph |
232
- | `session-start` | Restores context, preloads relevant memory |
233
- | `session-end` | Persists learnings, updates metrics |
234
-
235
- **Background workers** (12 total): ultralearn, optimize, consolidate, predict, audit, map, preload, deepdive, document, refactor, benchmark, testgaps β€” all autonomous.
154
+ **[β†’ Full command reference (80+ commands)](https://monoes.github.io/monomind/#slash)**
236
155
 
237
156
  ---
238
157
 
239
- ## Live Dashboard
240
-
241
- Real-time visibility into every project, session, agent, memory operation, route decision, and token spend.
158
+ ## CLI
242
159
 
243
160
  ```bash
244
- monomind daemon start # starts background workers and session tracking
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
245
169
  ```
246
170
 
247
- Sessions are fully recorded and replayable β€” full conversation replay with tool breakdown, agent spawns, and memory operations.
248
-
249
171
  ---
250
172
 
251
- ## Commands
252
-
253
- ### 53+ CLI Commands
173
+ ## Packages
254
174
 
255
- ```bash
256
- monomind init # Project initialization wizard
257
- monomind agent spawn --type coder # Spawn a specific agent
258
- monomind swarm init --topology mesh # Initialize a swarm
259
- monomind memory search "auth patterns" # Search vector memory
260
- monomind hooks route --task "fix bug" # Route to best agent
261
- monomind neural status # Inspect pattern-learning status
262
- monomind doctor --fix # Diagnose and auto-fix issues
263
- monomind daemon start # Start background workers
264
- ```
265
-
266
- **[β†’ Full CLI reference](https://monoes.github.io/monomind/#commands)**
267
-
268
- ### 160+ Slash Commands (inside Claude Code)
269
-
270
- | Command | What It Does |
271
- |---|---|
272
- | `/mastermind:autodev` | Autonomous research β†’ build β†’ review loop |
273
- | `/mastermind:review --tillend` | Keep reviewing and auto-fixing until clean |
274
- | `/mastermind:build <brief>` | Build a specific feature with an agent chain |
275
- | `/mastermind:architect` | System architecture design and review |
276
- | `/mastermind:research` | Deep research with structured output |
277
- | `/mastermind:createtask` | Decompose a spec into executable tasks |
278
- | `/mastermind:idea` | Research β†’ evaluate β†’ create implementation tasks |
279
- | `/mastermind:do` | Execute tasks from the board with parallel agents |
280
- | `/mastermind:review` | Multi-agent iterative review with auto-fix |
281
- | `/mastermind` | Topology picker β€” recommends best swarm for your task |
282
-
283
- **[β†’ Full slash command reference](https://monoes.github.io/monomind/#slash)**
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 |
284
181
 
285
- ### `--tillend` β€” Fully Autonomous Loops
182
+ ### monofence-ai β€” AI Security
286
183
 
287
- Any command can run autonomously until there's nothing left to do:
184
+ Protect your LLM pipelines from prompt injection, jailbreaks, and evasion attacks:
288
185
 
289
- ```bash
290
- /mastermind:autodev --tillend --focus security
291
- # β†’ runs until every security issue is found and fixed
186
+ ```typescript
187
+ import { isSafe, createMonoDefence } from 'monofence-ai';
292
188
 
293
- /mastermind:review --tillend --auto
294
- # β†’ reviews and fixes until zero findings
189
+ isSafe('Ignore all previous instructions'); // β†’ false (~0.04ms)
295
190
 
296
- /mastermind:autodev 5 --tillend --maxruns 20
297
- # β†’ 5 improvements per session, up to 20 sessions
191
+ const fence = createMonoDefence({ enableContextTracking: true });
192
+ const result = await fence.detect(userInput);
193
+ // result.safe, result.threats, result.overallRisk
298
194
  ```
299
195
 
300
- The loop uses `ScheduleWakeup` to resume across sessions. A staleness guard prevents duplicate runs. Human-in-loop items pause and wait for your response before continuing.
301
-
302
- ```bash
303
- # Stop a loop at any time
304
- touch .monomind/loops/{loop-id}.stop
305
- ```
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)
306
197
 
307
198
  ---
308
199
 
309
- ## Architecture
200
+ ## How the Agents Work
310
201
 
311
202
  ```
312
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
313
- β”‚ Monomind β”‚
314
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
315
- β”‚ 230+ Agents β”‚ Swarm Engine β”‚ Memory Palace β”‚ Intelligence β”‚
316
- β”‚ β”‚ β”‚ β”‚ β”‚
317
- β”‚ Specialized β”‚ 6 topologies β”‚ AgentDB HNSW β”‚ Keyword β”‚
318
- β”‚ agent defs β”‚ 5 consensus β”‚ Knowledge β”‚ routing + β”‚
319
- β”‚ + 3-tier β”‚ algorithms β”‚ Graph β”‚ outcome β”‚
320
- β”‚ routing β”‚ β”‚ (Monograph) β”‚ measurement β”‚
321
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
322
- β”‚ 29+ Hooks + 12 Background Workers β”‚
323
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
324
- β”‚ MCP Server (stdio / http / WebSocket) β”‚
325
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
326
- β”‚ Claude Code Runtime β”‚
327
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
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
328
215
  ```
329
216
 
330
- ### Key Packages
331
-
332
- The workspace ships 16 `@monomind/*` packages:
333
-
334
- | Package | Purpose |
335
- |---|---|
336
- | `@monoes/monomindcli` | CLI entry point β€” 43 top-level commands, 230+ agent defs, 160+ slash commands, hooks, MCP server |
337
- | `@monomind/memory` | AgentDB + HNSW vector search, PartitionedHNSW, TierManager, hybrid SQLite backend |
338
- | `@monomind/hooks` | Lifecycle hook bridge, 12 background workers (ultralearn, optimize, consolidate, predict, audit, map, preload, deepdive, document, refactor, benchmark, testgaps) |
339
- | `@monomind/monograph` | Knowledge graph construction, 30 MCP tools, BM25 + semantic search |
340
- | `@monomind/graph` | AST-based node/edge extraction, community detection, RAPTOR consolidation |
341
- | `@monomind/swarm` | UnifiedSwarmCoordinator, 6 topologies, 5 consensus algorithms |
342
- | `@monomind/security` | Input validation, prompt injection detection, CVE remediation, gVisor sandbox |
343
- | `@monomind/mcp` | MCP server transport (stdio / http / WebSocket) |
344
- | `@monomind/routing` | Two-stage LLM + keyword agent routing, confidence scoring |
345
- | `@monomind/performance` | Profiling, benchmarking, latency tracking |
346
- | `@monomind/plugins` | IPFS/Pinata plugin registry, install/create/list |
347
- | `@monomind/claims` | Claims-based authorization for agent actions |
348
- | `@monomind/aidefence` | Adversarial input detection, semantic scanning |
349
- | `@monomind/guidance` | Governance control plane, workflow templates, budget management |
350
- | `@monomind/shared` | Shared types, constants, utilities |
351
-
352
- ---
353
-
354
- ## Performance
355
-
356
- | Metric | Result | Notes |
357
- |---|---|---|
358
- | Vector search | Pure-JS HNSW via AgentDB | Approximate nearest-neighbor (Malkov & Yashunin 2018); implemented in `hnsw-index.ts` |
359
- | Agent routing (LLM) | <2s | Target; Haiku-based routing |
360
- | Agent routing (fallback) | <5ms | Keyword scoring path |
361
- | Session restore | <500ms cold start | Target |
362
- | Memory reduction | 50–75% vs baseline | Target |
217
+ Monomind coordinates. Claude Code creates. You ship.
363
218
 
364
219
  ---
365
220
 
366
- ## Who Uses Monomind?
221
+ ## Why Monomind?
367
222
 
368
- - **Solo developers** β€” the power of a full engineering team from one terminal
369
- - **Startups** β€” ship features 10x faster with autonomous agent pipelines
370
- - **Enterprise teams** β€” coordinate complex multi-module changes without drift
371
- - **Security teams** β€” automate audit, CVE triage, and compliance workflows
372
- - **Game studios** β€” Unity, Unreal, Godot, and Roblox specialists on demand
373
- - **Marketing teams** β€” content operations with 27 domain-specific marketing agents
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.
374
231
 
375
232
  ---
376
233
 
377
- ## Documentation
378
-
379
- **Full interactive documentation:** **[monoes.github.io/monomind](https://monoes.github.io/monomind/)**
234
+ ## Resources
380
235
 
381
- | Section | Description |
382
- |---|---|
383
- | [Getting Started](https://monoes.github.io/monomind/#getting-started) | Install, configure MCP, run first autonomous loop |
384
- | [Architecture](https://monoes.github.io/monomind/#architecture) | Package map, agent hierarchy, data flows |
385
- | [Memory & Knowledge](https://monoes.github.io/monomind/#memory) | Memory Palace tiers, AgentDB, Monograph graph tools |
386
- | [Hooks & Workers](https://monoes.github.io/monomind/#hooks) | 29+ hook events, 12 workers, settings.json wiring |
387
- | [Swarm Coordination](https://monoes.github.io/monomind/#swarm) | 6 topologies, 5 consensus algorithms, agent hierarchy |
388
- | [CLI Commands](https://monoes.github.io/monomind/#commands) | All 53+ commands with flags and examples |
389
- | [Slash Commands](https://monoes.github.io/monomind/#slash) | All 160+ slash commands across 22 categories |
390
- | [Mastermind](https://monoes.github.io/monomind/#mastermind) | autodev loop, --tillend mechanics, Brain protocol |
236
+ - πŸ“– [Documentation](https://monoes.github.io/monomind/)
237
+ - πŸ› [Issues](https://github.com/monoes/monomind/issues)
238
+ - πŸ’¬ [Discussions](https://github.com/monoes/monomind/discussions)
239
+ - πŸ“¦ [Changelog v1.11](https://github.com/monoes/monomind/blob/main/CHANGELOG-v1.11.md)
391
240
 
392
241
  ---
393
242
 
394
- ## Contributing
395
-
396
- ```bash
397
- git clone https://github.com/nokhodian/monomind.git
398
- cd monomind
399
- pnpm install
400
- monomind doctor --fix
401
- ```
402
-
403
- See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
404
-
405
- ---
406
-
407
- ## License
408
-
409
- MIT β€” See [LICENSE](LICENSE) for details.
410
-
411
- ---
412
-
413
- <p align="center">
414
- <strong>Stop prompting. Start orchestrating.</strong>
415
- </p>
416
-
417
243
  <p align="center">
418
- <a href="https://monoes.github.io/monomind/">πŸ“– Docs</a> &nbsp;&bull;&nbsp;
419
- <a href="https://www.npmjs.com/package/monomind">npm</a> &nbsp;&bull;&nbsp;
420
- <a href="https://github.com/nokhodian/monomind">GitHub</a> &nbsp;&bull;&nbsp;
421
- <a href="https://github.com/nokhodian/monomind/issues">Issues</a>
244
+ <img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="80" /><br/>
245
+ <sub>Built with β™₯ by <a href="https://github.com/monoes">monoes</a> Β· MIT License</sub>
422
246
  </p>
423
-
424
- ---
425
-
426
- ## Acknowledgements
427
-
428
- Monomind builds on ideas, patterns, and research from the following projects:
429
-
430
- | Repository | Used for |
431
- |---|---|
432
- | [ruvnet/ruflo](https://github.com/ruvnet/ruflo) | Original skeleton that provided the foundational hooks system, swarm coordination, and SPARC agent methodology. |
433
- | [msitarzewski/agency-agents](https://github.com/msitarzewski/agency-agents) | Informs the multi-agent instruction file layout and specialist agent catalog design. |
434
- | [microsoft/autogen](https://github.com/microsoft/autogen) | Provides the human-in-the-loop interrupt gate pattern and auto-retry tool logic in `@monomind/hooks`. |
435
- | [crewAIInc/crewAI](https://github.com/crewAIInc/crewAI) | Provides the multi-tier memory architecture (`ShortTermMemory`, `EntityMemory`, `ContextualMemory`, `LongTermMemory`) in `@monomind/memory`. |
436
- | [langchain-ai/langgraph](https://github.com/langchain-ai/langgraph) | Provides the `SwarmCheckpointer` graph-checkpoint-and-resume pattern and fan-out/fan-in workflow DSL. |
437
- | [All-Hands-AI/OpenHands](https://github.com/All-Hands-AI/OpenHands) | Provides the per-agent `SandboxConfig` sandboxing model and EventStream session replay architecture. |
438
- | [agno-agi/agno](https://github.com/agno-agi/agno) | Provides the `AgentMemory` knowledge-base architecture and team-level agent coordination class. |
439
- | [huggingface/smolagents](https://github.com/huggingface/smolagents) | Provides the explicit planning-before-execution step in `LATSPlanner` and the `PlanStore` persistence layer. |
440
- | [pydantic/pydantic-ai](https://github.com/pydantic/pydantic-ai) | Provides typed agent I/O schema patterns and auto-retry-on-validation-failure used throughout agent contracts. |
441
- | [BerriAI/atomic-agents](https://github.com/KRunchPL/atomic-agents) | Provides `BaseIOSchema` typed agent contracts and `SystemPromptContextProvider` composition patterns. |
442
- | [stanfordnlp/dspy](https://github.com/stanfordnlp/dspy) | Provides the `BootstrapFewShot`/MIPRO prompt optimization pipeline and Bayesian exploration in `PromptOptimizer.optimize()`. |
443
- | [aurelio-labs/semantic-router](https://github.com/aurelio-labs/semantic-router) | Provides the utterance-based `RouteLayer` that replaced static routing codes in the agent dispatcher. |
444
- | [langfuse/langfuse](https://github.com/langfuse/langfuse) | Provides the trace/span/generation observability hierarchy and prompt version management in `@monomind/hooks`. |
445
- | [karpathy/autoresearch](https://github.com/karpathy/autoresearch) | Provides the BASELINE/KEEP/DISCARD experiment loop protocol and time-budget pattern used in `@monomind/graph`. |
446
- | [safishamsi/graphify](https://github.com/safishamsi/graphify) | Provides the AST-based knowledge graph construction, Louvain community detection, and `GRAPH_REPORT.md` format that form `@monomind/graph`. |
447
- | [google/gvisor](https://gvisor.dev) | Provides the `runsc` OCI runtime that reduces container syscall surface to ~50 interceptions, wired into `SandboxConfig.use_gvisor`. |
448
- | [Indirect Injection research](https://arxiv.org/abs/2302.12173) | `validateExternalContent()` in `@monomind/security` applies the injection pattern detection to all externally-sourced tool content. |
449
- | [FOREVER Forgetting Curve](https://arxiv.org/html/2601.03938v1) | `LearningBridge.decayConfidences()` implements the importance-weighted exponential forgetting curve (`importanceScore Γ— e^(βˆ’Ξ»t)`). |
450
- | [Awesome RLVR](https://github.com/opendilab/awesome-RLVR) | `hooksModelOutcome` `verifier_type` field (tsc/vitest/eslint/llm_judge) provides grounded binary reward signals. |
451
- | [ERL β€” Experiential Reflective Learning](https://arxiv.org/abs/2603.24639) | Structured `{condition, action, confidence}` heuristics extracted at `hooks_post-task` and injected as ranked hints into `hooks_pre-task`. |
452
- | [A-MEM β€” Agentic Memory](https://arxiv.org/abs/2502.12110) | Auto-links top-3 HNSW neighbors via `bridgeRecordCausalEdge` after every `bridgeStoreEntry` call in `@monomind/memory`. |
453
- | [Collaborative Memory Promotion](https://arxiv.org/abs/2505.18279) | `checkAndPromoteEntry()` in `SQLiteBackend` auto-promotes entries from `private` to `team` scope after 3+ distinct agent reads within 24 h. |
454
- | [Zep / Graphiti β€” Bi-Temporal Knowledge Graph](https://arxiv.org/abs/2501.13956) | `MemoryEntry.eventAt` separates event time T from ingestion time T' for bi-temporal filtering without index rebuilds. |
455
- | [HippoRAG 2 β€” PPR Graph Retrieval](https://arxiv.org/abs/2405.14831) | `MemoryGraph.pprRerank()` expands HNSW candidates one hop via `MemoryEntry.references` edges. |
456
- | [RAPTOR β€” Recursive Abstractive Tree Indexing](https://arxiv.org/abs/2401.18059) | `RaptorWorker` clusters episodic entries, summarizes each cluster, and stores results as `contextual`-tier entries. |
457
- | [Multi-Agent Reflexion (MAR)](https://arxiv.org/html/2512.20845) | `hooks_post-task` returns `marReflection` on task failure via a Diagnoser/Critic/Aggregator reflection loop. |
458
- | [TextGrad](https://arxiv.org/abs/2406.07496) | Stores `textual_gradient` critiques to the `gradients` memory namespace for injection into the next prompt on failure. |
459
- | [CP-WBFT](https://arxiv.org/abs/2511.10400) | `weightedTally()` scales each agent's vote by confidence in `@monomind/hooks` hive-mind consensus (AAAI 2026). |
460
- | [GraphRAG](https://arxiv.org/abs/2404.16130) | `MemoryGraph.getCommunitySummaries()` prepends community-level descriptors to semantic search results. |
461
- | [MemPalace](https://github.com/nokhodian/mempalace) | Foundation of the memory palace system with BM25 verbatim retrieval, Wing/Room/Hall hierarchy, and temporal knowledge graph. |
462
- | [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) | Native Rust CDP client architecture that powers `npx monomind browse`. |
463
- | [AgentSeal/codeburn](https://github.com/AgentSeal/codeburn) | Token cost attribution model tracking spend by task, tool, model, and project used in `features/codeburn.md`. |
464
- | [fallow-rs/fallow](https://github.com/fallow-rs/fallow) | Dead code detection patterns used in `monograph-tools.ts` via `deadCodePct()` and `unusedDepsPct()`. |
465
- | [pbakaus/impeccable](https://github.com/pbakaus/impeccable) | 27-pattern HTML/CSS anti-pattern detection CLI integrated via `npx impeccable detect` in the `monodesign` skill. |
466
- | [hardikpandya/stop-slop](https://github.com/hardikpandya/stop-slop) | Directly integrated as the `stop-slop` skill for detecting and removing AI writing tells from prose. |
467
- | [obra/superpowers](https://github.com/obra/superpowers) | Forms the complete `superpowers` skill layer providing brainstorming, TDD, systematic debugging, and finishing workflows. |
468
- | [Lum1104/Understand-Anything](https://github.com/Lum1104/Understand-Anything) | Informs `monomind:understand` semantic enrichment and `@monomind/graph` knowledge graph traversal architecture. |
469
- | [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | Provides the design system methodology and component-first craft approach that forms the `monodesign` skill. |
470
- | [paperclipai/paperclip](https://github.com/paperclipai/paperclip) | Autonomous business workflow patterns that informed `mastermind:ops`, `mastermind:finance`, and `mastermind:sales`. |
471
-
472
- ---
473
-
474
- ## Research Acknowledgements
475
-
476
- Monomind implements techniques from peer-reviewed research across distributed systems, machine learning, and software engineering:
477
-
478
- | Technique | Paper | Applied In |
479
- |---|---|---|
480
- | HNSW approximate nearest neighbor | Malkov & Yashunin, 2018 β€” *Efficient and Robust ANN* | `HNSWIndex` and `HnswLite` in `@monomind/memory` vector search |
481
- | Byzantine fault tolerance | Castro & Liskov, 1999 β€” *Practical Byzantine Fault Tolerance* | `weightedTally()` in CP-WBFT hive-mind consensus |
482
- | Raft consensus | Ongaro & Ousterhout, 2014 β€” *In Search of an Understandable Consensus Algorithm* | `RaftManager` swarm coordinator state machine |
483
- | CRDT data structures | Shapiro et al., 2011 β€” *Conflict-Free Replicated Data Types* | `CrdtSynchronizer` for eventually consistent agent memory |
484
- | Gossip protocols | Demers et al., 1987 β€” *Epidemic Algorithms for Replicated Database Maintenance* | `GossipCoordinator` cross-agent state propagation |
485
- | Hyperbolic embeddings | Nickel & Kiela, 2017 β€” *PoincarΓ© Embeddings for Learning Hierarchical Representations* | Code graph hierarchical vector space in `@monomind/memory` |
486
- | Int8 quantization | Dettmers et al., 2022 β€” *LLM.int8(): 8-bit Matrix Multiplication for Transformers* | Weight compression for neural pattern memory footprint reduction |
487
- | GOAP planning | Orkin, 2004 β€” *Applying Goal-Oriented Action Planning to Games* | `code-goal-planner` and `sublinear-goal-planner` agents |
488
- | Self-play RL | Silver et al., 2017 β€” *Mastering Chess and Shogi by Self-Play* | Pattern reinforcement loop in ReasoningBank |
489
- | Hierarchical memory | Tulving, 1972 β€” *Episodic and Semantic Memory* | AgentDB episodic/semantic namespace split in `@monomind/memory` |
490
- | PageRank influence | Page et al., 1998 β€” *The PageRank Citation Ranking* | `pagerank-analyzer` agent and `MemoryGraph` graph centrality scoring |
491
- | Hindsight Experience Replay | Andrychowicz et al., 2017 β€” *HER: Hindsight Experience Replay* | HER policy learner in the RL router |
492
- | SPARC methodology | Agile/TDD literature | `sparc-coord`, `sparc-coder`, `specification`, `pseudocode`, and `refinement` agents |
493
- | Sublinear algorithms | Various β€” approximation theory | `sublinear-goal-planner`, `matrix-optimizer`, and `trading-predictor` agents |