Introduction¶
In the DSH Web GUI, there are typically two ways to perform code review: switching to the terminal to manually run git status, git log, and git diff, or delegating the commands to an agent. The former requires leaving the interface, while the latter’s output format is determined by the model and is unsuitable for viewing diffs line-by-line. dsh-review takes a third approach: adding a tab to the right Sidebar to render the working tree status, commit history, branch comparison, and differences into a fixed structure.
First, it should be noted that this plugin is currently marked as deprecated. DSH 0.2.2 includes a built-in Code review and changes tab in the right Sidebar (@deepseek-ai/dsh-experimental-client-ui-forge) that covers its original functionality. The repository is retained only for reference; it is worth installing only for users still fixed on DSH 0.2.1 or earlier versions.
What is this¶
Maintained by miiy, under the MIT license, current version 0.2.0, classified as a client plugin. It consolidates Git review-related operations into a native tab, answering the four questions that truly matter for code review: what changes are in the working tree, what a specific commit changed, how different the current branch is from another branch, and which branch is currently active.
Its definition is read-only: aside from git checkout, there are no write operations; no commits, pushes, staging, or resets. The only write operation will be rejected directly when the working tree is dirty, rather than automatically stashed or forced.
Core Features¶
Changes: Lists staged, unstaged, and untracked files, each with a +/- count; click a file to view the diff.
Commits: History of the current branch, displayed in pages. Each line is labeled with the ref pointing to that commit (e.g., main, origin/main, tags). Clicking a commit shows the message, author, and changed files; clicking a file shows the diff.
Branches: Local and remote branches are labeled separately, each displaying the latest commit. Local branches show how many commits remain to be pushed and allow one-click switching. Compare performs a diff between the local branch and its upstream (or HEAD if there is no upstream), listing changed files and allowing diffs to be viewed one by one.
Subprojects: When the working directory is a container rather than a repository, the panel lists the Git work trees underneath and remembers the selection by Session.
Diff: Renders the raw git diff output directly, including renames, binary files, and mode changes, displayed line-by-line with the Host’s syntax highlighting.
Installation and Activation¶
Method 1: Via the Host’s installBundle (install and enable):
Ask the agent to execute in the chat:
install the plugin
github:miiy/dsh-review
Or paste the same spec into the installation field in Settings → Plugins. Both invoke the Host’s installBundle, completing installation, writing to dsh.profile.bundles, and hot-applying in one step.
Method 2: Install from CLI (install only, not enable):
dsh plugin --profile <profile> add github:miiy/dsh-review
dsh plugin passes arguments to pnpm in the profile directory, so this step only installs the package without composing. After installation, the entry in Settings → Plugins will appear as installed but disabled; turning on the switch adds it to dsh.profile.bundles. If the switch does not take effect immediately, restart dsh web. Since this is a pure JavaScript bundle without build scripts, git install requires no allowBuilds approval. Local checkout is also supported:
dsh plugin --profile <profile> add /path/to/dsh-review
Then start dsh web normally. The bundle registers routes to the Host’s webServer upon mounting, requiring no additional startup arguments.
Typical Usage¶
Open the right Sidebar and select Git Review / Git Review from the tab guide (+). The panel follows the Session’s working directory, so each session reviews its own repository.
The Refresh at the top of the panel re-reads the current content; switching away and back also triggers a refresh. There is no background polling.
Clicking the repository name in the header allows switching between Git work trees accessible to the Session: the one containing the working directory, and nested work trees up to four levels deep. If the Session directory itself is not a repository and there is only one candidate, it is automatically selected; if there are multiple, a popup will appear.
Applicable Scenarios and Notes¶
Suitable for users still on DSH 0.2.1 or earlier who want to complete Git review within the Web GUI. It requires git to be available on the Host, and the Session’s working directory to be located within a Git working tree; otherwise, the panel will respond with not-a-repository.
Three points should be noted. First, the plugin runs with the permissions of the current dsh process; you should read the source code and license (MIT) before installing to confirm the source is trustworthy. Second, while read-only is a design constraint, the git checkout write operation is retained and will be rejected when the working tree is dirty. Third, syntax highlighting depends on whether the Host exports useCodeHighlighter; otherwise, line content is rendered as plain text.
Also, it should be known that since DSH 0.2.2, functionality has been covered by the built-in tab, and continuing to use this plugin usually involves bypassing existing capabilities. The community directory skillhub.cn has no official affiliation with DeepSeek/Quantum, and the plugin listing does not imply official endorsement.
Conclusion¶
The value of dsh-review lies in consolidating the scattered git status, log, diff, and checkout operations from the terminal into a read-only Sidebar tab, allowing for reviews without leaving the Web interface. Its position has been replaced by the built-in features of DSH 0.2.2, and the repository is retained for reference only.
- Directory: https://www.skillhub.cn/plugins/miiy/dsh-review
- GitHub: https://github.com/miiy/dsh-review