# Claude Code Checkpoint

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Checkpoint, Rewind, /rewind

## Think of it like

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

## 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

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.

## Example code

```console
/rewind
```

Open the list of checkpoints and pick one to go back to.

## Why it matters

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

## Common mistake

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

## Three principles

- **One per prompt.** Made for you.
- **Rewind.** Code, talk or both.
- **Not git.** Still commit your work.

## Related terms

- [Claude Code Session](https://learn.benibix.com/term/ai/claude-code-session)
- [Git](https://learn.benibix.com/term/development/git)
- [Session Transcript](https://learn.benibix.com/term/ai/session-transcript)

## Told apart from

- [Claude Code Checkpoint vs Git Commit](https://learn.benibix.com/compare/claude-code-checkpoint-vs-commit): People think a Claude Code checkpoint is a git commit. It is not. A checkpoint is a save point Claude Code makes on your computer at each prompt, so you can rewind a bad edit. It is kept for about 30 days, and it misses changes made by shell commands. A commit lives in git, is shared with your team, and stays until someone removes it.

## Taught in

- [Checkpoints and Control Keys](https://learn.benibix.com/learn/ai-claude-code/checkpoints-and-control-keys): Claude Code, 3/16

![A row of restore points, one for each prompt. Rewind jumps back to an earlier one.](https://learn.benibix.com/diagrams/cc-checkpoint.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-checkpoint
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
