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 2 of 5
Your rule is now a sliver in a crowd
builds on: The context window: the agent's working memory
Nothing broke. The context window filled up. The model doesn't keep your rules on a separate, protected list. Every token in the window competes for its attention. A one-line rule from the start is now a tiny sliver among thousands of lines of code, logs and replies. That's **dilution**. Your failed attempts never left either. The old code and its errors are still in the window and look just as 'real' as the current version.
Terms on this card
- context window
- The fixed amount of text, measured in tokens, that the model can take into account at once: instructions, messages, files read and command output together.
- token
- The small chunk of text (a word or piece of a word) that models count text in. Window size and usage are measured in tokens.
- dilution
- An early instruction losing influence because it becomes a tiny part of a huge context full of later code, logs and replies.
- logs
- Text a program prints about what it is doing, often long. Pasted or produced logs take up a lot of the context window.
- model
- The AI that reads text and writes text. In an agent, it decides what to do next.
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