Pular para o conteúdo principal
R

dsh-file-review

richfugui001-netizen/dsh-file-review

Review files produced by DeepSeek Harness turns in a line-numbered unified diff, opened in the better-sidebar right panel (fork of dsh-file-review)

Instalar

dsh plugin --profile web add github:richfugui001-netizen/dsh-file-review

README

Rich File Review

Review every file an agent just changed—opened in the better-sidebar right panel.

🍴 Fork of dsh-file-review — a huge thank you to the original author @left0ver for the produced-files card, per-file line diff, undo support, and the clean model-free mutation-tool derivation this project builds on.

DeepSeek Harness 0.1.x Web profile npm version MIT License GitHub topics: dsh-plugin

English · 简体中文

What this fork changes

dsh-file-review opened the per-file diff in its own standalone review drawer that squeezed into the host's right-hand grid by itself — which collided with the dsh-better-sidebar right panel and produced two stacked panels on the right.

This fork removes the standalone drawer entirely. Clicking a produced file now opens a rich-file-review:diff tab inside the better-sidebar right panel (via the ctx.betterSidebar service it exposes), so there is exactly one right-hand panel. The non-git aware per-line diff, the +N/-M line totals, and the undo support are all preserved — it does not depend on git.

Requires the dsh-better-sidebar plugin to be installed for the diff panel to open.

How to use

💬 Chat  →  ✨ Generate  →  📄 Click a changed file  →  🔍 Review

Features

  1. A summary card at the end of each turn listing every file the agent just changed, with per-file +N / -M line totals and an overall total.
  2. Click a file (or "Review all") to open the per-line diff in the better-sidebar right panel. Non-git workspaces supported (the diff is derived from the mutation tools' own hunks, not from git diff).
  3. Undo / Reapply support to revert the agent's changes from the current turn.

Quick start

0. Add rich-file-review in pnpm's minimum release age withlist

Open ~/.dsh/profiles/web/pnpm-workspace.yaml and add:

minimumReleaseAgeExclude:
  - rich-file-review

Recent versions of pnpm enforce a minimum release age, so newly published packages are not installed until that waiting period has passed. To install the latest version, add rich-file-review to the exclusion list.

1. Install the required host panel (if not already)

dsh plugin --profile web add dsh-better-sidebar

2. Install the plugin from npm

dsh plugin --profile web add rich-file-review

Published on npm as rich-file-review. If you prefer to install from the fork instead (e.g. to run the latest unreleased source):

dsh plugin --profile web add github:richfugui001-netizen/dsh-file-review

3. Start DSH Web

dsh web

4. Enjoy it

Install from source

git clone https://github.com/richfugui001-netizen/dsh-file-review.git
cd dsh-file-review
pnpm install
pnpm run build
dsh plugin --profile web add ${PWD}

Install from the fork (source, alternative to npm)

Only needed if you want the latest unreleased source instead of the published npm package:

dsh plugin --profile web add github:richfugui001-netizen/dsh-file-review

Update the plugin

dsh plugin --profile web update rich-file-review

Uninstall the plugin

dsh plugin --profile web remove rich-file-review

License

MIT

Plugins relacionados