Skip to content

Code Review panel

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

The Code Review panel lets you review, edit, and manage Git diffs in real time, with options to attach, revert, or open files directly.

When you are working locally in a Git repository with uncommitted changes, the Code Review panel lets you inspect, edit, and manage code changes directly inside Warp. It integrates with Git and Warp’s Agents, giving you the ability to:

  • Review diffs and attach them as context for the Agent
  • Apply, edit, or revert changes in real time
  • See changes made outside of Warp or by Warp’s Agents automatically reflected

Any uncommitted changes appear in the panel (or compare the changes on your branch against main or master ). Switching branches or saving files updates the panel instantly, so it always reflects the current state of your codebase.

Full view of Code Review panel and terminal pane.

The Code Review panel can be opened in several ways. Each entry point makes it easy to inspect and manage changes without leaving your workflow.

In terminal mode, when you’re in a Git repository with changes, the Git diff chip shows the number of files modified along with lines added and removed. Clicking the chip opens the Code Review panel with the relevant diffs.

Terminal input bar showing the Git diff chip with branch name, modified file count, and lines added and removed

Git diff chip with a View changes tooltip showing branch name, file count, and lines changed

2. Agent conversation: review changes button

Section titled “2. Agent conversation: review changes button”

When an Agent makes code edits in an Agent Conversation, a Review changes button appears at the bottom of the conversation. Click the button to open the code review panel.

Review changes at bottom of Agent Conversation.

Agent conversation footer with feedback buttons and a Review changes button

3. Agent conversation: toolbelt (bottom right)

Section titled “3. Agent conversation: toolbelt (bottom right)”

During an Agent conversation, you can view all changed files in the toolbelt chips at the persistent bottom right. From there, you can open the Code Review panel directly.

Agent conversation with toolbelt chips in the bottom right showing file changes and action buttons

In any Git-tracked repository, you can open the Code Review panel by clicking the Code review button in the top-right corner of Warp, next to your avatar.

Inside the Code Review panel, you can open the file sidebar to browse all changed files in your repository. Clicking on a file will automatically scroll to that file in the panel.

Viewing all edited files in the code review panel, with the file sidebar open.

By default, the Code Review panel shows all uncommitted changes on your current branch, excluding changes to files ignored by .gitignore.

Warp offers two ways to review changes:

  1. Uncommitted changes: view all edits you’ve made locally on the current branch.
  2. Changes vs. main: compare your branch against main or master to see what would be included in a pull request to that branch, for instance.
    1. Warp automatically detects the target branch and updates the comparison accordingly.
  3. Changes vs. another branch: compare your work against any arbitrary branch for stacked PRs, feature comparisons, or alternate base branches.

You can manually switch between the two views either in the Code Review panel or via the Git diff chip in the terminal input:

Changing diff view in the Code Review Panel.

Changing diff view from the terminal input.

Changing diff view against an arbitrary branch.

Any saved edits made outside of Warp (e.g. in another editor), as well as changes applied by Warp’s Agents, appear automatically. The panel updates in real time, ensuring it always reflects the current state of your working file and directory.

The Code Review pane makes it simple to share changes with the Agent. You can attach an entire diff to a prompt so the Agent has full visibility into what was added or removed.

Attaching a diff as context from the Code Review panel.

This ensures responses are grounded in your latest edits, whether you’re asking for feedback, explanations, or follow-up changes. For more details, see Selection as Context.

The Code Review panel lets you easily undo changes at different levels. In the gutter next to each diff, you’ll see an option to revert a hunk: roll back a specific set of changes (a “diff hunk”) within a file. This removes the added or modified lines and restores the previous version.

Code diff gutter showing the Revert diff hunk tooltip on a changed line

When you revert, the changes are immediately updated in your working directory. The file is restored to match the selected version, so you can continue editing or commit without the reverted code.

In addition to reviewing and editing diffs directly in the Code Review pane, you can open a file directly in Warp’s Code Editor.

Code Review panel header showing file name, lines changed, and buttons for attach, revert, and open in editor

  • Clicking the expand button (right-most button on the header) opens the file in a new editor tab, allowing you to see the full file beyond just the changed lines.
    • This is useful when you need additional context around a diff, want to make broader edits, or prefer working in the full editor rather than inline.
  • Once opened, the file behaves like any other editor tab: you can scroll, edit, search, and save.
  • Any changes made in the editor automatically sync back into the Code Review pane, so the diff view always stays current.

Note: from this code review file header, you can also attach a file diff as context into Warp’s agent, or discard all the changes on a single file.

Alternatively, from the Code Review panel, you are able to click and edit the diffs directly:

Directly editing code in the Code Review panel inline diff view

You can leave inline comments in the Code Review panel and send them directly to a running coding agent session, including third-party CLI agents like Claude Code, Codex, and others.

This extends Warp’s Interactive Code Review workflow to any supported CLI agent running in Warp. The agent receives your batch of comments and applies the requested changes.

For more on supported agents, see Third-Party CLI Agents.

The Code Review panel also lets you discard every uncommitted change on your branch in one action. Clicking Discard all removes all local modifications shown in the panel and restores each file to its state on the base branch. This is useful when you want to reset your working directory, abandon a set of edits, or start a new iteration from a clean slate.

Code Review panel header with Uncommitted changes dropdown, attach button, and Discard all button

Discarding changes will ask you confirm, but still make sure you’ve saved or backed up anything you want to keep before using it.