The agent waits for your prompt.
No files yet.
Lesson 72: Plan mode
Level 9, Be the Boss: Review, Approve, Plan. Read the plan and fix it before anything changes. The new word: plan mode. It follows lesson 71, Danger spotting. Next comes lesson 73, House rules for your agent.
What the lesson explains
Plan mode. Read the plan before anything changes.
Plan first. The agent writes its steps. No file changes yet. plan first; read every step; then build.
What you do first
A better plan. The pretend agent says: "Sorry! Here is a better plan. Nothing changes until you say yes." It asks to follow its plan (Make games.html with a title and a list; Add a link to it from index.html; Change nothing else). The right answer is Allow: it does what you asked, and nothing more.
The files on the practice computer
This lesson works in one folder. At the start, Documents\my-site holds images\, .gitignore, done.txt, footer.txt, ideas.txt, index.html, keys.env, secrets.txt, style.css, todo.txt.
Along the way you save games.html in Documents\my-site. Lesson 73 opens with the files just as you leave them.
What you practise
Try it, "A better plan": The pretend agent says: "Sorry! Here is a better plan. Nothing changes until you say yes." It asks to follow its plan (Make games.html with a title and a list; Add a link to it from index.html; Change nothing else). The right answer is Allow: it does what you asked, and nothing more.
Step 1, "A new page": The pretend agent says: "Step 1: a new file, games.html. May I make it?" It asks to change games.html. The right answer is Allow: it does what you asked, and nothing more.
Fix it, "Off the plan": The pretend agent says: "Step 2: I added the link, and moved your footer to the top." It asks to change index.html. The right answer is Deny (The plan said: add a link, change nothing else. The footer moved!).
Challenge, "Ask for a plan": Write a prompt that asks for a plan first. One clear prompt: "In my-site, make a plan first for one link to games.html in index.html. Do not change any file before I say yes."
What PlayBuddy and PlayType say
PlayBuddy: "Plan mode is like reading the instructions before you open the box of bricks."
PlayType: "Read every step. If one is wrong, fix the plan before anything changes."
Help in every lesson
Everything happens on a pretend computer in your browser, so nothing touches your real files. PlayBuddy and PlayType stand beside the board, cheer you on and say when it is your turn.
A green ring shows where to click the first time. After that you do it on your own, and if you slip twice the ring comes back.
Stars
The lesson has 4 things to do. Up to one slip in ten gives three stars, up to one in four gives two, and finishing always gives at least one. Stars and progress are saved in this browser only; there is no account.
About DayOneCode
DayOneCode is an independent learning site, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.