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.
Learning yourself instead of outsourcing it
card 5 of 6
What that conversation looks like
builds on: Workflow: understanding unfamiliar code, Verifying before you accept a change, When not to use an agent
Your guess comes first. You hold the agent back from editing and ask for a hint instead of the fix. You end by having it test *you*.
▸ You: Don't edit anything yet. The cart
total is sometimes off by 0.01. My guess:
float rounding in cart.py. Am I right?
Show file and line, then give me a hint,
not the fix. I want to write it myself.
⚙ Read: cart.py
◂ Agent: Your guess is right. cart.py
line 42 sums prices as floats, and some
decimals can't be stored exactly. Hint:
keep amounts as whole cents (int).
▸ You: I've fixed cart.py myself. Review
my change, then ask me two questions to
check I understand.
Terms on this card
- 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: Use the agent so your own understanding grows. Predict before reading its answer, ask it to explain its choices, write key parts yourself sometimes, and only accept code you could explain to a colleague. ·
the whole lesson