# Reviewing changes

Review local changes, track your progress, and leave feedback as the code changes.

To review changes in a local repository, open the [launcher](/docs/navigation#the-launcher) and enter its path. If you have opened the repository before, you can find it by name. From your terminal, you can open a review with the [Chonk CLI](/docs/cli) by running `chonk review` inside the repository.

## Comparison base

The review compares your working tree with a selected base, shown after **since**. Typically, you will choose:

- `main` when working on a feature branch, to review its commits and uncommitted changes.
- `HEAD` to review only uncommitted changes (including untracked files).

For a branch such as `main`, the comparison uses the **merge base**: the most recent commit shared with your current branch. Commits added only to `main` are left out of the diff.

<img src="/images/screenshots/docs/comparison-base.png" alt="The comparison base picker with HEAD and main" width="604">

## Code review

Chonk gives you a consistent review experience whether the changes are on GitHub or in a local repository. Code review and file navigation work much like they do when [reviewing pull requests](/docs/reviewing-pull-requests#code-review).

The **Changes** page has three tabs:

- **Unreviewed** shows the changes you still need to review.
- **Reviewed** shows the changes you have already marked reviewed.
- **All** shows the full current diff.

As you read the diff, mark files or individual diff sections as reviewed. Chonk remembers the code you reviewed. If your agent then edits that code, **Unreviewed** shows the diff between the version you reviewed and the new version. You can focus on what changed without reviewing the same code again. Marking code as reviewed does not stage, unstage, or commit changes.

The diff updates as the files change and changes are committed. With `HEAD` selected, a committed change leaves the diff. With another branch selected, it remains until it becomes part of the comparison base.

Chonk remembers your review progress for each worktree and branch, so you can switch between them and pick up where you left off. It also carries your review progress over when you rebase.

![Local changes with Unreviewed, Reviewed, and All filters](/images/screenshots/docs/local-changes.png)

You can mark a whole file as reviewed with <span class="kbd-group"><kbd>Shift</kbd> <kbd>R</kbd></span> while your pointer is over it.

With your pointer over the diff, <kbd>E</kbd> shows or hides all unchanged lines in the diff. <span class="kbd-group"><kbd data-linux="Ctrl">Cmd</kbd> <kbd>Click</kbd></span> on a line opens the full file in a new tab, where you can view its history or use blame to see which commits last changed each line. <span class="kbd-group"><kbd data-linux="Ctrl">Cmd</kbd> <kbd>Shift</kbd> <kbd>F</kbd></span> opens a search across all files.

## Comments

When you have feedback, leave a comment on the changes, a file, or a commit. The **Discussion** page shows all comments in one place. They stay local to Chonk.

You can copy the comments and paste them into your agent's chat, or [connect your agent](/docs/working-with-your-agent#connect-your-agent) to read and reply to them.

## Edit and revert

In **Unreviewed**, <span class="kbd-group"><kbd>Shift</kbd> <kbd>E</kbd></span> lets you edit the file under your pointer directly in the diff. Once you click **Save**, Chonk writes your edits to the file on disk. **Discard** leaves it unchanged.

<span class="kbd-group"><kbd data-linux="Ctrl">Cmd</kbd> <kbd>Shift</kbd> <kbd>Click</kbd></span> on a line opens the file at that line in your configured editor. You can choose the editor under <span class="kbd-group"><kbd data-linux="Ctrl">Cmd</kbd> <kbd>T</kbd></span> → **Settings → General → Editor**.

Clicking **Revert** on a diff section reverts those changes in the file on disk. Reverting all changes in a newly added file deletes it.
