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 4 of 6
Vague vs precise, side by side
builds on: What the agent can and cannot see, Reading an error message and stack trace
After the vague request, the agent acts on its guess:
⚙ Read: README.md
⚙ Read: src/report.py
It changes how totals are rounded. The crash stays.
You send the precise request on the next card instead. The pasted error already names line 42 of `src/loader.py` and the value '1,250.00', so the agent goes straight there:
⚙ Read: src/loader.py
The comma in '1,250.00' is what makes `float()` fail.
To check, you re-run the same command yourself. It should finish without the error, and that row's amount should be 1250.0, matching your example. You don't take the agent's word for it.
Terms on this card
- float()
- Python's built-in function that turns text or a number into a decimal number. It fails on text like '1,250.00'.
- README.md
- A file in many projects that describes the project in plain text. It rarely contains the code that is failing.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- 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.
- README
- A text file, usually `README.md`, in the project root that explains what the project is and how to install and run it.
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