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 2 of 6
No evidence in, only guesses out
builds on: Agents tend to agree with you, The agent knows only what its tools returned
The agent's context holds only what you sent and what its tools returned. `still broken` names no input, no output and no error, so the agent cannot reason about the bug. It can only guess. Because it tends to agree with you, it reads your message as proof its last change was wrong and stacks another plausible edit on top. If you add a guess ("maybe the cache?"), that guess becomes its premise. **Later cost:** speculative edits stay in the diff, and the real cause ships.
Terms on this card
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- diff
- The change under review, listing which lines were removed and added in each file.
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or a maintenance burden.
- the diff
- The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
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