Checkpoint
Also called Rewind · Snapshot · Restore point
A saved state of your files, and sometimes the conversation, that you can rewind to after a turn goes wrong.
A checkpoint is a saved snapshot of the working tree, and in some harnesses the conversation too, that you can return to. Before the agent starts a turn the harness records what the files looked like; if the turn goes badly, you rewind and the edits vanish. It is the undo button for agentic work, where a single turn can touch dozens of files and Ctrl+Z in the editor is no longer enough.
The need shows up the first time an agent 'fixes' something by rewriting half a module. Reviewing the diff, you realise the earlier state was better, but the earlier state is gone, spread across twenty edits. Git would have saved you, if you had committed. Most people hadn't, because they were in the middle of something. Harness checkpoints fill exactly that gap between commits. One subtlety: rewinding the files without rewinding the conversation leaves the agent believing its edits still exist, and its next tool call will act on a world that isn't there. Rewind both, or tell it what you did.
Make checkpoints boring. Commit before every substantial agent run so there is a known-good state to diff against, even if the message is just 'wip before refactor'. Use the harness's rewind for the small stuff between commits, and git stash or a worktree when you want to try two approaches side by side. A sandbox plus a clean commit is the checkpoint that never fails.
- Claude CodePress Esc twice (or use
/rewind) to pick an earlier point; you can restore the code, the conversation, or both. - CursorEach agent message carries a restore control that returns the files to that point.
- Most toolsWhere no built-in rewind exists, a commit before the run and
git restore .afterwards does the same job.
“That last turn made things worse. Can I get back to where we were five minutes ago?”
“Rewind to the checkpoint before it started, then re-prompt with the constraint it missed.”
“And rewind the conversation too, or it'll think the broken version is still on disk.”
Course 01 puts every one of these terms to work: you install Claude Code, run the loop, and ship a real project — permission modes, compaction, hooks and all.
Start Course 01 →