ع
Start Topics Teams Reference What's new Saved
Step 7 of 8 4 min

How to undo anything

The earlier you catch it, the cheaper the undo.

Sometimes a change is wrong. Sometimes you only work that out after you accepted it. Neither is a failure — the skill is knowing your way back before you click, not after.

The change isn’t saved until you accept it. So Reject is your first and cheapest undo, and Undo covers most of what gets past it.

The routes, smallest to biggest

Reject the diff. The cheapest undo is the one where nothing happened. The preview pane shows you something you don’t like, you click Reject, and the file is untouched. There’s nothing to undo. This is the entire reason Claude proposes before it writes.

Click Undo. Accepted, then immediately regretted it? The app keeps the originals of the files it touched, so Undo rolls the last change back. No typing, no version control, one click. This covers the common case: you accepted, you looked properly, you changed your mind.

Ask for it in the chat. You can also just say so:

Undo the last change you made to notes.md.

Claude reads the conversation, knows exactly what it changed, and proposes the inverse — which you read and accept like any other diff. Best when the change is fresh and small.

Restore from version control. If the folder is tracked in git, restoring a file brings it back to its last saved-and-committed state, wiping out everything since — Claude’s changes and yours. It’s the blunt option, and it works no matter how many turns ago the change happened. You can ask Claude to do this for you in the chat; you don’t need to know the commands.

Picking one

SituationRoute
The diff is still on screen and looks wrongReject — it never lands
Just accepted, one small change, want it goneUndo, or ask Claude to revert it
Big change, several files, several turns backRestore from the last commit

Nothing to memorise. Just notice the shape: the earlier you catch it, the cheaper the undo.

The habit that saves you

One thing turns “back out of this” from a panic into a shrug: save a checkpoint before big changes.

When Claude is about to do something with real reach — a rename across a dozen files, a restructure, anything you couldn’t eyeball in one diff — make sure the current state is committed first. Then if it goes wrong, one restore puts everything back and your earlier work is untouched.

You’ll meet this advice again anywhere version control comes up. It earns the repetition.

Common questions

What's the fastest way to undo something Claude did?
Reject the diff before accepting it — then nothing ever happened. If you already accepted, use Undo, which rolls back the last change because the app keeps the originals of files it touched.
Can I just ask Claude to undo its own change?
Yes, and it works well when the change is recent and small. Claude reads the conversation, knows what it did, and proposes the inverse — which you then read and accept like any other diff.
What if the change was big and several turns ago?
That's what version control is for. If the folder is tracked in git and you committed before starting, restoring discards every change since that commit in one move. Committing before a big change is the habit that makes this possible.

Go deeper on