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 1 of 6
The report runs again. Is it fixed?
builds on: Agents optimise the signal they can see
Your nightly billing report crashed with `AttributeError: 'NoneType' object has no attribute 'email'`. You pasted the stack trace and asked the agent to fix it.
A minute later the agent reports back. It added two lines, the job runs to the end, and the tests are green. Its summary says: *handled the case where the user is missing*.
Is the bug fixed?
Terms on this card
- stack trace
- The list of function calls active when an error was raised, ending at the line where it surfaced.
- AttributeError
- Python error raised when you access an attribute an object lacks, for example `.email` on `None`.
- 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: 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