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 5 of 5
Suspect the context, not the agent's mood
builds on: The context window: the agent's working memory
Long sessions degrade because the window fills. Early instructions get diluted, stale failed attempts mislead, and compaction trades details for a summary. When an agent that started sharp begins forgetting rules or repeating dead ends, suspect the full context first.
Terms on this card
- compaction
- The act of compacting: automatically summarising earlier conversation so the session can continue. The gist is kept and details are often lost.
- stale
- Out of date. Here: old code versions, failed attempts or old errors still in the context, though they no longer reflect the current state.
- dead ends
- Approaches you already tried that failed and should not be repeated.
- summary
- The message the agent writes at the end saying what it did. It is the agent's own claim, not a check.
- context
- All the text the agent currently has to work from: your messages, file contents it read, command output, and its own earlier replies.
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