Перейти к основному содержимому
X

dsh-change-review

xwh5/dsh-change-review

Session change-review for DeepSeek Harness: tracks write/edit tool calls and renders VS Code-style side-by-side diffs via diff2html, auto-following the theme, with subagent aggregation and one-click revert.

Установка

dsh plugin --profile web add github:xwh5/dsh-change-review

README

dsh-diff-review

DeepSeek Harness (DSH) session change review plugin — tracks write/edit tool calls and shows side-by-side diffs in the "Review" tab. Read-only review with one-click revert; no external editor required.

中文说明

✨ Features

FeatureDescription
Auto trackingListens to write/edit tool calls, records before/after content and timestamps
Side-by-Side DiffPowered by diff2html
Theme followingAutomatically adapts to DSH dark/light theme
Syntax highlightingCode syntax highlighting in diffs
Session isolationEach session only shows its own changes
Subagent aggregationSubagent changes aggregate into the root parent session
Real-time updatesSSE live push of change state
One-click revertRevert a single change or an entire file
Per-turn review cardShows this turn's changes after each turn; native produced-file previews stay untouched

📦 Install

dsh plugin --profile web add github:xwh5/dsh-diff-review

Refresh the web page after installing.

🚀 Usage

  1. Open the DSH Web UI
  2. After the AI modifies files via write/edit tools
  3. Click the "Review" tab above the conversation
  4. Switch between "This session" and "Latest turn" views

📁 Layout

dsh-diff-review/
├── lib/
│   ├── index.js          # host: tool tracking, HTTP routes, revert logic
│   ├── client.js         # client: React components, diff2html rendering
│   └── vendor/
│       ├── diff2html.min.js
│       ├── diff2html-ui.min.js
│       └── diff2html.min.css
├── cordis.patch.yml
├── package.json
└── README.md

🙏 Credits

📄 License

MIT

Похожие плагины