@monoes/monomindcli 1.11.8 β 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.
- package/.claude/agents/github/issue-tracker.md +5 -5
- package/.claude/agents/github/pr-manager.md +5 -5
- package/.claude/agents/github/release-manager.md +3 -3
- package/.claude/agents/github/repo-architect.md +3 -3
- package/.claude/agents/github/swarm-issue.md +1 -1
- package/.claude/agents/github/sync-coordinator.md +1 -1
- package/.claude/agents/github/workflow-automation.md +1 -1
- package/.claude/commands/github/repo-architect.md +1 -1
- package/.claude/commands/github/sync-coordinator.md +1 -1
- package/.claude/commands/mastermind/createorg.md +4 -1
- package/.claude/commands/mastermind/help.md +2 -2
- package/.claude/commands/mastermind/orgs.md +21 -0
- package/.claude/commands/mastermind/orgstatus.md +59 -0
- package/.claude/commands/mastermind/runorg.md +4 -2
- package/.claude/commands/mastermind/stoporg.md +78 -0
- package/.claude/commands/mastermind/swarm.md +1 -1
- package/.claude/helpers/handlers/gates-handler.cjs +135 -0
- package/.claude/helpers/handlers/task-handler.cjs +7 -3
- package/.claude/helpers/hook-handler.cjs +11 -2
- package/.claude/helpers/intelligence.cjs +87 -0
- package/.claude/helpers/learning-service.mjs +60 -0
- package/.claude/helpers/memory.cjs +69 -0
- package/.claude/helpers/router.cjs +68 -0
- package/.claude/helpers/session.cjs +63 -0
- package/.claude/helpers/utils/monograph.cjs +4 -2
- package/.claude/helpers/utils/telemetry.cjs +3 -2
- package/.claude/skills/agentic-jujutsu/SKILL.md +1 -1
- package/.claude/skills/hive-mind-advanced/SKILL.md +4 -4
- package/.claude/skills/mastermind/_agent-select.md +2 -2
- package/.claude/skills/mastermind/access.md +11 -11
- package/.claude/skills/mastermind/adapter-manager.md +13 -13
- package/.claude/skills/mastermind/adapters.md +7 -7
- package/.claude/skills/mastermind/agent-detail.md +1 -1
- package/.claude/skills/mastermind/agents.md +5 -5
- package/.claude/skills/mastermind/approval-detail.md +6 -6
- package/.claude/skills/mastermind/approve.md +9 -10
- package/.claude/skills/mastermind/backup.md +2 -2
- package/.claude/skills/mastermind/bootstrap.md +2 -2
- package/.claude/skills/mastermind/companies.md +7 -7
- package/.claude/skills/mastermind/createorg.md +213 -8
- package/.claude/skills/mastermind/diagnose.md +4 -4
- package/.claude/skills/mastermind/env.md +1 -1
- package/.claude/skills/mastermind/environments.md +8 -8
- package/.claude/skills/mastermind/export.md +12 -3
- package/.claude/skills/mastermind/goal-detail.md +9 -9
- package/.claude/skills/mastermind/goals.md +4 -4
- package/.claude/skills/mastermind/heartbeat.md +1 -1
- package/.claude/skills/mastermind/idea.md +4 -4
- package/.claude/skills/mastermind/import.md +8 -8
- package/.claude/skills/mastermind/inbox.md +4 -4
- package/.claude/skills/mastermind/instance-settings.md +9 -9
- package/.claude/skills/mastermind/instance.md +9 -7
- package/.claude/skills/mastermind/invite-landing.md +5 -5
- package/.claude/skills/mastermind/invites.md +12 -12
- package/.claude/skills/mastermind/issue-detail.md +8 -8
- package/.claude/skills/mastermind/monitor.md +11 -11
- package/.claude/skills/mastermind/my-issues.md +6 -6
- package/.claude/skills/mastermind/new-agent.md +4 -4
- package/.claude/skills/mastermind/org-chart.md +8 -6
- package/.claude/skills/mastermind/org-settings.md +58 -21
- package/.claude/skills/mastermind/orgs.md +98 -0
- package/.claude/skills/mastermind/orgstatus.md +194 -0
- package/.claude/skills/mastermind/plan-to-tasks.md +1 -1
- package/.claude/skills/mastermind/plugin-manager.md +12 -12
- package/.claude/skills/mastermind/plugin-settings.md +5 -5
- package/.claude/skills/mastermind/plugins.md +5 -5
- package/.claude/skills/mastermind/profile.md +2 -2
- package/.claude/skills/mastermind/project-detail.md +12 -12
- package/.claude/skills/mastermind/project-workspace.md +4 -4
- package/.claude/skills/mastermind/projects.md +4 -4
- package/.claude/skills/mastermind/review.md +50 -0
- package/.claude/skills/mastermind/routine-detail.md +3 -3
- package/.claude/skills/mastermind/routines.md +7 -6
- package/.claude/skills/mastermind/runorg.md +178 -8
- package/.claude/skills/mastermind/search.md +6 -6
- package/.claude/skills/mastermind/secrets.md +6 -6
- package/.claude/skills/mastermind/skills.md +4 -4
- package/.claude/skills/mastermind/stoporg.md +138 -0
- package/.claude/skills/mastermind/workspace-detail.md +5 -5
- package/.claude/skills/mastermind/workspaces.md +9 -9
- package/.claude/skills/performance-analysis/SKILL.md +3 -3
- package/.claude/skills/sparc-methodology/SKILL.md +2 -2
- package/.claude/skills/swarm-advanced/SKILL.md +4 -4
- package/README.md +129 -376
- package/dist/src/agents/registry-builder.d.ts +27 -1
- package/dist/src/agents/registry-builder.d.ts.map +1 -1
- package/dist/src/agents/registry-builder.js +2 -2
- package/dist/src/agents/registry-builder.js.map +1 -1
- package/dist/src/commands/agent.d.ts.map +1 -1
- package/dist/src/commands/agent.js +4 -9
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.d.ts +1 -1
- package/dist/src/commands/analyze.js +1 -1
- package/dist/src/commands/claims.d.ts +1 -1
- package/dist/src/commands/claims.js +2 -2
- package/dist/src/commands/claims.js.map +1 -1
- package/dist/src/commands/cleanup.d.ts +1 -1
- package/dist/src/commands/cleanup.js +1 -1
- package/dist/src/commands/completions.d.ts +1 -1
- package/dist/src/commands/completions.js +1 -1
- package/dist/src/commands/deployment.d.ts +1 -1
- package/dist/src/commands/deployment.js +2 -2
- package/dist/src/commands/deployment.js.map +1 -1
- package/dist/src/commands/doctor.d.ts +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +69 -4
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/guidance.d.ts.map +1 -1
- package/dist/src/commands/guidance.js +129 -0
- package/dist/src/commands/guidance.js.map +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +4 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +18 -0
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/monovector/import.d.ts +1 -1
- package/dist/src/commands/monovector/import.js +1 -1
- package/dist/src/commands/monovector/index.d.ts +1 -1
- package/dist/src/commands/monovector/index.js +1 -1
- package/dist/src/commands/monovector/setup.d.ts +1 -1
- package/dist/src/commands/monovector/setup.js +2 -2
- package/dist/src/commands/neural.d.ts +1 -1
- package/dist/src/commands/neural.js +2 -2
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/performance.d.ts +1 -1
- package/dist/src/commands/performance.js +2 -2
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/platforms.d.ts +1 -1
- package/dist/src/commands/platforms.js +1 -1
- package/dist/src/commands/plugins.d.ts +1 -1
- package/dist/src/commands/plugins.d.ts.map +1 -1
- package/dist/src/commands/plugins.js +2 -4
- package/dist/src/commands/plugins.js.map +1 -1
- package/dist/src/commands/providers.d.ts +1 -1
- package/dist/src/commands/providers.js +2 -2
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/route.d.ts +1 -1
- package/dist/src/commands/route.d.ts.map +1 -1
- package/dist/src/commands/route.js +5 -11
- package/dist/src/commands/route.js.map +1 -1
- package/dist/src/commands/security.d.ts +1 -1
- package/dist/src/commands/security.d.ts.map +1 -1
- package/dist/src/commands/security.js +140 -91
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/dlq/dlq-replayer.d.ts +7 -1
- package/dist/src/dlq/dlq-replayer.d.ts.map +1 -1
- package/dist/src/dlq/dlq-replayer.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +10 -26
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/claudemd-generator.js +2 -2
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.js +3 -3
- package/dist/src/init/settings-generator.js +2 -2
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/mcp-client.d.ts +5 -0
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +7 -0
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +17 -1
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/a2a-tools.js +6 -6
- package/dist/src/mcp-tools/a2a-tools.js.map +1 -1
- package/dist/src/mcp-tools/auto-install.d.ts +2 -2
- package/dist/src/mcp-tools/auto-install.js +1 -1
- package/dist/src/mcp-tools/auto-install.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +1 -52
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +4 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +4 -0
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/monograph-compat.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-compat.js +1 -2
- package/dist/src/mcp-tools/monograph-compat.js.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.js +107 -5
- package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.d.ts +6 -6
- package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +48 -61
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +0 -1
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +232 -57
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +3 -32
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts.map +1 -1
- package/dist/src/plugins/store/discovery.js +0 -69
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/routing/embed-worker.d.ts +2 -0
- package/dist/src/routing/embed-worker.d.ts.map +1 -0
- package/dist/src/routing/embed-worker.js +55 -0
- package/dist/src/routing/embed-worker.js.map +1 -0
- package/dist/src/routing/embedder.d.ts +31 -0
- package/dist/src/routing/embedder.d.ts.map +1 -0
- package/dist/src/routing/embedder.js +0 -0
- package/dist/src/routing/embedder.js.map +1 -0
- package/dist/src/routing/llm-caller.d.ts +1 -1
- package/dist/src/routing/llm-caller.d.ts.map +1 -1
- package/dist/src/routing/llm-caller.js +18 -3
- package/dist/src/routing/llm-caller.js.map +1 -1
- package/dist/src/routing/route-layer-factory.d.ts +9 -0
- package/dist/src/routing/route-layer-factory.d.ts.map +1 -0
- package/dist/src/routing/route-layer-factory.js +151 -0
- package/dist/src/routing/route-layer-factory.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -1
- package/dist/src/services/worker-daemon.js +0 -1
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/src/suggest.d.ts +1 -1
- package/dist/src/suggest.js +1 -1
- package/dist/src/ui/server.mjs +5 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -10
- package/scripts/publish-registry.ts +0 -2
- package/scripts/understand-analyze.mjs +1 -1
package/README.md
CHANGED
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/
|
|
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>
|
|
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
|
-
|
|
17
|
-
|
|
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/
|
|
25
|
-
<a href="https://github.com/
|
|
26
|
-
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-
|
|
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/">π
|
|
31
|
-
<a href="#quickstart">Quickstart</a>  
|
|
32
|
-
<a href="#what-
|
|
33
|
-
<a href="#
|
|
34
|
-
<a href="#
|
|
35
|
-
<a href="
|
|
22
|
+
<a href="https://monoes.github.io/monomind/">π Docs</a> Β·
|
|
23
|
+
<a href="#quickstart">Quickstart</a> Β·
|
|
24
|
+
<a href="#what-it-does">What It Does</a> Β·
|
|
25
|
+
<a href="#commands">Commands</a> Β·
|
|
26
|
+
<a href="#packages">Packages</a> Β·
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
53
|
-
|
|
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
|
-
#
|
|
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
|
-
|
|
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
|
|
81
|
-
|
|
82
|
-
### Autonomous Build Loop β `/mastermind:autodev`
|
|
78
|
+
## What It Does
|
|
83
79
|
|
|
84
|
-
|
|
80
|
+
### `/mastermind:autodev` β The Autonomous Build Loop
|
|
85
81
|
|
|
86
82
|
```
|
|
87
|
-
Phase 1 Research
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|
92
|
-
|
|
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
|
|
95
|
-
|
|
90
|
+
Phase 3 Build Spawns architect β coder β tester β reviewer chain.
|
|
91
|
+
Runs with concrete spec and acceptance criteria.
|
|
96
92
|
|
|
97
|
-
Phase 4 Review
|
|
98
|
-
|
|
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
|
|
101
|
-
|
|
96
|
+
Phase 5 Loop Records completion. Continues to next improvement.
|
|
97
|
+
--tillend loops until zero findings remain.
|
|
102
98
|
```
|
|
103
99
|
|
|
104
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
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
|
-
|
|
113
|
+
---
|
|
133
114
|
|
|
134
|
-
|
|
115
|
+
## Commands
|
|
135
116
|
|
|
136
|
-
|
|
117
|
+
### Core Loop Commands
|
|
137
118
|
|
|
138
|
-
|
|
|
119
|
+
| Command | What it does |
|
|
139
120
|
|---|---|
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
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
|
-
|
|
154
|
-
<img src="assets/swarm-topology.png" alt="Swarm Topology" width="70%" />
|
|
155
|
-
</p>
|
|
129
|
+
### Research & Ideas
|
|
156
130
|
|
|
157
|
-
|
|
|
131
|
+
| Command | What it does |
|
|
158
132
|
|---|---|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
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
|
-
|
|
138
|
+
### Autonomous Orgs
|
|
167
139
|
|
|
168
140
|
```bash
|
|
169
|
-
/mastermind
|
|
170
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
195
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
|
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
|
-
##
|
|
252
|
-
|
|
253
|
-
### 53+ CLI Commands
|
|
173
|
+
## Packages
|
|
254
174
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
monomind
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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` | [](https://www.npmjs.com/package/monomind) | Umbrella β install this |
|
|
178
|
+
| `@monoes/monomindcli` | [](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (41 commands) |
|
|
179
|
+
| `monofence-ai` | [](https://www.npmjs.com/package/monofence-ai) | AI manipulation defence |
|
|
180
|
+
| `@monoes/monograph` | [](https://www.npmjs.com/package/@monoes/monograph) | Knowledge graph engine |
|
|
284
181
|
|
|
285
|
-
###
|
|
182
|
+
### monofence-ai β AI Security
|
|
286
183
|
|
|
287
|
-
|
|
184
|
+
Protect your LLM pipelines from prompt injection, jailbreaks, and evasion attacks:
|
|
288
185
|
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
# β runs until every security issue is found and fixed
|
|
186
|
+
```typescript
|
|
187
|
+
import { isSafe, createMonoDefence } from 'monofence-ai';
|
|
292
188
|
|
|
293
|
-
|
|
294
|
-
# β reviews and fixes until zero findings
|
|
189
|
+
isSafe('Ignore all previous instructions'); // β false (~0.04ms)
|
|
295
190
|
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
200
|
+
## How the Agents Work
|
|
310
201
|
|
|
311
202
|
```
|
|
312
|
-
|
|
313
|
-
β
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
β
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
221
|
+
## Why Monomind?
|
|
367
222
|
|
|
368
|
-
- **
|
|
369
|
-
- **
|
|
370
|
-
- **
|
|
371
|
-
- **
|
|
372
|
-
- **
|
|
373
|
-
- **
|
|
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
|
-
##
|
|
378
|
-
|
|
379
|
-
**Full interactive documentation:** **[monoes.github.io/monomind](https://monoes.github.io/monomind/)**
|
|
234
|
+
## Resources
|
|
380
235
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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
|
-
<
|
|
419
|
-
<a href="https://
|
|
420
|
-
<a href="https://github.com/nokhodian/monomind">GitHub</a> •
|
|
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 |
|