Skip to content
BENIBIX Learn

Claude Code Checkpoint

AI⌨️ Claude CodeClaude Code Concepts

Also known as Checkpoint, Rewind, /rewind

A save point Claude Code makes at each prompt, so you can go back.

Think of it like

It is like the save points in a game. If you fall, you go back to the last one.

Example

Emma lets Claude try a big refactor. The tests break badly, so she runs /rewind and goes back to the code from before the refactor.

Why it matters

It makes it safe to let Claude try bold changes, because you can always step back.

Definition

A checkpoint is a restore point Claude Code makes each time you send a prompt. Before Claude edits a file, it keeps a copy of the file. Press Esc twice, or run /rewind, to go back to an earlier point. You can restore the code, the conversation, or both. Checkpoints are saved with the session, so a resumed session can still rewind. They do not undo changes a shell command made to files Claude never edited with its own tools.

Example code

console
/rewind
Open the list of checkpoints and pick one to go back to.
A save point at each prompt, and a jump back to an earlier one.

Common mistake

Treating checkpoints as a backup. They do not catch every change, so keep using git for anything you need to keep.

Key takeaways

  1. 1
    One per prompt. Made for you.
  2. 2
    Rewind. Code, talk or both.
  3. 3
    Not git. Still commit your work.

Compare

Learn it properly