33rd of 10 in Code review and testing
hunk
Terminal diff viewer for reviewing code changes, with inline agent notes
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 9.6k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- TypeScript
327 on 31 Mar 20269,648 on 20 Oct 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Hunk is an interactive terminal diff viewer built on OpenTUI and Pierre diffs. It opens Git, Jujutsu and Sapling changes, GitHub pull requests, raw patches from stdin, or two files, in a multi-file stream with a sidebar. A coding agent can use the hunk-review skill to attach notes to a live session, and they show beside the code.
Who it is for: Developers who review diffs or agent-written changes in the terminal
Ranked among open-source alternatives to CodeRabbit (#3 of 10).
Strengths
- Opens Git, Jujutsu and Sapling changes, plus GitHub PRs via bundled `hunk gh` with no gh CLI
- Works as a pager for git, jj and Sapling, and reads patches from stdin
- Standalone binary via install script, Homebrew, mise or Nix; no Node.js needed
- Extension API and embeddable OpenTUI diff component (`hunkdiff/opentui`)
Weaknesses
- No structural diffing; the README's own comparison table marks it as missing
- No prebuilt binaries for Windows arm64 or musl Linux such as Alpine
- GitHub Enterprise is not supported
- Extension API is experimental and may break between minor releases
What it needs
- no GPU
- Needs Git (recommended), Node.js 22+ (npm install only), GH_TOKEN or GITHUB_TOKEN (private repos)
Head to head
Also in Code review and testing
See all 10| Rank | Project | Score |
|---|---|---|
| 1 | open-code-reviewCLI that reviews Git diffs with an LLM agent and line-level comments | 79 out of 100 |
| 2 | react-doctorCLI that scans React codebases for state, performance, security and accessibility issues | 72 out of 100 |
| #4 | no-mistakesLocal git proxy that runs AI review, tests and lint before opening a PR | 70 out of 100 |
| #5 | pr-agentLLM pull request reviewer that comments via /review, /describe and /improve | 69 out of 100 |
| #6 | e2eAI-driven end-to-end testing framework for web and mobile apps | 68 out of 100 |