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.
When and how to start a fresh session
card 1 of 6
Two hours in, and it's getting worse
builds on: Why long sessions degrade, Cost and usage limits, Project instruction files: purpose and contents
You fixed a login bug in one long session, then asked the agent to add CSV export in the same conversation. Now it mentions the login code for no reason. It retries an approach you rejected an hour ago, and each reply uses more of your usage limit. The tool also warns that the context is nearly full. Do you push on, or start over? And if you start over, what do you lose?
Terms on this card
- session
- One continuous conversation with the agent. Everything said and done in it stays in its context until you clear it or start a new one.
- context
- All the text the agent currently holds: your messages, its replies, files it read and command output. It re-reads this on every turn.
- usage limit
- The cap on how much you can use the agent, either per time period on a subscription or as a bill when you pay per use.
- CSV
- Comma-Separated Values: a plain text table format where each line is a row and commas separate the columns.
- 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: Decide when to clear or restart: a new task, a polluted or stuck conversation, nearly full context, or rising cost. Carry over what matters in a short handoff note or the instruction file instead of the whole history. ·
the whole lesson