# modem-dev/hunk

Review-first terminal diff viewer for agentic coders

Repository: https://github.com/modem-dev/hunk
Canonical: https://ross.abutalabs.com/products/hunk
Homepage: https://hunk.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: cli, code-review, diff, git, tui, agents, jj, jujutsu, sapling, terminal
Last push: 2026-08-26T23:40:03+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 12
- inputs: {"age_days": 169, "days_push": 7, "days_rel": 8, "gap_med": 2, "n_releases_24m": 42}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8774, forks 274 (observed 2026-08-28T04:10:25.579880+00:00)

## What it is
Hunk is a review-first terminal diff viewer (TUI) for reviewing complete changesets from Git, Jujutsu, and Sapling, with syntax highlighting, split/stack layouts, and themes. It renders inline AI/agent annotations beside the code they explain and supports pager, difftool, and extension workflows.

## Use cases
- review agent-authored code changes in the terminal
- view git diffs with syntax highlighting and split view
- use as a git pager or difftool
- read inline AI agent comments next to the code they explain
- review working tree, commits, stashes, and patches
- navigate large multi-file changesets with keyboard shortcuts
- customize diff viewer themes and layout

## When to choose
- you review AI/agent-generated changesets and want rationale beside the code
- you want a fast, modern terminal diff viewer with themes and mouse support
- you need a git pager/difftool replacement with a multi-file review stream
- you use Git, Jujutsu, or Sapling and want a unified review UI

## When to avoid
- you need GUI or web-based code review with PR workflows (e.g. GitHub review UIs)
- you only need plain unified diff output in scripts
- you require IDE-integrated diff tooling rather than a terminal app

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, terminal-ui, code-review, version-control
- domain: developer-tools, version-control
- platform: windows, cli
- tags: diff-viewer, tui, git, jujutsu, sapling, code-review, ai-agents, syntax-highlighting, pager, difftool, typescript, command-line, macos, linux, nodejs

## Member repositories
- modem-dev/hunk (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:25.579880+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:13.857068+00:00, confidence not recorded.
  - readme: https://github.com/modem-dev/hunk (fetched 2026-08-28T04:10:25.579880+00:00, sha 67187a8d30b8)
  - homepage: https://hunk.dev (fetched 2026-08-29T08:25:50.422506+00:00, sha 5cf96135cf56)
  - site_page: https://www.hunk.dev/docs (fetched 2026-08-29T08:25:50.425255+00:00, sha c2a579684d75)
  - site_page: https://www.hunk.dev/docs/configure/themes (fetched 2026-08-29T08:25:50.430292+00:00, sha aba41ca59821)
  - site_page: https://www.hunk.dev/docs/workflows/working-trees-and-commits (fetched 2026-08-29T08:25:50.431809+00:00, sha 31bd0a97793b)
  - site_page: https://www.hunk.dev/docs/agents/comments-and-annotations (fetched 2026-08-29T08:25:50.433341+00:00, sha 40bf06b6539e)
  - site_page: https://www.hunk.dev/docs/start/keyboard-and-mouse (fetched 2026-08-29T08:25:50.434824+00:00, sha ec87eb8f8575)
  - site_page: https://www.hunk.dev/docs/configure/layout-and-display (fetched 2026-08-29T08:25:50.436280+00:00, sha 8f78eb37d494)
  - site_page: https://www.hunk.dev/changelog (fetched 2026-08-29T08:25:50.427010+00:00, sha becb5d5d248a)
  - site_page: https://www.hunk.dev/changelog/0.20 (fetched 2026-08-29T08:25:50.428711+00:00, sha 8d0f0be07a99)
- Data as of 2026-08-30T08:39:29.467469+00:00.
