插件目录 / Developer / dsh-revdiff
dsh-revdiff
已验证 · 实测可装 BrambleXu
✓ 持续维护 基于 5 个官方 DSH 包 纯 TypeScript
1Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-14最近推送
跨平台平台
功能简介
DeepSeek Harness 原生交互式 Git diff 审查,支持结构化批注并回传当前 Agent 会话。
我们的评价
可用 — 实测通过,早期项目
可用 — 实测通过,早期项目
DeepSeek Harness 原生交互式 Git diff 审查,支持结构化批注并回传当前 Agent 会话。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-revdiff
 <p align="center"> <a href="LICENSE"><img src="https://img.shields.io/github/license/BrambleXu/dsh-revdiff?style=flat-square" alt="MIT license"></a> <a href="package.json"><img src="https://img.shields.io/badge/Node.js-%5E22.19%20%7C%20%3E%3D24-339933?style=flat-square&logo=nodedotjs&logoColor=white" alt="Node.js ^22.19 or >=24"></a> <a href="package.json"><img src="https://img.shields.io/badge/TypeScript-5.9-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript 5.9"></a> <a href="package.json"><img src="https://img.shields.io/badge/tests-Vitest-6E9F18?style=flat-square&logo=vitest&logoColor=white" alt="Tests with Vitest"></a> </p> <p align="center"> <a href="https://github.com/awesome-dsh-plugin/awesome-dsh-plugin#development--runtime"><img src="https://img.shields.io/static/v1?label=awesome%20%C2%B7%20DSH%20plugin&message=development&color=5B4CF0&style=flat-square" alt="awesome · DSH plugin · development"></a> </p> <p align="center">English | <a href="README.zh.md">中文</a></p> Native interactive diff review for https://github.com/deepseek-ai/deepseek-harness. The plugin reads a Git unified diff, parses it into files, hunks, and line locations, presents its own terminal review interface, and queues submitted annotations as the Agent's next durable follow-up turn.Why this exists 💡
Reviewing a diff in a separate tool breaks the connection between the change, the review context, and the Agent that will act on the feedback.dsh-revdiff keeps review inside Harness, so annotations are created against the actual Git diff and returned to the same durable session.
Features ✨
- Review tracked working-tree, staged, unstaged, or base-revision changes with optional path filters. - Navigate between files, hunks, and diff lines from an interactive terminal. - Add, edit, and delete issue, suggestion, question, or praise annotations. - Submit structured annotations to the current Agent throughagent.followup() with message provenance.
- Configure Git execution, diff context, size and time limits, terminal grace period, and comment length.
Install 📦
Add this checkout to a Harness profile: ``sh
dsh plugin --profile demo add ./dsh-revdiff
`
The only external runtime requirement is Git in the same execution world as Harness.
Use 🚀
`text
/revdiff
/revdiff --staged
/revdiff --unstaged
/revdiff main
/revdiff --base main -- src/index.ts README.md
`
The default reviews all tracked working-tree changes against HEAD, including staged and unstaged changes. --staged reviews the index, --unstaged reviews only worktree changes relative to the index, and a base revision reviews the working tree against that revision. Put path filters after --.
The Harness process must own an interactive terminal. The review interface supports:
- ↑/↓ or k/j: move between diff lines
- n/p: move between hunks
- ]/https://github.com/badlogic/pi-diff-review and https://github.com/umputun/revdiff, but this is an independent implementation built specifically around Harness commands, managed subprocesses, Agent lifecycle, and message provenance. It does not install, execute, wrap, or parse output from revdiff`.
安装
🧩 让 Agent 自动装(推荐)
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-revdiff」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:BrambleXu/dsh-revdiff Headless(CLI)profile:
dsh plugin --profile headless add github:BrambleXu/dsh-revdiff 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。