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.
Invented APIs, flags, config keys and packages
card 1 of 6
Idiomatic, confident and not real
builds on: Training cutoff and API drift
You asked the agent to add a 5-second timeout to the call that posts orders to a payment service. The diff adds `timeout: 5000` to the `fetch` options. It reads naturally, the agent reports "Added a 5s timeout", and the tests are green. None of the tests talk to a slow server.
Does this code actually have a timeout?
Terms on this card
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- diff
- The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
- green
- A test or check that passes.
- None
- Python's value meaning 'no object'. Its type is `NoneType`, which has no attributes such as `.email`.
Lesson goal: Recognise idiomatic-looking calls to methods, CLI flags, config options or packages that do not exist or belong to a different version: removed APIs, old import paths, options the installed version lacks. Check cheaply that each one exists, using the compiler, the docs, `--help` or the registry. ·
the whole lesson