Reviewing Agent-generated Code

Learn how to review, refine, and apply code changes generated by Warp’s agents using the built-in visual diff editor.

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 by clicking on the link and selecting "Open in Warp."

Last updated

Was this helpful?