diffler
magit, without Emacs, built for working with coding agents.
A terminal git UI where you stage and commit, review pull requests and their CI,
and leave comments in the diff that your agent answers and fixes.
Install ·
Quick start ·
Agents ·
Keys ·
FAQ ·
IRC

I love magit and wanted it as its own program, with the vim-style keys it has
in Doom Emacs. Then coding agents
came along, and reading what they write became a big part of the day. So in
diffler you comment right in the diff, and your agent replies in the thread
and fixes the code while you watch.
What it does
Your agent answers your comments
Press c on any line to leave a comment, or select a few lines with
V first to comment on all of them. Your agent replies in each thread
and fixes the code, and the diff updates while you watch. Press gs
to suggest a change that GitHub and GitLab can apply.

It walks you through its change
Your agent can publish a walkthrough of what it changed: one stop per decision,
each pointing at the code it is about, and open it in diffler. It can also take
you straight to any file, line or pull request.

Pull requests without the browser
b p lists the open pull requests with their CI, review
state and labels, on GitHub, GitLab and Forgejo. Press f there to
show only the ones waiting on your review, your own, or a label. Open one to
read its conversation, review the diff and submit your review. C
lists every comment on the side, and R requests a reviewer, Copilot included.
H hides the comments bots left, so you can focus on what people wrote.


CI logs, down to the failing step
o lists the CI runs of your branch. Open a run, then the step that
failed, to read its log. Press w on a pull request to check it out
in its own worktree, and it opens as a new tab next to your project.

And more
- Stage files, hunks or single lines, commit, amend, branch, stash, push and
pull, all from the keyboard.
- Comment on any file of the repo, too.
- Press y to copy what you selected with V, or a file's
comments as markdown to paste into any agent. On a pull request it copies the
URL.
- Open your repos and worktrees as tabs and switch between them with one key.
- Step back through a file's history and see who changed each line.
- It works in git and jj repos.
- It shows images right in the terminal, over
kitty, sixel or iTerm2.
Install
macOS
brew tap matheusfillipe/diffler https://github.com/matheusfillipe/diffler
brew install diffler
Windows
winget install matheusfillipe.diffler
Or with Scoop:
scoop bucket add diffler https://github.com/matheusfillipe/diffler
scoop install diffler
Arch Linux
yay -S diffler-bin
Nix
nix profile install github:matheusfillipe/diffler
Cargo
cargo install diffler
npm
npm install -g @mattfillipe/diffler
Prebuilt binaries for Linux, macOS and Windows, on x86_64 and arm64, are on the
releases page.
Quick start
Run diffler in any git repo.
- Enter opens the file, diff or pull request under the cursor
- s stages, c c commits
- c comments on the line
- e opens the file in your editor
- Ctrl+k finds any command, ? shows every key