How Claude Code works, in simple diagrams
Follow the numbers from 1. The notes that start with “If” say what to do when something comes up.
One task in Auto mode, start to finish
You start it and you finish it. Claude does the work in between.
- You
Type your task
Check the mode under the prompt box says Auto. Then say what to do, which files to use, and what file to make.
- Claude
Claude works on its own
It reads, writes and runs steps in your folder without asking each time.
IfA step shows Blocked by auto mode
Auto held it back. Read the reason, then tell Claude what you want instead.
IfA card asks for your OK (rare)
If it matches your task, Always allow is a good pick. Allow once (under the arrow) for a one-off, or Deny.
- Claude
Claude tells you it's done
The result is in your folder, with a short report in the chat.
- You
Check the result
Keep it, ask for a change, or send your next task.
Any time
IfYou change your mind
Click the square stop button or press Esc, or type a correction and press Enter. To take files back, see the undo diagram below.
Your 5-hour usage window
Your plan gives you a set amount of use every 5 hours, plus a weekly limit.
- You
Send your first message
A 5-hour window starts now.
- You
Work as usual
Each message uses some of your allowance. Click the small usage ring under the prompt box to see what's left.
- The app
A warning shows up
The app tells you when you're close to the limit.
IfYou reach the limit
The message shows when it resets. Wait, turn on pay-as-you-go usage credits in Settings > Usage, or upgrade to Max. Switching models doesn't help.
- The app
The window resets
5 hours after your first message, your 5-hour allowance comes back in full.
Any time
IfYour weekly limit runs out
It resets at the time under Weekly limits in Settings > Usage. Until then, usage credits or Max keep you going.
Undo a change you didn't want
Rewind takes your files back to how they were before one of your messages.
- Claude
Claude changes a file
And it's not what you wanted.
- You
Press Esc twice
When Claude is done and the prompt box is empty. Or type
/rewindand press Enter. The Rewind window lists your messages. - You
Click the message
Pick the message that asked for the change.
- You
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.
Connect a tool like Gmail
Connect it once for your account, then switch it on in the sessions that need it.
- You
Find your tool
Click Customize in the sidebar, then Connectors > Discover, and open your tool.
- You
Connect and sign in
Click Connect to Claude, sign in, and approve what Claude may see and do.
IfYou want to choose what Claude can do there
Open your tool, scroll to Tool permissions, and set each row to always allow, ask first, or Blocked.
- You
Switch it on
In a session, click + > Connectors and turn your tool on. Only see Add connectors? It's already in.
- Claude
Claude uses it
When your task names the tool, Claude reads or acts in it and brings back what it found.
IfA card asks first
If it matches your task, Always allow is a good pick. Allow once (under the arrow) to check each time, or Deny.
Any time
IfYou're done with the tool
Switch it off under + for this session only. To remove it everywhere, open Customize > Connectors > Yours, click the tool, then Disconnect.
Your own wiki, one round
After the setup in lesson 6: you add documents and ask questions, and Claude keeps the wiki in order.
- You
Add a document
Put it in
raw/, then send the add-document prompt with your file's exact name in it. - Claude
Claude writes wiki pages
It lists the key points first, then writes a summary and linked pages, and updates
index.mdandlog.md. - You
Ask a question
Send the question prompt with a question your documents can answer.
- Claude
Claude answers with links
It cites the pages it used and saves useful answers in
wiki/analysis.
New document? Start again at step 1.
Any time
IfYour wiki needs a tidy-up
Send the health-check prompt (it starts
Lint the wiki). Claude fixes small things like missing links and lists the rest.