WongYuYe/dsh-diff-card

WongYuYe/dsh-diff-card

给 DSH Desktop 用的轮末改动卡:编辑/写入行显示 +N −M,点开审 diff;macOS 和 Windows 可用系统应用、文件夹或 VS Code 打开文件。

UI Enhancementsdeepseek-harnessdiffdsh

dsh-diff-card

中文 | English

File-change card for DSH Desktop. After the agent edits files, tool rows show +N −M, a per-turn list appears, and you can review aligned diffs on click. Open files with the system app, Finder/Explorer, or VS Code on macOS and Windows.

per-turn change card

Features

  • +N −M on edit / write rows
  • Per-turn card “Edited N files”, 3-file preview, header total +xx −xx
  • Click a row to expand or collapse that file’s diff
  • View changes: expand every file and its diff; click again to collapse
  • Review: expand every diff in the turn
  • Undo: restore this turn’s files (refuses if they changed elsewhere); the button then becomes Restore, which re-applies the undone changes. Undo and restore both open a lightweight confirm popover
  • Row ▾: open with system, show in folder, VS Code, copy absolute / relative path
  • Covers edit, write, str_replace_editor, and Code Dispatch sub-calls
  • Copy follows the UI language (zh / en)

Install

dsh plugin --profile desktop add dsh-diff-card

Refresh the web GUI or restart DSH Desktop. Requires DeepSeek Harness >= 0.1.2-rc.1.

From source:

git clone https://github.com/WongYuYe/dsh-diff-card.git
cd dsh-diff-card
pnpm install
dsh plugin --profile desktop add .

Development

pnpm install
pnpm build
pnpm typecheck
pnpm check:align
pnpm check:join

License

MIT