Development & Runtime

dsh-plugin-diff-review

Civitasv/dsh-plugin-diff-review · ★ 6

Civitasv

Codex-style diff review inside DeepSeek Harness

License
MIT
Added
2026-08-16
Maintenance
active
Install kind
github
Manifest details
Manifest status
Declared
Manifest path
package.json#dsh
Manifest checked
2026-08-19
Lifecycle scripts
None found

Static manifest checks report declarations only; they are not compatibility or security review.

安装

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

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Installation
  2. Local development install
  3. Viewing changes
  4. File tree
  5. File tabs
  6. Quoting an assistant reply
  7. Staging and committing
  8. Comments and summaries
  9. FAQ
  10. License

View, process and review the changes in your current workspace from within DSH. Click Changes in the session header to open the review workbench on the right.

Review workbench

中文文档见 README.md · English docs: this file.

Installation

This plugin depends on dsh-plugin-open-editor — install them together:

dsh plugin --profile web add github:Civitasv/dsh-plugin-open-editor#main
dsh plugin --profile web add github:Civitasv/dsh-plugin-diff-review#v0.1.2

The two dsh plugin add commands above install the packages, but DSH only loads plugins that are registered in the web profile's patch file — so list them in ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: open-editor
      name: dsh-plugin-open-editor
    - id: diff-review
      name: dsh-plugin-diff-review

Restart DSH to use the plugin. To update, re-run the two install commands above.

Local development install

# macOS / Linux
bash install.sh

# Windows PowerShell
powershell -ExecutionPolicy Bypass -File install.ps1

The scripts install and register dsh-plugin-open-editor, link the current directory into the profile, and register the plugin in cordis.patch.yml. Restart DSH after installing.

Viewing changes

In Changes, pick a scope: last round, unstaged, staged, a commit revision, or a branch. Click a file to view its diff. The toolbar lets you toggle split/unified view, jump to a file, collapse diffs, and show or hide the file tree.

After selecting Commit, choose a specific revision in the submenu to open its diff.

Unified and split diffs

File tree

The file tree is searchable, lets you expand directories, drag to resize its width, and automatically locates the currently open file. Right-click a file to open it in your editor, copy its path, or add it to the current conversation.

File tree

File tabs

Selecting a file in the tree, or opening one from Review, creates a closeable tab. Text files can be edited directly and are saved automatically; image preview and syntax highlighting for common code and document formats are supported.

File preview

Quoting an assistant reply

Select text in a DeepSeek assistant reply — an Add to conversation button floats up. Click it to append the selection to the current session's input for a follow-up question.

Staging and committing

  • Use the buttons next to a file or hunk to stage, unstage, or discard changes.
  • Click Commit, enter a message, then choose commit, commit and push, or push.

Comments and summaries

Add comments next to diff lines, confirm them all at once, and send them to the agent; once sent successfully, the comments are removed from the pending list.

Comments

After the agent processes the comments, a review-result card and a summary of the changed files appear below its reply, with direct links into Review to inspect the corresponding diffs.

Review result and change summary cards

FAQ

  • "Last round" shows no files: files changed directly by terminal commands are not recorded in the session history; switch to the unstaged or staged scope to see Git changes.
  • Opening in the editor fails: make sure dsh-plugin-open-editor is installed and enabled, and that the target editor can be launched from PATH.

License

MIT