Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
The agent loop: act, observe, repeat
card 1 of 6
Why does it read and run before answering?
You open a coding agent in a small project and type: `Cart total is 24.3, should be 27`. A chat assistant would reply with a paragraph of advice. The agent replies differently. It searches your files, opens one, runs your script, opens another file, changes a line, then runs the script again, and only then writes a short message. What is it doing, and what decides each of those moves?
Terms on this card
- coding agent
- A program that lets an AI model read, search, run and edit things in your project by itself, step by step, instead of only replying with text.
- chat assistant
- A tool like ChatGPT or Claude in a browser. It replies with text but cannot open your project's files or run commands on your computer by itself.
- script
- A small program file, often Python, that you run to do one job.
- agent
- An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
Lesson goal: Describe the cycle the model runs: decide a next step, call a tool (read, search, run, edit), read the result, and repeat until it judges the task done. Predict that each step is driven by what it has observed so far. ·
the whole lesson