#55th of 19 in Code review and testing

hunk

Terminal diff viewer for reviewing code changes, with inline agent notes

Stars
9.7k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
TypeScript
Stars, last 29 weeks+9,334
3 Apr 2026: 336 stars10 Apr 2026: 393 stars17 Apr 2026: 430 stars24 Apr 2026: 451 stars1 May 2026: 468 stars8 May 2026: 2,833 stars15 May 2026: 3,950 stars22 May 2026: 4,221 stars29 May 2026: 4,397 stars5 Jun 2026: 4,502 stars12 Jun 2026: 4,708 stars19 Jun 2026: 5,000 stars26 Jun 2026: 5,635 stars3 Jul 2026: 5,932 stars10 Jul 2026: 6,506 stars17 Jul 2026: 7,109 stars24 Jul 2026: 7,628 stars31 Jul 2026: 7,905 stars7 Aug 2026: 8,087 stars14 Aug 2026: 8,323 stars21 Aug 2026: 8,604 stars28 Aug 2026: 8,827 stars4 Sept 2026: 9,052 stars11 Sept 2026: 9,192 stars18 Sept 2026: 9,299 stars25 Sept 2026: 9,367 stars2 Oct 2026: 9,445 stars9 Oct 2026: 9,544 stars16 Oct 2026: 9,611 stars23 Oct 2026: 9,670 stars

336 on 3 Apr 20269,670 on 23 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 (#5 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)

Quick answers

Is hunk open source?

Yes. Its code is on GitHub under the MIT license.

Also in Code review and testing

See all 19
Also in Code review and testing
RankProjectScore
1open-code-reviewCLI that reviews Git diffs with an LLM agent and line-level comments48.2k starsApache-2.092 out of 100
2react-doctorCLI that scans React codebases for state, performance, security and accessibility issues15k starscustom license90 out of 100
3pr-agentLLM pull request reviewer that comments via /review, /describe and /improve13.6k starsMIT87 out of 100
#4e2eAI-driven end-to-end testing framework for web and mobile apps11.8k starsApache-2.086 out of 100
#6no-mistakesLocal git proxy that runs AI review, tests and lint before opening a PR8.9k starsMIT85 out of 100