Terminal diffs
for humans & agents

Hunk is a review-first diff viewer that plays nice with agents. It's fast, it looks good, and it works everywhere.

Star on GitHub5.8k
hunk diff — split view
Hunk split-view diff in the Graphite theme
Hunk is very good. It has replaced any other local diff viewer for me.
Mitchell Hashimoto, creator of Ghostty & Vagrant
Love hunk.
DHH, creator of Omarchy and Ruby on Rails

Don't just read code, understand it.

01

Multi-file review stream

The whole changeset in a sidebar. Jump between files, see counts, review top to bottom.

02

Inline agent annotations

AI reasoning renders beside the code it describes — context lives in the diff, not another tab.

03

Split · stack · auto

Layouts that adapt to your terminal width. Toggle wrapping and line numbers at runtime.

04

Watch mode

Auto-reloads as the working tree changes. Keep it open while your agent edits in another pane.

05

Syntax highlighting & themes

Understand code structure, not just lines added/removed. Choose a theme or roll your own.

06

Keyboard, mouse, pager

Drive it however you like — full keys, selectable menus, pipe patches straight in.

Wherever your terminal lives.

Then hunk diff to review your working tree, or hunk show to review a commit. Requires Node 18+.