Skip to main content
株式会社オブライト

Articles tagged "Diff Viewer"

1 article

Software Development2026-07-10
[Hunk](https://www.hunk.dev/) Deep Dive — A Terminal Diff Viewer Purpose-Built for Code Review and AI-Agent Integration, With `hunk diff` / `hunk show` CLIs, Inline AI Annotations, Watch Mode, and Themes Including Graphite / Midnight / Catppuccin Node.js 18+ / MIT / Installable via npm, Homebrew, and Nix
**[Hunk](https://www.hunk.dev/) is a terminal-based diff viewer purpose-built for code review and AI-agent integration** — a replacement for stock `git diff`, with review-experience as a first-class design goal. **Key features**: (1) **multi-file review sidebar** — see the whole changeset, navigate files, view change counts, (2) **inline AI annotations** — reasoning from AI agents ([Claude Code](https://claude.com/product/claude-code), [Cursor](../columns/cursor-ios-supports-2026-07-01), etc.) shows adjacent to the relevant code, (3) **adaptive layout** — split / stacked / auto-responsive views auto-adjust to terminal width, (4) **watch mode** — auto-refreshes as the working tree changes, (5) **syntax highlighting + themes** — Graphite / Midnight / Ember / Zenburn / Catppuccin, (6) multiple input methods — **keyboard, mouse, pager integration**. **CLI commands**: `hunk diff` (uncommitted changes) and `hunk show` (a commit). **Tech stack**: Node.js 18+, **MIT license**, distributed via **npm / Homebrew / Nix**. Position: the terminal counterpart to [Crit.md's browser PR-review experience](../columns/crit-md-local-first-agent-review-2026-07); alongside [Herdr (parallel agent operations)](../columns/herdr-terminal-agent-multiplexer-2026-07), it's part of the same "terminal-native AI-agent era" trend. **Target users**: developers doing code reviews, teams integrating AI tools into dev workflows, and terminal-first engineers.
HunkTerminalDiff Viewer