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.
Coding agent vs chat assistant
card 4 of 6
What that request looks like in an agent
Each `⚙` line is the agent **acting**, not talking. Many tools can pause to ask you first. Here it was set to ask only before edits, so it ran commands without stopping. The final message is its own summary. Notice that by then the file is **already changed**.
▸ You: The total in report.py is wrong.
Find out why and fix it.
⚙ Read: report.py
⚙ Run: python report.py
⚙ Read: data/sales.csv
⚙ Edit: report.py
[Approve? yes / no / always]
⚙ Run: python report.py
◂ Agent: Fixed. The loop skipped the
last row of sales.csv, so totals
were short. The total now
includes every row.
Terms on this card
- tools
- Abilities given to the model beyond writing text, such as opening a file, running a command or editing a file.
- summary
- The message the agent writes at the end saying what it did. It is the agent's own claim, not a check.
- 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: Explain that a coding agent is a language model with tools that reads your files, runs commands and edits code itself, while a chat assistant only returns text you copy by hand. Name what changes as a result: speed, reach and risk. ·
the whole lesson