# Repository Briefing: umputun/revdiff
> Source: https://repoforai.com/repo/umputun/revdiff (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/umputun/revdiff
- **Official Docs / Website**: https://revdiff.com
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Go
- **License**: MIT
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.15.0 (2026-11-09) — https://github.com/umputun/revdiff/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 977 ★ total (+2 24h / +5 7d) · 112 forks
- **Topics**: `agentic-workflow`, `claude-code`, `code-review`, `diff`, `tui`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Local interface: Bubble Tea, Bubbles, and Lip Gloss support the Go TUI; Chroma v2 provides syntax highlighting.
- VCS input: Git, Mercurial, and Jujutsu can generate diffs; `--only` and `--stdin` also work without those executables.
- Diff rendering: Full-file context, optional word-level highlighting, collapsed final-text view, and rename-aware rendering for Git and Jujutsu.
- Feedback contract: Structured annotations go to stdout; configurable exit code `10` distinguishes successful reviews with comments.
- Agent integrations: Claude Code and Codex use terminal overlays, Pi hands over the terminal directly, and OpenCode has version-specific integrations.
- Plan review: A separate plugin adds automatic review in Claude Code and opt-in automatic review in Codex; `/revdiff-plan` is the manual Codex path.
```

## Quick Start / Clone
```bash
brew install umputun/apps/revdiff
```
