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 1 of 6
The summary reads like a finished PR
builds on: Why agent output always sounds sure, The agent knows only what its tools returned
You asked the agent to make `parse_qty` reject bad input. It ends with: *'Added validation for empty, negative and non-numeric quantities, added unit tests for each case, all tests pass.'*
It sounds complete and specific, like a good PR description. Do you approve on the strength of that message, or does the diff tell a different story?
Terms on this card
- the diff
- The change under review in unified diff format: '-' lines are removed, '+' lines are added, unprefixed lines are unchanged context.
- 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.
- unit tests
- Small automated tests that check one function or module in isolation.
- tell
- An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
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