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 6 of 6
Remember
An agent works in a loop: decide, use a tool, look at the result, repeat, until it *judges* it's done. Every move is driven by what it has actually observed so far. So to predict its next move, or to doubt its claim, look at what it last saw.
Terms on this card
- tool
- An action the agent program lets the model use, such as reading a file, searching, running a command or editing a file.
- loop
- Code that repeats a step for each item in a list, e.g. adding up every row of a table.
- 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