Show HN: Deff – Side-by-side Git diff review in your terminal

2026-02-2617:5412067github.com

interactive, side-by-side file review for git diffs with per-file navigation, vertical and horizontal scrolling, syntax highlighting, and added/deleted line tinting - flamestro/deff

You can’t perform that action at this time.


Read the original article

Comments

  • By llbbdd 2026-02-2619:278 reply

    I was looking for a good TUI tool for diffs recently, but I'm not sure yet if what I want exists already (and I don't think this tool does it (yet?)). I've been moving my workflow out of VSCode as I'm using TUI-driven coding agents more often lately but one thing I miss from my VSCode/GitHub workflow is the ability to provide a comment on lines or ranges in a diff to provide targeted feedback to the agent. Most diff tools seem to be (rightfully) focused on cleanly visualizing changes and not necessarily iterating on the change.

    I admit I haven't looked super hard yet, I settled on configuring git to use delta [0] for now and I'm happy with it, but I'm curious if anyone has a workflow for reviewing/iterating on diffs in the terminal that they'd be willing to share. Also open to being told that I'm lightyears behind and that there's a better mental model for this.

    [0] https://github.com/dandavison/delta/

    • By kodomomo 2026-02-2620:011 reply

      Octo [0] for nvim lets you submit reviews, add comments on ranges, reply to threads, etc.

      This in conjunction with gh-dash [1] to launch a review can get you a pretty nice TUI review workflow.

      [0] https://github.com/pwntester/octo.nvim

      [1] https://github.com/dlvhdr/gh-dash

      *Edit: I see you meant providing feedback to an agent, not a PR. Well that's what I get for reading too fast.

      • By llbbdd 2026-02-2621:381 reply

        No problem, I appreciate another reason to look at Neovim; I do sometimes have a need to interact with GH's actual PR flow and once I've moved the rest of my workflow out of VSCode, Neovim looks like the best option for the last mile of actually writing and editing code. I just have to commit the time to set it up with everything I probably take for granted in VSCode's editor.

    • By agavra 2026-02-2623:451 reply

      Checkout https://github.com/agavra/tuicr - it's built exactly for this purpose (reviewing code in your terminal and then adding comments and exporting it to an agent to fix).

      • By eddyg 2026-02-2722:25

        This is really nice! I like the ability to add comments to "send it back" for another pass.

    • By thamer 2026-02-2622:001 reply

      I had tried `delta` a few years ago but eventually went with `diff-so-fancy`[1]

      The two are kind of similar if I remember correctly, and both offer a lot of config options to change the style and more. I mostly use it for diffs involving long lines since it highlights changes within a line, which makes it easier to spot such edits.

      I have an alias set in `~/.gitconfig` to pipe the output of `git diff` (with options) to `diff-so-fancy` with `git diffs`:

          diffs = "!f() { git diff $@ | diff-so-fancy; }; f"
      
      
      [1] https://github.com/so-fancy/diff-so-fancy

      • By petepete 2026-02-2622:59

        You can do this with diff-highlight, which comes packaged with git. No extra packages needed.

    • By flamestro 2026-02-2621:28

      I was also searching for some time, but most of them did not have enough context for my workflow tbh. So thats why I decided to make deff. Another good one I liked is vimdiff

    • By mckn1ght 2026-02-2620:40

      I use delta for quick diffs in a shell (along with the -U0 option on git-diff), but in my claude workflow, i have a 3 pane setup in tmux: :| where the right side is a claude session, the top left is emacs opened to magit, and the bottom left is a shell. Magit makes navigating around a diff pretty easy (as well as all the other git operations), and I can dive into anything and hand edit as well.

    • By jfyne 2026-02-2620:431 reply

      Not TUI based but I made something called meatcheck. The idea being that the LLM requests a review from the human, you can leave inline comments like a PR review.

      Once you submit it outputs to stdout and the agent reads your comments and actions them.

      https://github.com/jfyne/meatcheck

      • By llbbdd 2026-02-2622:01

        Thank you! At a glance this is very close to what I had in mind, especially with the straightforward output format, I'll give this a try.

    • By coryrc 2026-02-2620:46

      magit

    • By ushironoko 2026-02-277:42

      [dead]

  • By k_bx 2026-02-2619:44

    What I would love to see is "tig" replacement that is:

    - even faster, especially if you have couple thousand files and just want to press "u" for some time and see them very quickly all get staged

    - has this split-view diff opened for a file

    Otherwise tig is one of my favorite tools to quickly commit stuff without too many key presses but with review abilities, i have its "tig status" aliased to "t"

  • By meain 2026-02-2618:532 reply

    I have been using https://github.com/jeffkaufman/icdiff for the longest time to get side by side diffs.

    • By flamestro 2026-02-2621:09

      This looks great as well! I personally prefer a bit more context. Thats why I added a bit more of it to deff. It also allows to mark files as reviewed by pressing `r` which is quite handy for my flow.

    • By lf-non 2026-02-2619:011 reply

      I also use icdiff, but it is good to have the file-awareness for git diff esp. the ability to quickly skip files that I know aren't important.

HackerNews