# Diff view

Press `d` to view the diff for the selected agent. The diff view has two modes:

- **WIP** - Shows uncommitted changes (`git diff HEAD`)
- **review** - Shows all changes on the branch vs main (`git diff main...HEAD`)

Press `Tab` while in diff view to toggle between modes. The footer displays which mode is active along with diff statistics showing lines added (+) and removed (-).

When [delta](https://github.com/dandavison/delta) is installed, diffs are rendered with syntax highlighting for better readability. Without delta, basic diff coloring is used as a fallback.

<p>

_Screenshot: workmux diff view_

</p>
<p class="media-caption">Diff view showing WIP changes across multiple files</p>

If there are no changes to show, a message is displayed instead:

- WIP mode: "No uncommitted changes"
- Review mode: "No commits on this branch yet"

## Keybindings

| Key       | Action                      |
| --------- | --------------------------- |
| `Tab`     | Toggle WIP / review         |
| `a`       | Enter patch mode (WIP only) |
| `j`/`k`   | Scroll down/up              |
| `Ctrl+d`  | Page down                   |
| `Ctrl+u`  | Page up                     |
| `c`       | Send commit action to agent |
| `m`       | Send merge action to agent  |
| `:`       | Open command palette        |
| `q`/`Esc` | Close diff view             |
| `Ctrl+c`  | Quit dashboard              |

The `c` and `m` actions can be [configured](/guide/dashboard/configuration/) to run custom commands or prompts.
