houlain/dsh-workspace-studio ↗★ 0
dsh-workspace-studio
DeepSeek Harness plugin: workspace file browser + code viewer + session change diff + hunk-level partial revert (Trae-style). Windows verified.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:houlain/dsh-workspace-studio说明文档
阅读完整 README ↗Usage
- Open a session in the Web UI and switch to the 「Studio」 tab (next to Chat).
- The left pane shows the workspace file tree:
- Folders are collapsible (
▸/▾); folders containing pending changes show a count badge and auto-expand. - Files modified by the agent carry a ● marker.
- Folders are collapsible (
- Click a file to view its content (top-right) and its change panel (bottom-right).
- Each change operation shows one or more change blocks (hunks) with two actions:
- 「撤回此块」(Revert this block) — undoes only that block; other blocks stay. A confirm dialog appears, then the file is rewritten on disk.
- 「认可」(Accept) — keeps the change; the block stops being shown/marked and can no longer be reverted.
- 「撤回全部修改」(Revert all) restores the file to its state before this session's first recorded change (files created in this session are deleted).
- 「清空」(Clear) removes this session's change records (does not touch file contents).
- The Studio tab label shows a badge with the number of files that still have pending changes; it and all markers update in real time via SSE when the agent edits files.
Revert safety rules
- A hunk can only be reverted if its exact lines are still present in the file. If a later change modified that region, the revert is rejected with a hint (conflict protection).
- A hunk that was reverted or accepted cannot be acted on again.
- Reverting a hunk of an old operation works even when later operations shifted line numbers elsewhere.
Configuration
The file tree ignores common noise by default (.git, node_modules, dist, build, lockfiles, coverage, etc.). The ignore list lives in src/core/fileTree.ts (DEFAULT_TREE_OPTIONS) — rebuild if you want to customize it.