umputun/revdiff
Go terminal UI for inline diff and plan review in coding-agent sessions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
revdiff is a Go CLI with a terminal UI, built from app/revdiff. Its manifest declares Go 1.26.0 and uses Bubble Tea, Bubbles, and Lip Gloss for the interface, Chroma v2 for syntax highlighting, and go-flags for CLI parsing. For repository review it delegates diff generation to local git, hg, or jj executables. The core boundary is process I/O: open a review, collect inline annotations, and emit structured feedback to stdout on exit.
The agent integrations wrap that same reviewer rather than replace it. Claude Code and Codex launch it in a terminal overlay or separate pane and return the captured annotations to the session. Pi's revdiff_review suspends Pi and hands the terminal to the CLI; its package lists @earendil-works/pi-coding-agent and typebox. OpenCode provides separate v1 and v2 integration paths. The review loop is a CLI-and-plugin design, not a dependency on an MCP server or a specific model family.
Key Capabilities & Differentiators
The reviewer handles repository diffs, standalone files, and documents. It offers full-file context, optional word-level highlighting for paired removed and added lines, and a collapsed view of the final text with change markers. Git and Jujutsu renames retain their source path in the header so a rename need not appear as a wholesale deletion and addition; Jujutsu copies get a separate C marker. Wrapping, page overlap, and the unreviewed-file filter help with larger reviews, though page overlap is approximate on wrapped or annotated lines.
Agent integrations turn inline notes into either questions or change requests. In Claude Code and Codex, a note containing ?? is treated as a question; the explanation can reopen as a Markdown document for follow-up annotations. Pi and OpenCode answer those questions in chat. The separate planning plugin adds a checkpoint before implementation. In Codex, its automatic hook is opt-in and looks for a complete plan in Plan mode; when comments produce a revision, it can show a rolling comparison against the previous reviewed snapshot.
Trade-offs & Limitations
A native VCS diff or pager is simpler for read-only inspection. revdiff earns its place when reviewers want to attach a question or edit request to a line and put that comment directly back into the agent session. Compared with GitHub or GitLab pull-request review, this keeps iteration local to the terminal, but does not replace shared discussion history, approvals, or merge policy. Teams can use it before a PR without moving their review record out of the hosting platform.
The main integration cost is terminal compatibility. Claude Code's interactive flow needs a supported overlay or split mechanism such as tmux, Zellij, kitty, or WezTerm. Multiple installed hooks can also duplicate work: Claude Code's planning plugin and the cc-thingz planning hook can both open the same plan. The launchers for Claude diff review and cross-runtime plan review intentionally omit project-level executable overrides, a sensible constraint for hooks that can run in arbitrary repositories. Local rendering does not, by itself, keep annotations local once they are handed to an agent.
Hardware & Deployment Guide
Install via Homebrew, AUR, a release .deb or .rpm, or a Linux/macOS archive for amd64 or arm64. For a Go-based install, use go install github.com/umputun/revdiff/app/revdiff@latest and ensure the binary directory is on PATH. Repository diff generation needs the corresponding local VCS tool; --only and --stdin do not. Use Jujutsu 0.27 or newer for the documented workflow; versions 0.23–0.26 lack the annotate template needed for the blame gutter.
The standalone reviewer runs locally without a service or model endpoint. Set persistent defaults in the INI file at ~/.config/revdiff/config; CLI flags and environment variables override it. Install agent integrations separately, and for automatic Codex plan review, start a new session and trust the hook through /hooks. Release v1.14.0 added cross-file cursor movement and an unreviewed-file startup filter. v1.15.0 added runtime mouse toggling and fixed a blame command security issue affecting Mercurial, with related hardening for Jujutsu. Prefer v1.15.0 or a later release containing the fix.
--only and --stdin also work without those executables.10 distinguishes successful reviews with comments./revdiff-plan is the manual Codex path.Developers who want to review agent-generated diffs or plans in the terminal and pass line-specific questions and edits back to the same session.
You only need read-only diff browsing, your agent setup cannot hand off an interactive terminal, or your main requirement is team-wide review history and enforced approvals.
Quick Start & Installation
brew install umputun/apps/revdiff
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| revdiff ★ | 977 | +5 | Go | MIT | Go terminal UI for inline diff and plan review in coding-agent sessions |
| caveman | 124.8k | +1.4k | Go | Apache-2.0 | Coding-agent skill and local Go proxy for shorter replies and smaller tool outpu |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/umputun/revdiff.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about revdiff
How should a custom agent wrapper capture review feedback?
10 as a successful result with annotations. For a custom wrapper, preserve stdout for the annotations and, if exit-code-on-annotations is enabled, handle 10 separately from launcher failures. The overlay is an integration detail, not a requirement for standalone use.Does revdiff need a GPU, VRAM, or a model server?
Can a company deploy and redistribute revdiff internally?
When is revdiff preferable to a diff pager or a pull-request review?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy