project-brain 0.12.1 → 0.14.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.
- package/README.md +13 -1
- package/package.json +7 -6
- package/templates/model-routing.claude.md +9 -0
package/README.md
CHANGED
|
@@ -149,6 +149,8 @@ One-time global setup. Detects your environment and registers project-brain with
|
|
|
149
149
|
project-brain setup
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
On Claude Code, an interactive prompt (skipped outside a TTY/CI) offers to add opt-in model-routing guidance to `CLAUDE.md` — which model (`haiku`/`sonnet`/`opus`) to pass when spawning sub-agents. Force the answer non-interactively with `--model-routing` / `--no-model-routing`.
|
|
153
|
+
|
|
152
154
|
### `init`
|
|
153
155
|
|
|
154
156
|
Initialize a project. Detects the stack, writes a `CLAUDE.md` with MCP instructions, installs a git hook, scaffolds module stubs in `docs/modules/`, and indexes the project.
|
|
@@ -198,6 +200,16 @@ project-brain search "how does auth work"
|
|
|
198
200
|
echo "how does auth work" | project-brain search --stdin
|
|
199
201
|
```
|
|
200
202
|
|
|
203
|
+
### `update`
|
|
204
|
+
|
|
205
|
+
Update project-brain to the latest published version, using whichever install manager (bun, pnpm, yarn, or npm) it was originally installed with.
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
project-brain update
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Every other command already prints an `update available` notice (current → latest, with the exact command to run) once a day when a newer version is published — `update` runs that command for you instead of requiring a copy-paste.
|
|
212
|
+
|
|
201
213
|
### `serve`
|
|
202
214
|
|
|
203
215
|
Start the MCP server. Default mode uses stdio (for local AI tool connections).
|
|
@@ -244,7 +256,7 @@ Leaving `BRAIN_EMBED_BATCH_SIZE`/`BRAIN_EMBED_CONCURRENCY` unset does not mean "
|
|
|
244
256
|
|
|
245
257
|
## Update notifications
|
|
246
258
|
|
|
247
|
-
The CLI checks (at most once a day, in the background) whether a newer `project-brain` is published on npm and prints a one-line notice when one is available. It is fail-silent, adds zero latency (the check runs in a detached process; the current command reads only a cached result), and is skipped in CI. Disable it with `BRAIN_NO_UPDATE_CHECK=1`.
|
|
259
|
+
The CLI checks (at most once a day, in the background) whether a newer `project-brain` is published on npm and prints a one-line notice when one is available. It is fail-silent, adds zero latency (the check runs in a detached process; the current command reads only a cached result), and is skipped in CI. Disable it with `BRAIN_NO_UPDATE_CHECK=1`. Run `project-brain update` to apply it.
|
|
248
260
|
|
|
249
261
|
## Troubleshooting
|
|
250
262
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-brain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local-first MCP server that gives AI tools semantic memory of your codebase.",
|
|
6
6
|
"author": "jcsoftdev",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@anthropic-ai/sdk": "^0.111.0",
|
|
40
|
+
"@clack/prompts": "^1.7.0",
|
|
40
41
|
"@lancedb/lancedb": "^0.30.0",
|
|
41
42
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
42
43
|
"ollama": "^0.6.3",
|
|
@@ -44,11 +45,11 @@
|
|
|
44
45
|
"zod": "^4.4.3"
|
|
45
46
|
},
|
|
46
47
|
"optionalDependencies": {
|
|
47
|
-
"project-brain-darwin-arm64": "0.
|
|
48
|
-
"project-brain-linux-x64": "0.
|
|
49
|
-
"project-brain-linux-arm64": "0.
|
|
50
|
-
"project-brain-windows-x64": "0.
|
|
51
|
-
"project-brain-windows-arm64": "0.
|
|
48
|
+
"project-brain-darwin-arm64": "0.14.0",
|
|
49
|
+
"project-brain-linux-x64": "0.14.0",
|
|
50
|
+
"project-brain-linux-arm64": "0.14.0",
|
|
51
|
+
"project-brain-windows-x64": "0.14.0",
|
|
52
|
+
"project-brain-windows-arm64": "0.14.0"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@types/bun": "latest",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## Model routing for delegated agents
|
|
2
|
+
|
|
3
|
+
When spawning a sub-agent (Agent tool, Task tool, or workflow step), pick its model explicitly — don't leave it on the default for every call.
|
|
4
|
+
|
|
5
|
+
{{modelRoutingTable}}
|
|
6
|
+
|
|
7
|
+
Shortcut: sub-agent output is yes/no or a list → haiku. Output is code or synthesis → sonnet. Output is "which approach is better" → opus.
|
|
8
|
+
|
|
9
|
+
Pass the choice via the `model` param on the delegation call. Omit it only to inherit the current session's model.
|