What Claude Code's Rewind Doesn't Restore
Claude Code’s checkpointing is a good safety net for the common case: the last prompt went wrong, so you go back to before it. Its documentation is clear that it is meant for “quick, session-level recovery”, and that it does not replace version control. This page lists what it leaves out, from that documentation, so you know when to reach for something else.
How Rewind Works
Claude Code takes a checkpoint before each prompt that starts a turn. /rewind, /undo, or Esc pressed twice lists your prompts, and you can restore the code, the conversation, or both, to how they were before one of them. It keeps snapshots for the 100 most recent checkpoints in a session, and by default deletes them about 30 days after the session last saved one.
What It Doesn’t Restore
- Files changed only by Bash. A file that only Bash commands changed isn’t tracked, and stays as it is when you rewind. Once Claude has edited a file with its own tools, later Bash changes to that file are undone with it.
- Most subagents’ edits. Claude Code usually doesn’t capture edits made by subagents in your session’s checkpoints, background ones included. Rewinding restores only files Claude itself had already edited in the conversation.
- Your own edits, and other sessions’. Changes you make outside Claude Code, and edits from other sessions running at the same time, are normally not captured, unless they touch the same files.
- Symlinked and hard-linked files. They are skipped on restore, with a warning.
- One change in the middle. Rewind restores to a point. To lose a change from three prompts ago, you go back three prompts, and the later work goes too.
Covering the Gaps
Commit often. That covers committed work, and Claude Code’s docs recommend it.
For everything between commits, Aember records every change to the project’s files, saved or not, whoever makes it. Where Claude Code’s checkpoints stop, it fills in:
| Claude Code checkpoints | Aember History | |
|---|---|---|
| Claude Code’s own edits | Yes | Yes, as Claude Code’s (with the hooks) |
| Changes made by Bash | Only in files Claude also edited | Yes, as changes made outside Aember |
| Subagents’ edits | Usually not | Yes |
| Your own edits, saved or not | No | Yes, as yours |
| Other sessions and other agents | Normally not | Yes, each under its agent’s name |
| Undo one change, keep later ones | No | Yes, Undo This Change… |
| How long it keeps them | 100 checkpoints, about 30 days | As long as space allows, by default. Older moments are thinned: everything from the last hour, then one every 10 minutes for a day, one an hour for a month, one a day after that. Saves and named moments are always kept |
Showcase 1
Let an Agent Loose, Then Take Back Only What You Don't WantClaude Code makes three changes while you work; one is wrong, so you undo just that one and keep the rest.
Showcase 3
It Worked an Hour AgoA test passed an hour ago and fails now. Find the one edit that broke it and take back just that.
See Undo One Change Claude Code Made for the steps, and AI and Agents for connecting Claude Code to Aember.
Rewind also restores the conversation, which Aember doesn’t: Aember works on files. The two work side by side. Use rewind to take the conversation back, and Aember when the change you want gone isn’t the last one, or wasn’t in a checkpoint.