project-brain 0.13.0 → 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 +2 -0
- 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.
|
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.
|