> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stagewise.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Diff review reference — Accept and reject agent changes

> Review, accept, reject, and undo every code change AI coding agents make in the stagewise agentic IDE. Full inline diffs, per-hunk controls, and full edit history.

Open the Diff Review page from the chat sidebar when the agent edits files.

## Reviewing changes in the chat

After the agent modifies files, an inline diff summary appears. Click it to expand the full diff.

## The Diff Review page

The dedicated page provides a complete view of all pending changes:

* Every modified file listed with line counts
* Side-by-side diff view with syntax highlighting
* Per-hunk controls for granular review

### Accept changes

Click **Accept** on a diff section to confirm. Accepted sections disappear from pending review.

### Reject changes

Click **Reject** to undo a section. The file reverts to its previous state immediately.

### Accept or reject all

Use file-level buttons to apply your choice to every hunk in a file at once.

## Undo and redo

The agent's edit history is preserved at the tool-call level:

* **Undo** — Roll back all changes from a specific agent action
* **Redo** — Reapply changes you previously undid

This works even after accepting or rejecting individual hunks.

## Opening files in your editor

From the Diff Review page, open modified files in your preferred editor: Cursor, VS Code, Zed, Windsurf, Kiro, Trae, or a custom editor. Configure this in **Settings → Agent → General**.

## Related

* [Diff review concept →](/core-concepts/diff-review)
* [How agents work →](/core-concepts/how-agents-work)
