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 2 of 6
Every shortcut buys a signal and defers a cost
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
Each shortcut satisfies a **proxy signal** the agent can see: test green, error gone, it compiles. The real goal sits outside its context: production inputs, load, code it never opened, the next maintainer. So the shortcut looks like success at review time, and the damage comes later. When a line looks odd, name the signal it bought, then name what breaks after merge. 'Looks hacky' gets argued. 'Drops records silently' gets fixed.
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.
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- 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: 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