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 checkpointsAember History
Claude Code’s own editsYesYes, as Claude Code’s (with the hooks)
Changes made by BashOnly in files Claude also editedYes, as changes made outside Aember
Subagents’ editsUsually notYes
Your own edits, saved or notNoYes, as yours
Other sessions and other agentsNormally notYes, each under its agent’s name
Undo one change, keep later onesNoYes, Undo This Change…
How long it keeps them100 checkpoints, about 30 daysAs 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

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.

Last updated November 25, 2026