project-brain 0.30.1 → 0.31.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
CHANGED
|
@@ -194,7 +194,7 @@ These five are thin wrappers over the CLI. **project-brain does not install them
|
|
|
194
194
|
| `/brain-okf` | *(none — host skill)* | Write an OKF concept: the reasoning behind code, anchored to a verified symbol and checkable by `okf audit` |
|
|
195
195
|
| `/brain-commit` | *(none — host skill)* | Write a commit message in the convention the repository's own log already shows |
|
|
196
196
|
| `/brain-record` | *(none — host skill)* | Record the flow a branch touches as video evidence for a PR or ticket |
|
|
197
|
-
| `/brain-worktree` | *(none — host skill)* | Give an isolated worktree its own index and its own leased port |
|
|
197
|
+
| `/brain-worktree` | *(none — host skill)* | Give an isolated worktree its own index (seeded from the main checkout) and its own leased port |
|
|
198
198
|
| `brain-style` | *(none — host skill)* | Keep written code declarative: a comment only where it says something the code cannot |
|
|
199
199
|
|
|
200
200
|
Unlike the `/brain-*` commands above, these have no CLI equivalent. They are **host skills**: the logic lives in `SKILL.md` and runs inside the assistant, which calls project-brain's MCP tools to do the work. That is what lets `brain-audit` answer "is this export dead?" with `find_callers` instead of guessing from a grep, and what lets `brain-okf` verify an anchor with `find_symbol` before writing it.
|
|
@@ -311,6 +311,14 @@ project-brain setup --none
|
|
|
311
311
|
|
|
312
312
|
Run `project-brain setup --with=nope` to print the list of valid ids.
|
|
313
313
|
|
|
314
|
+
#### Worktrees start from the main checkout's index
|
|
315
|
+
|
|
316
|
+
`init` inside a linked git worktree copies the main checkout's vectors, manifest and graph before indexing, then syncs only what differs. Every path those artefacts store is repository-relative, so one checkout's index describes another equally well, and sync re-hashes each file anyway — a stale or wrong-branch base costs a few extra embeddings, never a wrong index.
|
|
317
|
+
|
|
318
|
+
On this repository that took a worktree's first index from 2m38s to 2.1s.
|
|
319
|
+
|
|
320
|
+
It copies nothing, and indexes normally, when the main checkout has no index, when the worktree already has one, or when the two would disagree about the embedding model. Vectors from a different model are not comparable, and that is the one case sync could not correct on its own.
|
|
321
|
+
|
|
314
322
|
#### chrome-devtools autoConnect
|
|
315
323
|
|
|
316
324
|
If a detected host runs the [chrome-devtools MCP server](https://github.com/ChromeDevTools/chrome-devtools-mcp) without `--autoConnect`, setup offers to add it (`config:chrome-autoconnect`). Without the flag those browser tools launch a throwaway, logged-out Chrome profile; with it they drive the Chrome you are already signed into, which is the only way to reach a flow behind a login.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-brain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.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",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"zod": "^4.4.3"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"project-brain-darwin-arm64": "0.
|
|
53
|
-
"project-brain-linux-x64": "0.
|
|
54
|
-
"project-brain-linux-arm64": "0.
|
|
55
|
-
"project-brain-windows-x64": "0.
|
|
56
|
-
"project-brain-windows-arm64": "0.
|
|
52
|
+
"project-brain-darwin-arm64": "0.31.0",
|
|
53
|
+
"project-brain-linux-x64": "0.31.0",
|
|
54
|
+
"project-brain-linux-arm64": "0.31.0",
|
|
55
|
+
"project-brain-windows-x64": "0.31.0",
|
|
56
|
+
"project-brain-windows-arm64": "0.31.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/bun": "latest",
|
|
@@ -36,6 +36,14 @@ the MCP server refuses to boot in an uninitialized worktree instead of minting a
|
|
|
36
36
|
graph there. Both turn a silent lie into a message that names the fix. Your job is to run
|
|
37
37
|
the fix before the agent hits it.
|
|
38
38
|
|
|
39
|
+
Its own brain no longer means building one from scratch. `init` in a linked worktree
|
|
40
|
+
copies the main checkout's vectors, manifest and graph first, then syncs the difference —
|
|
41
|
+
every path stored in those artefacts is repository-relative, so they describe any checkout
|
|
42
|
+
of the repository equally well. Measured on this repository: 2m38s down to 2.1s, because
|
|
43
|
+
only the files that actually differ get embedded. It copies nothing when the main checkout
|
|
44
|
+
has no index, when the worktree already has one, or when the two would disagree about the
|
|
45
|
+
embedding model, and a full index in those cases is the correct answer, not a failure.
|
|
46
|
+
|
|
39
47
|
## The one identifier rule
|
|
40
48
|
|
|
41
49
|
`project-brain worktree status --json` returns both spellings. They are not
|