All apps/hunk

hunk

hunk

Hunk is a review-first diff viewer that plays nice with agents.

Runs as hunk|macOS, Linux, Windows|www.hunk.dev

Command form

ai-draft · 2 tasks · 3 fields

Review changes in the diff viewer. Covers working-tree diffs and commits; two-file comparison, patches, GitHub pull requests and agent sessions are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hunk

hunk diff

Review current changes

Review working-tree changes, or a revision or revset when one is given.

Review current changesExample values, fixed in this page — nothing here reaches a terminal
Basic
Auto-reload
--watch
TasksEach one presets the form for one job
Review working tree
watch
ParametersOnly these flags are editable in the form
Revision or revset
Leave empty to review the working tree.
string · positional 0
Auto-reload
Reload as the working tree changes.
boolean
--watch

hunk show

Review a commit

Review the latest commit, or the given one.

Review a commitExample values, fixed in this page — nothing here reaches a terminal
Basic
Commit or revset*
string
TasksEach one presets the form for one job
Review an earlier commit
ref
ParametersOnly these flags are editable in the form
Commit or revset
Leave empty for the latest commit.
string · positional 0
SourcesEvery flag above is checked against these
readme
hunk diff # review current repo changes, including untracked files hunk diff --watch # auto-reload as the working tree changes so `hunk diff [revset]` and `hunk show [revset]` use native revsets inside jj or Sapling workspaces.
manualv0.24.1

github.com

readme
hunk show # review the latest commit hunk show HEAD~1 # review an earlier commit
manualv0.24.1

github.com

Before it fills your prompt, Otty checks the installed hunk against its version. A form that does not match your version is not offered.