dsh-diff-review

Pre-execution review gate for file writes, edits and deletions: the tool call is held before it runs, a right-sidebar panel shows the diff (unified, or source versus result side by side), and nothing is written until Accept is clicked. Deletion and rename are always asked; "Allow all" is a manual global switch that resets when the host restarts. Covers multi-file commands, binary and formatting summaries, per-turn history with byte-exact restore, and argument-based gating for tools without an adapter. Zero runtime dependencies.

Overview

Pre-execution review gate for file writes, edits and deletions: the tool call is held before it runs, a right-sidebar panel shows the diff (unified, or source versus result side by side), and nothing is written until Accept is clicked. Deletion and rename are always asked; "Allow all" is a manual global switch that resets when the host restarts. Covers multi-file commands, binary and formatting summaries, per-turn history with byte-exact restore, and argument-based gating for tools without an adapter. Zero runtime dependencies.

Installation

Install from GitHub

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

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.