Platohykj/dsh-vsc ↗★ 1

dsh-vsc

在 VS Code 内使用 dsh 智能体,提供对话面板、编辑器集成与代码操作。 适合在 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