r/git • u/amalucelli • 13d ago
dffy: a terminal diff viewer in Rust that stays fast on big repos
I spend my days reviewing diffs from coding agents in the terminal, sometimes from my phone over SSH, and none of the tools I liked quite fit. lumen leans on AI features I didn't want in a diff viewer, hunk runs on a JavaScript runtime, and both got slow on the monorepos I work in.
That's why I decided to build dffy: https://github.com/amalucelli/dffy a single Rust binary that combines what I liked from each of them and stays fast on big repos. It shows the first files as soon as they're found and loads the rest in the background. On the Linux repom the diff v6.0..v6.1 (~13k changed files) the first screen is up in miliseconds vs seconds from lumen and hunk.

A few other things it does:
- staged, unstaged and untracked changes in one view, conflicted files from a merge or rebase with their markers highlighted, and renames detected the way git does it
- works as git's pager, the git add -p filter and difftool, and compares plain files and folders outside a repo too
- every action is a single key, with a command panel on space, and the layout adapts down to a phone screen
- mouse selection that copies over SSH, and it plays well with multiplexers like herdr and rex
- 16 built-in themes with a live picker, and you can add your own themes that build on any of them
- extensible through renderer plugins in any language; ships with two experimental ones: Markdown diffed as rendered text, and Mermaid diagrams drawn in the terminal
- --json output and an MCP server, so scripts and agents can read a diff a page at a time
- settings in a plain config file for your dotfiles, remappable keys, and it remembers your layout between runs
6
u/LerkinAround 13d ago
Rule 3: no AI slop