NEXTINDIE/DeepSeek-Harness-for-VS-Code ↗★ 12
dsh-vscode
Use DeepSeek Harness directly in VS Code: secondary sidebar chat panel, @dsh built-in chat participant with @ file/session/agent mentions, multimodal image attachments, model/preset/permission/thinking controls, subagents, Cordis plugin approvals, and turn-level Git rollback (undo one turn, restore checkpoints). 适合习惯在编辑器侧边栏进行对话、管理智能体并使用 Git 回滚会话的开发者。
같은 패키지 이름의 다른 저장소
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
Usage highlights
- Enter to send, Shift+Enter for newline; while running the send button (paper-plane line icon) becomes stop (square line icon), typing turns it back into send (queued send).
/button (bottom-left): command menu (plan / compact / goal / feedback / permission / skills / .claude). Most entries insert the command into the input (press Enter to run); Compact context runs/compactstraight away and the conversation shows a live compaction row — a sweep while compacting, then "Compacted N history items (~T tokens)" with the summary expandable, and the compacted range collapses into that row (the same row appears for automatic compaction).+button next to it: add file / add folder; the blue chip is the auto-attached active file.- Message actions: click the forked-line icon to open the branch/rewind menu — counter-clockwise arrow "Rewind here", forked icon "Branch from here", up-left fold "Branch and rewind earlier", plus "Undo this turn's file changes" / "View checkpoints" when the git-rollback plugin is active; branch sessions also show the up-left arrow "Back to main". The counter-clockwise arrow on each assistant turn (when the DSH server-side plugin is active) restores the workspace to the state before that turn.
- Session ⋯ menu: fork / rename / archive; preset pill at the top-right (new sessions only); thinking / model pills at the bottom-right.
- Source Control title bar: the ✨ button generates a Conventional Commits message from the current diff and fills the SCM input box (a picker appears when several repositories are open).
- Context menus: selection →
DSH: Send Selection to @dsh; file →DSH: Ask @dsh About This File.
Configuration
| Key | Default | Description |
|---|---|---|
dsh.url | http://127.0.0.1:3080 | DSH web server URL |
dsh.autoStart | true | On VS Code startup, start dsh web if the server is not running |
dsh.command | dsh | Start command; falls back to npx |
dsh.autoStartTimeoutSec | 60 | Auto-start timeout (seconds) |
dsh.participantSessionMode | per-workspace | @dsh session scope: per-project / global |
dsh.openPanelOnStartup | false | Open the standalone window on startup |
dsh.defaultReasoningEffort | "" | Default thinking depth for new sessions (off/high/max, model-dependent) |
dsh.commitModel | deepseek-v4-flash | Model used to generate commit messages (resolved from the DSH model catalog; falls back to the session's current model) |
dsh.commitReasoningEffort | low | Reasoning effort for commit messages (low = no thinking on DeepSeek models, fastest) |
dsh.language | auto | UI language: auto / zh-cn / zh-tw / en / ja / ko / de / fr / es / pt / th / id / tr / ru / ar |
dsh.installRollbackPlugin | true | Auto-install the turn-level Git rollback server plugin into the DSH web profile (enables /rollback, /redo, /checkpoints) |
使用
| 入口 | 说明 |
|---|---|
内置 Chat @dsh | 输入 @ 选 dsh;DSH: 打开内置聊天 (@dsh) 或状态栏 DSH 图标可自动填入 |
| 辅助侧栏 tab | 视图 → 外观 → Secondary Side Bar(Ctrl+Alt+B) |
| 独立窗口 | DSH: 打开独立聊天窗口 |
| SCM 提交按钮 | 源代码管理视图标题栏的 ✨ 按钮(DSH: 生成提交信息),多仓库时弹出选择 |
- 输入框:
Enter发送,Shift+Enter换行;运行中发送按钮(纸飞机线条图标)变为停止(方块线条图标),输入文字变回发送(消息排队)。 - 左下角
/按钮:命令菜单(计划模式 / 压缩上下文 / 设置目标 / 记录反馈 / 切换权限 / 技能 / .claude 命令与技能)。多数项插入命令到输入框(回车执行);压缩上下文点击即执行/compact,对话内实时显示压缩行 —— 压缩中扫光,完成后显示「已压缩 N 条历史记录(约 T tokens)」且摘要可展开,被压缩的区间折叠进该行(自动压缩同样单列一行)。 - 左上角
+按钮:添加文件 / 添加文件夹(二选一);附件行蓝色芯片为自动附加的激活文件(× 移除)。 - 消息操作条:点击分叉线条图标打开分支/回退菜单 —— 逆时针箭头"回退到此处"(去掉本条及之后)、分叉图标"从此处新建分支"(保留到此)、左上折线"分支并回退到更早位置",以及 git-rollback 插件激活时的"撤销本回合改动 / 查看检查点";分叉会话另有左上箭头"回到主线"。
- 会话 ⋯ 菜单:分叉 / 重命名 / 归档;右上角"预设"胶囊(仅新会话显示);右下角"思考 / 模型"胶囊。
- 模式芯片:📝 计划模式(点击退出)、🎯 目标模式(点击管理目标)。
- 右键菜单:编辑器选中代码 →
DSH: 发送选中代码到 @dsh;文件右键 →DSH: 向 @dsh 询问此文件。
配置
| 配置项 | 默认值 | 说明 |
|---|---|---|
dsh.url | http://127.0.0.1:3080 | DSH Web 服务器地址(修改后需重载) |
dsh.autoStart | true | VS Code 启动时若服务器未运行则自动启动 dsh web |
dsh.command | dsh | 启动命令;找不到时回退 npx |
dsh.autoStartTimeoutSec | 60 | 自动启动最长等待秒数 |
dsh.participantSessionMode | per-workspace | @dsh 会话范围:每项目 / 全局 |
dsh.openPanelOnStartup | false | 启动时自动打开独立聊天窗口 |
dsh.defaultReasoningEffort | "" | 新会话默认思考深度(off/high/max 等,取决于模型) |
dsh.commitModel | deepseek-v4-flash | 生成提交信息所用的模型(从 DSH 模型目录解析,找不到时回退当前模型) |
dsh.commitReasoningEffort | low | 生成提交信息时的思考深度(DeepSeek 模型上 low 表示不开思考,最快) |
dsh.language | auto | 界面语言:auto / zh-cn / zh-tw / en / ja / ko / de / fr / es / pt / th / id / tr / ru / ar |
dsh.installRollbackPlugin | true | 自动把回合级 Git 回退服务端插件安装到 DSH web profile(启用 /rollback、/redo、/checkpoints) |