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.
Patching the symptom instead of the cause
card 3 of 6
Tells, and the question that settles it
builds on: Agents optimise the signal they can see
Tells:
- The change sits on or right next to the line the stack trace names.
- It branches on the exact value that failed (`None`, `""`, one specific input).
- A `try`/`catch` wraps only the throwing call.
- The summary says it *handles* the bad value but never says *why* the value exists.
Then ask: where was this value made, and is it ever allowed? If it is not allowed, fix the producer. If it is allowed, the guard is right, but only once that is stated.
Terms on this card
- stack trace
- The list of function calls active when an error was raised, ending at the line where it surfaced.
- guard
- An early check that returns, skips or branches when a condition holds, so the code below never runs on that input.
- None
- Python's value meaning 'no object'. Its type is `NoneType`, which has no attributes such as `.email`.
- Tells
- Observable signs in a diff, transcript or summary that suggest a shortcut or an error.
Lesson goal: Spot fixes applied where the error surfaces rather than where it originates: a null check at the crash site, a special case for the failing input, a catch around the throwing line. Explain why the error disappears but the cause keeps producing bad results. ·
the whole lesson