# Hunk for Jujutsu

> Review Jujutsu working copies and changes in Hunk with native jj revsets, pager integration, multi-file navigation, and agent annotations.

Hunk detects Jujutsu repositories and passes native jj revsets to its Jujutsu backend. Review a working copy or change in the same multi-file terminal UI Hunk provides for Git, without translating your workflow into Git refs.

## Start reviewing

```bash
hunk diff
hunk diff @-
hunk show @
```

## Review the working copy

Run `hunk diff` inside a Jujutsu workspace. Hunk detects jj and builds one navigable review stream from the current working-copy changes.

## Use native revsets

Targets such as `@`, `@-`, and larger revset expressions stay in Jujutsu syntax. Use `hunk diff <target>` to compare and `hunk show <target>` to inspect one change.

## Keep Hunk in the jj workflow

Configure jj to emit Git-format diffs through `hunk pager`, so pager-driven commands can open the same review UI while ordinary text still falls back to a text pager.

## Use Hunk as the jj pager

```text
# jj config edit --user
[ui]
pager = ["hunk", "pager"]
diff-formatter = ":git"
```

## What to know

Jujutsu has no Git staging area or stash workflow. Hunk's jj watch mode currently polls rather than observing repository files directly.

[Read the complete Jujutsu workflow documentation](https://hunk.dev/docs/workflows/jujutsu-and-sapling/)

[Install Hunk](https://hunk.dev/#install)
