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.
Half-finished changes: the call sites it missed
card 3 of 6
Where the old form survives
builds on: What the agent cannot see
- **Direct callers:** the compiler catches them in Java, Go, Rust and TS, but only in the code you actually build. Python and JS catch nothing until the call runs.
- **Strings:** reflection, `getattr`, config keys, route names, JSON fields, SQL.
- **Outside the repo:** other services, clients, stored data.
- **Docs and examples.**
- **Meaning changes** (seconds→ms, dollars→cents): no compiler sees these. Rename the function or change its type so the compiler does.
Terms on this card
- TS
- Short for TypeScript, JavaScript with static types checked by the TypeScript compiler.
- JS
- Short for JavaScript. Plain JS has no compiler check of names or arguments.
- getattr
- Python built-in that looks up an attribute by a string name at runtime. It raises AttributeError if the name doesn't exist.
- reflection
- Looking up classes, methods or fields by name at runtime, for example Java's getMethod("name"). The compiler cannot check those names.
- JSON
- JavaScript Object Notation, a text format for data. Field names are plain strings that no compiler checks.
Lesson goal: Recognise a rename, signature change or semantic change applied only in the files the agent read, while other callers, reflection or string references, configs, docs and other services still use the old form. Check for missed sites with search and the compiler. ·
the whole lesson