dsh-codebase-chat 0.23.0 → 0.25.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 +14 -9
- package/dist/cli.js +1080 -58
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +82 -3
- package/dist/index.js +1201 -58
- package/dist/index.js.map +1 -1
- package/lib/index.js +99 -281
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -28,14 +28,15 @@
|
|
|
28
28
|
npx dsh-codebase-chat-mcp setup
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
The wizard detects **Claude, Cursor, Windsurf and
|
|
32
|
-
No JSON to edit — and **no API key**: in `promptOnly` mode your host model does the thinking
|
|
31
|
+
The wizard detects **Claude, Cursor, Windsurf, VS Code, Zed, Gemini CLI, Kiro, Cline and Roo Code**, asks how you want answers (host model, API key, or offline local model), writes the MCP config, done.
|
|
32
|
+
No JSON to edit — and **no API key**: in `promptOnly` mode your host model does the thinking,
|
|
33
|
+
or go **fully offline** with the embedded local model (`localLlm`) — no key, no host, no cloud.
|
|
33
34
|
|
|
34
35
|
Other paths — DeepSeek Harness plugin · CLI · from source · manual config: **[Reference](#reference)**.
|
|
35
36
|
|
|
36
37
|
<p align="center">
|
|
37
|
-
<img src="docs/assets/demo.gif" alt="dsh-codebase-chat
|
|
38
|
-
<em>
|
|
38
|
+
<img src="docs/assets/demo-conv.gif" alt="dsh-codebase-chat real MCP session on a 422-file codebase" width="840"><br>
|
|
39
|
+
<em>Real MCP session on a real 422-file codebase — <code>codebase_health</code> finds 324 circular deps, <code>codebase_chat</code> answers with <code>[source: file:line]</code> receipts · <a href="docs/assets/demo-power.gif">PR review (--diff + --watch)</a> · <a href="docs/assets/demo.gif">CLI tour</a> · <a href="docs/assets/demo-mcp.gif">MCP stdio</a> · <a href="docs/assets/demo-fr.gif">French mode</a></em>
|
|
39
40
|
</p>
|
|
40
41
|
|
|
41
42
|
## What a real session looks like
|
|
@@ -97,6 +98,7 @@ Every answer from `codebase_chat` arrives with `[source: file:line]` receipts yo
|
|
|
97
98
|
| Code stays on your machine | ❌ | ❌ | ✅ |
|
|
98
99
|
| Inside Claude / Cursor / Windsurf | ❌ | ~ | ✅ |
|
|
99
100
|
| Deterministic health score, no LLM | ❌ | ❌ | ✅ |
|
|
101
|
+
| Answers fully offline (embedded LLM) | ❌ | ❌ | ✅ |
|
|
100
102
|
| Free — no API key, no account | ~ | ❌ | ✅ |
|
|
101
103
|
|
|
102
104
|
## How it works
|
|
@@ -107,7 +109,7 @@ Every answer from `codebase_chat` arrives with `[source: file:line]` receipts yo
|
|
|
107
109
|
|
|
108
110
|
`/codebase-apply` writes safely — **dry-run** · **`.dsh-backups/`** before overwrite · **protected paths** · never outside the project.
|
|
109
111
|
|
|
110
|
-
## The
|
|
112
|
+
## The 13 tools
|
|
111
113
|
|
|
112
114
|
| Understand | Decide | Act | Explore |
|
|
113
115
|
| --- | --- | --- | --- |
|
|
@@ -115,8 +117,9 @@ Every answer from `codebase_chat` arrives with `[source: file:line]` receipts yo
|
|
|
115
117
|
| `codebase_search` | `codebase_audit` | `codebase_tasks` | `codebase_crea` |
|
|
116
118
|
| `codebase_explain` | `codebase_report` | | |
|
|
117
119
|
| `codebase_health` | `codebase_ceo` | | |
|
|
120
|
+
| `codebase_impact` | | | |
|
|
118
121
|
|
|
119
|
-
Same engine, three surfaces: **MCP tools** in your IDE, **slash commands** in DeepSeek Harness, **CLI flags** anywhere. Every tool takes `lang` (`fr`/`en`), `embed`, `promptOnly`, `maxTokens`.
|
|
122
|
+
Same engine, three surfaces: **MCP tools** in your IDE, **slash commands** in DeepSeek Harness, **CLI flags** anywhere. Every tool takes `lang` (`fr`/`en`), `embed`, `promptOnly`, `localLlm`, `maxTokens`.
|
|
120
123
|
|
|
121
124
|
## Reference
|
|
122
125
|
|
|
@@ -139,6 +142,7 @@ npx dsh-codebase-chat --project C:\my-app --ask "how is auth handled?"
|
|
|
139
142
|
npx dsh-codebase-chat --project C:\my-app --health # offline, no LLM
|
|
140
143
|
npx dsh-codebase-chat --project C:\my-app --health --diff main # only what changed
|
|
141
144
|
npx dsh-codebase-chat --project C:\my-app --watch # index stays hot while you code
|
|
145
|
+
npx dsh-codebase-chat --project C:\my-app --prompt intelligence # same banner brief the IDE gets — pipe to any LLM
|
|
142
146
|
```
|
|
143
147
|
|
|
144
148
|
**From source**
|
|
@@ -222,6 +226,7 @@ dsh --profile headless '/codebase-git --project C:\my-app'
|
|
|
222
226
|
| `DEEPSEEK_API_KEY` / `OPENAI_API_KEY` | — | Direct-LLM mode only |
|
|
223
227
|
| `DEEPSEEK_BASE_URL` / `OPENAI_BASE_URL` | `https://api.deepseek.com/v1` | Custom endpoint |
|
|
224
228
|
| `CODEBASE_MODEL` | `deepseek-chat` | Model for direct-LLM mode |
|
|
229
|
+
| `CODEBASE_LOCAL_LLM` | — | `1` enables the embedded local model (offline answers); `hf:owner/repo:QUANT` or a `.gguf` path picks another model |
|
|
225
230
|
|
|
226
231
|
</details>
|
|
227
232
|
|
|
@@ -265,10 +270,10 @@ pnpm install && pnpm build && pnpm test && pnpm typecheck
|
|
|
265
270
|
<br>
|
|
266
271
|
|
|
267
272
|
**Does it send my code to the cloud?**
|
|
268
|
-
|
|
273
|
+
Indexing, retrieval, and prompt building all run on your machine. In prompt-only mode the server makes no network calls itself — the assembled context is read by your host model (cloud or local, your choice). For zero-network answers end to end, enable the embedded local model (`localLlm`).
|
|
269
274
|
|
|
270
275
|
**Do I need an API key?**
|
|
271
|
-
|
|
276
|
+
No — three ways to get answers: the host model (`promptOnly`, best quality), a DeepSeek/OpenAI key, or the embedded local model (`localLlm`, fully offline). The local model is small — great for quick lookups, prefer a hosted model for full reports. Inside DeepSeek Harness, the plugin uses your configured model.
|
|
272
277
|
|
|
273
278
|
**Which languages are supported?**
|
|
274
279
|
French and English via `lang` on every tool. Source-side, AST covers JS/TS, Python, Go, Rust, Java, C#, PHP — the rest is indexed line by line.
|
|
@@ -290,7 +295,7 @@ Then restart `dsh --profile web`.
|
|
|
290
295
|
|
|
291
296
|
| | |
|
|
292
297
|
| --- | --- |
|
|
293
|
-
| **Shipped** | tree-sitter AST (7 languages), deterministic health score, MCP setup wizard, `.codebase-chat.json`, `--diff` scoping, `--watch` mode |
|
|
298
|
+
| **Shipped** | tree-sitter AST (7 languages), deterministic health score, MCP setup wizard, `.codebase-chat.json`, `--diff` scoping, `--watch` mode, embedded local LLM |
|
|
294
299
|
| **Next** | GitHub Issues export from TASKS.md, prompt language packs (ES/DE/PT) |
|
|
295
300
|
| **Planned** | VS Code extension, HTTP/SSE transport, PR review mode, report export |
|
|
296
301
|
| **Exploring** | multi-repo workspaces, shared team index cache, CI bot |
|