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.
Navigating and applying diffs
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
andDOWN
arrow keys (or mouse clicks) to move between hunks.For multi-file changes, use
LEFT
andRIGHT
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.
These modifications will not be applied to the files unless you explicitly accept them.
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 withESC
.
Last updated
Was this helpful?