Skip to content

Install

Hunk runs on macOS, Linux, and Windows. npm installs require Node.js 18 or newer; Homebrew and Nix installs are self-contained binaries. Git is recommended for the most common review workflows.

Install the published hunkdiff package globally:

Terminal window
npm install --global hunkdiff
hunk --version

The package exposes both hunk and hunkdiff; the docs use hunk.

Terminal window
brew install hunk
hunk --version

If you previously used the old modem-dev/tap formula, remove it before installing from Homebrew core:

Terminal window
brew uninstall modem-dev/tap/hunk
brew install hunk

The repository exports a default package from flake.nix. From a clone of Hunk:

Terminal window
nix build
./result/bin/hunk --version

See the repository's nix/README.md for Home Manager and development-shell details.

Terminal window
hunk --help

You should see Usage: hunk <command> [options]. If the shell cannot find Hunk, ensure your global npm or Homebrew binary directory is on PATH, then open a new shell.

Next, review your first working tree.