Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Verify by running, not by reading claims
card 2 of 6
A claim is not a check
builds on: The agent knows only what its tools returned, You own every line the agent writes
The agent is a model in a loop. It stops once something it can see says the task is done, here one green test run. It knows only what its tools returned. The only file it ran was `tests/test_utils.py`, and nothing shows that it touches the export. Nobody ran the export on a name with a comma. "All tests pass" sums up what the agent saw, not whether the bug is gone. Reading the diff can't settle it either, because plausible-looking code is easy to write. **Later cost:** the bug ships, and a customer finds it instead of you.
Terms on this card
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or extra maintenance.
- model
- The AI language model at the core of a chat assistant or agent: it takes text in and produces text out.
- the diff
- The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- diff
- The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
Lesson goal: Reproduce the original bug, then run the build, the relevant tests and the real scenario yourself, or require the agent to show the exact commands and their output. Decide which checks a given change needs before you accept it. ·
the whole lesson