houlain/dsh-workspace-studio0

dsh-workspace-studio

DeepSeek Harness 工作区工作室插件:提供文件浏览器、代码查看器、会话修改差异对比及类似 Trae 的代码块级局部撤销功能。

AI 分析

核心用途是可视化管理 Agent 对工作区代码的修改。适合进行 AI 辅助编程的开发者,能直观对比代码差异并精准撤销不想要的局部改动。

套件
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.