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.
Feedback with evidence, asked neutrally
card 5 of 6
Leading vs neutral question
builds on: Agents tend to agree with you, The agent knows only what its tools returned
**BAD:** "I think the price cache is stale, can you fix the cache?" The agent agrees, adds cache invalidation and reports success. Yet the test passes the unit price in directly, and qty 200 at the same price is correct, so a stale price cache is an unlikely cause.
**BETTER:** "qty 120 → 30000, expected 27000. qty 200 is correct. I wondered about the cache but haven't checked. List the possible causes and what you'd run to tell them apart."
Then check that its diagnosis is backed by tool output. For example, it quotes a `qty > 150` threshold from a file it actually read, which explains both 120 failing and 200 working.
Terms on this card
- diagnosis
- An explanation of what causes a failure, backed by evidence such as output or code lines, given before any code is changed.
- cache invalidation
- Throwing away stored (cached) values so the next read fetches fresh data.
- tell
- An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
- tool output
- What a command or action the agent ran actually returned, such as test results, as recorded in the transcript.
Lesson goal: Give feedback as exact errors, outputs and reproduction steps instead of 'still broken'. Ask for a diagnosis before a fix, and phrase questions so they do not lead the agent toward your guess. ·
the whole lesson