Rewind and checkpoints

Claude Code keeps checkpoints of its edits, so you can go back to before a change.

Also called: /rewind, Esc Esc, undo

Type
Term
Source
Claude

In plain English

Press Esc twice or use /rewind to jump back to an earlier point in the conversation, with or without restoring the code. Changes made by shell commands (or outside Claude) are not covered, so Git stays your real safety net.

Example

The last edit went wrong, so I used /rewind to go back to the version before it.

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30