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.
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
- 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.
- 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).
- 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 this fork
The package is not (yet) published to npm, so install it from the GitHub fork:
dsh plugin --profile web add github:richfugui001-netizen/dsh-file-review
If you previously installed it by local path, that is fine too — the package
is a lightweight wrapper with no native build step.
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 GitHub repository
dsh plugin --profile web add github:richfugui001-netizen/dsh-file-review
Uninstall the plugin
dsh plugin --profile web remove rich-file-review
License
MIT