Hunk documentation
Hunk is a terminal diff viewer for reviewing complete changesets and keeping agent rationale beside the code it explains. Use this page to jump directly to the guide or reference you need.
New to Hunk?
Section titled “New to Hunk?”- Install Hunk.
- Open your working tree with
hunk diff. - Follow the quick start to learn the review stream and navigation model.
Browse the docs
Section titled “Browse the docs”Start hereInstall Hunk, open your first review, and learn the keyboard and mouse controls.
Review workflowsReview working trees, commits, files, patches, pager input, difftool pairs, and other VCS backends.
Working with agentsLet an agent inspect a live review, navigate hunks, and leave inline comments and annotations.
ConfigureSet layered preferences, choose themes, and control layout and display behavior.
ExtendWrite TypeScript extensions that add themes, VCS backends, changeset transforms, commands, and sidebars.
ReferenceLook up generated CLI and config references or embed Hunk's OpenTUI components.
HelpTroubleshoot startup and rendering, check platform support, or plan a docs deployment.