AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Legal › revdiff
✦ Free & open sourceLegal

revdiff

TUI for reviewing code diffs and documents with inline annotations for AI agents.

Terminal diff review with AI agent feedback loops

Inspect diffs, files, and documents in a two-pane TUI and pipe structured annotations directly to AI.

Free forever · open source · MIT
✓ Light setup✓ Browser-based✓ Real-time collaboration
6.5
ZEKAI
Essential terminal diff tool for AI workflows
Free & open source · Legal
Ease of setup2
Usefulness8
Maintenance9.5
Community6.5
★ 916
GITHUB
Oct 2026
UPDATED
MIT
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

revdiff is a terminal-based UI designed to let you review code changes, plans, and documents without leaving your terminal AI coding sessions. It captures inline annotations and outputs them directly to stdout so you can feed results back into AI agents or scripts. It suits developers running terminal-driven agentic workflows who need a precise way to audit and annotate changes.

Runs on
Cross-platform
Hosting
Desktop
Languages
Go
License
MIT

What it is

The tool presents a two-pane interface featuring a file tree and a colorized diff viewport with syntax highlighting, word-diff overlays, and git, Mercurial, or Jujutsu VCS support. You can annotate any added, removed, or context line, navigate hunks, search with Vim-style commands, and browse commit logs for narrative context. Upon quitting, it outputs structured annotations to stdout for seamless piping into tools like Claude Code.

Who it's for

It suits developers and legal technologists utilizing terminal-based coding assistants, git-based document drafting, or command-line review pipelines. It does not suit users who require a purely graphical desktop interface or those who do not work within terminal workflows.

Key features

Structured Annotation Output

Outputs structured annotations directly to stdout on quit to pipe into AI agents or scripts.

Multi-VCS Support

Native integration with git, Mercurial, and Jujutsu repositories for automatic diff generation.

Claude Code Plugin

Launches as a terminal overlay from session environments like tmux, Zellij, kitty, or wezterm.

Comprehensive Diff Views

Includes word-diff highlighting, collapsed mode, blame gutters, and markdown TOC navigation.

How to start

Up and running in 3 steps

1
Install revdiff via Homebrew, AUR, Go install, or binary releases from GitHub.
2
Launch revdiff in your repository or pipe text using --stdin to start reviewing.
3
Navigate changes, add inline annotations, and quit to pipe structured results to your workflow.
Real talk

Our honest verdict

What's great

  • Integrates directly into terminal AI coding sessions via dedicated terminal overlays
  • Outputs structured annotations on quit for automated agent consumption
  • Supports git, Mercurial, and Jujutsu version control systems natively
  • Includes robust review features like blame gutters, word-diffs, and search navigation

Where it falls short

  • Requires a supported terminal multiplexer or emulator overlay for the Claude Code plugin workflow
  • Jujutsu support has strict version constraints for blame and commit-log features
  • Dependent on command-line utilities and VCS tools for diff generation
Cost

Pricing & license

Free under its MIT license. The only cost is running it yourself on your own hardware.

Paid work

Open remote AI-training roles

873 open remote AI-training roles, updated November 15, 2026; most pay $20–$170 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: revdiff for Legal
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure revdiff for you — and train your team.
Get it done for you ↗
Questions

FAQ

Which version control systems does revdiff support?

It supports Git, Mercurial (hg), and Jujutsu (jj), with automatic detection of the repository type.

How does revdiff integrate with AI agents like Claude Code?

It includes a plugin that launches revdiff in a separate terminal overlay window, captures your annotations on quit, and feeds them back to the AI.

Can I review files outside a version control repository?

Yes, you can use the --only flag for unmanaged files or --stdin to review arbitrary piped text.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Legal — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google