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 2 of 6
Why the change stops halfway
builds on: What the agent cannot see
"All callers" means all callers *in its context*: the files it opened or found with its own search. The agent never saw a job scheduled by name in YAML, a `getattr` lookup, a doc example or a service in another repo, so to it they don't exist. Green tests are only a proxy signal, a visible stand-in for the real goal: they prove nothing about code they never call. **Later cost:** a crash on a rarely run path, a config key silently ignored, docs that lie.
Terms on this card
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- proxy signal
- A visible stand-in for the real goal (tests green, it compiles) that the agent can satisfy without achieving the goal.
- Later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or extra maintenance.
- getattr
- Python built-in that looks up an attribute by a string name at runtime. It raises AttributeError if the name doesn't exist.
- YAML
- A plain-text configuration format based on indentation, common for job schedules, CI and deployment settings.
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