Undoing a Coding Agent's Changes: Checkpoints, Local History, jj and Aember Compared
Every agent tool now has some way to go back. They differ in what they record, whose changes they cover, and whether you can take out one change or only go back to a point. This page compares them from each tool’s own documentation, as of November 2026.
At a Glance
“Undo one change” means taking out one change and keeping the changes made after it.
| Whose changes | Unsaved work | Undo one change | Kept for | |
|---|---|---|---|---|
| Claude Code checkpoints | Claude Code’s own file tools, in one session | No | No: rewind to a prompt | 100 checkpoints, about 30 days |
| Cursor checkpoints | Cursor’s Agent | No | No: restore all files | Not stated |
| VS Code Keep and Undo | Copilot’s edit tools | No | Yes, until you click Keep | Not stated |
| VS Code / Cursor Local History | Anyone, as saved files | No | No: whole files | Configurable |
| git | Anyone | No | Yes, by commit (revert) | Forever |
| jj | Anyone, unattributed | No | Yes, by jj operation | Until garbage-collected |
| Aember History | Anyone, each by name | Yes | Yes, Undo This Change… | As space allows, thinned |
Notes from the docs:
- Claude Code doesn’t track files only Bash changed, most subagents’ edits, your own edits or other sessions’ edits. See What Claude Code’s Rewind Doesn’t Restore.
- In VS Code, Claude and Codex sessions get diffs rather than Keep and Undo, and changes made by terminal commands aren’t tracked.
- Aember names each change’s author: you, each agent by the name it connected with, the language server, git, or a program outside Aember.
When Each Is the Right Tool
- Claude Code’s rewind when the last prompt went wrong and you want the conversation back too. Aember doesn’t touch conversations.
- Cursor’s checkpoints for the same within Cursor’s Agent, when they work.
- VS Code’s Keep and Undo for reviewing Copilot’s pending edits one by one before you accept them.
- git for anything worth keeping. Commit often; nothing here replaces it.
- jj if you want version control that snapshots automatically and can undo any operation, and are happy to change how you use git.
- Aember when the change you want gone isn’t the last one, when the agent’s checkpoints didn’t capture it, when you need to know who changed what, or when several agents and you are all working in the same files. It works alongside the others: Claude Code with its checkpoints, git, and worktree tools such as Conductor.
What Aember Doesn’t Do
- It doesn’t restore an agent’s conversation.
- It records only from when the project is open in Aember, and only files: not settings or databases. Files matching Files Not Recorded, such as
.envand keys, are left out on purpose. - It thins older moments to save space: everything from the last hour, then one moment every 10 minutes for a day, one an hour for a month and one a day after that. Saves and named moments are always kept.
- Changes made by shell commands are recorded as made outside Aember, not as the agent’s.
- It is Mac only, and needs macOS 15 and Apple silicon.
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.
Showcase 4
Recover from git reset --hardUncommitted work wiped by git reset --hard comes back from History.
More: Undo One Change Claude Code Made, What Claude Code’s Rewind Doesn’t Restore, When a Cursor Checkpoint Doesn’t Bring Your Code Back.