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 4 of 6
End with a decision and its reasons
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
- **Accept**: the diff matches the task, the tests could fail, there are no unrelated hunks, every claim is backed, and the decisive check is green.
- **Request changes**: the core fix is sound but something fixable remains: a loosened test, stray hunks, an unverified claim.
- **Reject**: the approach is wrong, or you can't trust the core. Restart with a smaller task.
Tie each reason to a hunk or a command output.
Terms on this card
- diff
- The change under review in unified diff format: '-' lines are removed, '+' lines are added, unprefixed lines are unchanged context.
- hunk
- One contiguous block of changed lines in a diff, with its surrounding context.
- decisive check
- The single run whose result would differ if the fix were wrong. Usually it is the original failing scenario, rerun on the changed code.
- the diff
- The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
- green
- A test or check that passes.
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