project-brain 0.8.2 → 0.9.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
|
@@ -133,7 +133,7 @@ You talk to your **AI assistant** in natural language; it picks the right tool.
|
|
|
133
133
|
|
|
134
134
|
Tips to maximize value:
|
|
135
135
|
|
|
136
|
-
- **Structural and lexical tools work without Ollama.** `find_symbol` / `find_callers` / `find_callees` / `impact` / `trace_path` query the local SQLite graph, and `search_code` queries the local FTS index — all work even with embeddings unavailable.
|
|
136
|
+
- **Structural and lexical tools work without Ollama.** `find_symbol` / `find_callers` / `find_callees` / `impact` / `trace_path` query the local SQLite graph, and `search_code` queries the local FTS index — all work even with embeddings unavailable. `search_context` itself degrades gracefully too: with no Ollama it falls back to a BM25 lexical floor (code-aware query expansion over the local FTS index) and marks the result `degraded: true, mode: "lexical"` instead of failing — conceptual recall is reduced, so start Ollama for full semantic search when you can.
|
|
137
137
|
- **Keep the index fresh automatically.** The git hook re-syncs on commit and the file watcher re-indexes on save while `serve` runs — no manual step. Run `project-brain sync` after big external changes.
|
|
138
138
|
- **Prefer `expand_context` over re-reading files.** `search_context` returns a `chunk_id`; expanding it is cheaper than the assistant reading the whole file.
|
|
139
139
|
- **Lead with the exact name when you have it.** "find_symbol X" / "who calls X" is faster and more precise than a semantic search.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-brain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"project-brain-darwin-arm64": "0.
|
|
47
|
-
"project-brain-linux-x64": "0.
|
|
48
|
-
"project-brain-linux-arm64": "0.
|
|
49
|
-
"project-brain-windows-x64": "0.
|
|
50
|
-
"project-brain-windows-arm64": "0.
|
|
46
|
+
"project-brain-darwin-arm64": "0.9.0",
|
|
47
|
+
"project-brain-linux-x64": "0.9.0",
|
|
48
|
+
"project-brain-linux-arm64": "0.9.0",
|
|
49
|
+
"project-brain-windows-x64": "0.9.0",
|
|
50
|
+
"project-brain-windows-arm64": "0.9.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/bun": "latest",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Project: {{projectId}}
|
|
2
|
+
|
|
3
|
+
This project is indexed with [project-brain](https://github.com/jcsoftdev/project-brain).
|
|
4
|
+
|
|
5
|
+
## project-brain MCP
|
|
6
|
+
|
|
7
|
+
You have access to the `project-brain` MCP server for codebase knowledge retrieval.
|
|
8
|
+
|
|
9
|
+
{{tools}}
|
|
10
|
+
|
|
11
|
+
When answering questions about this codebase, run `search_context` first to find semantically relevant context before reading files directly — and reach for the structural tools when you know the exact symbol, caller, or want the impact of a change.
|
|
12
|
+
|
|
13
|
+
### Project Context
|
|
14
|
+
|
|
15
|
+
- **Project ID**: {{projectId}}
|
|
16
|
+
- **Stack**: {{stack}}
|
|
17
|
+
{{modules}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
## project-brain MCP
|
|
2
|
+
|
|
3
|
+
You have access to the `project-brain` MCP server for codebase knowledge retrieval.
|
|
4
|
+
|
|
5
|
+
{{tools}}
|
|
6
|
+
|
|
7
|
+
When answering questions about the codebase, run `search_context` first for fuzzy/conceptual questions, and use the structural tools (`find_symbol`/`find_callers`/`find_callees`/`impact`) for exact symbols, callers, and change impact — before reading files directly.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
## project-brain MCP
|
|
2
|
+
|
|
3
|
+
You have access to `project-brain` MCP tools for codebase knowledge retrieval.
|
|
4
|
+
|
|
5
|
+
{{tools}}
|
|
6
|
+
|
|
7
|
+
When answering codebase questions, prefer `search_context` for fuzzy/conceptual lookups and the structural tools for exact symbols, callers, and change impact — faster and more precise than reading files directly.
|