
dffy
A fast terminal diff viewer for git, with a review loop for your coding agent.
Opens a diff the size of a Linux kernel release in milliseconds.

brew install --cask amalucelli/tap/dffy
dffy # in any git repository: everything you haven't committed
Who it's for
- You work in a large repository. dffy shows the first files while it diffs the rest in the background, and it doesn't slow down at the scale of the Linux kernel.
- You review what your coding agent wrote. Leave comments on its lines, send them back to the agent with one key, then see only what it changed in response.
- You review pull requests.
dffy pr 123 opens a GitHub pull request with its threads inline, and posts your review without leaving the terminal.
- You live in the terminal, sometimes over SSH from a phone. dffy is a single native binary, with plain-letter keys and a layout that fits small screens.
Install
dffy is a single binary for Linux and macOS, on x86_64 and arm64.
brew install --cask amalucelli/tap/dffy
# or
curl -fsSL https://raw.githubusercontent.com/amalucelli/dffy/main/install.sh | sh
install.md covers mise, building from source, shell completions and the plugins.
Make it your default
git config --global core.pager dffy
git config --global interactive.diffFilter "dffy --color-only"
git diff, git show and git log -p then open in dffy's viewer, and git add -p gets dffy's colors. To try it once without changing your config: git -c core.pager=dffy diff.
Usage
dffy # staged, unstaged and untracked changes
dffy main...feature # any revision git understands
dffy show HEAD # a commit with its message
dffy --watch # refresh on every change
dffy a.txt b.txt # two files or folders, no repository needed
usage.md has the rest: paths, --staged, --syntax, --stat, --json and more.
| Key | Does |
|---|
n / N | next / previous change |
f / F | next / previous file |
/ | search the diff |
o | find any file in the repository |
l | show files whole, with their changes marked |
K | go to a definition, no language server needed |
c | comment on a line |
space | list every command |
? / q | help / quit |
keys.md lists every key and how to rebind it. Settings go in ~/.config/dffy/config as key = value lines, and dffy config --default lists them all.
Review your agent's work
dffy agents setup # a skill for Claude Code, Codex, Pi and Amp
The skill teaches your agent to read changes with dffy a file at a time, and to answer the review threads you leave it under its own name. It never resolves or posts them. Agents without a shell use dffy mcp instead.
With Claude Code, install dffy's plugin so a session you already have open takes the threads you send:
claude plugin marketplace add amalucelli/dffy
claude plugin install dffy@dffy
Then, with claude and dffy open in the same working tree:
c on a line leaves a comment for the agent.
h sends all your open threads to the session, after a confirm, and takes a checkpoint of the working tree first. f sends only the thread in focus.
- The session makes each change and replies in its thread.
' shows only what changed since the checkpoint, the agent's turn. x on a thread resolves it once you're happy.
Ask or start an agent from the viewer
The dffy-agent plugin (experimental) runs Claude Code, Codex, Pi or Amp for you, with no session open:
brew install --cask amalucelli/tap/dffy-agent
a on a thread asks an agent about it. The answer comes as a reply in the thread, read-only, with a suggestion when it proposes a change, and s applies the suggestion to the working tree.
f and h with no session listening start your agent in a new tab, pointed at the threads.
It needs claude, codex or pi logged in. agents.md and viewer.md have the details.

Review pull requests