@monoes/monomindcli 1.6.3 → 1.6.4
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/commands/monomind-createtask.md +3 -3
- package/.claude/commands/monomind-do.md +2 -2
- package/.claude/commands/monomind-idea.md +2 -2
- package/.claude/helpers/graphify-freshen.cjs +5 -5
- package/README.md +307 -553
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +0 -1
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +6 -1
- package/dist/src/init/executor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/.claude/commands/{monobrain-help.md → monomind-help.md} +0 -0
- /package/.claude/commands/{monobrain-memory.md → monomind-memory.md} +0 -0
- /package/.claude/commands/{monobrain-swarm.md → monomind-swarm.md} +0 -0
package/README.md
CHANGED
|
@@ -1,687 +1,441 @@
|
|
|
1
|
-
<
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/hero-banner.png" alt="Monomind — AI Agent Orchestration" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="assets/logo.png" alt="Monomind Logo" width="120" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<h1 align="center">Monomind</h1>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<strong>The orchestration layer that turns Claude Code into an autonomous engineering team.</strong>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<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>
|
|
17
|
+
<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>
|
|
18
|
+
<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>
|
|
19
|
+
<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>
|
|
20
|
+
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-green?style=flat-square" alt="node" /></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<a href="#quickstart">Quickstart</a> •
|
|
25
|
+
<a href="#what-monomind-does">What It Does</a> •
|
|
26
|
+
<a href="#features">Features</a> •
|
|
27
|
+
<a href="#agent-catalog">Agent Catalog</a> •
|
|
28
|
+
<a href="#swarm-orchestration">Swarms</a> •
|
|
29
|
+
<a href="#commands">Commands</a> •
|
|
30
|
+
<a href="#memory--intelligence">Memory</a>
|
|
31
|
+
</p>
|
|
2
32
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<br/>
|
|
6
|
-
|
|
7
|
-
[](https://www.npmjs.com/package/monomind)
|
|
8
|
-
[](https://www.npmjs.com/package/monomind)
|
|
9
|
-
[](https://github.com/monoes/monomind)
|
|
10
|
-
[](https://opensource.org/licenses/MIT)
|
|
11
|
-
[](https://nodejs.org)
|
|
12
|
-
[](https://www.typescriptlang.org)
|
|
13
|
-
|
|
14
|
-
_Deploy 60+ specialized agents in coordinated swarms with self-learning capabilities, fault-tolerant consensus, and enterprise-grade security._
|
|
15
|
-
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
> **Why Monomind?** Claude Code is powerful — but it thinks alone. Monomind gives it a brain trust: a coordinated swarm of 100+ specialized agents that share memory, reach consensus, learn from every task, and route work to the right specialist automatically. Built on a WASM-powered intelligence layer, it gets smarter every session.
|
|
19
|
-
|
|
20
|
-
## How Monomind Works
|
|
33
|
+
---
|
|
21
34
|
|
|
22
|
-
|
|
23
|
-
User → Monomind (CLI/MCP) → Router → Swarm → Agents → Memory → LLM Providers
|
|
24
|
-
↑ ↓
|
|
25
|
-
└──── Learning Loop ←──────┘
|
|
26
|
-
```
|
|
35
|
+
## Why Monomind?
|
|
27
36
|
|
|
28
|
-
|
|
29
|
-
<summary>📐 <strong>Expanded Architecture</strong> — Full system diagram with RuVector intelligence</summary>
|
|
30
|
-
|
|
31
|
-
```mermaid
|
|
32
|
-
flowchart TB
|
|
33
|
-
subgraph USER["👤 User Layer"]
|
|
34
|
-
U[User]
|
|
35
|
-
CC[Claude Code]
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
subgraph ENTRY["🚪 Entry Layer"]
|
|
39
|
-
CLI[CLI / MCP Server]
|
|
40
|
-
AID[AIDefence Security]
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
subgraph ROUTING["🧭 Routing Layer"]
|
|
44
|
-
KW[Keyword Pre-Filter]
|
|
45
|
-
SEM[Semantic Router]
|
|
46
|
-
LLM_FB[LLM Fallback · Haiku]
|
|
47
|
-
TRIG[MicroAgent Triggers]
|
|
48
|
-
HK[17 Hooks · Event Bus]
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
subgraph SWARM["🐝 Swarm Coordination"]
|
|
52
|
-
TOPO[Topologies<br/>hierarchical/mesh/adaptive]
|
|
53
|
-
CONS[Consensus<br/>Raft/BFT/Gossip/CRDT]
|
|
54
|
-
CLM[Claims<br/>Trust Tiers]
|
|
55
|
-
GOV[Guidance<br/>Policy Gates]
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
subgraph AGENTS["🤖 100+ Agents"]
|
|
59
|
-
AG1[coder]
|
|
60
|
-
AG2[tester · reviewer]
|
|
61
|
-
AG3[architect · planner]
|
|
62
|
-
AG4[security-auditor]
|
|
63
|
-
AG5[devops · sre]
|
|
64
|
-
AG6[60+ more...]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
subgraph RESOURCES["📦 Resources"]
|
|
68
|
-
MEM[(AgentDB · HNSW · SQLite)]
|
|
69
|
-
PROV[Providers<br/>Claude/GPT/Gemini/Ollama]
|
|
70
|
-
WORK[12 Workers<br/>ultralearn/audit/optimize]
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
subgraph RUVECTOR["🧠 RuVector Intelligence"]
|
|
74
|
-
direction TB
|
|
75
|
-
SONA[SONA<br/>Self-Optimize<br/><0.05ms]
|
|
76
|
-
EWC[EWC++<br/>Anti-Forgetting]
|
|
77
|
-
FLASH[Flash Attention<br/>2.49–7.47x]
|
|
78
|
-
HNSW_I[HNSW<br/>150x–12500x]
|
|
79
|
-
RB[ReasoningBank<br/>RETRIEVE→JUDGE→DISTILL]
|
|
80
|
-
LORA[LoRA/MicroLoRA<br/>128x compress]
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
subgraph LEARNING["🔄 Learning Loop"]
|
|
84
|
-
L1[RETRIEVE] --> L2[JUDGE] --> L3[DISTILL] --> L4[CONSOLIDATE] --> L5[ROUTE]
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
U --> CC --> CLI --> AID
|
|
88
|
-
AID --> KW & SEM & LLM_FB & TRIG & HK
|
|
89
|
-
KW & SEM & LLM_FB & TRIG --> TOPO & CONS & CLM & GOV
|
|
90
|
-
TOPO & CONS --> AG1 & AG2 & AG3 & AG4 & AG5 & AG6
|
|
91
|
-
AG1 & AG2 & AG3 & AG4 & AG5 & AG6 --> MEM & PROV & WORK
|
|
92
|
-
MEM --> SONA & EWC & FLASH & HNSW_I & RB & LORA
|
|
93
|
-
LORA --> L1
|
|
94
|
-
L5 -.->|loop| SEM
|
|
95
|
-
```
|
|
37
|
+
You already use Claude Code. Monomind makes it **10x more powerful**.
|
|
96
38
|
|
|
97
|
-
**
|
|
39
|
+
Instead of one AI assistant handling everything, Monomind coordinates **230+ specialized agents** — architects, security auditors, performance engineers, frontend developers, database optimizers — each with domain expertise, working in parallel swarms that review each other's work.
|
|
98
40
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
| **EWC++** | Elastic Weight Consolidation — prevents catastrophic forgetting | Preserves all learned patterns |
|
|
103
|
-
| **Flash Attention** | Optimized attention computation | 2.49–7.47× speedup |
|
|
104
|
-
| **HNSW** | Hierarchical Navigable Small World vector search | 150×–12,500× faster |
|
|
105
|
-
| **ReasoningBank** | Pattern storage with RETRIEVE→JUDGE→DISTILL pipeline | Sub-ms recall |
|
|
106
|
-
| **Hyperbolic** | Poincaré ball embeddings for hierarchical data | Better code relationship mapping |
|
|
107
|
-
| **LoRA / MicroLoRA** | Low-Rank Adaptation weight compression | 128× compression ratio |
|
|
108
|
-
| **Int8 Quantization** | Memory-efficient weight storage | ~4× memory reduction |
|
|
109
|
-
| **9 RL Algorithms** | Q-Learning, SARSA, A2C, PPO, DQN, A3C, TD3, SAC, HER | Task-specific policy learning |
|
|
41
|
+
**The difference:**
|
|
42
|
+
- **Without Monomind:** You prompt Claude, it does its best across every domain.
|
|
43
|
+
- **With Monomind:** Claude spawns the *right specialist* for each subtask, coordinates them in fault-tolerant swarms, remembers everything across sessions, and learns from every interaction.
|
|
110
44
|
|
|
111
|
-
|
|
45
|
+
> One command. Entire engineering workflows. Zero babysitting.
|
|
112
46
|
|
|
113
47
|
---
|
|
114
48
|
|
|
115
|
-
##
|
|
116
|
-
|
|
117
|
-
**Option 1 — npx (recommended):**
|
|
49
|
+
## Quickstart
|
|
118
50
|
|
|
119
51
|
```bash
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
npx monomind@latest daemon start
|
|
123
|
-
npx monomind@latest doctor --fix
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
**Option 2 — Clone from GitHub:**
|
|
52
|
+
# Install globally
|
|
53
|
+
npm install -g monomind
|
|
127
54
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
npm install
|
|
132
|
-
node packages/@monomind/cli/bin/cli.js init --wizard
|
|
55
|
+
# Initialize in any project
|
|
56
|
+
cd your-project
|
|
57
|
+
monomind init
|
|
133
58
|
|
|
134
|
-
#
|
|
135
|
-
claude mcp add monomind
|
|
59
|
+
# Add MCP server to Claude Code
|
|
60
|
+
claude mcp add monomind npx monomind mcp start
|
|
136
61
|
```
|
|
137
62
|
|
|
138
|
-
|
|
63
|
+
That's it. Monomind is now active in your Claude Code sessions.
|
|
139
64
|
|
|
140
65
|
---
|
|
141
66
|
|
|
142
|
-
##
|
|
67
|
+
## Monomind Control — Live Dashboard
|
|
143
68
|
|
|
144
|
-
|
|
69
|
+
<p align="center">
|
|
70
|
+
<img src="assets/dashboard-control.png" alt="Monomind Control Dashboard" width="100%" />
|
|
71
|
+
</p>
|
|
145
72
|
|
|
146
|
-
|
|
73
|
+
Real-time visibility into every project, session, agent, memory, route decision, and token spend — all in one terminal-native dashboard.
|
|
147
74
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
⚡ **3-Tier Cost Routing** — Simple transforms run in WASM at <1ms and $0. Medium tasks use Haiku. Complex reasoning uses Sonnet/Opus. Smart routing cuts API costs by 30–50%.
|
|
151
|
-
|
|
152
|
-
🔌 **Deep Claude Code Integration** — 170+ MCP tools expose the full platform directly inside Claude Code sessions. The hooks system fires on every file edit, command, task start/end, and session event.
|
|
153
|
-
|
|
154
|
-
🔒 **Production-Grade Security** — CVE-hardened AIDefence layer blocks prompt injection, path traversal, command injection, and credential leakage. Per-agent WASM/Docker sandboxing with cryptographic audit proofs.
|
|
155
|
-
|
|
156
|
-
🧩 **Extensible Plugin System** — Add custom capabilities with the plugin SDK. Distribute via the IPFS-based decentralized marketplace. 20 plugins available today across core, integration, optimization, and domain categories.
|
|
75
|
+
---
|
|
157
76
|
|
|
158
|
-
|
|
77
|
+
## What Monomind Does
|
|
159
78
|
|
|
160
|
-
|
|
79
|
+
### From Prompt to Production
|
|
161
80
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
| Capability | Claude Code Alone | Claude Code + Monomind |
|
|
165
|
-
| ----------------------- | ------------------------------- | -------------------------------------------------------------------- |
|
|
166
|
-
| **Agent Collaboration** | One agent, isolated context | Swarms with shared memory and consensus |
|
|
167
|
-
| **Hive Mind** | ⛔ Not available | Queen-led hierarchical swarms with 3+ queen types |
|
|
168
|
-
| **Consensus** | ⛔ No multi-agent decisions | Byzantine fault-tolerant (f < n/3), Raft, Gossip, CRDT |
|
|
169
|
-
| **Memory** | Session-only, ephemeral | HNSW vector memory + knowledge graph, persistent cross-session |
|
|
170
|
-
| **Self-Learning** | Static, starts fresh every time | SONA self-optimization, EWC++ anti-forgetting, pattern reuse |
|
|
171
|
-
| **Task Routing** | Manual agent selection | Intelligent 3-layer routing (keyword → semantic → LLM), 89% accuracy |
|
|
172
|
-
| **Simple Transforms** | Full LLM call every time | Agent Booster (WASM): <1ms, $0 cost |
|
|
173
|
-
| **Background Work** | Nothing runs automatically | 12 workers auto-dispatch on hooks events |
|
|
174
|
-
| **LLM Providers** | Anthropic only | Claude, GPT, Gemini, Cohere, Ollama with failover and cost routing |
|
|
175
|
-
| **Security** | Standard Claude sandboxing | CVE-hardened, WASM/Docker sandbox per agent, cryptographic proofs |
|
|
176
|
-
| **Governance** | CLAUDE.md is advisory | Runtime-enforced policy gates with HMAC audit trail |
|
|
177
|
-
| **Cost** | Full LLM cost every task | 30–50% reduction via WASM, caching, smart routing |
|
|
81
|
+
Monomind turns high-level instructions into coordinated multi-agent execution:
|
|
178
82
|
|
|
179
|
-
|
|
83
|
+
```
|
|
84
|
+
You: "Add webhook delivery with retries and dead-letter queue"
|
|
85
|
+
|
|
86
|
+
Monomind:
|
|
87
|
+
1. Routes to Software Architect → designs the system
|
|
88
|
+
2. Spawns backend-dev → implements webhook dispatcher
|
|
89
|
+
3. Spawns backend-dev → implements retry logic with exponential backoff
|
|
90
|
+
4. Spawns Database Optimizer → designs dead-letter queue schema
|
|
91
|
+
5. Spawns tester → writes integration tests
|
|
92
|
+
6. Spawns Code Reviewer → reviews all changes
|
|
93
|
+
7. Commits, reports, moves to next task
|
|
94
|
+
```
|
|
180
95
|
|
|
181
|
-
|
|
96
|
+
### Autonomous Task Pipelines
|
|
182
97
|
|
|
183
|
-
|
|
184
|
-
|
|
98
|
+
```bash
|
|
99
|
+
# Turn a spec into executable tasks, then run them
|
|
100
|
+
/monomind:createtask docs/specs/webhook-system.md
|
|
185
101
|
|
|
186
|
-
|
|
102
|
+
# Or let it generate ideas, evaluate, and execute
|
|
103
|
+
/monomind:idea add real-time collaboration to the editor
|
|
187
104
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
│
|
|
191
|
-
├─► [Layer 1] Keyword pre-filter → instant match, zero LLM cost
|
|
192
|
-
│
|
|
193
|
-
├─► [Layer 2] Semantic routing → embedding similarity vs. agent catalog
|
|
194
|
-
│
|
|
195
|
-
└─► [Layer 3] LLM fallback (Haiku) → Haiku-powered classification for ambiguous tasks
|
|
105
|
+
# Pick up tasks and execute them autonomously
|
|
106
|
+
/monomind:do
|
|
196
107
|
```
|
|
197
108
|
|
|
198
|
-
|
|
109
|
+
---
|
|
199
110
|
|
|
200
|
-
|
|
201
|
-
| ----- | -------------------- | ------- | ------------- | ------------------------------------------------- |
|
|
202
|
-
| **1** | Agent Booster (WASM) | <1ms | **$0** | Simple transforms (var→const, add types, logging) |
|
|
203
|
-
| **2** | Haiku | ~500ms | ~$0.0002 | Moderate tasks, summaries, Q&A |
|
|
204
|
-
| **3** | Sonnet / Opus | 2–5s | $0.003–$0.015 | Architecture, security, complex reasoning |
|
|
111
|
+
## Features
|
|
205
112
|
|
|
206
|
-
|
|
113
|
+
### 230+ Specialized Agents
|
|
207
114
|
|
|
208
|
-
|
|
209
|
-
# Agent Booster can handle it — skip LLM entirely
|
|
210
|
-
[AGENT_BOOSTER_AVAILABLE] Intent: var-to-const
|
|
211
|
-
→ Use Edit tool directly, <1ms, $0
|
|
115
|
+
Not generic "code assistants" — domain experts with targeted system prompts, each optimized for a specific class of work.
|
|
212
116
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
117
|
+
| Category | Count | Examples |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| **Engineering** | 23 | Backend Architect, Frontend Developer, Database Optimizer, Embedded Firmware Engineer, SRE |
|
|
120
|
+
| **Marketing** | 27 | SEO Specialist, TikTok Strategist, Content Creator, Growth Hacker, LinkedIn Content Creator |
|
|
121
|
+
| **Specialized** | 27 | Legal Compliance, Finance Tracker, Salesforce Architect, Document Generator, MCP Builder |
|
|
122
|
+
| **Game Dev** | 20 | Unity Architect, Unreal Systems Engineer, Godot Scripter, Roblox Systems Scripter |
|
|
123
|
+
| **Sales** | 8 | Deal Strategist, Sales Engineer, Pipeline Analyst, Outbound Strategist |
|
|
124
|
+
| **Design** | 8 | UI Designer, UX Researcher, Brand Guardian, Visual Storyteller |
|
|
125
|
+
| **Paid Media** | 7 | PPC Strategist, Ad Creative Strategist, Programmatic Buyer, Tracking Specialist |
|
|
126
|
+
| **Support** | 6 | Support Responder, Analytics Reporter, Study Abroad Advisor, Trend Researcher |
|
|
127
|
+
| **Product** | 5 | Product Manager, Sprint Prioritizer, UX Researcher, Experiment Tracker |
|
|
128
|
+
| **Academic** | 5 | Anthropologist, Historian, Psychologist, Geographer, Narratologist |
|
|
129
|
+
| **And more...** | 94+ | Consensus, Swarm Coordination, Neural, SPARC, Architecture, DevOps, Testing |
|
|
217
130
|
|
|
218
|
-
|
|
131
|
+
### Two-Stage LLM Routing
|
|
219
132
|
|
|
220
|
-
|
|
221
|
-
| -------- | --------------------------------------- | -------------------- |
|
|
222
|
-
| Security | `auth`, `injection`, `CVE`, `secret` | `security-architect` |
|
|
223
|
-
| DevOps | `deploy`, `CI/CD`, `pipeline`, `k8s` | `devops-automator` |
|
|
224
|
-
| Database | `query`, `schema`, `migration`, `index` | `database-optimizer` |
|
|
225
|
-
| Frontend | `React`, `CSS`, `component`, `SSR` | `frontend-dev` |
|
|
226
|
-
| Solidity | `contract`, `ERC`, `Solidity`, `DeFi` | `solidity-engineer` |
|
|
133
|
+
Monomind doesn't guess which agent to use — it **asks an LLM**.
|
|
227
134
|
|
|
228
|
-
|
|
135
|
+
```
|
|
136
|
+
Stage 1: "This task is about SEO optimization" → marketing domain
|
|
137
|
+
Stage 2: "Best fit in marketing: SEO Specialist" → spawns SEO Specialist
|
|
138
|
+
```
|
|
229
139
|
|
|
230
|
-
|
|
231
|
-
<summary>🐝 <strong>Swarm Coordination</strong> — How agents organize and reach consensus</summary>
|
|
140
|
+
Runs in under 2 seconds via Haiku. Falls back to keyword scoring if the API is unavailable.
|
|
232
141
|
|
|
233
|
-
|
|
142
|
+
### Swarm Orchestration
|
|
234
143
|
|
|
235
|
-
|
|
236
|
-
| ---------------- | ------------------------------------ | ------------------- |
|
|
237
|
-
| **Hierarchical** | Coding tasks, feature work (default) | Raft (leader-based) |
|
|
238
|
-
| **Mesh** | Distributed exploration, research | Gossip / CRDT |
|
|
239
|
-
| **Adaptive** | Auto-switches based on load | Byzantine (BFT) |
|
|
144
|
+
Coordinate multiple agents working on the same problem:
|
|
240
145
|
|
|
241
|
-
|
|
146
|
+
| Topology | Best For |
|
|
147
|
+
|---|---|
|
|
148
|
+
| **Hierarchical** | Feature development — coordinator delegates to specialists |
|
|
149
|
+
| **Mesh** | Research — all agents share findings peer-to-peer |
|
|
150
|
+
| **Hierarchical-Mesh** | Complex projects — structured delegation with cross-talk |
|
|
151
|
+
| **Adaptive** | Unknown complexity — topology evolves based on task |
|
|
242
152
|
|
|
243
|
-
|
|
244
|
-
| ------------------- | ------------------------ | ---------------------------------- |
|
|
245
|
-
| **Raft** | f < n/2 | Authoritative state, coding swarms |
|
|
246
|
-
| **Byzantine (BFT)** | f < n/3 | Untrusted environments |
|
|
247
|
-
| **Gossip** | Eventual consistency | Large swarms (100+ agents) |
|
|
248
|
-
| **CRDT** | No coordination overhead | Conflict-free concurrent writes |
|
|
153
|
+
**Consensus protocols:** Raft (leader-based), Byzantine (fault-tolerant), Gossip (eventually consistent), CRDT (conflict-free), Quorum (majority vote).
|
|
249
154
|
|
|
250
|
-
|
|
155
|
+
<p align="center">
|
|
156
|
+
<img src="assets/swarm-topology.png" alt="Swarm Topology" width="60%" />
|
|
157
|
+
</p>
|
|
251
158
|
|
|
252
159
|
```bash
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
--max-agents 8 \
|
|
256
|
-
--strategy specialized \
|
|
257
|
-
--consensus raft
|
|
258
|
-
```
|
|
160
|
+
# Let Monomind pick the best topology
|
|
161
|
+
/mastermind
|
|
259
162
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
| `max-agents 6–8` | Smaller team = less coordination overhead |
|
|
264
|
-
| `specialized` | Clear roles, no task overlap |
|
|
265
|
-
| `raft` | Single leader maintains authoritative state |
|
|
163
|
+
# Or configure manually
|
|
164
|
+
monomind swarm init --topology hierarchical --agents 8 --strategy specialized
|
|
165
|
+
```
|
|
266
166
|
|
|
267
|
-
|
|
167
|
+
### Self-Learning Memory
|
|
268
168
|
|
|
269
|
-
|
|
270
|
-
| -------------- | --------------------------------------------------- |
|
|
271
|
-
| Bug fix | coordinator · researcher · coder · tester |
|
|
272
|
-
| New feature | coordinator · architect · coder · tester · reviewer |
|
|
273
|
-
| Refactor | coordinator · architect · coder · reviewer |
|
|
274
|
-
| Performance | coordinator · perf-engineer · coder |
|
|
275
|
-
| Security audit | coordinator · security-architect · auditor |
|
|
169
|
+
Every interaction makes Monomind smarter:
|
|
276
170
|
|
|
277
|
-
|
|
171
|
+
- **AgentDB** — Persistent vector memory with HNSW indexing (150x-12,500x faster search)
|
|
172
|
+
- **Knowledge Graph** — Full dependency mapping of your codebase via Graphify
|
|
173
|
+
- **Session Continuity** — Pick up exactly where you left off across sessions
|
|
174
|
+
- **Neural Patterns** — SONA learning adapts routing and agent behavior over time
|
|
175
|
+
- **Memory Palace** — Visual dashboard for exploring stored knowledge
|
|
278
176
|
|
|
279
|
-
<
|
|
280
|
-
<
|
|
177
|
+
<p align="center">
|
|
178
|
+
<img src="assets/memory-palace.png" alt="Memory Palace — Browse memories, sessions, knowledge, and swarms" width="100%" />
|
|
179
|
+
</p>
|
|
281
180
|
|
|
282
|
-
|
|
181
|
+
### 17 Hooks + 12 Background Workers
|
|
283
182
|
|
|
284
|
-
|
|
285
|
-
RETRIEVE ──► JUDGE ──► DISTILL ──► CONSOLIDATE
|
|
286
|
-
│ │ │ │
|
|
287
|
-
HNSW search success/fail LoRA extract EWC++ preserve
|
|
288
|
-
150x faster verdicts 128x compress anti-forgetting
|
|
289
|
-
```
|
|
183
|
+
Monomind hooks into every phase of your Claude Code workflow:
|
|
290
184
|
|
|
291
|
-
|
|
185
|
+
| Hook | What It Does |
|
|
186
|
+
|---|---|
|
|
187
|
+
| `pre-task` | Routes to the best agent before execution starts |
|
|
188
|
+
| `post-task` | Learns from outcomes, updates neural patterns |
|
|
189
|
+
| `pre-edit` | Validates changes against project conventions |
|
|
190
|
+
| `post-edit` | Indexes new code into the knowledge graph |
|
|
191
|
+
| `session-start` | Restores context, preloads relevant memory |
|
|
192
|
+
| `session-end` | Persists learnings, updates metrics |
|
|
292
193
|
|
|
293
|
-
|
|
294
|
-
| --------------------- | ------------------------------------------------------------- |
|
|
295
|
-
| **Episodic memory** | Full task histories with timestamps and outcomes |
|
|
296
|
-
| **Entity extraction** | Automatic extraction of code entities into structured records |
|
|
297
|
-
| **Procedural memory** | Learned skills from `.monomind/skills.jsonl` |
|
|
298
|
-
| **Vector search** | 384-dim embeddings, sub-ms retrieval via HNSW |
|
|
299
|
-
| **Knowledge graph** | PageRank + community detection for structural insights |
|
|
300
|
-
| **Agent isolation** | Per-agent memory scopes prevent cross-contamination |
|
|
301
|
-
| **Hybrid backend** | SQLite + AgentDB, zero native binary dependencies |
|
|
194
|
+
**Background workers** handle: optimization, consolidation, prediction, auditing, documentation, refactoring, benchmarking, and test gap analysis — all running autonomously.
|
|
302
195
|
|
|
303
|
-
|
|
196
|
+
---
|
|
304
197
|
|
|
305
|
-
|
|
198
|
+
## Agent Catalog
|
|
306
199
|
|
|
307
|
-
|
|
308
|
-
<summary>⚡ <strong>Agent Booster (WASM)</strong> — Skip the LLM for simple code transforms</summary>
|
|
200
|
+
### Development
|
|
309
201
|
|
|
310
|
-
Agent
|
|
202
|
+
| Agent | Specialty |
|
|
203
|
+
|---|---|
|
|
204
|
+
| `coder` | General implementation with TDD |
|
|
205
|
+
| `backend-dev` | APIs, databases, server-side logic |
|
|
206
|
+
| `Frontend Developer` | React, Vue, Angular, CSS systems |
|
|
207
|
+
| `mobile-dev` | React Native, iOS, Android |
|
|
208
|
+
| `Rapid Prototyper` | Fast MVPs and proof-of-concepts |
|
|
209
|
+
| `Solidity Smart Contract Engineer` | EVM, DeFi, gas optimization |
|
|
210
|
+
| `WeChat Mini Program Developer` | WXML/WXSS, WeChat ecosystem |
|
|
211
|
+
| `Embedded Firmware Engineer` | ESP32, ARM Cortex-M, FreeRTOS |
|
|
212
|
+
| `visionOS Spatial Engineer` | SwiftUI volumetric, Liquid Glass |
|
|
213
|
+
|
|
214
|
+
### Architecture & Quality
|
|
215
|
+
|
|
216
|
+
| Agent | Specialty |
|
|
217
|
+
|---|---|
|
|
218
|
+
| `Software Architect` | System design, DDD, architectural patterns |
|
|
219
|
+
| `Code Reviewer` | Correctness, security, performance review |
|
|
220
|
+
| `Security Engineer` | Threat modeling, vulnerability assessment |
|
|
221
|
+
| `Database Optimizer` | Schema design, query tuning, indexing |
|
|
222
|
+
| `SRE` | SLOs, error budgets, chaos engineering |
|
|
311
223
|
|
|
312
|
-
|
|
313
|
-
| -------------------- | ------------------------------ | ----------- |
|
|
314
|
-
| `var-to-const` | `var x = 1` → `const x = 1` | 352× faster |
|
|
315
|
-
| `add-types` | Add TypeScript annotations | 420× faster |
|
|
316
|
-
| `add-error-handling` | Wrap in try/catch | 380× faster |
|
|
317
|
-
| `async-await` | `.then()` → `async/await` | 290× faster |
|
|
318
|
-
| `add-logging` | Insert structured debug logs | 352× faster |
|
|
319
|
-
| `remove-console` | Strip all `console.*` calls | 352× faster |
|
|
320
|
-
| `format-string` | Modernize to template literals | 400× faster |
|
|
321
|
-
| `null-check` | Add `?.` / `??` operators | 310× faster |
|
|
224
|
+
### Marketing & Growth
|
|
322
225
|
|
|
323
|
-
|
|
226
|
+
| Agent | Specialty |
|
|
227
|
+
|---|---|
|
|
228
|
+
| `SEO Specialist` | Technical SEO, content optimization |
|
|
229
|
+
| `TikTok Strategist` | Viral content, algorithm optimization |
|
|
230
|
+
| `LinkedIn Content Creator` | Thought leadership, professional content |
|
|
231
|
+
| `Growth Hacker` | Viral loops, conversion funnels |
|
|
232
|
+
| `Content Creator` | Multi-platform editorial calendars |
|
|
324
233
|
|
|
325
|
-
|
|
234
|
+
### Game Development
|
|
326
235
|
|
|
327
|
-
|
|
328
|
-
|
|
236
|
+
| Agent | Specialty |
|
|
237
|
+
|---|---|
|
|
238
|
+
| `Unity Architect` | ScriptableObjects, modular systems |
|
|
239
|
+
| `Unreal Systems Engineer` | C++/Blueprint, Nanite, Lumen |
|
|
240
|
+
| `Godot Gameplay Scripter` | GDScript 2.0, signal architecture |
|
|
241
|
+
| `Roblox Systems Scripter` | Luau, client-server, DataStore |
|
|
329
242
|
|
|
330
|
-
|
|
243
|
+
[See all 230 agents →](.claude/agents/)
|
|
331
244
|
|
|
332
|
-
|
|
333
|
-
| ---------------------------- | ---------- | ------------------------------------------- |
|
|
334
|
-
| ReasoningBank retrieval | –32% | Fetches relevant patterns, not full context |
|
|
335
|
-
| Agent Booster transforms | –15% | Simple edits skip LLM entirely |
|
|
336
|
-
| Pattern cache (95% hit rate) | –10% | Reuses embeddings and routing decisions |
|
|
337
|
-
| Optimal batch size | –20% | Groups related operations |
|
|
338
|
-
| **Combined** | **30–50%** | Multiplicative stacking |
|
|
245
|
+
---
|
|
339
246
|
|
|
340
|
-
|
|
247
|
+
## Swarm Orchestration
|
|
341
248
|
|
|
342
|
-
|
|
343
|
-
<summary>🏛️ <strong>Governance</strong> — Runtime policy enforcement from CLAUDE.md</summary>
|
|
249
|
+
### How Swarms Work
|
|
344
250
|
|
|
345
|
-
|
|
251
|
+
<p align="center">
|
|
252
|
+
<img src="assets/swarm-inspector.png" alt="Swarm Inspector — topology graph, agent roles, and communication logs" width="100%" />
|
|
253
|
+
</p>
|
|
346
254
|
|
|
347
255
|
```
|
|
348
|
-
|
|
256
|
+
/mastermind "implement authentication system with OAuth2, JWT, and role-based access"
|
|
257
|
+
|
|
258
|
+
Monomind recommends: Hierarchical swarm, 6 agents, Raft consensus
|
|
259
|
+
|
|
260
|
+
Queen Coordinator
|
|
261
|
+
├── Software Architect → designs auth architecture
|
|
262
|
+
├── backend-dev → implements OAuth2 flow
|
|
263
|
+
├── backend-dev → implements JWT + RBAC
|
|
264
|
+
├── Security Engineer → audits for vulnerabilities
|
|
265
|
+
├── tester → writes auth test suite
|
|
266
|
+
└── Code Reviewer → reviews everything before merge
|
|
349
267
|
```
|
|
350
268
|
|
|
351
|
-
|
|
352
|
-
| ----------- | ------------------------------------------------------------------- |
|
|
353
|
-
| **Enforce** | Destructive ops, tool allowlist, diff size limits, secret detection |
|
|
354
|
-
| **Trust** | Per-agent trust accumulation with privilege tiers |
|
|
355
|
-
| **Prove** | HMAC-SHA256 hash-chained audit envelopes |
|
|
356
|
-
| **Defend** | Prompt injection, memory poisoning, collusion detection |
|
|
357
|
-
| **Evolve** | Policy drift detection, auto-update proposals |
|
|
269
|
+
### Anti-Drift Protection
|
|
358
270
|
|
|
359
|
-
|
|
271
|
+
Swarms don't just run — they **stay on track**:
|
|
360
272
|
|
|
361
|
-
|
|
273
|
+
- **Raft consensus** — Leader maintains authoritative state, prevents conflicting changes
|
|
274
|
+
- **Frequent checkpoints** — `post-task` hooks validate progress after every step
|
|
275
|
+
- **Shared memory namespace** — All agents in a swarm see the same context
|
|
276
|
+
- **Review cycles** — Code reviewer validates before any task is marked done
|
|
362
277
|
|
|
363
278
|
---
|
|
364
279
|
|
|
365
|
-
##
|
|
366
|
-
|
|
367
|
-
### Prerequisites
|
|
280
|
+
## Commands
|
|
368
281
|
|
|
369
|
-
|
|
370
|
-
- **Claude Code** — `npm install -g @anthropic-ai/claude-code`
|
|
282
|
+
### Slash Commands (Inside Claude Code)
|
|
371
283
|
|
|
372
|
-
|
|
284
|
+
| Command | What It Does |
|
|
285
|
+
|---|---|
|
|
286
|
+
| `/monomind:createtask <spec>` | Ingests a prompt, file, or folder → generates full implementation plan → creates self-contained tasks on monotask |
|
|
287
|
+
| `/monomind:idea <prompt>` | Research swarm generates ideas → PM evaluates → architect decomposes into tasks |
|
|
288
|
+
| `/monomind:do` | Picks up tasks, executes with assigned agents, reviews, fixes bugs, loops |
|
|
289
|
+
| `/mastermind` | Analyzes your task and recommends the optimal swarm topology |
|
|
290
|
+
| `/specialagent <task>` | Two-stage LLM routing to find the perfect specialist agent |
|
|
373
291
|
|
|
374
|
-
|
|
292
|
+
### CLI Commands
|
|
375
293
|
|
|
376
294
|
```bash
|
|
377
|
-
|
|
295
|
+
monomind agent spawn --type coder # Spawn a specific agent
|
|
296
|
+
monomind agent list # List running agents
|
|
297
|
+
monomind swarm init # Initialize a swarm
|
|
298
|
+
monomind memory search "auth patterns" # Search vector memory
|
|
299
|
+
monomind hooks route --task "fix bug" # Route to best agent
|
|
300
|
+
monomind doctor --fix # Diagnose and fix issues
|
|
301
|
+
monomind daemon start # Start background workers
|
|
378
302
|
```
|
|
379
303
|
|
|
380
|
-
|
|
304
|
+
41 CLI commands across: agent management, swarm coordination, memory, sessions, hooks, neural training, security, performance profiling, and more.
|
|
381
305
|
|
|
382
|
-
|
|
383
|
-
npx monomind@latest init --wizard
|
|
384
|
-
```
|
|
306
|
+
### Session Inspector
|
|
385
307
|
|
|
386
|
-
|
|
308
|
+
Every session is recorded and browsable — tool calls, agent spawns, memory operations, and full conversation replay:
|
|
387
309
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
310
|
+
<p align="center">
|
|
311
|
+
<img src="assets/session-detail.png" alt="Session Inspector — full conversation replay with tool breakdown" width="100%" />
|
|
312
|
+
</p>
|
|
391
313
|
|
|
392
|
-
|
|
393
|
-
npx monomind@latest daemon start
|
|
314
|
+
---
|
|
394
315
|
|
|
395
|
-
|
|
396
|
-
npx monomind@latest doctor --fix
|
|
397
|
-
```
|
|
316
|
+
## Memory & Intelligence
|
|
398
317
|
|
|
399
|
-
###
|
|
318
|
+
### Knowledge Graph (Graphify)
|
|
319
|
+
|
|
320
|
+
Monomind builds a full dependency graph of your codebase — automatically queried before every task:
|
|
400
321
|
|
|
401
322
|
```bash
|
|
402
|
-
#
|
|
403
|
-
|
|
323
|
+
# What files are relevant to my task?
|
|
324
|
+
graphify_suggest "add webhook retry logic"
|
|
325
|
+
# → returns ranked list of files with relevance scores
|
|
404
326
|
|
|
405
|
-
#
|
|
406
|
-
|
|
327
|
+
# What depends on UserService?
|
|
328
|
+
graphify_query "UserService dependencies"
|
|
329
|
+
# → returns file paths + line numbers
|
|
407
330
|
|
|
408
|
-
#
|
|
409
|
-
|
|
331
|
+
# Find the most connected files in the codebase
|
|
332
|
+
graphify_god_nodes
|
|
333
|
+
# → returns high-centrality internal files (external/test filtered out)
|
|
410
334
|
```
|
|
411
335
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
## ⚡ Slash Commands
|
|
336
|
+
All graphify tools are called automatically by hooks and slash commands — you don't need to invoke them manually.
|
|
415
337
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
---
|
|
338
|
+
### Vector Memory (AgentDB + HNSW)
|
|
419
339
|
|
|
420
|
-
|
|
340
|
+
Every insight, pattern, and decision is stored in searchable vector memory:
|
|
421
341
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
| **`/use-agent [slug]`** | Instantly activates a non-dev specialist agent — Sales Coach, TikTok Strategist, Legal Compliance Checker, UX Researcher, etc. Without a slug, auto-picks from conversation context. |
|
|
426
|
-
| **`/list-agents [category]`** | Lists all available specialist agents, optionally filtered by category (`marketing`, `sales`, `design`, `academic`, `product`, `project-management`, `support`). |
|
|
342
|
+
- **150x-12,500x faster** than brute-force search via HNSW indexing
|
|
343
|
+
- **Hybrid backend** — SQLite for structured data, AgentDB for semantic search
|
|
344
|
+
- **Cross-session persistence** — context survives restarts
|
|
427
345
|
|
|
428
|
-
|
|
346
|
+
### Neural Learning (SONA)
|
|
429
347
|
|
|
430
|
-
|
|
348
|
+
Self-Optimizing Neural Adaptation learns from every task:
|
|
431
349
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
| **`/browse <url>`** | Navigates to a URL and walks through it step by step — narrating what's on screen, proposing actions, and helping you accomplish tasks via the browser. |
|
|
436
|
-
| **`/crawl <url>`** | Crawls a website — extracts links, text, structured data, or anything you specify. Great for scraping, auditing, or data extraction tasks. |
|
|
437
|
-
| **`/browser`** | Raw agent-browser session: opens an interactive browser automation context with snapshot, click, fill, and screenshot tools. Use when you need fine-grained control. |
|
|
350
|
+
- Pattern recognition improves agent routing over time
|
|
351
|
+
- Trajectory tracking identifies what works and what doesn't
|
|
352
|
+
- Automatic model adaptation with <0.05ms overhead
|
|
438
353
|
|
|
439
354
|
---
|
|
440
355
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
| Command | What it does |
|
|
444
|
-
|---|---|
|
|
445
|
-
| **`/sparc`** | Runs the full SPARC orchestrator — breaks down your objective, delegates to the right modes, and coordinates the full development lifecycle. |
|
|
446
|
-
| **`/sparc spec-pseudocode`** | Captures requirements, edge cases, and constraints, then translates them into structured pseudocode ready for implementation. |
|
|
447
|
-
| **`/sparc code`** | Auto-coder mode — writes clean, efficient, modular code from pseudocode or a spec. |
|
|
448
|
-
| **`/sparc debug`** | Debugger mode — traces runtime bugs, logic errors, and integration failures systematically. |
|
|
449
|
-
| **`/sparc security-review`** | Security reviewer — static and dynamic audit, flags secrets, poor module boundaries, and injection risks. |
|
|
450
|
-
| **`/sparc devops`** | DevOps mode — CI/CD, Docker, deployment automation. |
|
|
451
|
-
| **`/sparc docs-writer`** | Writes clear, modular Markdown documentation: READMEs, API references, usage guides. |
|
|
452
|
-
| **`/sparc refinement-optimization-mode`** | Refactors, modularizes, and improves system performance. Enforces file size limits and dependency hygiene. |
|
|
453
|
-
| **`/sparc integration`** | System integrator — merges outputs of all modes into a working, tested, production-ready system. |
|
|
356
|
+
## Architecture
|
|
454
357
|
|
|
455
|
-
|
|
358
|
+
```
|
|
359
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
360
|
+
│ Monomind │
|
|
361
|
+
├──────────────┬──────────────┬──────────────┬───────────────┤
|
|
362
|
+
│ 230+ Agents │ Swarm Engine │ Memory Layer │ Intelligence │
|
|
363
|
+
│ │ │ │ │
|
|
364
|
+
│ Specialized │ Hierarchical │ AgentDB │ SONA Neural │
|
|
365
|
+
│ agent defs │ Mesh/Raft │ HNSW Vector │ Pattern │
|
|
366
|
+
│ + routing │ consensus │ Knowledge │ Learning │
|
|
367
|
+
│ │ │ Graph │ │
|
|
368
|
+
├──────────────┴──────────────┴──────────────┴───────────────┤
|
|
369
|
+
│ 17 Hooks + 12 Workers │
|
|
370
|
+
├─────────────────────────────────────────────────────────────┤
|
|
371
|
+
│ MCP Server (stdio/http/websocket) │
|
|
372
|
+
├─────────────────────────────────────────────────────────────┤
|
|
373
|
+
│ Claude Code Runtime │
|
|
374
|
+
└─────────────────────────────────────────────────────────────┘
|
|
375
|
+
```
|
|
456
376
|
|
|
457
|
-
###
|
|
377
|
+
### Key Packages
|
|
458
378
|
|
|
459
|
-
|
|
|
379
|
+
| Package | Purpose |
|
|
460
380
|
|---|---|
|
|
461
|
-
|
|
|
462
|
-
|
|
|
463
|
-
|
|
|
381
|
+
| `@monomind/cli` | 41 commands, agent definitions, slash commands, hooks, MCP server |
|
|
382
|
+
| `@monomind/memory` | AgentDB with HNSW vector search |
|
|
383
|
+
| `@monomind/hooks` | 17 lifecycle hooks + 12 background workers |
|
|
384
|
+
| `@monomind/security` | Input validation, CVE remediation |
|
|
385
|
+
| `@monomind/guidance` | Governance control plane |
|
|
464
386
|
|
|
465
387
|
---
|
|
466
388
|
|
|
467
|
-
|
|
389
|
+
## Performance
|
|
468
390
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
<summary>🔧 <strong>Core Development</strong></summary>
|
|
477
|
-
|
|
478
|
-
| Agent | Specialization |
|
|
479
|
-
| ------------ | ---------------------------------------------------- |
|
|
480
|
-
| `coder` | Clean, efficient implementation across any language |
|
|
481
|
-
| `reviewer` | Code review — correctness, security, maintainability |
|
|
482
|
-
| `tester` | TDD, integration, E2E, coverage analysis |
|
|
483
|
-
| `planner` | Task decomposition, sprint planning, roadmap |
|
|
484
|
-
| `researcher` | Deep research, information gathering |
|
|
485
|
-
| `architect` | System design, DDD, architectural patterns |
|
|
486
|
-
| `analyst` | Code quality analysis and improvement |
|
|
487
|
-
|
|
488
|
-
</details>
|
|
489
|
-
|
|
490
|
-
<details>
|
|
491
|
-
<summary>🔒 <strong>Security</strong></summary>
|
|
492
|
-
|
|
493
|
-
| Agent | Specialization |
|
|
494
|
-
| -------------------- | -------------------------------------------------------- |
|
|
495
|
-
| `security-architect` | Threat modeling, secure design, vulnerability assessment |
|
|
496
|
-
| `security-auditor` | Smart contract audits, CVE analysis |
|
|
497
|
-
| `security-engineer` | Application security, OWASP, secure code review |
|
|
498
|
-
| `threat-detection` | SIEM rules, MITRE ATT&CK, detection engineering |
|
|
499
|
-
| `compliance-auditor` | SOC 2, ISO 27001, HIPAA, PCI-DSS |
|
|
500
|
-
|
|
501
|
-
</details>
|
|
502
|
-
|
|
503
|
-
<details>
|
|
504
|
-
<summary>🐝 <strong>Swarm & Consensus</strong></summary>
|
|
505
|
-
|
|
506
|
-
| Agent | Specialization |
|
|
507
|
-
| -------------------------- | --------------------------------------------------------- |
|
|
508
|
-
| `hierarchical-coordinator` | Queen-led coordination with specialized worker delegation |
|
|
509
|
-
| `mesh-coordinator` | P2P mesh, distributed decision-making, fault tolerance |
|
|
510
|
-
| `adaptive-coordinator` | Dynamic topology switching, self-organizing |
|
|
511
|
-
| `byzantine-coordinator` | BFT consensus, malicious actor detection |
|
|
512
|
-
| `raft-manager` | Raft protocol, leader election, log replication |
|
|
513
|
-
| `gossip-coordinator` | Gossip-based eventual consistency |
|
|
514
|
-
| `crdt-synchronizer` | Conflict-free replication |
|
|
515
|
-
| `consensus-coordinator` | Sublinear solvers, fast agreement |
|
|
516
|
-
|
|
517
|
-
</details>
|
|
518
|
-
|
|
519
|
-
<details>
|
|
520
|
-
<summary>🚀 <strong>DevOps & Infrastructure</strong></summary>
|
|
521
|
-
|
|
522
|
-
| Agent | Specialization |
|
|
523
|
-
| -------------------- | --------------------------------------------------- |
|
|
524
|
-
| `devops-automator` | CI/CD pipelines, infrastructure automation |
|
|
525
|
-
| `cicd-engineer` | GitHub Actions, pipeline creation |
|
|
526
|
-
| `sre` | SLOs, error budgets, chaos engineering |
|
|
527
|
-
| `incident-response` | Production incident management, post-mortems |
|
|
528
|
-
| `database-optimizer` | Schema design, query optimization, PostgreSQL/MySQL |
|
|
529
|
-
| `data-engineer` | Data pipelines, lakehouse, dbt, Spark, streaming |
|
|
530
|
-
|
|
531
|
-
</details>
|
|
532
|
-
|
|
533
|
-
<details>
|
|
534
|
-
<summary>🌐 <strong>Frontend, Mobile & Specialized</strong></summary>
|
|
535
|
-
|
|
536
|
-
| Agent | Specialization |
|
|
537
|
-
| ------------------- | ----------------------------------------------- |
|
|
538
|
-
| `frontend-dev` | React/Vue/Angular, UI, performance optimization |
|
|
539
|
-
| `mobile-dev` | React Native iOS/Android, cross-platform |
|
|
540
|
-
| `accessibility` | WCAG, screen readers, inclusive design |
|
|
541
|
-
| `solidity-engineer` | EVM smart contracts, gas optimization, DeFi, L2 |
|
|
542
|
-
| `ml-engineer` | ML model development, training, deployment |
|
|
543
|
-
| `embedded-firmware` | ESP32, STM32, FreeRTOS, Zephyr, bare-metal |
|
|
544
|
-
| `backend-architect` | Scalable systems, microservices, API design |
|
|
545
|
-
| `technical-writer` | Developer docs, API references, tutorials |
|
|
546
|
-
|
|
547
|
-
</details>
|
|
548
|
-
|
|
549
|
-
<details>
|
|
550
|
-
<summary>🔀 <strong>GitHub Workflow Automation</strong></summary>
|
|
551
|
-
|
|
552
|
-
| Agent | Specialization |
|
|
553
|
-
| --------------------- | --------------------------------------------------- |
|
|
554
|
-
| `pr-manager` | PR lifecycle, review coordination, merge management |
|
|
555
|
-
| `code-review-swarm` | Parallel multi-agent code review |
|
|
556
|
-
| `release-manager` | Automated release coordination, changelog |
|
|
557
|
-
| `repo-architect` | Repository structure, multi-repo management |
|
|
558
|
-
| `issue-tracker` | Issue management, project coordination |
|
|
559
|
-
| `workflow-automation` | GitHub Actions creation and optimization |
|
|
560
|
-
|
|
561
|
-
</details>
|
|
562
|
-
|
|
563
|
-
<details>
|
|
564
|
-
<summary>🔬 <strong>SPARC Methodology</strong></summary>
|
|
565
|
-
|
|
566
|
-
| Agent | Specialization |
|
|
567
|
-
| --------------- | --------------------------------------- |
|
|
568
|
-
| `sparc-coord` | SPARC orchestrator across all 5 phases |
|
|
569
|
-
| `specification` | Requirements analysis and decomposition |
|
|
570
|
-
| `pseudocode` | Algorithm design, logic planning |
|
|
571
|
-
| `architecture` | System design from spec |
|
|
572
|
-
| `refinement` | Iterative improvement |
|
|
573
|
-
| `sparc-coder` | TDD-driven implementation from specs |
|
|
574
|
-
|
|
575
|
-
View all: `npx monomind@latest agent list`
|
|
576
|
-
|
|
577
|
-
</details>
|
|
391
|
+
| Metric | Result |
|
|
392
|
+
|---|---|
|
|
393
|
+
| Agent routing | <2s (LLM) / <5ms (keyword fallback) |
|
|
394
|
+
| Vector search | 150x-12,500x faster (HNSW) |
|
|
395
|
+
| SONA learning | <0.05ms per adaptation |
|
|
396
|
+
| Session restore | <500ms cold start |
|
|
397
|
+
| Memory reduction | 50-75% vs baseline |
|
|
578
398
|
|
|
579
399
|
---
|
|
580
400
|
|
|
581
|
-
##
|
|
401
|
+
## Who Uses Monomind?
|
|
582
402
|
|
|
583
|
-
Monomind
|
|
403
|
+
Monomind is built for teams and individuals who use Claude Code for serious engineering work:
|
|
584
404
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
──────────────────────────────────────────────────────────────────────────────────────
|
|
592
|
-
🧩 ARCH 82/82 ADRs │ DDD ▰▰▱▱▱ 40% │ 🛡️ ✖ NONE │ CVE not scanned
|
|
593
|
-
──────────────────────────────────────────────────────────────────────────────────────
|
|
594
|
-
🗄️ MEMORY 0 vectors │ 2.0 MB │ 🧪 66 test files │ MCP 1/1 DB ✔
|
|
595
|
-
──────────────────────────────────────────────────────────────────────────────────────
|
|
596
|
-
📋 CONTEXT 📄 SI 80% budget (1201/1500 chars) │ 🏗 ▰▰▱▱▱ 2/5 domains │ 💾 47 MB RAM
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
| Row | Shows |
|
|
600
|
-
| ----------- | ------------------------------------------------------------------- |
|
|
601
|
-
| **Header** | Version, session state, git user, branch, uncommitted changes |
|
|
602
|
-
| **INTEL** | Intelligence score, knowledge chunks indexed, learned patterns |
|
|
603
|
-
| **SWARM** | Active agents, hook count, microagent triggers, last routing result |
|
|
604
|
-
| **ARCH** | ADR compliance, DDD domain coverage, security gates, CVE status |
|
|
605
|
-
| **MEMORY** | Vector count, DB size, test file count, MCP/DB health |
|
|
606
|
-
| **CONTEXT** | Shared instructions budget, domain coverage, RAM usage |
|
|
607
|
-
|
|
608
|
-
Toggle compact ↔ full: `/ts` — Full reference: [tagline.md](tagline.md)
|
|
405
|
+
- **Solo developers** who want the power of a full engineering team
|
|
406
|
+
- **Startups** shipping features faster with autonomous agent pipelines
|
|
407
|
+
- **Enterprise teams** coordinating complex multi-module changes
|
|
408
|
+
- **Game studios** using specialized Unity/Unreal/Godot agents
|
|
409
|
+
- **Marketing teams** running content operations with domain-specific agents
|
|
410
|
+
- **Security teams** automating audit and compliance workflows
|
|
609
411
|
|
|
610
412
|
---
|
|
611
413
|
|
|
612
|
-
## Packages
|
|
613
|
-
|
|
614
|
-
todo: write about packages of this app
|
|
615
|
-
|
|
616
|
-
## Plugins
|
|
617
|
-
|
|
618
|
-
todo: write about plugins of this app
|
|
619
|
-
20 plugins via the IPFS-distributed registry:
|
|
620
|
-
|
|
621
|
-
```bash
|
|
622
|
-
npx monomind@latest plugins list
|
|
623
|
-
npx monomind@latest plugins install @monomind/plugin-name
|
|
624
|
-
npx monomind@latest plugins create my-plugin
|
|
625
|
-
```
|
|
626
|
-
|
|
627
414
|
## Contributing
|
|
628
415
|
|
|
629
416
|
```bash
|
|
630
417
|
git clone https://github.com/nokhodian/monomind.git
|
|
631
|
-
cd monomind
|
|
418
|
+
cd monomind
|
|
632
419
|
pnpm install
|
|
633
|
-
|
|
420
|
+
monomind doctor --fix
|
|
634
421
|
```
|
|
635
422
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
| | |
|
|
639
|
-
| ------------- | -------------------------------------------------------------------------------------- |
|
|
640
|
-
| Documentation | [github.com/nokhodian/monomind](https://github.com/nokhodian/monomind) |
|
|
641
|
-
| Issues | [github.com/nokhodian/monomind/issues](https://github.com/nokhodian/monomind/issues) |
|
|
642
|
-
| Enterprise | [monoes.me](monoes.me) |
|
|
423
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
643
424
|
|
|
644
425
|
---
|
|
645
426
|
|
|
646
|
-
|
|
427
|
+
## License
|
|
428
|
+
|
|
429
|
+
MIT License — See [LICENSE](LICENSE) for details.
|
|
647
430
|
|
|
648
431
|
---
|
|
649
432
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
| [crewAIInc/crewAI](https://github.com/crewAIInc/crewAI) | Multi-tier memory (short/long/entity/contextual), role/goal/backstory agent registry, task context chaining, and output schema patterns |
|
|
660
|
-
| [langchain-ai/langgraph](https://github.com/langchain-ai/langgraph) | Graph checkpointing + resume, `StateGraph` workflow DSL (fan-out/fan-in, conditional, loops), and entity extraction from conversation state |
|
|
661
|
-
| [All-Hands-AI/OpenHands](https://github.com/All-Hands-AI/OpenHands) | Per-agent Docker/WASM sandboxing, semantic versioned agent registry (AgentHub), and EventStream session replay |
|
|
662
|
-
| [agno-agi/agno](https://github.com/agno-agi/agno) | `AgentMemory` knowledge base architecture and team-level agent coordination class |
|
|
663
|
-
| [huggingface/smolagents](https://github.com/huggingface/smolagents) | Explicit planning step before execution and `ManagedAgent` delegation wrapper |
|
|
664
|
-
| [pydantic/pydantic-ai](https://github.com/pydantic/pydantic-ai) | Typed `Agent[Deps, Result]` I/O schemas, auto-retry on validation failure, `TestModel` for deterministic CI, and dynamic system prompt functions |
|
|
665
|
-
| [BAAI/AgentSwarm (Agency Swarm)](https://github.com/VRSEN/agency-swarm) | Declared directed communication flows between agents and shared instruction propagation |
|
|
666
|
-
| [BerriAI/atomic-agents](https://github.com/KRunchPL/atomic-agents) | `BaseIOSchema` typed agent contracts and `SystemPromptContextProvider` composition |
|
|
667
|
-
| [stanfordnlp/dspy](https://github.com/stanfordnlp/dspy) | `BootstrapFewShot` + MIPRO automatic prompt optimization pipeline |
|
|
668
|
-
| [aurelio-labs/semantic-router](https://github.com/aurelio-labs/semantic-router) | Utterance-based `RouteLayer` replacing static routing codes, dynamic routes, and hybrid routing mode |
|
|
669
|
-
| [langfuse/langfuse](https://github.com/langfuse/langfuse) | Unified trace/span/generation observability hierarchy, per-agent cost attribution, latency views, and prompt version management |
|
|
670
|
-
| [karpathy/autoresearch](https://github.com/karpathy/autoresearch) | Experiment loop protocol (BASELINE/KEEP/DISCARD `results.tsv`), fixed time-budget per run, and Best-Fit Decreasing bin packing for API chunking — wired into `@monomind/graph` pipeline |
|
|
671
|
-
| [safishamsi/graphify](https://github.com/safishamsi/graphify) | Knowledge graph construction approach, AST-based node/edge extraction, community detection with Louvain, and `GRAPH_REPORT.md` report format — foundation for `@monomind/graph` |
|
|
672
|
-
| [google/gvisor](https://gvisor.dev) ([paper](https://dl.acm.org/doi/10.1145/3317550.3321422)) | gVisor `runsc` OCI-compatible runtime — reduces Docker container syscall surface from 350+ to ~50 interceptions; wired into `SandboxConfig.use_gvisor` and `buildDockerArgs()` |
|
|
673
|
-
| [Indirect Injection research](https://arxiv.org/abs/2302.12173) ([follow-up](https://arxiv.org/abs/2310.12815)) | Prompt injection via external tool content — `validateExternalContent()` in `@monomind/security` applies pattern + optional aidefence semantic scan to all externally-sourced content |
|
|
674
|
-
| [FOREVER Forgetting Curve](https://arxiv.org/html/2601.03938v1) | Exponential importance-weighted forgetting curve (`importanceScore × e^(−λt)`) replacing linear decay — implemented in `LearningBridge.decayConfidences()` and `MemoryEntry.importanceScore` |
|
|
675
|
-
| [Awesome RLVR](https://github.com/opendilab/awesome-RLVR) | Reinforcement Learning with Verifiable Rewards — `hooksModelOutcome` now accepts `verifier_type` (tsc/vitest/eslint/llm_judge) and `exit_code` to derive grounded binary reward signals |
|
|
676
|
-
| [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` suggestions via the `heuristics` memory namespace |
|
|
677
|
-
| [A-MEM — Agentic Memory](https://arxiv.org/abs/2502.12110) | Zettelkasten-style automatic note linking — after every `bridgeStoreEntry`, top-3 HNSW neighbors above 0.7 similarity receive a `similar` causal edge via `bridgeRecordCausalEdge` |
|
|
678
|
-
| [DSPy](https://dspy.ai) | Bayesian exploration option (`bayesian: true`) added to `PromptOptimizer.optimize()` — shuffles trace scores with U(0,0.1) noise before `selectExamples` to escape local optima |
|
|
679
|
-
| [Collaborative Memory Promotion](https://arxiv.org/abs/2505.18279) | Auto-promote memory `access_level` from `private` → `team` when 3+ distinct agents read an entry within 24 h — implemented via `agent_reads` table in `SQLiteBackend` and `checkAndPromoteEntry()` |
|
|
680
|
-
| [Zep / Graphiti — Bi-Temporal Knowledge Graph](https://arxiv.org/abs/2501.13956) ([repo](https://github.com/getzep/graphiti)) | Separates event time T from ingestion time T' — `MemoryEntry.eventAt` nullable field + `event_at` SQLite column for temporal filtering without index rebuilds; 94.8% on Deep Memory Retrieval at 90% lower latency than MemGPT |
|
|
681
|
-
| [HippoRAG 2 — PPR Graph Retrieval](https://arxiv.org/abs/2405.14831) | Personalized PageRank over the memory reference graph — `MemoryGraph.pprRerank()` expands HNSW candidates one hop via `MemoryEntry.references`, boosting associative recall by up to 20% on multi-hop QA |
|
|
682
|
-
| [RAPTOR — Recursive Abstractive Tree Indexing](https://arxiv.org/abs/2401.18059) | Cluster episodic entries → summarize each cluster → store as `contextual`-tier entry — implemented in the `consolidate` background worker (`runConsolidateWorker`), creating RAPTOR's tree within existing stores |
|
|
683
|
-
| [Multi-Agent Reflexion (MAR)](https://arxiv.org/html/2512.20845) | Heterogeneous Diagnoser → Critic×2 → Aggregator reflection loop — `hooks_post-task` now returns `marReflection` when a task fails, specifying the four agent roles and spawn order |
|
|
684
|
-
| [TextGrad — Automatic Differentiation via Text](https://arxiv.org/abs/2406.07496) ([Nature](https://www.nature.com)) | LLM textual gradients flow backward through the pipeline — on `hooks_post-task` failure a `textual_gradient` critique is stored to the `gradients` memory namespace for next-prompt injection; +20% on LeetCode-Hard |
|
|
685
|
-
| [CP-WBFT — Confidence-Probe Weighted BFT](https://arxiv.org/abs/2511.10400) | Confidence-weighted voting replaces one-node-one-vote — `weightedTally()` in `consensus/vote-signer.ts` scales each agent's vote by its confidence score, tolerating 85.7% fault rate (AAAI 2026) |
|
|
686
|
-
| [GraphRAG + Practical GraphRAG](https://arxiv.org/abs/2404.16130) ([Practical](https://arxiv.org/abs/2507.03226)) | Community-level global query answering — `MemoryGraph.getCommunitySummaries()` returns top-k community descriptors (nodeCount, avgPageRank) for prepending to semantic search results; enables thematic reasoning over the entire knowledge base |
|
|
687
|
-
| [MemPalace](https://github.com/nokhodian/mempalace) | Spatially-organized verbatim memory with Wing→Room→Hall hierarchy, Okapi BM25 + closet-topic hybrid retrieval, score-based L1 promotion, and temporal knowledge graph — implemented in `.claude/helpers/memory-palace.cjs`; injects L0 identity + L1 essential story on every session start via `SessionStart` hook; achieves 96.6% LongMemEval recall without summarization |
|
|
433
|
+
<p align="center">
|
|
434
|
+
<strong>Stop prompting. Start orchestrating.</strong>
|
|
435
|
+
</p>
|
|
436
|
+
|
|
437
|
+
<p align="center">
|
|
438
|
+
<a href="https://www.npmjs.com/package/monomind">npm</a> •
|
|
439
|
+
<a href="https://github.com/nokhodian/monomind">GitHub</a> •
|
|
440
|
+
<a href="https://github.com/nokhodian/monomind/issues">Issues</a>
|
|
441
|
+
</p>
|