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.
Running and trying the result yourself
card 1 of 6
The agent says it tested. Are you done?
builds on: What automated tests are and how to run them, Reading the agent's summary skeptically
You asked the agent to make `summarize.py` also show each spending category's share of the total. It finishes:
◂ Agent: Added a percentage column. Ran it on `sample.csv`, output looks correct, and all tests pass.
You read the diff, the lines it added and removed, and it looks clean and sensible. Can you accept the work now?
Terms on this card
- diff
- A listing of exactly which lines were removed ('-') and added ('+') in a file. It shows the change, not what the program does when run.
- CSV
- Comma-separated values: a plain-text table file where each line is a row and commas separate the columns. Spreadsheets and banks often export it.
- output
- The text a command or program prints when it runs, including results and error messages.
- tests
- Small pieces of code that run your program's code and check it gives the expected results.
- 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: Run the program, the tests or the script yourself on a realistic input, including one edge case. Do not accept the agent's claim that it ran them, and explain what this catches that reading the diff does not. ·
the whole lesson