houlain/dsh-workspace-studio0

dsh-workspace-studio

DeepSeek Harness plugin: workspace file browser + code viewer + session change diff + hunk-level partial revert (Trae-style). Windows verified.

包名
dsh-workspace-studio
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:houlain/dsh-workspace-studio

Usage

  1. Open a session in the Web UI and switch to the 「Studio」 tab (next to Chat).
  2. 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.
  3. Click a file to view its content (top-right) and its change panel (bottom-right).
  4. 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.
  5. 「撤回全部修改」(Revert all) restores the file to its state before this session's first recorded change (files created in this session are deleted).
  6. 「清空」(Clear) removes this session's change records (does not touch file contents).
  7. 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.