33rd of 10 in Code review and testing

hunk

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

Stars
9.6k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
TypeScript
Stars, last 29 weeks+9,321
31 Mar 2026: 327 stars7 Apr 2026: 346 stars14 Apr 2026: 423 stars21 Apr 2026: 444 stars28 Apr 2026: 461 stars5 May 2026: 472 stars12 May 2026: 3,774 stars19 May 2026: 4,134 stars26 May 2026: 4,340 stars2 Jun 2026: 4,468 stars9 Jun 2026: 4,630 stars16 Jun 2026: 4,800 stars23 Jun 2026: 5,464 stars30 Jun 2026: 5,767 stars7 Jul 2026: 6,282 stars14 Jul 2026: 6,807 stars21 Jul 2026: 7,479 stars28 Jul 2026: 7,794 stars4 Aug 2026: 8,013 stars11 Aug 2026: 8,177 stars18 Aug 2026: 8,525 stars25 Aug 2026: 8,679 stars1 Sept 2026: 8,950 stars8 Sept 2026: 9,141 stars15 Sept 2026: 9,256 stars22 Sept 2026: 9,331 stars29 Sept 2026: 9,412 stars6 Oct 2026: 9,499 stars13 Oct 2026: 9,586 stars20 Oct 2026: 9,648 stars

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
Also in Code review and testing
RankProjectScore
1open-code-reviewCLI that reviews Git diffs with an LLM agent and line-level comments47.8k starsApache-2.079 out of 100
2react-doctorCLI that scans React codebases for state, performance, security and accessibility issues15k starscustom license72 out of 100
#4no-mistakesLocal git proxy that runs AI review, tests and lint before opening a PR8.9k starsMIT70 out of 100
#5pr-agentLLM pull request reviewer that comments via /review, /describe and /improve13.5k starsMIT69 out of 100
#6e2eAI-driven end-to-end testing framework for web and mobile apps11.6k starsApache-2.068 out of 100