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 3 of 6
The plan request and how to check it
builds on: Why agents fill gaps with plausible guesses
Ask: *Before editing, read the relevant code. Then propose the files you'll touch and why, your approach, the existing helpers you'll reuse, and your assumptions and open questions. Change no file until I approve.*
Then check:
- each assumption against what you know
- the file list: surprises, or files you know must change but are missing
- new files or packages: did it miss an existing helper?
- correct, then approve
Terms on this card
- helper
- A small function that does one common job, such as formatting or checking a value, so other code can call it instead of repeating it.
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