DeepSeek Harness Plugin

xwh5/dsh-change-review

Category UI Enhancements Added 2026-08-19

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.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

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

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

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

Feature Description
Auto tracking Listens to write/edit tool calls, records before/after content and timestamps
Side-by-Side Diff Powered by diff2html
Theme following Automatically adapts to DSH dark/light theme
Syntax highlighting Code syntax highlighting in diffs
Session isolation Each session only shows its own changes
Subagent aggregation Subagent changes aggregate into the root parent session
Real-time updates SSE live push of change state
One-click revert Revert a single change or an entire file
Per-turn review card Shows 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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.