by amalucelli
A fast terminal diff viewer and code review tool for git, with the coding agent you already use
# Add to your Claude Code skills
git clone https://github.com/amalucelli/dffydffy is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by amalucelli. A fast terminal diff viewer and code review tool for git, with the coding agent you already use. It has 52 GitHub stars.
dffy's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/amalucelli/dffy" and add it to your Claude Code skills directory (see the Installation section above).
dffy is primarily written in Rust. It is open-source under amalucelli on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dffy against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
brew install --cask amalucelli/tap/dffy
dffy # in any git repository: everything you haven't committed
dffy pr 123 opens a GitHub pull request with its threads inline, and posts your review without leaving the terminal.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.
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.
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.
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.' shows only what changed since the checkpoint, the agent's turn. x on a thread resolves it once you're happy.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.
The dffy-review-github plugin (experimental) brings GitHub pull requests into the viewer. It needs gh, logged in.
brew install --cask amalucelli/tap/dffy-review-github
dffy pr 123
P posts your drafts, replies and resolves as one review, and p fetches new pushes and threads in place.R shows only what changed since your last review, and O lists the reviews waiting on you.dffy on a branch with an open pull request brings in its comments too. review = none in the config turns that off.viewer.md and review-github.md have the details.
Opening Linux v6.0..v6.1 (13,168 changed files, a 48MB patch) in a viewer, time until the first changed line is on screen:
dffy |
lumen 2.32.0 |
hunk 0.25.0 |
|
|---|---|---|---|
| The v6.0..v6.1 range | 8.1ms | 12.5s | 18.1s |
| The working tree (5 files changed) | 77ms | 1.11s | 733ms |
As a pager, git diff v6.0 v6.1 | … |
210ms | n/a | 15.2s |
| Memory, opening the range | 99MB | 676MB | 4.39GB |
As git's pager, dffy streams the whole 48MB patch in 3.1MB of its own memory, about as fast as plain git diff. benchmarks.md has the method.
dffy |
hunk |
lumen |
difftastic |
delta |
diff-so-fancy |
diff |
|
|---|---|---|---|---|---|---|---|
| Interactive viewer with a file tree | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Watch mode | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| git's pager (reads a diff on stdin) | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ |
git add -p filter |
✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ |
| Syntax highlighting | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
| Changed-word emphasis | ✅ | ✅ | ✅ | ✅ | ✅ | 🟡 | ❌ |
| Syntax-aware diff | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Split and unified, picked by width | ✅ | ✅ | ❌ | 🟡 | 🟡 | ❌ | 🟡 |
| Mouse | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Compares files outside a repository | ✅ | 🟡 | ❌ | ✅ | ✅ | 🟡 | ✅ |
| Plugins or extensions | 🟡 | 🟡 | ❌ | ❌ | ❌ | ❌ | ❌ |
| Single native binary | ✅ | 🟡 | ✅ | ✅ | ✅ | ❌ | ✅ |
| Your own line comments | ✅ | 🟡 | ✅ | ❌ | ❌ | ❌ | ❌ |
| GitHub pull request review | 🟡 | 🟡 | 🟡 | ❌ | ❌ | ❌ | ❌ |
| AI or agent annotations | ✅ | ✅ | 🟡 | ❌ | ❌ | ❌ | ❌ |
| Other VCSs (Jujutsu, Mercurial, Sapling) | ❌ | ✅ | ✅ | ✅ | ✅ | 🟡 | — |
🟡 means partial support. All seven are open source. GNU diff is GPL-3.0-or-later and the rest are MIT. Checked against hunk 0.25.0, lumen 2.32.0, difftastic 0.72.0, delta 0.20.1, diff-so-fancy 1.4.14 and GNU diffutils 3.10, with a source for every cell.
Fast
--watch repaints as you edit, stage and commit.Reading diffs
d) that marks reformatted (~) and moved (») code.Reading code
l) shows each file whole at either version, with its changes marked and opened in place.K) at either version, with the lines using a name, in 18 languages and without a language server.Navigation
backspace, \) between the places you jumped from.n/N jump between changes.Reviewing
Git