---
name: "Review agent-authored diffs with Hunk"
slug: "review-agent-authored-diffs-with-hunk"
description: "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."
github_stars: 6866
verification: "security_reviewed"
source: "https://github.com/modem-dev/hunk"
author: "Hunk contributors"
publisher_type: "open_source"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "modem-dev/hunk"
  github_stars: 6866
  npm_package: "hunkdiff"
  npm_weekly_downloads: 12934
---

# 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.

- Source: https://github.com/modem-dev/hunk
- Extracted from upstream docs: https://raw.githubusercontent.com/modem-dev/hunk/HEAD/README.md

## Documentation

- https://hunk.dev

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/review-agent-authored-diffs-with-hunk/)
