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.
Why long sessions degrade
card 1 of 5
Two hours in, the agent forgets your rules
builds on: The context window: the agent's working memory
You've spent two hours with the agent improving `report.py`, a script that builds a monthly sales CSV. In your first message you wrote: "Never rename the output columns. Another team's spreadsheet reads them." Now the agent renames `total_eur` to `total`. It also proposes a rounding fix you already tried and rejected an hour ago. It was sharp at the start. What changed?
Terms on this card
- CSV
- Comma-Separated Values: a plain text file of table rows, with columns separated by commas. Spreadsheets can open it.
- script
- A small program, usually one file, that automates a task, such as turning raw data into a report.
- output
- The text a command or program prints when it runs, including results and error messages.
- 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 why quality drops as context fills. Early instructions get diluted, stale failed attempts mislead, and automatic summarising (compaction) drops details. Recognise the symptoms in a real session. ·
the whole lesson