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.
Giving the right context: files, errors, examples
card 3 of 6
Three kinds of evidence to give
builds on: What the agent can and cannot see, Reading an error message and stack trace
1. **Point at files.** Name the path from the project root and the function: `src/loader.py`, `parse()`.
2. **Paste the exact error.** Include the command you ran, then copy the error type, message and file/line frames. Don't retype or summarise them.
3. **Show an example.** Give a real input and the output you expect.
Keep what you *saw* separate from what you *suspect*, and label your guesses as guesses.
Terms on this card
- path
- The location of a file written as folders plus file name, e.g. `src/loader.py`.
- project root
- The top-level folder of your project. File paths are written relative to it.
- function
- A named, reusable block of code, like `parse()`, that does one job when called.
- error type
- The category of failure at the start of the last error line, e.g. `ValueError` or `KeyError`.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
Lesson goal: Point the agent at specific files, paste the exact error output, and give an example of the desired result instead of describing it vaguely. Explain why precise evidence beats a long description. ·
the whole lesson