monomind 1.11.12 → 1.11.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/scheduled_tasks.lock +1 -1
- package/.claude/skills/mastermind/architect.md +4 -7
- package/.claude/skills/mastermind/autodev.md +2 -4
- package/.claude/skills/mastermind/idea.md +0 -8
- package/.claude/skills/mastermind/monitor.md +2 -2
- package/README.md +286 -129
- package/package.json +2 -2
- package/packages/@monomind/cli/README.md +286 -129
- package/packages/@monomind/cli/bundled-graph/dist/src/build.js +73 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js +120 -0
- package/packages/@monomind/cli/bundled-graph/package.json +57 -0
- package/packages/@monomind/cli/dist/src/commands/doctor.js +55 -1
- package/packages/@monomind/cli/dist/src/update/checker.js +24 -7
- package/packages/@monomind/cli/dist/src/update/index.js +3 -6
- package/packages/@monomind/cli/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sessionId":"
|
|
1
|
+
{"sessionId":"32f0c05a-658e-4c7f-9974-7214ef185323","pid":6093,"procStart":"Tue Jun 9 11:59:20 2026","acquiredAt":1781172269626}
|
|
@@ -88,14 +88,14 @@ If this skill is invoked directly (not by master):
|
|
|
88
88
|
```
|
|
89
89
|
After the bash above completes, apply the 60% classification rule: sum the total file count across all extensions. If any single extension group exceeds 60% of the total, set `<stack>` to that stack's name (e.g. `typescript`, `python`, `go`); otherwise set `<stack>` to `multi-stack`. Use this value for `Stack: <stack>` in all subsequent briefings.
|
|
90
90
|
If `scope` was not provided by the caller, infer it from the prompt: "review"/"audit"/"check"/"assess" → `review`; "deduplicate"/"dedup"/"consolidate" → `deduplicate`; "design"/"architect"/"model"/"bounded context" → `design`; "migrate"/"migration"/"port to"/"convert" → `migrate`; no keyword match or multiple keyword matches → `all`. Use the resolved scope for all subsequent steps.
|
|
91
|
-
5. If `board_id` was not provided by the caller: find or create monotask space `<project_name>`, then create board `architect` within it
|
|
91
|
+
5. If `board_id` was not provided by the caller: find or create monotask space `<project_name>`, then create board `architect` within it. Before executing the bash block below, substitute the resolved `project_name` (or `basename "$PWD"` if not provided) for every `<project_name>` occurrence:
|
|
92
92
|
```bash
|
|
93
93
|
space_id=$(monotask space list 2>/dev/null | awk -F' \| ' -v n="<project_name>" '$2==n{print $1}' | head -1)
|
|
94
94
|
[ -z "$space_id" ] && space_id=$(monotask space create "<project_name>" 2>&1 | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
|
|
95
95
|
result=$(monotask board create "architect" --json 2>/dev/null)
|
|
96
96
|
board_id=$(echo "$result" | jq -r '.id // empty')
|
|
97
97
|
[ -n "$board_id" ] && [ -n "$space_id" ] && monotask space boards add "$space_id" "$board_id" >/dev/null 2>&1 || true
|
|
98
|
-
[ -z "$board_id" ] && echo "
|
|
98
|
+
[ -z "$board_id" ] && { echo "ERROR: Failed to create monotask board — verify monotask is installed (run: monotask --version)"; exit 1; }
|
|
99
99
|
echo "$board_id"
|
|
100
100
|
```
|
|
101
101
|
If this block exits with an error (board_id is still empty), stop execution and return an error to the caller — do not proceed to complexity assessment.
|
|
@@ -363,13 +363,10 @@ For each stream, identify:
|
|
|
363
363
|
- Dependencies between streams (e.g. coupling analysis before deduplication plan)
|
|
364
364
|
|
|
365
365
|
STEP 3 — CREATE TASKS
|
|
366
|
-
For each architecture stream, create a monotask card on the project board
|
|
367
|
-
|
|
368
|
-
If BOARD_ID is non-empty: First resolve column IDs (slash commands are not available inside background Task agents — use bash directly):
|
|
366
|
+
For each architecture stream, create a monotask card on the project board. First resolve column IDs (slash commands are not available inside background Task agents — use bash directly):
|
|
369
367
|
|
|
370
368
|
\`\`\`bash
|
|
371
|
-
|
|
372
|
-
columns=$([ -n "$BOARD_ID" ] && monotask column list "$BOARD_ID" --json || echo '[]')
|
|
369
|
+
columns=$(monotask column list "$BOARD_ID" --json)
|
|
373
370
|
COL_TODO_ID=$(echo "$columns" | jq -r '.[] | select(.title == "Todo" or .title == "Backlog") | .id' | head -1)
|
|
374
371
|
COL_DONE_ID=$(echo "$columns" | jq -r '.[] | select(.title == "Done") | .id' | head -1)
|
|
375
372
|
\`\`\`
|
|
@@ -432,7 +432,7 @@ Invoke `Skill("mastermind:build")` with:
|
|
|
432
432
|
- `brain_context`: the loaded brain context
|
|
433
433
|
- `project_name`: `$(basename "$PWD")`
|
|
434
434
|
- `mode`: `auto`
|
|
435
|
-
- `board_id`: the autodev board (
|
|
435
|
+
- `board_id`: the autodev board (create once at startup, reuse)
|
|
436
436
|
|
|
437
437
|
The brief passed to build MUST include:
|
|
438
438
|
- What to build (concrete spec, not vague)
|
|
@@ -490,13 +490,11 @@ If `N < count`: log `[autodev] Moving to improvement <N+1>/<count>...` and repea
|
|
|
490
490
|
|
|
491
491
|
1. Extract flags (leading integer for count, --newfeature N, --focus, --auto/--confirm)
|
|
492
492
|
2. Load brain context via _protocol.md Brain Load Procedure (namespace: `autodev`)
|
|
493
|
-
3. Create monotask board
|
|
493
|
+
3. Create monotask board:
|
|
494
494
|
```bash
|
|
495
495
|
project_name="${project_name:-$(basename "$PWD")}"
|
|
496
496
|
board_id=$(monotask board create "autodev" --json 2>/dev/null | jq -r '.id // empty')
|
|
497
|
-
[ -z "$board_id" ] && echo "[autodev] monotask board unavailable — board tracking skipped."
|
|
498
497
|
```
|
|
499
|
-
Pass `board_id` to `mastermind:build` only if non-empty; omit the parameter otherwise.
|
|
500
498
|
4. **If `--newfeature` was parsed:** run the Feature Pipeline (FP-0 through FP-End) and skip the improvement loop entirely.
|
|
501
499
|
**Otherwise:** run the Loop section above for each improvement.
|
|
502
500
|
5. At end: follow _protocol.md Brain Write Procedure (namespace: `autodev`)
|
|
@@ -9,14 +9,6 @@ default_mode: confirm
|
|
|
9
9
|
|
|
10
10
|
This skill is invoked by `mastermind:master` or directly via `/mastermind:idea`.
|
|
11
11
|
|
|
12
|
-
**Extract `--monotask` flag:** If present in `$ARGUMENTS`, set `USE_MONOTASK=true` and remove it. Default: `USE_MONOTASK=false`.
|
|
13
|
-
|
|
14
|
-
**File mode (default, `USE_MONOTASK=false`):**
|
|
15
|
-
|
|
16
|
-
Invoke `Skill("mastermind:ideate", $ARGUMENTS)` immediately — it provides the same research, evaluation, elaboration, and task-decomposition pipeline with file-first storage (`docs/ideas/` and `docs/tasks/`). The rest of this skill only runs in monotask mode.
|
|
17
|
-
|
|
18
|
-
**Monotask mode (`USE_MONOTASK=true` only):** Continue with the steps below.
|
|
19
|
-
|
|
20
12
|
---
|
|
21
13
|
|
|
22
14
|
## Inputs
|
|
@@ -1128,7 +1128,7 @@ If `caller` is not "command", follow `_protocol.md` Brain Write Procedure for do
|
|
|
1128
1128
|
"type": "linear",
|
|
1129
1129
|
"filter": {
|
|
1130
1130
|
"team": "ENG",
|
|
1131
|
-
"assignees": ["
|
|
1131
|
+
"assignees": ["your@email.com"],
|
|
1132
1132
|
"states": ["Todo"],
|
|
1133
1133
|
"labels": ["ai-agent"],
|
|
1134
1134
|
"project": ""
|
|
@@ -1219,7 +1219,7 @@ If `caller` is not "command", follow `_protocol.md` Brain Write Procedure for do
|
|
|
1219
1219
|
|
|
1220
1220
|
# Add a Linear source to an existing monitor
|
|
1221
1221
|
/mastermind:monitor --action add-source --name dev-watcher \
|
|
1222
|
-
--source linear --team ENG --user
|
|
1222
|
+
--source linear --team ENG --user your@email.com \
|
|
1223
1223
|
--state Todo --label ai-agent
|
|
1224
1224
|
|
|
1225
1225
|
# Add a monotask board source
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind
|
|
2
|
+
<img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="140" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Monomind</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>
|
|
9
|
-
|
|
8
|
+
<strong>Hire an AI team. Set a goal. Walk away.</strong><br/>
|
|
9
|
+
Autonomous Claude Code orchestration with persistent memory, self-coordinating agent orgs, and a codebase knowledge graph.
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -19,169 +19,283 @@
|
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p align="center">
|
|
22
|
-
<a href="https://monoes.github.io/monomind
|
|
23
|
-
<a href="
|
|
24
|
-
<a href="
|
|
25
|
-
<a href="
|
|
26
|
-
<a href="
|
|
27
|
-
<a href="https://github.com/monoes/monomind">GitHub</a>
|
|
22
|
+
<a href="https://monoes.github.io/monomind/#orgs">🏢 Orgs</a> ·
|
|
23
|
+
<a href="https://monoes.github.io/monomind/#getting-started">🚀 Quickstart</a> ·
|
|
24
|
+
<a href="https://monoes.github.io/monomind/#mastermind">⚡ Mastermind</a> ·
|
|
25
|
+
<a href="https://monoes.github.io/monomind/#slash">📋 Commands</a> ·
|
|
26
|
+
<a href="https://monoes.github.io/monomind/#architecture">🏗️ Architecture</a>
|
|
28
27
|
</p>
|
|
29
28
|
|
|
30
29
|
---
|
|
31
30
|
|
|
32
31
|
## What is Monomind?
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
Claude Code is already powerful. Monomind makes it **run itself**.
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
Install once. Wire it into Claude Code. Then instead of prompting Claude to do individual tasks, you tell Monomind what outcome you want — and it assembles a team, coordinates the work, and delivers.
|
|
37
36
|
|
|
38
37
|
```bash
|
|
38
|
+
# Assemble an AI content team and let it run
|
|
39
|
+
/mastermind:createorg content-team "publish 3 SEO-optimized posts per week"
|
|
40
|
+
/mastermind:runorg --org content-team
|
|
41
|
+
|
|
42
|
+
# Or run the autonomous code improvement loop
|
|
39
43
|
/mastermind:autodev --tillend --focus security
|
|
40
44
|
```
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
That's it. Come back later.
|
|
43
47
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🏢 Autonomous Organizations
|
|
51
|
+
|
|
52
|
+
> **This is the headline feature.** Build a persistent AI organization — roles, hierarchy, shared task board — and start it as a background daemon that runs without you.
|
|
53
|
+
|
|
54
|
+
### The idea
|
|
55
|
+
|
|
56
|
+
Every business function needs a team. Monomind lets you design that team in one command, then run it forever. The org persists across sessions. It checkpoints, recovers from failures, and coordinates its agents through a shared task board — all automatically.
|
|
57
|
+
|
|
58
|
+
```mermaid
|
|
59
|
+
flowchart TD
|
|
60
|
+
U(["You"])
|
|
61
|
+
CO["/mastermind:createorg\nDefine goal + roles"]
|
|
62
|
+
RO["/mastermind:runorg\nStart daemon"]
|
|
63
|
+
BOSS["Boss Agent\ncoordinator"]
|
|
64
|
+
W["Writer\nContent Creator"]
|
|
65
|
+
S["SEO Specialist"]
|
|
66
|
+
R["Reviewer"]
|
|
67
|
+
M["Growth Marketer"]
|
|
68
|
+
BOARD[("Shared\nTask Board")]
|
|
69
|
+
MEM[("AgentDB\nMemory")]
|
|
70
|
+
|
|
71
|
+
U --> CO --> RO --> BOSS
|
|
72
|
+
BOSS -->|spawns| W
|
|
73
|
+
BOSS -->|spawns| S
|
|
74
|
+
BOSS -->|spawns| R
|
|
75
|
+
BOSS -->|spawns| M
|
|
76
|
+
BOSS <-->|claims + reports| BOARD
|
|
77
|
+
W <-->|stores output| MEM
|
|
78
|
+
S <-->|reads context| MEM
|
|
79
|
+
|
|
80
|
+
style BOSS fill:#00D2AA22,stroke:#00D2AA
|
|
81
|
+
style BOARD fill:#F59E0B22,stroke:#F59E0B
|
|
82
|
+
style MEM fill:#8B5CF622,stroke:#8B5CF6
|
|
47
83
|
```
|
|
48
84
|
|
|
49
|
-
|
|
85
|
+
### Two commands to a running org
|
|
50
86
|
|
|
51
|
-
|
|
87
|
+
**Step 1 — Design it:**
|
|
52
88
|
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
|
|
89
|
+
```
|
|
90
|
+
/ mastermind:createorg content-team
|
|
91
|
+
"Build and publish 3 blog posts per week on AI dev tools"
|
|
56
92
|
|
|
57
|
-
|
|
58
|
-
cd your-project
|
|
59
|
-
monomind init
|
|
93
|
+
Deriving roles from goal...
|
|
60
94
|
|
|
61
|
-
|
|
62
|
-
|
|
95
|
+
╔ ORG: content-team
|
|
96
|
+
║ TOPOLOGY: star (5 roles)
|
|
63
97
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
98
|
+
boss → coordinator
|
|
99
|
+
writer → Content Creator
|
|
100
|
+
reviewer → reviewer
|
|
101
|
+
marketer → Growth Hacker
|
|
102
|
+
seo → SEO Specialist
|
|
67
103
|
|
|
68
|
-
|
|
104
|
+
Type "go" to save, or describe changes.
|
|
105
|
+
→ go
|
|
69
106
|
|
|
70
|
-
|
|
71
|
-
/mastermind:
|
|
107
|
+
✓ Saved .monomind/orgs/content-team.json
|
|
108
|
+
→ Run: /mastermind:runorg --org content-team
|
|
72
109
|
```
|
|
73
110
|
|
|
74
|
-
**
|
|
111
|
+
**Step 2 — Start it:**
|
|
75
112
|
|
|
76
|
-
|
|
113
|
+
```bash
|
|
114
|
+
/mastermind:runorg --org content-team
|
|
77
115
|
|
|
78
|
-
|
|
116
|
+
# Boss agent spawns in background
|
|
117
|
+
# Coordinates all roles via shared task board
|
|
118
|
+
# Checkpoints every 30 minutes
|
|
119
|
+
# Loops until you stop it
|
|
120
|
+
```
|
|
79
121
|
|
|
80
|
-
###
|
|
122
|
+
### What runs under the hood
|
|
81
123
|
|
|
124
|
+
| What | How |
|
|
125
|
+
|---|---|
|
|
126
|
+
| **Boss agent** | Coordinator type, no supervisor — owns the goal |
|
|
127
|
+
| **Role agents** | Spawned on demand, specialized by task type |
|
|
128
|
+
| **Task board** | Todo → Doing → Done, shared across all agents |
|
|
129
|
+
| **Memory** | All output stored in org-scoped AgentDB namespace |
|
|
130
|
+
| **Checkpoint** | State saved every 30 min — survives crashes and restarts |
|
|
131
|
+
| **Governance** | `auto` (free), `board` (approve sensitive), `strict` (approve all external actions) |
|
|
132
|
+
|
|
133
|
+
### Topology is auto-derived
|
|
134
|
+
|
|
135
|
+
```mermaid
|
|
136
|
+
graph LR
|
|
137
|
+
A["1-3 roles"] -->|mesh| B["All-to-all\ndirect comms"]
|
|
138
|
+
C["4-6 roles"] -->|star| D["Boss to workers\nfan-out"]
|
|
139
|
+
E["7+ roles"] -->|hierarchical| F["Boss to leads to workers\nmiddle management"]
|
|
82
140
|
```
|
|
83
|
-
Phase 1 Research Parallel scan: git log, file analysis, TODO/FIXME grep,
|
|
84
|
-
monograph god nodes, memory search for prior work.
|
|
85
|
-
Returns ranked list of 3–5 improvement candidates.
|
|
86
141
|
|
|
87
|
-
|
|
88
|
-
Stores selection to AgentDB. Avoids repeating past work.
|
|
142
|
+
### Pre-built org types
|
|
89
143
|
|
|
90
|
-
|
|
91
|
-
|
|
144
|
+
| Org | Goal | Roles |
|
|
145
|
+
|---|---|---|
|
|
146
|
+
| `content-team` | 3 posts/week on AI tools | Director · Writer · Reviewer · SEO · Growth |
|
|
147
|
+
| `dev-squad` | Features from design spec | Lead · Architect · Developer · QA |
|
|
148
|
+
| `research-lab` | Weekly competitive intelligence | Director · Researcher · Analyst · Writer |
|
|
149
|
+
| `sales-engine` | ICP research + outreach sequences | Director · Outbound · Email · Researcher |
|
|
150
|
+
| `ops-squad` | 24/7 monitoring + incident response | SRE · Security · Perf · Incident Cmdr |
|
|
92
151
|
|
|
93
|
-
|
|
94
|
-
run in parallel. Auto-fixes. Repeats up to 5× until clean.
|
|
152
|
+
### Org management commands
|
|
95
153
|
|
|
96
|
-
|
|
97
|
-
|
|
154
|
+
```bash
|
|
155
|
+
/mastermind:createorg <name> "<goal>" # design org from a goal
|
|
156
|
+
/mastermind:runorg --org <name> # start as background daemon
|
|
157
|
+
/mastermind:orgs # list all orgs + status
|
|
158
|
+
/mastermind:orgstatus --org <name> # detailed status for one org
|
|
159
|
+
/mastermind:stoporg --org <name> # stop a running org
|
|
160
|
+
/mastermind:approve # review pending approval requests
|
|
98
161
|
```
|
|
99
162
|
|
|
100
|
-
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## ⚡ The Autonomous Build Loop
|
|
166
|
+
|
|
167
|
+
For code, `/mastermind:autodev` is the equivalent of Orgs — a loop that researches, builds, and reviews your codebase without stopping.
|
|
168
|
+
|
|
169
|
+
```mermaid
|
|
170
|
+
flowchart LR
|
|
171
|
+
R["Research\nParallel scan:\ngit log, files\nTODOs, graph\nmemory"] --> S
|
|
172
|
+
S["Select\nFeasibility x\nblast-radius x\nfocus"] --> B
|
|
173
|
+
B["Build\nArchitect\nCoder\nTester\nReviewer"] --> V
|
|
174
|
+
V["Review Loop\nCode + Security\n+ Reality\nmax 5 iterations"] --> L
|
|
175
|
+
L["Log + Loop\nStore to memory\n--tillend:\nschedule next"]
|
|
176
|
+
L -->|"more to do"| R
|
|
101
177
|
|
|
178
|
+
style R fill:#00D2AA22,stroke:#00D2AA
|
|
179
|
+
style B fill:#8B5CF622,stroke:#8B5CF6
|
|
180
|
+
style V fill:#F59E0B22,stroke:#F59E0B
|
|
181
|
+
style L fill:#10B98122,stroke:#10B981
|
|
102
182
|
```
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
/mastermind:autodev --tillend # loop until nothing left
|
|
186
|
+
/mastermind:autodev --tillend --focus security # bias toward security fixes
|
|
187
|
+
/mastermind:autodev 3 # exactly 3 improvements
|
|
107
188
|
```
|
|
108
189
|
|
|
109
|
-
###
|
|
190
|
+
### Universal loop flags
|
|
110
191
|
|
|
111
|
-
|
|
192
|
+
| Flag | Purpose |
|
|
193
|
+
|---|---|
|
|
194
|
+
| `--tillend` | Repeat until empty round (zero findings, zero actions) |
|
|
195
|
+
| `--repeat <N>` | Repeat exactly N times |
|
|
196
|
+
| `--focus <area>` | Bias toward: `security` · `dx` · `performance` |
|
|
197
|
+
| `--auto` | No confirmation prompts |
|
|
198
|
+
| `--maxruns <N>` | Safety cap (default 50) |
|
|
112
199
|
|
|
113
200
|
---
|
|
114
201
|
|
|
115
|
-
##
|
|
202
|
+
## 🚀 Quickstart
|
|
116
203
|
|
|
117
|
-
|
|
204
|
+
```bash
|
|
205
|
+
# 1. Install
|
|
206
|
+
npm install -g monomind
|
|
118
207
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
| `/mastermind:autodev --tillend` | Loops until zero findings remain |
|
|
123
|
-
| `/mastermind:build` | Build a feature from a brief |
|
|
124
|
-
| `/mastermind:review` | Iterative code review until clean |
|
|
125
|
-
| `/mastermind:debug` | Systematic root-cause debugging |
|
|
126
|
-
| `/mastermind:tdd` | Test-Driven Development: Red→Green→Refactor |
|
|
127
|
-
| `/mastermind:plan` | Write a comprehensive implementation plan |
|
|
208
|
+
# 2. Initialize in your project
|
|
209
|
+
cd your-project
|
|
210
|
+
monomind init
|
|
128
211
|
|
|
129
|
-
|
|
212
|
+
# 3. Wire into Claude Code as an MCP server
|
|
213
|
+
claude mcp add monomind npx monomind mcp start
|
|
130
214
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
215
|
+
# 4. Start the background daemon
|
|
216
|
+
monomind daemon start
|
|
217
|
+
|
|
218
|
+
# 5. Health check
|
|
219
|
+
monomind doctor --fix
|
|
220
|
+
```
|
|
137
221
|
|
|
138
|
-
|
|
222
|
+
Open Claude Code. You now have 80+ slash commands available:
|
|
139
223
|
|
|
140
224
|
```bash
|
|
141
|
-
/mastermind:
|
|
142
|
-
/mastermind:
|
|
143
|
-
/mastermind:
|
|
144
|
-
/mastermind:stoporg # stop a running org
|
|
225
|
+
/mastermind:autodev --tillend # start autonomous code loop
|
|
226
|
+
/mastermind:createorg my-team # create your first AI org
|
|
227
|
+
/mastermind:help # show all commands
|
|
145
228
|
```
|
|
146
229
|
|
|
147
|
-
|
|
230
|
+
---
|
|
148
231
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
232
|
+
## 🧠 Memory That Persists
|
|
233
|
+
|
|
234
|
+
Every session, every agent, every org writes to **AgentDB** — a hybrid SQLite + HNSW vector store that survives across sessions. The next time you run anything, Monomind already knows what was built, what failed, and which patterns work.
|
|
235
|
+
|
|
236
|
+
```mermaid
|
|
237
|
+
graph TD
|
|
238
|
+
L0["L0 - In-flight\nCurrent session drawers\nephemeral"]
|
|
239
|
+
L1["L1 - Working\nCross-session memory\nBM25 K1=1.5, B=0.75"]
|
|
240
|
+
L2["L2 - Long-term\nAgentDB + HNSW index\nSemantic search"]
|
|
241
|
+
L3["L3 - Shared\nCross-agent namespace\nFederated swarm reads"]
|
|
242
|
+
|
|
243
|
+
L0 -->|promoted| L1 --> L2 --> L3
|
|
244
|
+
|
|
245
|
+
style L0 fill:#00D2AA11,stroke:#00D2AA
|
|
246
|
+
style L1 fill:#F59E0B11,stroke:#F59E0B
|
|
247
|
+
style L2 fill:#8B5CF611,stroke:#8B5CF6
|
|
248
|
+
style L3 fill:#EF444411,stroke:#EF4444
|
|
152
249
|
```
|
|
153
250
|
|
|
154
|
-
|
|
251
|
+
```bash
|
|
252
|
+
monomind memory store "key insight" --namespace my-project
|
|
253
|
+
monomind memory search "auth implementation" # BM25 + semantic hybrid
|
|
254
|
+
```
|
|
155
255
|
|
|
156
256
|
---
|
|
157
257
|
|
|
158
|
-
##
|
|
258
|
+
## 🗺️ Monograph — Your Codebase, as a Graph
|
|
259
|
+
|
|
260
|
+
Before touching any file, Monomind queries **Monograph** — a SQLite-backed knowledge graph of your entire codebase. Nodes are files, classes, and functions. Edges are imports, calls, and dependencies.
|
|
159
261
|
|
|
160
262
|
```bash
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
monomind doctor # diagnose your setup
|
|
263
|
+
/mastermind:understand # build the graph
|
|
264
|
+
/mastermind:graph-status # nodes · edges · freshness
|
|
265
|
+
|
|
266
|
+
# Inside Claude Code, Monograph runs automatically:
|
|
267
|
+
# → "what files does auth.ts import?"
|
|
268
|
+
# → "what breaks if I change UserService?"
|
|
269
|
+
# → "find all callers of validateToken()"
|
|
169
270
|
```
|
|
170
271
|
|
|
272
|
+
23 MCP tools. Impact analysis. Shortest-path queries. Community detection. Zero grep.
|
|
273
|
+
|
|
171
274
|
---
|
|
172
275
|
|
|
173
|
-
##
|
|
276
|
+
## 🎣 Hooks & Workers
|
|
174
277
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
278
|
+
Monomind wires 22 hook events into Claude Code. Every edit, task, command, and session fires hooks that log patterns, route agents, and train the intelligence system.
|
|
279
|
+
|
|
280
|
+
```mermaid
|
|
281
|
+
flowchart LR
|
|
282
|
+
CE["Claude Code\nEvent"] --> H["Hook Router"]
|
|
283
|
+
H --> P["pre-edit\npre-task\npre-command"]
|
|
284
|
+
H --> SS["session-start\nsession-end\nnotify"]
|
|
285
|
+
H --> I["route\nlearn\nbuild-agents"]
|
|
286
|
+
H --> T["teammate-idle\ntask-completed"]
|
|
181
287
|
|
|
182
|
-
|
|
288
|
+
I --> DB[("AgentDB\npatterns.json")]
|
|
289
|
+
DB -->|next session| CE
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
**12 background workers** run continuously: `security` · `health` · `swarm` · `learning` · `patterns` · `git` · `performance` and more.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 🛡️ MonoFence AI — Security Layer
|
|
183
297
|
|
|
184
|
-
|
|
298
|
+
Every agent boundary is defended by **monofence-ai** — real-time detection of prompt injection, jailbreaks, homoglyphs, base64 evasion, multi-turn escalation, and PII leakage.
|
|
185
299
|
|
|
186
300
|
```typescript
|
|
187
301
|
import { isSafe, createMonoDefence } from 'monofence-ai';
|
|
@@ -190,50 +304,93 @@ isSafe('Ignore all previous instructions'); // → false (~0.04ms)
|
|
|
190
304
|
|
|
191
305
|
const fence = createMonoDefence({ enableContextTracking: true });
|
|
192
306
|
const result = await fence.detect(userInput);
|
|
193
|
-
// result.safe
|
|
307
|
+
// result.safe · result.threats · result.overallRisk
|
|
194
308
|
```
|
|
195
309
|
|
|
196
|
-
Features: **EvasionDetector** (homoglyphs, leetspeak, base64) · **ContextTracker** (multi-turn escalation) · **OutputScanner** (PII leakage, echo attacks) · **Allowlist** (5 built-in + custom rules) · **SecurityHook** (pre-task blocking)
|
|
197
|
-
|
|
198
310
|
---
|
|
199
311
|
|
|
200
|
-
##
|
|
312
|
+
## 📋 80+ Slash Commands
|
|
201
313
|
|
|
202
|
-
|
|
203
|
-
Claude Code ←→ MCP Server ←→ Monomind Daemon
|
|
204
|
-
│
|
|
205
|
-
┌─────────────────┼─────────────────┐
|
|
206
|
-
▼ ▼ ▼
|
|
207
|
-
AgentDB Monograph Hooks
|
|
208
|
-
(vector memory) (knowledge graph) (17 hook types)
|
|
209
|
-
│ │ │
|
|
210
|
-
└─────────────────┼─────────────────┘
|
|
211
|
-
▼
|
|
212
|
-
Agent Swarm
|
|
213
|
-
architect · coder · tester · reviewer
|
|
214
|
-
security · perf · docs · researcher
|
|
215
|
-
```
|
|
314
|
+
Everything runs from inside Claude Code via slash commands. Here's the highlight reel:
|
|
216
315
|
|
|
217
|
-
|
|
316
|
+
### Development
|
|
317
|
+
| Command | What it does |
|
|
318
|
+
|---|---|
|
|
319
|
+
| `/mastermind:autodev` | Autonomous research → build → review loop |
|
|
320
|
+
| `/mastermind:build` | Build a feature from a brief |
|
|
321
|
+
| `/mastermind:review` | Iterative review until zero findings |
|
|
322
|
+
| `/mastermind:debug` | Systematic root-cause debugging |
|
|
323
|
+
| `/mastermind:tdd` | Red → Green → Refactor |
|
|
324
|
+
| `/mastermind:architect` | Architecture review + file structure |
|
|
325
|
+
| `/mastermind:plan` | Comprehensive implementation plan |
|
|
326
|
+
| `/mastermind:worktree` | Feature work in isolated git worktree |
|
|
327
|
+
|
|
328
|
+
### Organizations
|
|
329
|
+
| Command | What it does |
|
|
330
|
+
|---|---|
|
|
331
|
+
| `/mastermind:createorg` | Design an autonomous agent org |
|
|
332
|
+
| `/mastermind:runorg` | Start it as a background daemon |
|
|
333
|
+
| `/mastermind:orgs` | List all orgs + status |
|
|
334
|
+
| `/mastermind:approve` | Action pending approval requests |
|
|
335
|
+
|
|
336
|
+
### Business Domains
|
|
337
|
+
| Command | What it does |
|
|
338
|
+
|---|---|
|
|
339
|
+
| `/mastermind:marketing` | Campaigns, copy, SEO, social |
|
|
340
|
+
| `/mastermind:content` | Blog posts, threads, newsletters |
|
|
341
|
+
| `/mastermind:sales` | Outreach, proposals, pipeline |
|
|
342
|
+
| `/mastermind:finance` | Budgets, invoicing, modeling |
|
|
343
|
+
| `/mastermind:ops` | Operations and workflow automation |
|
|
344
|
+
|
|
345
|
+
**[→ Full reference (80+ commands)](https://monoes.github.io/monomind/#slash)**
|
|
218
346
|
|
|
219
347
|
---
|
|
220
348
|
|
|
221
|
-
##
|
|
349
|
+
## 📦 Packages
|
|
350
|
+
|
|
351
|
+
| Package | npm | Purpose |
|
|
352
|
+
|---|---|---|
|
|
353
|
+
| `monomind` | [](https://www.npmjs.com/package/monomind) | Umbrella — **install this one** |
|
|
354
|
+
| `@monoes/monomindcli` | [](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (41 commands) |
|
|
355
|
+
| `monofence-ai` | [](https://www.npmjs.com/package/monofence-ai) | AI manipulation defence |
|
|
356
|
+
| `@monoes/monograph` | [](https://www.npmjs.com/package/@monoes/monograph) | Code knowledge graph |
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## 🏗️ How It's Built
|
|
361
|
+
|
|
362
|
+
```mermaid
|
|
363
|
+
graph TD
|
|
364
|
+
CC["Claude Code"]
|
|
365
|
+
MCP["MCP Server\nmonomind mcp start"]
|
|
366
|
+
D["Background Daemon\n12 workers"]
|
|
367
|
+
|
|
368
|
+
CC <-->|"23 tools: monograph, memory, swarm"| MCP
|
|
369
|
+
MCP <--> D
|
|
370
|
+
|
|
371
|
+
D --> ADB[("AgentDB\nSQLite + HNSW")]
|
|
372
|
+
D --> MG[("Monograph\ncode graph")]
|
|
373
|
+
D --> HK["Hooks\n22 event types"]
|
|
374
|
+
D --> SW["Swarm\n6 topologies\n5 consensus algos"]
|
|
375
|
+
|
|
376
|
+
CC -->|"Task tool - spawns agents"| AG["Agent Swarm\narchitect, coder\ntester, reviewer\nsecurity, perf"]
|
|
377
|
+
AG <-->|reads and writes| ADB
|
|
378
|
+
|
|
379
|
+
style CC fill:#00D2AA22,stroke:#00D2AA
|
|
380
|
+
style AG fill:#8B5CF622,stroke:#8B5CF6
|
|
381
|
+
style ADB fill:#F59E0B22,stroke:#F59E0B
|
|
382
|
+
```
|
|
222
383
|
|
|
223
|
-
|
|
224
|
-
- **60+ agent types** for every engineering task
|
|
225
|
-
- **Self-learning routing** — agents improve with every session
|
|
226
|
-
- **Monograph** — full codebase knowledge graph, always fresh
|
|
227
|
-
- **AgentDB** — hybrid SQLite + HNSW vector memory
|
|
228
|
-
- **17 hook types** — pre/post edit, task, command, session
|
|
229
|
-
- **Security layer** — monofence-ai defends every agent boundary
|
|
230
|
-
- **One command** to set direction. Nothing else needed.
|
|
384
|
+
**Claude Code handles all execution.** MCP tools only coordinate. Your data never leaves your machine.
|
|
231
385
|
|
|
232
386
|
---
|
|
233
387
|
|
|
234
388
|
## Resources
|
|
235
389
|
|
|
236
|
-
- 📖 [Documentation](https://monoes.github.io/monomind/)
|
|
390
|
+
- 📖 [Full Documentation](https://monoes.github.io/monomind/)
|
|
391
|
+
- 🏢 [Autonomous Orgs](https://monoes.github.io/monomind/#orgs)
|
|
392
|
+
- ⚡ [Mastermind Reference](https://monoes.github.io/monomind/#mastermind)
|
|
393
|
+
- 📋 [All Slash Commands](https://monoes.github.io/monomind/#slash)
|
|
237
394
|
- 🐛 [Issues](https://github.com/monoes/monomind/issues)
|
|
238
395
|
- 💬 [Discussions](https://github.com/monoes/monomind/discussions)
|
|
239
396
|
- 📦 [Changelog v1.11](https://github.com/monoes/monomind/blob/main/CHANGELOG-v1.11.md)
|
|
@@ -241,6 +398,6 @@ Monomind coordinates. Claude Code creates. You ship.
|
|
|
241
398
|
---
|
|
242
399
|
|
|
243
400
|
<p align="center">
|
|
244
|
-
<img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="
|
|
401
|
+
<img src="https://raw.githubusercontent.com/monoes/monomind/main/assets/mascot.png" alt="Monomind" width="72" /><br/>
|
|
245
402
|
<sub>Built with ♥ by <a href="https://github.com/monoes">monoes</a> · MIT License</sub>
|
|
246
403
|
</p>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monomind",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.14",
|
|
4
4
|
"description": "Monomind - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"semver": "^7.6.0",
|
|
59
|
-
"@monoes/monograph": "^1.
|
|
59
|
+
"@monoes/monograph": "^1.2.0"
|
|
60
60
|
},
|
|
61
61
|
"overrides": {
|
|
62
62
|
"hono": ">=4.11.4"
|