monomind 1.6.9 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.claude/commands/monomind-createtask.md +75 -113
  2. package/.claude/commands/monomind-do.md +227 -115
  3. package/.claude/commands/monomind-idea.md +30 -104
  4. package/.claude/commands/monomind-improve.md +31 -103
  5. package/.claude/helpers/graphify-freshen.cjs +12 -97
  6. package/.claude/helpers/hook-handler.cjs +16 -0
  7. package/.claude/helpers/learning-service.mjs +0 -0
  8. package/.claude/helpers/metrics-db.mjs +0 -0
  9. package/.claude/helpers/statusline.cjs +89 -65
  10. package/.claude/helpers/swarm-hooks.sh +0 -0
  11. package/.claude/settings.local.json +2 -1
  12. package/.claude/skills/monomind-task-engine/SKILL.md +358 -0
  13. package/.claude/statusline-command.sh +0 -0
  14. package/.claude/statusline.sh +0 -0
  15. package/.claude-plugin/scripts/install.sh +0 -0
  16. package/.claude-plugin/scripts/uninstall.sh +0 -0
  17. package/.claude-plugin/scripts/verify.sh +0 -0
  18. package/package.json +17 -17
  19. package/packages/@monomind/cli/bin/cli.js +0 -0
  20. package/packages/@monomind/cli/bin/mcp-server.js +0 -0
  21. package/packages/@monomind/cli/dist/src/commands/doctor.js +36 -9
  22. package/packages/@monomind/cli/dist/src/init/executor.js +99 -28
  23. package/packages/@monomind/cli/dist/src/init/helpers-generator.js +14 -14
  24. package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.d.ts +38 -0
  25. package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.js +571 -0
  26. package/packages/@monomind/cli/dist/src/init/types.d.ts +1 -1
  27. package/packages/@monomind/cli/dist/src/mcp-client.js +5 -2
  28. package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.d.ts +4 -67
  29. package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.js +40 -1226
  30. package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +1 -0
  31. package/packages/@monomind/cli/dist/src/mcp-tools/index.js +1 -0
  32. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.d.ts +9 -0
  33. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +495 -0
  34. package/packages/@monomind/cli/package.json +2 -1
  35. package/packages/@monomind/cli/README.md +0 -441
  36. package/packages/@monomind/guidance/README.md +0 -1195
  37. package/packages/@monomind/shared/README.md +0 -323
  38. package/packages/README.md +0 -514
@@ -1,441 +0,0 @@
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> &nbsp;&bull;&nbsp;
25
- <a href="#what-monomind-does">What It Does</a> &nbsp;&bull;&nbsp;
26
- <a href="#features">Features</a> &nbsp;&bull;&nbsp;
27
- <a href="#agent-catalog">Agent Catalog</a> &nbsp;&bull;&nbsp;
28
- <a href="#swarm-orchestration">Swarms</a> &nbsp;&bull;&nbsp;
29
- <a href="#commands">Commands</a> &nbsp;&bull;&nbsp;
30
- <a href="#memory--intelligence">Memory</a>
31
- </p>
32
-
33
- ---
34
-
35
- ## Why Monomind?
36
-
37
- You already use Claude Code. Monomind makes it **10x more powerful**.
38
-
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.
40
-
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.
44
-
45
- > One command. Entire engineering workflows. Zero babysitting.
46
-
47
- ---
48
-
49
- ## Quickstart
50
-
51
- ```bash
52
- # Install globally
53
- npm install -g monomind
54
-
55
- # Initialize in any project
56
- cd your-project
57
- monomind init
58
-
59
- # Add MCP server to Claude Code
60
- claude mcp add monomind npx monomind mcp start
61
- ```
62
-
63
- That's it. Monomind is now active in your Claude Code sessions.
64
-
65
- ---
66
-
67
- ## Monomind Control — Live Dashboard
68
-
69
- <p align="center">
70
- <img src="assets/dashboard-control.png" alt="Monomind Control Dashboard" width="100%" />
71
- </p>
72
-
73
- Real-time visibility into every project, session, agent, memory, route decision, and token spend — all in one terminal-native dashboard.
74
-
75
- ---
76
-
77
- ## What Monomind Does
78
-
79
- ### From Prompt to Production
80
-
81
- Monomind turns high-level instructions into coordinated multi-agent execution:
82
-
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
- ```
95
-
96
- ### Autonomous Task Pipelines
97
-
98
- ```bash
99
- # Turn a spec into executable tasks, then run them
100
- /monomind:createtask docs/specs/webhook-system.md
101
-
102
- # Or let it generate ideas, evaluate, and execute
103
- /monomind:idea add real-time collaboration to the editor
104
-
105
- # Pick up tasks and execute them autonomously
106
- /monomind:do
107
- ```
108
-
109
- ---
110
-
111
- ## Features
112
-
113
- ### 230+ Specialized Agents
114
-
115
- Not generic "code assistants" — domain experts with targeted system prompts, each optimized for a specific class of work.
116
-
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 |
130
-
131
- ### Two-Stage LLM Routing
132
-
133
- Monomind doesn't guess which agent to use — it **asks an LLM**.
134
-
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
- ```
139
-
140
- Runs in under 2 seconds via Haiku. Falls back to keyword scoring if the API is unavailable.
141
-
142
- ### Swarm Orchestration
143
-
144
- Coordinate multiple agents working on the same problem:
145
-
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 |
152
-
153
- **Consensus protocols:** Raft (leader-based), Byzantine (fault-tolerant), Gossip (eventually consistent), CRDT (conflict-free), Quorum (majority vote).
154
-
155
- <p align="center">
156
- <img src="assets/swarm-topology.png" alt="Swarm Topology" width="60%" />
157
- </p>
158
-
159
- ```bash
160
- # Let Monomind pick the best topology
161
- /mastermind
162
-
163
- # Or configure manually
164
- monomind swarm init --topology hierarchical --agents 8 --strategy specialized
165
- ```
166
-
167
- ### Self-Learning Memory
168
-
169
- Every interaction makes Monomind smarter:
170
-
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
176
-
177
- <p align="center">
178
- <img src="assets/memory-palace.png" alt="Memory Palace — Browse memories, sessions, knowledge, and swarms" width="100%" />
179
- </p>
180
-
181
- ### 17 Hooks + 12 Background Workers
182
-
183
- Monomind hooks into every phase of your Claude Code workflow:
184
-
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 |
193
-
194
- **Background workers** handle: optimization, consolidation, prediction, auditing, documentation, refactoring, benchmarking, and test gap analysis — all running autonomously.
195
-
196
- ---
197
-
198
- ## Agent Catalog
199
-
200
- ### Development
201
-
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 |
223
-
224
- ### Marketing & Growth
225
-
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 |
233
-
234
- ### Game Development
235
-
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 |
242
-
243
- [See all 230 agents →](.claude/agents/)
244
-
245
- ---
246
-
247
- ## Swarm Orchestration
248
-
249
- ### How Swarms Work
250
-
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>
254
-
255
- ```
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
267
- ```
268
-
269
- ### Anti-Drift Protection
270
-
271
- Swarms don't just run — they **stay on track**:
272
-
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
277
-
278
- ---
279
-
280
- ## Commands
281
-
282
- ### Slash Commands (Inside Claude Code)
283
-
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 |
291
-
292
- ### CLI Commands
293
-
294
- ```bash
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
302
- ```
303
-
304
- 41 CLI commands across: agent management, swarm coordination, memory, sessions, hooks, neural training, security, performance profiling, and more.
305
-
306
- ### Session Inspector
307
-
308
- Every session is recorded and browsable — tool calls, agent spawns, memory operations, and full conversation replay:
309
-
310
- <p align="center">
311
- <img src="assets/session-detail.png" alt="Session Inspector — full conversation replay with tool breakdown" width="100%" />
312
- </p>
313
-
314
- ---
315
-
316
- ## Memory & Intelligence
317
-
318
- ### Knowledge Graph (Graphify)
319
-
320
- Monomind builds a full dependency graph of your codebase — automatically queried before every task:
321
-
322
- ```bash
323
- # What files are relevant to my task?
324
- graphify_suggest "add webhook retry logic"
325
- # → returns ranked list of files with relevance scores
326
-
327
- # What depends on UserService?
328
- graphify_query "UserService dependencies"
329
- # → returns file paths + line numbers
330
-
331
- # Find the most connected files in the codebase
332
- graphify_god_nodes
333
- # → returns high-centrality internal files (external/test filtered out)
334
- ```
335
-
336
- All graphify tools are called automatically by hooks and slash commands — you don't need to invoke them manually.
337
-
338
- ### Vector Memory (AgentDB + HNSW)
339
-
340
- Every insight, pattern, and decision is stored in searchable vector memory:
341
-
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
345
-
346
- ### Neural Learning (SONA)
347
-
348
- Self-Optimizing Neural Adaptation learns from every task:
349
-
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
353
-
354
- ---
355
-
356
- ## Architecture
357
-
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
- ```
376
-
377
- ### Key Packages
378
-
379
- | Package | Purpose |
380
- |---|---|
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 |
386
-
387
- ---
388
-
389
- ## Performance
390
-
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 |
398
-
399
- ---
400
-
401
- ## Who Uses Monomind?
402
-
403
- Monomind is built for teams and individuals who use Claude Code for serious engineering work:
404
-
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
411
-
412
- ---
413
-
414
- ## Contributing
415
-
416
- ```bash
417
- git clone https://github.com/nokhodian/monomind.git
418
- cd monomind
419
- pnpm install
420
- monomind doctor --fix
421
- ```
422
-
423
- See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
424
-
425
- ---
426
-
427
- ## License
428
-
429
- MIT License — See [LICENSE](LICENSE) for details.
430
-
431
- ---
432
-
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> &nbsp;&bull;&nbsp;
439
- <a href="https://github.com/nokhodian/monomind">GitHub</a> &nbsp;&bull;&nbsp;
440
- <a href="https://github.com/nokhodian/monomind/issues">Issues</a>
441
- </p>