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 2 of 6
One green check covers one slice of done
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 agent stops when the signals it can see say done: a command came back green and the summary is written. Each proxy signal covers only one slice. Green tests say nothing about a `TODO` they never exercise. A clean build of one package says nothing about callers in another. Done means several independent conditions at once. Whichever one you skip ships, and becomes your later cost.
Terms on this card
- proxy signal
- A visible stand-in for the real goal, such as tests green or the code compiling, that the agent can satisfy without reaching the goal.
- later cost
- The concrete damage a shortcut causes after merge, such as a hidden bug, corrupted data or extra maintenance.
- TODO
- A comment marking work still to be done. In shipped code it usually means the feature is missing.
- green
- A test or check that passes.
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