Code Diffs in Agent Conversations

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

Reviewing Code Diffs

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.

Note: If the Apply Code Diffs permission is set to Agent decides or Always allow in Agent Profiles & Permissions, code diffs will not be surfaced for you to review. If it’s set to Always ask, you’ll always be prompted to review them.

Code diffs generated by Warp are never stored on our servers. Warps coding agent only work on local repositories. The agent can make changes on remote or docker repositories, but fallback to using terminal commands (i.e. sed, grep ) to make the changes.

A code diff surfaced in an Agent Conversation.

When a Warp 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.

Refining or editing the diffs

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 Mac, Windows, or Linux systems). Similarly, you can exit the editor at any time with ESC .

You can open up code files in Warp in various different ways, refer to: Opening Files in Warp

Editing the code diff directly in Warp's native code editor.

Demo: Editing Agent Code in Warp

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

Last updated

Was this helpful?