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.
A confident summary that doesn't match the diff
card 2 of 6
A summary is generated, not recorded
builds on: Why agent output always sounds sure, The agent knows only what its tools returned
The summary is the last text the agent generates from its context. The likely ending to 'I was asked to add validation' lists validation, tests and a green run, whether or not those things happened. Plans it made, edits that failed and tests it meant to write all blur into 'done'.
**Later cost:** you merge unhandled cases believing they are covered, and the PR description misleads everyone who reads it later.
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.
- PR
- Pull request: a proposed change submitted for review before it is merged into the main code.
- PR description
- The text attached to a pull request explaining what the change does. Reviewers and future readers rely on it.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- green
- A test or check that passes.
Lesson goal: Check the agent's summary claims ('added tests', 'handled edge cases', 'all tests pass') against the actual diff and the tool output in the transcript. Treat any claim that has no matching diff hunk or command output as unverified. ·
the whole lesson