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 changesUnsaved workUndo one changeKept for
Claude Code checkpointsClaude Code’s own file tools, in one sessionNoNo: rewind to a prompt100 checkpoints, about 30 days
Cursor checkpointsCursor’s AgentNoNo: restore all filesNot stated
VS Code Keep and UndoCopilot’s edit toolsNoYes, until you click KeepNot stated
VS Code / Cursor Local HistoryAnyone, as saved filesNoNo: whole filesConfigurable
gitAnyoneNoYes, by commit (revert)Forever
jjAnyone, unattributedNoYes, by jj operationUntil garbage-collected
Aember HistoryAnyone, each by nameYesYes, 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 .env and 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.

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.

Last updated November 25, 2026