> ## Documentation Index
> Fetch the complete documentation index at: https://docs-2.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://docs-2.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://docs-2.manicule.dev/docs/api/mcp.
> Every agent surface: https://docs-2.manicule.dev/docs/.well-known/llms-manifest.json

# Multi-File Visual Diff Viewer (/docs/desktop/diff-viewer)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 347 · updated: 2026-11-11 -->
Related: [Desktop Workspace Overview](/docs/desktop/overview.md), [Agentic Canvas Mode](/docs/desktop/agentic-mode.md), [Code Editor & Highlight-to-Ask AI](/docs/desktop/code-editor.md), [Transparency Dock & Approval Gates](/docs/desktop/transparency.md), [Integrated PTY Terminal](/docs/desktop/terminal.md)

> Review AI code modifications with block-by-block accept/reject controls and instant git rollbacks.

When an agent modifies multiple files across your project, reviewing changes before merging is critical. BhaiCode Desktop includes a dedicated **Multi-File Visual Diff Viewer**.

***

## Review Capabilities

* **Unified & Split Views**: Toggle between unified inline diffs and side-by-side split comparisons.
* **Syntax-Aware Coloring**: Added lines are highlighted in green, removed lines in red, with word-level character differences distinctly highlighted.
* **Hunk-by-Hunk Approvals**: Each modified code block includes individual **Accept** (`✓`) and **Reject** (`✗`) controls, allowing you to accept specific improvements while discarding unwanted changes.

***

## Review Actions

### 1. File-Level Controls

* **Accept File**: Applies all modifications in the current file to your working directory.
* **Discard File**: Reverts the file to its exact pre-prompt state.

### 2. Checkpoint Snapshots & Instant Rollbacks

Every time an agent completes a task, BhaiCode Desktop records an ephemeral **Git Checkpoint Snapshot**:

* Click **Rollback to Checkpoint** in the toolbar to immediately return your entire working tree to the state it was in before the prompt was submitted.
* Checkpoints act as a safe local undo stack without cluttering your permanent Git commit history.
