modem-dev

modem-dev / hunk

Public

Review-first terminal diff viewer for agentic coders

100
3
100% credibility
Found Mar 23, 2026 at 100 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

Hunk is a terminal application for interactively reviewing multi-file code changesets with inline AI annotations, customizable layouts, and Git integration.

How It Works

1
📖 Discover Hunk

You hear about a friendly terminal tool that makes reviewing code changes easy and beautiful, especially those from AI helpers.

2
💻 Set it up

Install it quickly with one simple command so it's ready on your computer.

3
🔍 Review changes

Open it in your code folder to instantly see all your file differences in a clear, colorful view.

4
Spot insights

Enjoy side-by-side comparisons, helpful AI notes right next to the code, and smooth navigation that feels natural.

5
🎨 Make it yours

Switch layouts, toggle notes or numbers, resize panels, or use mouse and keys to explore comfortably.

6
🧭 Jump around

Quickly move between files, hunks, or notes to check everything without getting lost.

Changes approved

You confidently understand and approve the updates, saving time and catching issues effortlessly.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 100 to 100 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is hunk?

Hunk is a TypeScript terminal diff viewer built for agentic coders reviewing AI-generated changesets. It turns Git diffs, file pairs, or patches into interactive multi-file streams with sidebar navigation, inline agent annotations, and responsive split/stack layouts. Run `hunk diff` for working tree changes, `hunk show` for commits, or pipe patches—watch mode auto-reloads on updates.

Why is it gaining traction?

Unlike delta or difftastic's static highlighting, hunk offers review-first UI with live AI notes, mouse-selectable menus, and Git pager integration for seamless `git diff` replacement. Agentic hooks like `hunk session comment add` let tools steer reviews remotely. Benchmarks prove smooth scrolling on large streams, standing out for interactive changeset flows.

Who should use this?

Agentic coders validating Claude or Codex outputs need its inline annotations and session control. Git CLI users reviewing multi-file PRs or stashes get sidebar efficiency over text dumps. Terminal fans ditching VS Code diffs for `hunk difftool` or watch mode on evolving hunks.

Verdict

Worth trying for agentic diff workflows—strong CLI, docs, and Git ties despite 100 stars and 1.0% credibility score signaling early maturity. Not production-ready yet; test on real changesets before aliasing your pager.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.