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 6 of 6
Done is all five gates, named
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
A change is done only when all five gates pass: the code is real, every caller is updated, the toolchain is green with no suppressions, the diff is clean, and the report is honest. Each green check proves only its own gate. Your verdict names every failing gate with its evidence.
Terms on this card
- pass
- A Python statement that does nothing. A function body of only `pass` is a placeholder with no logic.
- suppressions
- Annotations or config changes that silence a checker's warning or error instead of fixing its cause.
- toolchain
- The compiler and build tools, at specific versions, used to build and test the code.
- 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 '+'.
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