✕ Close
← Vague or clear?

Level 8 · Lesson 65: Give it context

Small steps →
INTRODUCTION
Give it context
The agent is new to your house. Show it around.
press Enter ↵
Coding agent (pretend: scripted, not a real AI)

The agent waits for your prompt.

📁 Documents\my-site

No files yet.

Lesson 65: Give it context

Level 8, Meet Your AI Coding Agent. Files, what you tried, and the exact error. The new word: context. It follows lesson 64, Vague or clear?. Next comes lesson 66, Small steps.

What the lesson explains

Give it context. The agent is new to your house. Show it around.

What helps most. Which files, what you tried, and the exact error. which files; what you tried; the error exactly.

What you do first

Which one helps?. Which message helps the agent most? The answer: "index.html shows a broken picture. The img says src="cat2.png", but the file is images/cat.png.".

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.

You change nothing here, so lesson 66 finds the same files.

What you practise

Try it, "Which one helps?": Which message helps the agent most? The answer: "index.html shows a broken picture. The img says src="cat2.png", but the file is images/cat.png.". Then: Red text says: NameError: name scroe is not defined. What do you send? The answer: "The red text, word for word".

Challenge, "A bug report": Write a prompt about the broken cat picture. One clear prompt: "In my-site, index.html, the cat picture does not show. The img says cat2.png but the file is images/cat.png. Fix the path. Done when I can see the cat."

What PlayBuddy and PlayType say

PlayBuddy: "The agent is new to your house. Show it around first."

PlayType: "Got red text? Paste the error. It is the best clue."

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.