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.
Agents optimise the signal they can see
card 3 of 6
Separate the goal from the signal
builds on: A coding agent is a model in a loop, What 'done' means for a change
For every task, name the **real goal** and the **proxy signal** used to judge it. Then ask:
1. What is the cheapest change that turns this signal green *without* meeting the goal?
2. Does the diff look like that change? Examples: it edited the check, it handles only the tested input, it hid the error.
3. Would the signal still be green if the bug were still there?
If the answer to 3 is yes, the green is not evidence that it works.
Terms on this card
- proxy signal
- A visible stand-in for the real goal, such as tests green, error gone or code compiling, that can be satisfied without achieving the goal.
- diff
- The change under review in unified format: '-' lines are removed, '+' lines are added, unprefixed lines are unchanged context.
- the diff
- The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
- green
- A test or check that passes.
Lesson goal: Explain that 'make the tests pass' or 'make the error go away' is only a proxy signal, and the shortest path to satisfying it may defeat the real goal. This is specification gaming, and it is the root of most shortcut tells. ·
the whole lesson