Skip to content

Code Diffs

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

How to review, refine, and apply code changes generated by Warp’s Agents with the built-in diff editor in Agent Conversations.

During an Agent Conversation, Warp can generate code diffs that open directly in a built-in diff editor.

This lets you review proposed changes line by line, refine them with natural language, or make manual edits before choosing whether to apply them. It’s a fast, transparent way to stay in control of agent-generated code.

A code diff surfaced in an Agent Conversation.

You can also choose whether Warp automatically opens the Code Review panel the first time you accept a diff in a conversation.

When an Agent generates a code diff, Warp opens it in a built-in text editor with a visual diff view. Changes are grouped into clear hunks for easy inspection.

  • Use the UP and DOWN arrow keys (or mouse clicks) to move between hunks.
  • For multi-file changes, use LEFT and RIGHT arrow keys to switch between files.
  • Once satisfied with the changes, you can apply the diffs using ENTER or clicking “Accept Changes” to apply the modifications.

If the initial suggestion needs more work:

  • Press R or select the “Refine” button to provide follow-up instructions in natural language. The agent will regenerate the diff based on your input.
  • To manually adjust the code, press E or click “Edit” to switch into an editable view.
  • To cancel a pending operation, use CTRL-C (on macOS, Windows, or Linux). Similarly, you can exit the editor at any time with ESC .

Editing a code diff directly in Warp's native code editor

Accepting diffs and continuing in Agent Mode

Section titled “Accepting diffs and continuing in Agent Mode”

When the Agent generates a code diff outside of an active conversation — for example, from a suggested code banner or a passive recommendation — you can accept the diff and seamlessly continue in Agent Mode. After accepting, Warp opens (or returns to) the Agent conversation with the applied changes as context, so you can immediately ask follow-up questions or request further modifications without starting a new conversation.

Here’s an example from Warp Guides, where Zach demonstrates how to review and edit Agent code diffs natively in Warp: