hunk (modem-dev/hunk)

Searching Database…

9.9K ·GitHub
What is this?Hunk is a review-first terminal diff viewer for agent-authored changesets — a terminal UI for reviewing what your coding agents changed, built on OpenTUI.
So it's a terminal app I run locally, not a website or service?Right — it's a TUI: hunk diff and hunk show open a changeset as a multi-file review stream with a sidebar, split/unified layouts, and keyboard, mouse, pager, and Git difftool support.
Do I need Node.js or anything else installed first?Usually nothing: the install script, Homebrew, mise, and Nix ship a standalone binary. Only the npm install route needs Node.js 22+. Git is recommended for most workflows.
Any hardware or upgrade gotchas I should know about?x86-64 builds need a CPU with SSE4.2 (Intel Nehalem 2008+, AMD Bulldozer 2011+); arm64 has no floor. If you installed via the old modem-dev/tap Homebrew tap, uninstall that version first.
Is it only useful for changes made by AI agents?That's the focus, but it's a general diff viewer too — it handles raw files and patches, working-tree diffs, and full history browsing.
Does it work on Windows too, or just Unix-likes?All three desktops: macOS, Linux, and Windows. The Windows catch is that mise must be 2026.8.6 or newer.
How do I connect it to my coding agent?Open hunk diff or hunk show in another terminal, run hunk skill path, and tell your agent to add the skill file it returns; then ask the agent to use that skill against the live Hunk session, leaving inline annotations beside the code. Watch mode keeps the review current while the agent edits.
How is it different from delta or difftastic?Those render a diff as styled text in your pager; Hunk opens the whole changeset as an interactive review UI — multi-file stream with sidebar, split/unified/auto layouts, mouse support, and inline agent or AI annotations, which its comparison table shows none of the others have. The trade-off is no structural diffing.
Does it work with version control other than Git?Yes — Jujutsu and Sapling workspaces are auto-detected, so hunk diff and hunk show accept native revsets, and hunk log can read jj history directly, even in a non-colocated workspace. You can pin the backend in config with vcs = 'git', 'jj', or 'sl'.
Can I extend it or reuse its diff view?Every shortcut is a named command you can remap, themes are built in or custom, and an experimental TypeScript extension API can add workflows, themes, VCS backends, or replace the sidebar with a React component — though it may change between minor releases. The renderer is also published as HunkDiffView for embedding in your own OpenTUI apps.
Creator
modem-dev
Size
44 MB
Stars
9.9K
Age
8mo
Commits · 90 Days