LEVEL 8
Meet the agent
A helper that works in your project, if you say yes.
press Enter ↵
Coding agent (pretend: scripted, not a real AI)

The agent waits for your prompt.

📁 Documents\my-site

No files yet.

Lesson 60: Chatbot or agent?

Level 8, Meet Your AI Coding Agent. A chatbot talks. An agent acts, after you say yes. The new word: AI agent. It follows lesson 59, Level 7 test: Save Point Pro. Next comes lesson 61, What agents can and cannot do.

What the lesson explains

Meet the agent. A helper that works in your project, if you say yes.

Talk, or do?. A chatbot only talks. An agent reads and changes files. chatbot talks; agent acts; you say yes or no.

What you do first

Say yes. The pretend agent says: "Here is the footer you asked for. May I change index.html?" It asks to change index.html. 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 index.html in Documents\my-site. Lesson 61 opens with the files just as you leave them.

What you practise

Try it, "Say yes": The pretend agent says: "Here is the footer you asked for. May I change index.html?" It asks to change index.html. The right answer is Allow: it does what you asked, and nothing more.

In your head, "Who can change files?": Which one can change the files on your computer? The answer: "An agent, when you allow it".

Fix it, "Not what you asked": The pretend agent says: "To tidy up, I will also delete your images folder." It asks to run rm images -Recurse. The right answer is Deny (You never asked for that, and it deletes your pictures. Deny!).

What PlayBuddy and PlayType say

PlayType: "Welcome to Level 8! Meet an AI coding agent: a fast helper, new to your house."

PlayBuddy: "A chatbot only talks. An agent can change your files, so it asks first."

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 3 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.