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.
Tests as the definition of done
card 1 of 6
"Fixed!" But says who?
builds on: Describing a task: goal, context, constraints, check, Spotting tests bent to pass, Verifying before you accept a change
You type: "Fix the bug where discount codes don't apply at checkout." The agent edits `src/cart.py` and replies: "Fixed! Discount codes now work correctly." You try one code by hand, and it seems fine.
But did it fix *your* case and every other case, without breaking anything else? Neither of you had an exact check for "fixed". You only had a feeling.
Terms on this card
- 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.
- src
- Short for "source": a common folder name for a project's main code files.
Lesson goal: Turn 'done' into a command that passes, for example by having a failing test written first and then making it pass without editing it. Explain why this gives the agent a goal it can check itself and gives you evidence. ·
the whole lesson