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.
Reading an error message and stack trace
card 3 of 6
Four things to pull out of any trace
builds on: Command output and exit codes
1. **Error type + message**: Python puts it on the last line. JavaScript and Java put it near the top, just above the frames, and list the newest call first.
2. **Where it broke**: the frame nearest the error line. `report.js:18:3` means line 18, column 3.
3. **Your own code**: skip library frames, which are code your project uses but didn't write (paths with `site-packages`, `node_modules`, `node:internal`). Start with the frame from your own project that is nearest the error line.
4. **Evidence**: the command you ran, the whole trace copied exactly, and what you expected.
Terms on this card
- frame
- One entry in a stack trace: a file, line number and function name, often followed by that line of code.
- error type
- The category name of a failure, like `KeyError` or `TypeError`, printed just before the error message.
- library
- Code written by others that your project uses, stored in folders such as `site-packages` or `node_modules`.
- site-packages
- Folder where Python keeps installed libraries. Frames from here are usually not your own code.
- node_modules
- Folder in a JavaScript project holding installed libraries. Frames from here are usually not your own code.
Lesson goal: Find the error type, the message, and the file and line where a failure happened in a stack trace. Identify which part to paste to an agent as evidence. ·
the whole lesson