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.
An honest report: what was verified and what wasn't
card 1 of 6
'All tests pass, ready to merge'
builds on: A confident summary that doesn't match the diff, What 'done' means for a change
You asked the agent to fix cents rounding in invoice totals in a Python service. It stops with: *"Fixed rounding in `invoice_total`. All tests pass, edge cases handled, ready to merge."*
Before you open the diff, ask yourself: from this message alone, which check can you point to? Which command ran, with what result? What did it never try?
The honest answer is: you can't tell.
Terms on this card
- edge cases
- Unusual but valid inputs or situations at the limits of normal use, such as empty, zero, negative or very large values.
- tell
- An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
- 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: Expect, and ask for, a report that lists the commands run with their results, what is still untested, the assumptions made, open questions and known limitations. Recognise a report that overclaims compared with one you can rely on. ·
the whole lesson