Undo Claude's edits with a checkpoint

slash commands

// what it does

/rewind rolls both code and conversation back to an earlier checkpoint, so you can unwind a change that went wrong without manually reverting files. Checkpoints are captured automatically as Claude works. The same menu opens from the keyboard with a double Esc on an empty prompt.

// shell

$ /rewind

// gotcha

Checkpointing tracks edits Claude makes through its tools; changes you make by hand outside the session, or effects already pushed/deployed, aren't captured and won't be undone by a rewind.

// resources