project-brain 0.18.1 → 0.18.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 +77 -12
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -6,36 +6,79 @@ project-brain indexes your project files into a local LanceDB vector store using
6
6
 
7
7
  ## Quick Start
8
8
 
9
- **1. Install globally.** Pick *one* line — they all deliver the same self-contained binary:
9
+ Three commands, roughly two minutes:
10
10
 
11
11
  ```bash
12
- brew install jcsoftdev/tap/project-brain # Homebrew
12
+ brew install jcsoftdev/tap/project-brain # 1. install (see below for other channels)
13
+ project-brain setup # 2. register in your AI tools — once per machine
14
+ cd my-project && project-brain init # 3. index this project
15
+ ```
16
+
17
+ That is the whole setup. The rest of this section explains what each step did and how to confirm it worked.
18
+
19
+ ### 1. Install
20
+
21
+ Pick **one**. All three deliver the same self-contained binary — no Node, no Bun, nothing else at runtime:
22
+
23
+ ```bash
24
+ brew install jcsoftdev/tap/project-brain # Homebrew
13
25
  curl -fsSL https://raw.githubusercontent.com/jcsoftdev/project-brain/main/scripts/install.sh | sh # no package manager
14
- bun install -g project-brain # or npm / pnpm / yarn
26
+ bun install -g project-brain # or npm / pnpm / yarn
27
+ ```
28
+
29
+ Confirm it landed:
30
+
31
+ ```bash
32
+ project-brain --version
15
33
  ```
16
34
 
17
- **2. Register in your AI tools.** Once per machine — Claude, Codex, Cursor, Gemini, Windsurf, Zed, VS Code. Also installs the `brain-audit` and `brain-okf` host skills (`--no-skills` to opt out):
35
+ See [Install](#install) for platform coverage and how upgrades work per channel.
36
+
37
+ ### 2. Register in your AI tools
18
38
 
19
39
  ```bash
20
40
  project-brain setup
21
41
  ```
22
42
 
23
- **3. Initialize a project.** Detects the stack, indexes it, installs the git hook:
43
+ Detects and registers project-brain with Claude, Codex, Cursor, Gemini, Windsurf, Zed and VS Code, and installs the `brain-audit` and `brain-okf` host skills. Run it **once per machine**, not per project. Skip the skills with `--no-skills`.
44
+
45
+ ### 3. Index a project
24
46
 
25
47
  ```bash
26
48
  cd my-project
27
49
  project-brain init
28
50
  ```
29
51
 
30
- **4. Optional — start a knowledge bundle** for the *why*, not the *what*:
52
+ Detects the stack, writes a `CLAUDE.md` with MCP instructions, installs a `git commit` hook, scaffolds module stubs, and runs the first index.
53
+
54
+ No Ollama running? Use `project-brain init --no-embed`. Everything structural still works — see [What you get without Ollama](#what-you-get-without-ollama).
55
+
56
+ ### 4. Check it worked
31
57
 
32
58
  ```bash
33
- project-brain okf init
59
+ project-brain health
60
+ ```
61
+
62
+ Reports embedding service, index counts and staleness. If chunks are `0` or semantic results come back empty, this is the command that tells you why.
63
+
64
+ ### 5. Use it
65
+
66
+ From the terminal:
67
+
68
+ ```bash
69
+ project-brain map # what matters in this codebase, ranked
70
+ project-brain impact parseConfig # what breaks if I change this
71
+ project-brain callers runSync # who depends on this
34
72
  ```
35
73
 
36
- See [Install](#install) for every channel, the platforms each covers, and how upgrades work.
74
+ Or just ask your AI assistant in plain language — it picks the tool itself:
75
+
76
+ > "What breaks if I change `parseConfig`?"
77
+ > "How does authentication work here?"
37
78
 
38
- After `init`, the following run **automatically** without any extra steps:
79
+ See [Recipes](#recipes--get-the-most-out-of-it) for the prompts that steer it best.
80
+
81
+ ### What runs automatically after `init`
39
82
 
40
83
  | Trigger | What happens |
41
84
  |---|---|
@@ -43,11 +86,33 @@ After `init`, the following run **automatically** without any extra steps:
43
86
  | File save (while server is running) | File watcher detects the change and re-indexes it |
44
87
  | AI tool connects | MCP server starts on stdio, tools are ready |
45
88
 
89
+ ### What you get without Ollama
90
+
91
+ Ollama powers **semantic** search only. Everything else works offline with no model at all:
92
+
93
+ | Works with no Ollama | Needs Ollama |
94
+ |---|---|
95
+ | `find`, `callers`, `callees`, `impact`, `trace`, `map` (structural graph) | `search_context` at full quality |
96
+ | `code` (keyword/BM25 search) | |
97
+ | `search_context`, degraded to a keyword floor and flagged `mode: "lexical"` | |
98
+
99
+ ### Optional — capture the *why*
100
+
101
+ The index knows what the code does; it cannot know why it is that way. A knowledge bundle holds that half:
102
+
103
+ ```bash
104
+ project-brain okf init
105
+ ```
106
+
107
+ See [`okf`](#okf--knowledge-bundles-the-why-not-the-what).
108
+
46
109
  ## Prerequisites
47
110
 
48
- - **Nothing extra to run it.** Every channel ships the same self-contained, prebuilt binary per platform, with the runtime, WASM grammars and templates bundled in — you do **not** need Bun or Node installed to use project-brain. The `curl` installer does not even need one to *install* it.
49
- - **Bun** ≥ 1.3.14 — only needed to build/run **from source** ([install](https://bun.sh)).
50
- - **Ollama** (optional, only for semantic search) — download from [ollama.com](https://ollama.com). `project-brain init` **auto-pulls** the default embedding model `qwen3-embedding:0.6b` (1024-dim, fast, code-capable). To pre-pull it: `ollama pull qwen3-embedding:0.6b`. If it can't be pulled, project-brain falls back to `nomic-embed-text`. The structural tools work with **no** Ollama at all.
111
+ | | Needed for | Notes |
112
+ |---|---|---|
113
+ | *nothing* | running project-brain | Every channel ships a self-contained prebuilt binary with the runtime, WASM grammars and templates bundled in. No Bun, no Node — the `curl` installer does not even need one to *install* it. |
114
+ | [Ollama](https://ollama.com) | semantic search only | `init` auto-pulls `qwen3-embedding:0.6b` (1024-dim, fast, code-capable), falling back to `nomic-embed-text` if it cannot. Pre-pull with `ollama pull qwen3-embedding:0.6b`. Everything structural works without it. |
115
+ | [Bun](https://bun.sh) ≥ 1.3.14 | building from source only | Not needed for any install channel. |
51
116
 
52
117
  ## Install
53
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-brain",
3
- "version": "0.18.1",
3
+ "version": "0.18.3",
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.18.1",
53
- "project-brain-linux-x64": "0.18.1",
54
- "project-brain-linux-arm64": "0.18.1",
55
- "project-brain-windows-x64": "0.18.1",
56
- "project-brain-windows-arm64": "0.18.1"
52
+ "project-brain-darwin-arm64": "0.18.3",
53
+ "project-brain-linux-x64": "0.18.3",
54
+ "project-brain-linux-arm64": "0.18.3",
55
+ "project-brain-windows-x64": "0.18.3",
56
+ "project-brain-windows-arm64": "0.18.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/bun": "latest",