dsh-doctor
asdf17128
Find what your DeepSeek Harness (dsh) patches silently broke — dead patches, config fields dropped by whole-config repla…
PROJECT TOPICS
PROJECT README
Embed the DeepSeek Harness (dsh) web GUI inside VS Code. Attaches to — or automatically starts — the local dsh web server and renders the full GUI in an iframe: sessions, terminal, plan approval, slash commands, todo, token/cache stats — everything, unchanged.
Unofficial community extension. Not affiliated with DeepSeek.
DSH: Open Panel;
opens automatically on startup by default (dshWeb.autoOpen).windowsHide); nothing pops up.From a released .vsix:
code --install-extension dsh-webview-0.2.1.vsix
Or build it yourself:
cd dsh-webview
npx @vscode/vsce package
code --install-extension dsh-webview-0.2.1.vsix
On startup the extension probes dshWeb.port (default 3080) and attaches if a
real dsh instance responds (page carries the __DSH_BOOT__ manifest). Otherwise
it starts one, trying each strategy in order (120s each):
dshWeb.command (explicit override),dshWeb.checkout (a deepseek-harness checkout, if set and present),dsh on PATH (official npm install: npm i -g @deepseek-ai/dsh),npx --yes @deepseek-ai/dsh (downloads the CLI on demand — zero setup).The server runs with cwd = the first workspace folder, so each project gets its own dsh workspace. Requirements: VS Code ≥ 1.85 and Node.js (both already required by the official dsh setup). Configure your DeepSeek API key in the GUI as usual.
| Setting | Default | Meaning |
|---|---|---|
dshWeb.port |
3080 | Port to attach to or start on |
dshWeb.attachExisting |
true | Reuse a running instance instead of starting a new one |
dshWeb.spawnIfMissing |
true | Start a server when none is running |
dshWeb.checkout |
"" (auto) | Optional checkout path (launches apps/cli/lib/bin.js) |
dshWeb.command |
"" | Full command override, e.g. pnpm dsh (runs via shell in the workspace) |
dshWeb.extraArgs |
[] | Extra arguments appended to the launch, e.g. --trusted-host |
dshWeb.autoOpen |
true | Open the DSH panel automatically on startup |
dshWeb.followWorkspace |
true | Restart self-started server when the first folder changes |
dshWeb.stopOnExit |
true | Stop a self-started server when VS Code exits (process-tree kill) |
Troubleshooting: Output → DSH Server.
# headless checks (mock the vscode API; attach + spawn + real-launch paths)
node test/mock-verify.js
node test/spawn-verify.js # needs pipe-capable shell (no sandbox)
node test/real-launch-verify.js # spawns the real dsh from the checkout
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。