4Stop, steer and undo
Start
-
Lesson 4 · 20 min · 14 steps
Stop, steer and undo in Claude Code auto mode
What you get Knowing how to stop Claude, redirect it, and undo its work
Before you start
Steps in this lesson
- Optional: in Finder, right-click your folder and choose Duplicate.Optional: in File Explorer, right-click your folder and choose Copy.
- Click the mode name at the right end, under the prompt box.
- Click Auto. Keep it on for the rest of the course.
- Send this prompt. Want a limit? Add it in plain words.
- Click the
+5next tonotes.mdto see what changed. - While this long task runs, click the square stop button.
- While the task runs again, type this and press Enter.
- Press Cmd+Shift+M, pick Plan, and send this prompt.Press Ctrl+Shift+M, pick Plan, and send this prompt.
- On the plan card, click Revise... and type one change.
- When the plan looks right, click Accept and use auto mode.
- If a card asks for your OK, read it first.
- When Claude is done and the box is empty, press Esc twice.
- Click your
notes.mdmessage, then confirm the restore. - Check your folder and bring back anything Rewind didn't.
Step 1 of 14
Optional: in Finder, right-click your folder and choose Duplicate.
Folder in Google Drive? Drive already keeps older versions of each file.
Optional: in File Explorer, right-click your folder and choose Copy.
Then right-click an empty space next to the folder, not inside it, and choose Paste.
Step 2 of 14
Click the mode name at the right end, under the prompt box.
The mode sets how freely Claude acts: Auto, Manual, Accept edits, Plan, sometimes Bypass permissions. Use Auto.
- 1Mode selector
- 2Mode list
The Mode menu open under the prompt box, with Auto marked Recommended at the top. Step 3 of 14
Click Auto. Keep it on for the rest of the course.
Auto runs normal actions, blocks ones it judges risky as Blocked by auto mode, and asks about a few.
Step 4 of 14
Send this prompt. Want a limit? Add it in plain words.
Auto follows limits you write, like "don't delete any file". When done, you'll see
Created notes.md +5.Type this into the sessionCreate a file called notes.md in this folder with the three most important facts from the files here.
Step 5 of 14
Click the
+5next tonotes.mdto see what changed.Green lines were added, red lines removed.
- 1Created notes.md +5
The line Created notes.md +5 in the chat. Click +5 to see the change. Step 6 of 14
While this long task runs, click the square stop button.
Or press Esc. The button sits inside the prompt box, beside the microphone. The step shows Stopped.
Type this into the sessionWrite a 2,000-word report about every file in this folder and save it as report.md.
- 1Thinking status
- 2Stop button
A running task: the square stop button sits inside the prompt box, beside the microphone. Step 7 of 14
While the task runs again, type this and press Enter.
Send the same long task first. Don't stop it; Claude reads your line after its current action.
Type this into the sessionKeep it under 300 words.
Step 8 of 14
Press Cmd+Shift+M, pick Plan, and send this prompt.
Plan reads and explores, but changes nothing until you accept.
Press Ctrl+Shift+M, pick Plan, and send this prompt.
Plan reads and explores, but changes nothing until you accept.
Type this into the sessionPlan a file called index.md that lists every file in this folder, grouped by type.
Step 9 of 14
On the plan card, click Revise... and type one change.
Type something like "add a short intro line", then click Revise.
Step 10 of 14
When the plan looks right, click Accept and use auto mode.
Claude carries out the plan and the mode goes back to Auto. Plain Accept would leave Auto.
Step 11 of 14
If a card asks for your OK, read it first.
Matches your request? Always allow is a good choice, or Allow once for a one-off. Not what you asked? Deny.
- 1Permission request
- 2Deny
A card asking to run a command, with Deny and Allow once. Step 12 of 14
When Claude is done and the box is empty, press Esc twice.
Or type
/rewindand press Enter. A Rewind window lists your messages.Open Rewind/rewind
- 1Prompt box
- 2notes.md message
The Rewind window: Restore the session to an earlier message, listing your past messages. Step 13 of 14
Click your
notes.mdmessage, then confirm the restore.If asked, pick Code and conversation, then Restore.
notes.mdand later files should be gone.Step 14 of 14
Check your folder and bring back anything Rewind didn't.
Rewind doesn't undo moves or renames done by commands. Use your copy, or Drive's version history.
-
You did it
Knowing how to stop Claude, redirect it, and undo its work
Take this to any task
- Steer while it works, not afterIf Claude heads the wrong way, type a correction and press Enter; it reads your line after its current step, so you redirect without starting over.
- Get a plan first for bigger jobsFor a job with many steps, switch to Plan, change the plan in plain words until it looks right, then let Claude carry it out.
- Know what your undo brings backRewind undoes file edits, but not moves or renames done by commands; for those, a copy of the folder or Drive's version history has you covered.
- Write a limit when you want oneWant a boundary? Write it in the prompt in plain words, like 'keep every file'; Auto treats it as a block, and repeating it helps in long sessions.
Undo a change you didn't want
Rewind takes your files back to how they were before one of your messages.
- 1Claude
Claude changes a file
And it's not what you wanted.
- 2You
Press Esc twice
When Claude is done and the prompt box is empty. Or type
/rewindand press Enter. The Rewind window lists your messages. - 3You
Click the message
Pick the message that asked for the change.
- 4You
Click Restore
If asked, pick Code and conversation first. Your files go back to before that message.
IfA file didn't come back
Rewind doesn't undo moves, renames or deletions done by commands. Use a copy of your folder if you made one, or Drive's version history and Trash.
Check yourself
1. You type a correction while Claude is still working and press Enter. What happens?
2. In Auto, what happens to a risky action?
3. Which change can Rewind NOT undo?
All three right. Mark the lesson as done.Read more: Claude Code desktop app: permission modes, stop and steer, rewind