monomind 2.16.1 → 2.16.3

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 (2) hide show
  1. package/README.md +26 -42
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -35,7 +35,8 @@ Monomind is an **open-source CLI and MCP server** that plugs into Claude Code, [
35
35
  - **Codebase knowledge graph** — tree-sitter parses your code into a SQLite-backed graph of files, functions, classes, and their relationships. Query imports, callers, and blast radius before making changes.
36
36
  - **Persistent memory** — a JSON pattern store with episodic recall that survives across sessions. Agents and orgs share context without re-prompting.
37
37
  - **Multi-agent coordination** — in-session, spawn ad-hoc agent teams via Claude Code's Task tool; for persistent background work, `monomind org run` starts a real SDK-backed daemon with policy-gated role agents and a live dashboard.
38
- - **Reusable slash commands** — 30+ development workflows (build, review, debug, TDD, architecture) available as `/mastermind:*` commands inside Claude Code.
38
+ - **Agent and skill picking** — one index of your agents and skills ranks the best fit for each task; the prompt hook puts it in Claude's context as a `[PICK]` line, and `monomind pick` or the `pick` MCP tool return it on request. See [Routing](doc/concepts/routing.md).
39
+ - **Reusable slash commands** — <!-- doc-count:mastermind-commands -->42<!-- /doc-count:mastermind-commands --> workflows (plan, execute, review, debug, release, research, worktree) available as `/mastermind:*` commands inside Claude Code.
39
40
 
40
41
  ```bash
41
42
  npm install -g monomind # Apache 2.0 licensed, runs entirely on your machine
@@ -191,46 +192,30 @@ monomind org delete <name> # remove an org
191
192
  monomind org memory <name> # cross-run KG memory: stats (default) | search <q> | rules | rollback <run-ref>
192
193
  ```
193
194
 
194
- `org` has 31 subcommands total (run, stop, pause, resume, reload, status, serve, supervisor, test-loop, logs, report, memory, costs, flow, questions, answer, approve, deny, gates, gate-approve, gate-reject, replay, resume-from, branch, decisions, create, validate, migrate, list, delete, mark-complete) — `org memory` is the newest addition.
195
+ `org` has <!-- doc-count:org-subcommands -->36<!-- /doc-count:org-subcommands --> subcommands total (skills, run, stop, pause, resume, reload, status, serve, supervisor, test-loop, logs, events, watch, report, memory, costs, inbox, flow, questions, approvals, answer, approve, deny, gates, gate-approve, gate-reject, replay, resume-from, branch, decisions, create, validate, migrate, list, delete, mark-complete).
195
196
 
196
- > **Note:** `/mastermind:runorg` now delegates directly to the Org Runtime v2 daemon (the same path as `monomind org run`) — there is no boss agent, no monotask board, and no manual curl calls in this path. The old prompt-orchestrated flow (Task-tool boss agent, monotask board, manual dashboard event posting) is retired to `/mastermind:runorgv1`, reachable only by that explicit legacy name, kept only for orgs not yet migrated off the v1 config shape. New orgs should use `monomind org run` (or `/mastermind:runorg`) against a hand-authored `.monomind/orgs/<name>.json`.
197
+ > **Note:** `/mastermind:runorg` now delegates directly to the Org Runtime v2 daemon (the same path as `monomind org run`) — there is no boss agent, no monotask board, and no manual curl calls in this path. The old prompt-orchestrated flow (Task-tool boss agent, monotask board, manual dashboard event posting) is retired and no longer ships; `/mastermind:runorg` auto-migrates v1-shaped configs before starting the daemon. New orgs should use `monomind org run` (or `/mastermind:runorg`) against a hand-authored `.monomind/orgs/<name>.json`.
197
198
 
198
199
  ---
199
200
 
200
- ## ⚡ The Autonomous Build Loop
201
+ ## ⚡ Looping Workflows
201
202
 
202
- For code, `/mastermind:autodev` is the equivalent of Orgs — a loop that researches, builds, and reviews your codebase without stopping.
203
-
204
- ```mermaid
205
- flowchart LR
206
- R["Research\nParallel scan:\ngit log, files\nTODOs, graph\nmemory"] --> S
207
- S["Select\nFeasibility x\nblast-radius x\nfocus"] --> B
208
- B["Build\nArchitect\nCoder\nTester\nReviewer"] --> V
209
- V["Review Loop\nCode + Security\n+ Reality\nmax 5 iterations"] --> L
210
- L["Log + Loop\nStore to memory\n--tillend:\nschedule next"]
211
- L -->|"more to do"| R
212
-
213
- style R fill:#00D2AA22,stroke:#00D2AA
214
- style B fill:#8B5CF622,stroke:#8B5CF6
215
- style V fill:#F59E0B22,stroke:#F59E0B
216
- style L fill:#10B98122,stroke:#10B981
217
- ```
203
+ For code, the `/mastermind:*` workflows can loop instead of running once. Add `--tillend` to `/mastermind:review`, `/mastermind:improve`, `/mastermind:debug` and most other workflows (`/mastermind:help` lists them) to repeat until a round finds nothing left to do.
218
204
 
219
205
  ```bash
220
- /mastermind:autodev --tillend # loop until nothing left
221
- /mastermind:autodev --tillend --focus security # bias toward security fixes
222
- /mastermind:autodev 3 # exactly 3 improvements
206
+ /mastermind:review --tillend # review → fix → verify until a round finds nothing
207
+ /mastermind:improve --repeat 3 the auth flow # exactly 3 improvement passes
208
+ /mastermind:plan add rate limiting # then /mastermind:execute the plan
223
209
  ```
224
210
 
225
- ### Universal loop flags
211
+ ### Loop flags
226
212
 
227
213
  | Flag | Purpose |
228
214
  |---|---|
229
- | `--tillend` | Repeat until empty round (zero findings, zero actions) |
215
+ | `--tillend` | Repeat until an empty round (zero findings, zero actions) |
230
216
  | `--repeat <N>` | Repeat exactly N times |
231
- | `--focus <area>` | Bias toward: `security` · `dx` · `performance` |
232
- | `--auto` | No confirmation prompts |
233
- | `--maxruns <N>` | Safety cap (default 50) |
217
+ | `--maxruns <N>` | Safety cap for `--tillend` (default 50) |
218
+ | `--wait <seconds>` | Pause between runs |
234
219
 
235
220
  ---
236
221
 
@@ -251,14 +236,14 @@ claude mcp add monomind -- npx -y monomind@latest mcp start
251
236
  monomind doctor --fix
252
237
  ```
253
238
 
254
- > **Semantic routing (opt-in download):** embedding-based task routing needs a local model (~88 MB, `Snowflake/snowflake-arctic-embed-xs` via transformers.js). `monomind init` asks interactively whether to download it — the default is No, and non-interactive/CI installs never download it silently. Declining is fine: routing falls back to keyword mode. Fetch it any time with `monomind download-embeddings` (or `node scripts/download-embedding-model.mjs` on a source checkout).
239
+ > **Semantic routing (opt-in download):** embedding-based task routing needs a local model (~88 MB, `Snowflake/snowflake-arctic-embed-xs` via transformers.js). `monomind init` asks interactively whether to download it — the default is No, and non-interactive/CI installs never download it silently. Declining is fine: agent picking (`monomind pick`, the `[PICK]` hook line, `hooks route`) never needs the model; only `route semantic`, `hooks_route_semantic` and `agent spawn --task` use it, after the picker, and fall back to keyword and hash matching without it. Fetch it any time with `monomind download-embeddings` (or `node scripts/download-embedding-model.mjs` on a source checkout).
255
240
 
256
241
  > **Native module install blocked?** If `doctor` reports a missing `better-sqlite3` binding (`Could not locate the bindings file`, or npm logs an install script that was "blocked because it is not covered by allowScripts"), your npm's `allowScripts` policy blocked its native build — this isn't a Monomind bug. Run `npm install-scripts approve better-sqlite3 && npm rebuild better-sqlite3`, then re-run `monomind doctor --fix`.
257
242
 
258
- Open Claude Code. You now have 49 `/mastermind:*` workflows available:
243
+ Open Claude Code. You now have <!-- doc-count:mastermind-commands -->42<!-- /doc-count:mastermind-commands --> `/mastermind:*` workflows available:
259
244
 
260
245
  ```bash
261
- /mastermind:autodev --tillend # start autonomous code loop
246
+ /mastermind:review --tillend # review and fix until nothing is left
262
247
  monomind org run sample-team # run your first AI org (init writes a runnable sample-team.json — edit it, or run it as-is)
263
248
  /mastermind:help # show all commands
264
249
  ```
@@ -372,20 +357,19 @@ In Claude Code, the live pre-bash/pre-write gate is wired up via its own lazy-lo
372
357
 
373
358
  ---
374
359
 
375
- ## 📋 49 Mastermind Commands
360
+ ## 📋 <!-- doc-count:mastermind-commands -->42<!-- /doc-count:mastermind-commands --> Mastermind Commands
376
361
 
377
362
  Everything runs from inside Claude Code via slash commands. Here's the highlight reel:
378
363
 
379
364
  ### Development
380
365
  | Command | What it does |
381
366
  |---|---|
382
- | `/mastermind:autodev` | Autonomous research → build → review loop |
383
- | `/mastermind:build` | Build a feature from a brief |
367
+ | `/mastermind:plan` | Comprehensive implementation plan |
368
+ | `/mastermind:execute` | Execute a written plan step by step, then hand off to review |
384
369
  | `/mastermind:review` | Iterative review until zero findings |
385
370
  | `/mastermind:debug` | Systematic root-cause debugging |
386
- | `/mastermind:tdd` | Red → Green → Refactor |
387
- | `/mastermind:architect` | Architecture review + file structure |
388
- | `/mastermind:plan` | Comprehensive implementation plan |
371
+ | `/mastermind:improve` | Analyze a component and write improvement tasks |
372
+ | `/mastermind:release` | Versioning, changelog, deployment coordination |
389
373
  | `/mastermind:worktree` | Feature work in isolated git worktree |
390
374
 
391
375
  ### Organizations
@@ -394,7 +378,7 @@ Everything runs from inside Claude Code via slash commands. Here's the highlight
394
378
  | `monomind org run <name>` | Start an org as a real SDK-backed daemon |
395
379
  | `monomind org status` / `list` | Runtime state for one or all orgs |
396
380
  | `monomind org stop <name>` | Request a graceful stop |
397
- | `/mastermind:approvev1` | Action pending approval requests |
381
+ | `monomind org approve <name>` / `deny` | Act on pending approval requests |
398
382
 
399
383
  ### Business Domains
400
384
  | Command | What it does |
@@ -405,7 +389,7 @@ Everything runs from inside Claude Code via slash commands. Here's the highlight
405
389
  | `/mastermind:finance` | Budgets, invoicing, modeling |
406
390
  | `/mastermind:ops` | Operations and workflow automation |
407
391
 
408
- **[→ Full reference (49 commands)](https://monoes.github.io/monomind/#slash)**
392
+ **[→ Full reference (<!-- doc-count:mastermind-commands -->42<!-- /doc-count:mastermind-commands --> commands)](https://monoes.github.io/monomind/#slash)**
409
393
 
410
394
  ---
411
395
 
@@ -414,7 +398,7 @@ Everything runs from inside Claude Code via slash commands. Here's the highlight
414
398
  | Package | npm | Purpose |
415
399
  |---|---|---|
416
400
  | `monomind` | [![npm](https://img.shields.io/npm/v/monomind?style=flat-square&color=00D2AA)](https://www.npmjs.com/package/monomind) | Umbrella shim — **install this one** |
417
- | `@monoes/monomindcli` | [![npm](https://img.shields.io/npm/v/@monoes/monomindcli?style=flat-square&color=4F46E5)](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (38 commands, MCP server) |
401
+ | `@monoes/monomindcli` | [![npm](https://img.shields.io/npm/v/@monoes/monomindcli?style=flat-square&color=4F46E5)](https://www.npmjs.com/package/@monoes/monomindcli) | CLI engine (<!-- doc-count:cli-commands -->38<!-- /doc-count:cli-commands --> commands, MCP server) |
418
402
  | `@monoes/monograph` | [![npm](https://img.shields.io/npm/v/@monoes/monograph?style=flat-square&color=F59E0B)](https://www.npmjs.com/package/@monoes/monograph) | Code knowledge graph (tree-sitter + SQLite) |
419
403
  | `@monoes/memory` | [![npm](https://img.shields.io/npm/v/@monoes/memory?style=flat-square&color=8B5CF6)](https://www.npmjs.com/package/@monoes/memory) | Persistent memory backends (SQLite + vectors) |
420
404
  | `@monoes/hooks` | [![npm](https://img.shields.io/npm/v/@monoes/hooks?style=flat-square&color=10B981)](https://www.npmjs.com/package/@monoes/hooks) | Hook registry + 9 on-demand workers |
@@ -424,7 +408,7 @@ Everything runs from inside Claude Code via slash commands. Here's the highlight
424
408
  | `@monoes/monodesign` | [![npm](https://img.shields.io/npm/v/@monoes/monodesign?style=flat-square&color=EC4899)](https://www.npmjs.com/package/@monoes/monodesign) | Frontend design intelligence |
425
409
  | `monofence-ai` | [![npm](https://img.shields.io/npm/v/monofence-ai?style=flat-square&color=EF4444)](https://www.npmjs.com/package/monofence-ai) | AI manipulation defence |
426
410
 
427
- See [CLI Reference](./doc/commands/cli-reference.md) for the full 32-command index.
411
+ See [CLI Reference](./doc/commands/cli-reference.md) for the full <!-- doc-count:cli-commands -->38<!-- /doc-count:cli-commands -->-command index.
428
412
 
429
413
  ---
430
414
 
@@ -442,7 +426,7 @@ graph TD
442
426
 
443
427
  D --> ADB[("Memory store\npatterns + episodes")]
444
428
  D --> MG[("Monograph\ncode graph")]
445
- D --> HK["Hooks\n29 subcommands"]
429
+ D --> HK["Hooks\n28 subcommands"]
446
430
 
447
431
  CC -->|"Task tool - spawns agents"| AG["In-session agents\narchitect, coder\ntester, reviewer\nsecurity, perf"]
448
432
  AG <-->|reads and writes| ADB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monomind",
3
- "version": "2.16.1",
3
+ "version": "2.16.3",
4
4
  "description": "Open-source CLI extension for Claude Code, OpenCode, Antigravity, Kimi Code, and Codex. Adds an MCP server with a codebase knowledge graph, persistent memory, multi-agent coordination, and reusable slash commands. Apache 2.0 licensed. See https://github.com/monoes/monomind/blob/main/doc/privacy.md for what leaves your machine and when.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@monoes/monomindcli": "2.16.1"
24
+ "@monoes/monomindcli": "2.16.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@biomejs/biome": "^2.5.8",
@@ -99,10 +99,12 @@
99
99
  "test:security": "vitest run tests/security/",
100
100
  "test:semantic-eval": "node --test tests/memory/cognee-port-eval.test.mjs",
101
101
  "test:coverage": "vitest run --coverage",
102
- "verify": "pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run docs:refs:check && pnpm run sync:claude-trees:check && pnpm run test:all:run && pnpm --filter @monoes/monobrowse test && pnpm --filter @monoes/monodesign test && pnpm --filter monofence-ai test",
102
+ "verify": "pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run docs:refs:check && pnpm run lint:agent-refs && pnpm run sync:claude-trees:check && pnpm run test:all:run && pnpm --filter @monoes/monobrowse test && pnpm --filter @monoes/monodesign test && pnpm --filter monofence-ai test",
103
103
  "lint": "biome check",
104
104
  "lint:fix": "biome check --write",
105
105
  "lint:skills": "node scripts/lint-skills.mjs",
106
+ "lint:agent-refs": "node scripts/lint-agent-refs.mjs",
107
+ "pick:eval": "node scripts/pick-eval.mjs",
106
108
  "format": "biome format --write",
107
109
  "security:audit": "pnpm audit --audit-level high",
108
110
  "security:fix": "pnpm audit --fix",