A language model only predicts text. A coding agent turns that text into actions in your project. In this video, you watched one real session as a loop of tool calls and results.
Key Points
- In a chat, you’re the loop. You paste files into the request, copy the code the model returns into a file, run it, and paste back any errors. The model never sees your folder.
- An agent program does those steps. It runs on your machine, inside your project folder, between you and the model. With your task, it sends a list of the tools it offers, such as listing files, reading a file, writing a file and running a command.
- A tool call is a reply that asks for a tool. Instead of answering, the model’s reply can ask for a tool, with the details filled in. The agent program runs it for real and adds the result to the next request.
- The result decides the next step. The loop repeats until the model replies with an answer, or stops to ask you because the model has a question or the program wants your approval for a write or a command. The session in the video never stopped to ask. Yours may, depending on your settings.
- The program carries the session. A model keeps no memory between calls, so the agent program sends your task, each tool call and its result with each request. In a short session like this one, that’s all of them.
- Its reach comes from its tools, its folder and what you tell it. A file in another folder is almost certainly left alone when the agent’s file list doesn’t show it and your task doesn’t name it. Your browser and a terminal in another window aren’t in the request either.
- The agent works in its folder, but it can reach past it. In the video’s session, the second tool call also searched the folder above, and every folder in it, for a file of instructions, unasked. How far an agent may reach depends on your agent’s settings, which you’ll choose in a later lesson.
The Session, Step by Step
The session in the video was recorded in December 2026 and redrawn as plain steps. Agents and their tool sets change, but the loop’s shape doesn’t. Your agent’s session would differ in its details. It worked in the game group’s warm-up folder, which held sound-sheet.md (the letters, with the hard consonants k, t, d and g, and the two sound rules) and words.txt. This was the task:
Write a Node script, check-words.js, that checks every word in
this folder's word list against the sound rules, and run it to
show which words break a rule.
The model asked for four tool calls before it answered:
- List the files:
sound-sheet.mdandwords.txtcame back. - Read both files (and search the folder above for a file of instructions): the sound sheet and the five words came back.
- Write
check-words.js: the agent program created the file, on disk, in the folder. - Run the script: its output came back.
Here’s what the run printed:
nolem: Rule 1: Every word ends in a vowel.
sadku: Rule 2: No two hard consonants in a row.
Checked 5 words: 2 failed, 3 passed.
With that result in the next request, the model replied with an answer instead of a tool call: two of the five words break a rule. That ended the loop. sadku breaks the second rule because d and k are both hard consonants.
A coding agent is a model with tools, in a loop, inside your project folder. Next is Exercise: Run a Toy Agent Loop, the course’s first coding exercise. It runs in your browser, with a stand-in model. You’ll work out what a pretend session on the game group’s folder can and can’t reach.