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.
Decide whether agent work is finished and trustworthy
card 4 of 6
Read the report against the gates first
builds on: A clean, focused change, An honest report: what was verified and what wasn't, Let the toolchain check first, Placeholders passed off as implementations, Half-finished changes: the call sites it missed
The report shows `$ go test ./billing/...` → `ok`. That command compiles and tests only `billing` and the packages it imports. Callers of `Total` in `checkout` or `api` were never compiled, so “updated all callers” is unverified. A signature change with many callers should also touch many files. Yet the diff (next card) touches one file.
Terms on this card
- go test ./billing/...
- Runs the tests of the billing package and its subpackages only. Packages outside billing are neither built nor tested.
- go test
- The Go command that builds packages and runs their tests; './...' means the package and all below it.
- the diff
- The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
- diff
- The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
- signature
- A function's name, parameters and return type: what every caller must match.
Lesson goal: Judge a change against the definition of done: real implementation with no placeholders, every call site updated, the toolchain green without suppressions, a clean focused diff and an honest report. Name exactly what is missing before it can merge. ·
the whole lesson