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 5 of 6

What your run caught that reading didn't

builds on: What automated tests are and how to run them, Reading the agent's summary skeptically
Your bank export writes amounts like `1,250.00`. The script silently counts them as 0, so rent shows `0.00`. The tests never used a comma. Neither did the agent's sample, and nothing in the diff looked wrong. The empty file crashes. The `Traceback` lines are Python's crash report, and the last line names the error: it divided by a total of 0. The exit code is 1. Now you paste both commands and outputs back to the agent: ▸ You: rent should be 1250.00, and an empty file should print nothing and exit with code 0.
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.
exit code
A number a program returns when it finishes. 0 means success; anything else signals failure.
Traceback
The crash report Python prints when a program stops with an error. Its last line names the error, e.g. `ZeroDivisionError: division by zero`.
script
A small program, usually one file, that you run from the terminal to do a specific job.
Python
A popular programming language. `python <file>` runs a Python file.
Learn this step by step on Bytewise
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