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.
Spot shortcut tells and name their later cost
card 6 of 6
Name the signal, then the damage
builds on: Making a failing test pass by weakening it, Hardcoding the answer the test expects, Silent fallbacks that hide bugs, Rust tells: unwrap, clone and RefCell to appease the compiler, Sleeps, retries and longer timeouts as 'fixes', Duplicating code instead of reusing it, Overbuilt code: speculative abstraction and defensive clutter, Placeholders passed off as implementations
For each odd line, ask which proxy signal it bought and what breaks after merge. Put both in the review: '`_ = s.flush()` swallows flush errors, so records are lost with no log. Restore the return and fix the race.'
Terms on this card
- proxy signal
- A visible stand-in for the real goal (tests green, error gone, it compiles) that the agent can satisfy without achieving the goal.
- race
- A bug whose outcome depends on which of two concurrent operations happens first.
Lesson goal: Read agent code in any of the five languages and identify shortcuts: weakened tests, hardcoded answers, swallowed errors, silent fallbacks, type escapes, Rust unwraps and clones, timing band-aids, duplication, overbuilt code, placeholders and symptom patches. For each, state the concrete damage it will do after merge. ·
the whole lesson