In this lesson: what changes when an AI can act, not just reply. You'll see the loop an agent works in (plan, act, look, fix), why its "done" is a claim you check, and how to direct it: one step at a time, in clear words.
1. From chatting to doing
Give an AI this task: "Make a page with a button that shows a random compliment for a classmate. Before you start, tell me your plan in 3 steps. Then build it, open it and check it works."
Guess first: in a plain chat with no tools, what would you get back? And in a workspace, where the AI can do things, what would it do?
In a plain chat you would get the code in one reply; nothing runs unless you run it. In a workspace, here is the kind of run an agent does. We wrote it ourselves to show the pattern; it isn't a recording:
- Plan: 1. Make
index.html with a title, a big button and an empty line for the compliment. 2. Add 10 kind compliments and show a random one when the button is pressed. 3. Load the page (open it so it runs) and check it opens with no errors. - Creates
index.html · creates app.js (index.html is the page; app.js is the script, the part that makes the button do something) - Loads the page → it opens, but the log (where the page lists its problems) shows an error.
- Reads the error and works out why:
app.js looked for the button before the button was on the page. - Moves the script to the end of the page · loads the page again → it opens with no error.
- "Done. Press Give a compliment to see one."
It made files, loaded the page, saw an error, read why, and fixed it. That makes it an agent: an AI that can take actions and read what happened, not only write answers. Notice what it checked: that the page loads with no error, not what pressing the button does. That part is your job (section 3). You met the idea in AI Literacy (an agent is an LLM, a large language model like the one behind chat apps, given tools and a loop); this lesson looks at how to work with one.
A chat replies; an agent acts and looks
2. The loop
An agent works in a loop:
- Plan: break the job into small steps.
- Act: do one step, such as make a file or run the page.
- Look: read what came back. Did it work? Was there an error?
- Fix: change something and try again, or move on.
The loop on this lesson's own job, the compliment page: it plans, makes the page, looks and sees an error, fixes the script, looks again, then says "Done", which is a claim you check yourself.
It is still the same kind of model that picks one likely word at a time. The difference is that some of its words are actions, such as "create this file" or "load the page", and the results come back for it to read. That is how it found its own mistake above: it read the error and had another go.
Think of a lab partner in science class. They don't just tell you what should happen. They do the experiment, look at the result, and adjust. Where it differs: this one only sees what comes back to it as text, so it never saw what pressing the button does. Some agents can now take screenshots and click, but they still check only what they chose to try.
Plan, act, look, fix, and round again
3. Why "done" is a claim
The agent says "done" when it decides there is nothing more to do. That is a judgement about its own work, and it can be wrong:
- It checked that the page opens, not that the button does the right thing.
- It fixed one error and made a new one somewhere else.
- It did what you said, not what you meant.
Some claims sound even surer: "Finished: I tested it and the compliments work perfectly." That is not the same as "it works". It may have tested the wrong thing, or nothing at all. Ask it what exactly it tested, then open the page and try it yourself, including something odd, such as pressing the button twenty times fast: does it ever show a blank line, or the same compliment every time? If something breaks, describe what you saw and ask it to fix only that part.
So when an agent says "done", the job isn't finished until you have checked: "done" is its claim; your check decides. And seeing its own results doesn't mean it never makes mistakes: it can miss a problem it didn't look for. If it ever says it "never" makes mistakes, treat that as a warning.
“Done” is a claim; your check decides
4. You are the director
Small steps are easier to check than one big leap. Ask for the plan first, approve it, then let it do one step at a time and look after each step. If a step looks wrong, say so before it builds on top of it.
For example: "Build a homework tracker page. First show me your plan as 4 small steps and wait. After each step, stop, tell me what changed and what I should see in the preview (the live view of the page), and wait for me to say go. Do not start the next step until I reply." A good stop sounds like: "Step 1 done: the page has a title and an empty list. You should see Homework Tracker at the top. Say go for step 2 (adding tasks)."
Why stop after each step? If you let it do all four steps in one go and the page doesn't work at the end, the problem could be hiding in any of them, and the last time you checked was before anything was built. Stop after each step and a problem is in one place: the step you just saw. Agents now take on longer jobs on their own, some for hours; the longer the run, the more these stops save you.
One step at a time, check, then say go
5. Say it clearly
Whatever you leave out, the agent's plan fills in for you. A good ask names what to make, for whom, the format (a printed list, a web page), the size (how many items or places) and the style. "Make a sign-up page for our club" leaves which club, what to ask for, how many places and the look to its guesses. Words like "fun" or "modern" don't help much: two club members would picture two different pages. An example beats adjectives: paste one you like and say what to take from it. AI Literacy showed this with a poster; with an agent it matters even more, because its whole plan is built on your words.
Its "done" is a claim; your check decides. Build solid: try each step yourself before you say "go".
Practise it in Your Arcade Game, step Check it, then decide.
What you leave out, its plan guesses