yangzhe1991/dsh-code-review
Opens any git diff from a DSH chat as a two-column review page in its own tab, with inline comments and an optional clean-context AI review subagent.
Turns a diff that appears in a conversation into a review surface: a button on markdown diff blocks, on collapsed bash rows that produced a git diff, and on local .diff/.patch paths mentioned in the text (absolute paths only, 5 MB cap, read by the host half because the browser cannot open local files). The page shows old and new files side by side with line numbers, paired delete/add blocks, character-level highlighting inside changed lines, hunk separators, a file sidebar, a stats bar and the host theme. Hovering a line number adds an inline comment; comments are submitted together as a plain list or as Looks Good To Me and land in the composer as file:line — comment. Since 0.3.0 an AI Review button stages the diff, writes an instruction into the composer and sends it, after which the main agent spawns a clean-context subagent, argues through every disputed finding until both sides agree, and fixes the jointly confirmed items before reporting.
Install
dsh plugin --profile web add @yangzhe1991/dsh-code-reviewPublished on npm as @yangzhe1991/dsh-code-review (0.3.1), which is the line the README gives first. Newer Harness builds check every declared @deepseek-ai/dsh-* peer range against the runtime version and skip plugins whose ranges do not match, so the README documents an exact-version exemption (dsh plugin --profile <profile> allow-version ... --accept-risk) for running an older plugin build on a newer Harness.
Compatibility
Supports Harness from 0.1.2-alpha.4 upward, with the current web-UI structure handled since 0.1.5 and verification recorded against 0.2.1-rc.2 since 0.3.0. The AI-review path needs a delegation tool: spawn_teammate with a fresh context on Agent Teams profiles, or the subagent tool plus send_message in plain delegation setups. Where no delegation tool exists the agent is instructed to say so and review with fresh eyes itself. Auto-submit uses the composer submit action on Harness 0.2.x; on older hosts the instruction is only filled into the draft and you press Enter.
Details
- Repo: yangzhe1991/dsh-code-review
- Category: Coding & Development
- Stars: 2
- Version: 0.3.1 (npm)
Alternatives
dongsheng123132/dsh-cad-review · Hu9956/dsh-codex-provider · pandashere/dsh-codex-bridge