Skip to the workspace
Pebellslearn by building
Usage Best Practices  ›  Lesson

Rewind: Undoing Claude's Edits

Rewind 12 minCheckpoints let you rewind the conversation, the code Claude edited, or both, but shell-command changes and anything outside your machine need git or cannot be undone at all.

claude code / Rewind: Undoing Claude's Edits

Explore each scene at your own pace.

01 · The rule

The rule

Rewind: Undoing Claude's Edits

Claude took the pause feature in a direction you dislike, across five files. You could untangle it by hand, or you could step back to the moment before it started. Claude Code keeps checkpoints for exactly this, but they have limits you need to know.

The rule

Rewind undoes Claude's file edits; git undoes everything else.

As Claude edits files, Claude Code saves checkpoints: snapshots of the files at each of your prompts. Rewind takes you back to one. Press Esc twice on an empty prompt, or use /rewind, choose an earlier message, and pick what to restore:

  • Conversation and code: back to that moment entirely.
  • Code only: the files return to how they were, but the conversation keeps what was learned from the dead end.
  • Conversation only: the files stay as they are, and the chat goes back.

Checkpoints have firm limits:

  • Changes made by shell commands, such as deleting a file with rm or running a migration or script, are not tracked.
  • Edits you make outside Claude Code are not tracked.
  • Nothing that has left your machine comes back: a push, a deployment, a message sent to customers, a change to a remote database.

Checkpoints are a quick "try again" inside a session. Git is your permanent history. Use both, and commit every time the code reaches a good state.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.