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.
Ask for a plan before code
card 6 of 6
Correct the plan, not the diff
builds on: Why agents fill gaps with plausible guesses
Have the agent explore, then write down files, approach and assumptions before it edits anything. A wrong guess costs one sentence to fix in a plan and a rewrite to fix in a diff, so read the assumptions and the file list first.
Terms on this card
- the diff
- The change under review, in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are surrounding 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: Have the agent explore and propose a plan, listing the files it will touch, its approach and its assumptions, before it edits anything. Correct wrong assumptions at the plan stage, where they are cheap to fix. ·
the whole lesson