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 4 of 6
Your own run, three commands
builds on: What automated tests are and how to run them, Reading the agent's summary skeptically
Tests pass for you too. The real data and the edge case tell a different story.
$ pytest -q
.... [100%]
4 passed in 0.08s
$ python summarize.py march.csv
groceries 412.37 87%
rent 0.00 0%
transport 63.10 13%
$ python summarize.py empty.csv
Traceback (most recent call last):
...
ZeroDivisionError: division by zero
$ echo $?
1
Terms on this card
- edge case
- An input at the limit of what's expected: empty, a single item, zero, a missing value, a very large value or an unusual format.
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