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.
Workflow: adding a small feature
card 2 of 6
A feature doesn't exist yet to be read
builds on: Doing a bigger change plan-first, step by step, Tests as the definition of done
A new feature is behaviour that isn't in the code yet. The agent can't read it from anywhere, so it fills every gap in your request with a plausible guess. Examples with exact inputs and outputs remove those guesses. **Edge cases** (empty input, no match, odd capital letters) are where guesses differ most. Each example also turns straight into a test, so "done" becomes a command that passes.
Terms on this card
- feature
- A new piece of behaviour a program gains, such as a search command, which the user can see and use.
- Edge cases
- Unusual or boundary inputs, such as empty input, no matches or odd capital letters, where a program most often behaves unexpectedly.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- test
- A small piece of code that runs part of your program and checks the result matches what's expected, reporting pass or fail.
- 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: Add a feature end to end. Specify behaviour with examples and edge cases, get a plan, implement in committed steps with tests, try it yourself, and review the final diff as a whole. ·
the whole lesson