Platohykj/dsh-vsc ↗★ 1

dsh-vsc

Use DeepSeek Harness (dsh) inside VS Code: Copilot-style chat, editor integration, and the full dsh agent harness. 适合在 VS Code 中调用 dsh 智能体写代码的用户;需先全局安装 dsh CLI。

패키지
dsh-vsc
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 15.

같은 패키지 이름의 다른 저장소

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

🖥️ Usage

Chat panel

The chat panel is a Copilot-style conversation: streaming assistant output, tool-call cards, collapsible reasoning, context meter, and per-turn token stats. Pending approvals and questions take over the composer so you can respond inline. The session rail on the right shows your history — create, fork, rename, and switch models per session.

Editor integration

Select code and hit dsh: Ask dsh About Selection (Ctrl+Alt+Shift+D) to send it with file context, or use the Explain / Fix / Generate Tests / Review code actions from the editor context menu or lightbulb. When the agent edits files, Copilot-style file-change rows appear in the chat with +added −deleted counts — click one to open the whole-file diff; read calls show a subdued row that opens the file directly.

API key

The DeepSeek API key is stored through the dsh server's credential mechanism (default ~/.dsh/.credentials.yaml, 0600 permissions), matching the Models page of the dsh Web UI. When no key is configured you are prompted once after connecting; you can set or clear it any time with dsh: Set API Key / dsh: Clear API Key. Click the "dsh connected" status bar item to open a menu with settings entries.

If the shell that starts dsh already sets DEEPSEEK_API_KEY, it is treated as a read-only source and the extension's writes are rejected — unset that variable in the shell that starts dsh before saving through the extension.

Keybindings

ActionWindows / LinuxmacOS
Open dsh ChatCtrl+Alt+DCmd+Alt+D
Ask dsh About SelectionCtrl+Alt+Shift+DCmd+Alt+Shift+D

⚙️ Configuration

All settings live under the dsh.* namespace in settings.json (command dsh: Open dsh Settings):

SettingDefaultDescription
dsh.cliPath""Absolute path to the dsh executable; empty searches PATH
dsh.connectionUrl""Connect to a running server; empty starts the CLI automatically
dsh.autoStarttrueStart dsh when the extension activates
dsh.autoConnectWorkspacetrueCreate a workspace-rooted session after startup
dsh.cwdStrategyworkspaceWorking directory for new sessions: workspace / firstWorkspace / host
dsh.agentPresetstandardAgent preset for new sessions; standard renders the working directory + loads AGENTS.md, minimal does not
dsh.provider / dsh.model""Default provider / model for new sessions (empty = dsh default)
dsh.reasoningEffort""Default reasoning effort when the model supports it
dsh.webviewThemeautoChat panel theme: follow VS Code or force light / dark
dsh.autoScrollThreshold100Auto-scroll threshold (px from bottom) during streaming
dsh.notifyOnChangestrueShow a notification when the agent modifies files