Review agent-authored diffs with Hunk
Use Hunk to keep a live terminal review UI open for agent-authored code changes, with Git, Jujutsu, Sapling, patch input, watch mode, and inline agent annotations.
Prerequisites
Hunk CLI, Git/Jujutsu/Sapling or patch input, Node.js 18+ for npm install or Homebrew, optional coding-agent access to the Hunk skill path
Installation
Use the upstream install or setup path that matches your environment:
- npm i -g hunkdiff
- brew install hunk
Requirements and caveats from upstream:
- Node.js 18+
Basic usage or getting-started notes:
Or with Homebrew:
[!NOTE]
If you previously installed hunk via modem-dev/tap, be sure to uninstall it first with brew uninstall modem-dev/tap/hunk.
Extracted from upstream docs: https://raw.githubusercontent.com/modem-dev/hunk/HEAD/README.md