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.
Review an agent diff fast and well
card 2 of 6
Why a fixed order beats reading top to bottom
builds on: Triage a diff: where to look first, A confident summary that doesn't match the diff, Verify by running, not by reading claims
The agent optimises the proxy signal it can see (tests green), and its summary sounds equally sure either way. So risk is not spread evenly. It sits in a few places: tests it touched, hunks nobody asked for, claims with no output behind them. A fixed pass hits those first and ends in a decision you can defend. If you skim, the later cost is a merged change you own but never checked.
Terms on this card
- proxy signal
- A visible stand-in for the real goal, such as tests green or 'it compiles', that the agent can satisfy without achieving the goal.
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, silent data corruption or extra maintenance.
- green
- A test or check that passes.
- tests green
- All tests pass.
- pass
- Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
Lesson goal: Review an agent diff in minutes. Triage by risk, read the test changes first, separate unrelated changes, reconcile the summary with the diff and run the decisive check yourself. End with a clear accept, change or reject decision and the reasons for it. ·
the whole lesson