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 3 of 6
Run it yourself: four checks
builds on: What automated tests are and how to run them, Reading the agent's summary skeptically
1. From the project root, run the test suite yourself. Read the passed/failed count and the exit code.
2. Run the program on **realistic input**: a copy of your real file, not the agent's sample.
3. Run **one edge case**: an input at the limit of what's expected, such as an empty file, a single row, a zero, a missing value or an odd format.
4. Decide the expected result *before* you look, then compare.
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.
- realistic input
- Data like what the program will really meet, ideally a copy of your actual file, not a tidy example someone invented.
- test suite
- All of a project's automated tests, usually run together with one command.
- exit code
- A number a program returns when it finishes. 0 means success; anything else signals failure.
- project root
- The top-level folder of your project, the one containing `.git`. Commands like running tests are usually run from here.
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