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: understanding unfamiliar code
card 3 of 6
Checklist for exploring with the agent
builds on: How a code project is laid out, Giving the right context: files, errors, examples, Confidently wrong: plausible is not correct
1. Start with `Don't change any files`. You are only exploring.
2. Ask narrow questions: Where does X live? What runs, in order, when Y happens? What is `func()` for, and where is it called?
3. Ask for `file:line` for every claim.
4. Compare its claims with its ⚙ Read lines. A claim about a file it never opened is unchecked, and often a guess.
5. Open 2–3 of the references yourself.
6. Write your own short map: a few lines on where things live and how the flow runs, with the references you checked.
Terms on this card
- file:line
- A reference to a precise spot in the code, e.g. `src/routes/auth.py:42` means line 42 of that file.
- short map
- Your own brief notes on a repo: where things live and how a flow runs, with `file:line` references you have checked yourself.
- 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 as a guide to a new repo. Ask where things live, how a request flows through the code, and what a function is for. Ask for file and line references, check claims against the code, and write your own short map. ·
the whole lesson