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 4 of 5

Two symptoms in one late reply

builds on: The context window: the agent's working memory
Same session, late on. Rounding each row with `round(x, 2)` is the approach that already failed an hour ago. That's a stale attempt resurfacing. The rename breaks your very first rule, which is dilution or a lossy summary. The agent isn't defying you on purpose: those details are buried or gone. More rounds of arguing add more noise. Starting a clean conversation with a short note of the rules and the dead ends often works better.
▸ You: totals still off by a few cents
⚙ Read: report.py
⚙ Edit: report.py
◂ Agent: Fixed. I went back to round(x, 2)
  on each row, and renamed `total_eur`
  to `total` for clarity.
Terms on this card
session
One continuous conversation with the agent. Everything said, read and run in it accumulates in the same context window.
dilution
An early instruction losing influence because it becomes a tiny part of a huge context full of later code, logs and replies.
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.
lossy
Losing some information. A lossy summary is shorter than the original but drops details that cannot be recovered from it.
dead ends
Approaches you already tried that failed and should not be repeated.
Learn this step by step on Bytewise
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