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 6 of 6
Every name is a guess until checked
builds on: Training cutoff and API drift
Each method, flag, config key and package the agent names is a guess until something checks it against your installed version: the compiler, `--help`, the versioned docs or the registry.
Be most suspicious where nothing would complain: Python and JS lines no test runs, options objects, kwargs and config files.
Terms on this card
- kwargs
- Python keyword arguments, passed as name=value. A function taking **kwargs accepts any name, so a misspelled or invented option may be silently ignored.
- options objects
- A JavaScript pattern where settings are passed as one object of key/value pairs. Unknown keys are usually just ignored at runtime.
- registry
- The public package index for a language: npm for JS/TS, PyPI for Python, crates.io for Rust, the Go module proxy (browsable on pkg.go.dev).
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- JS
- Short for JavaScript. Plain JS has no compiler check of names or arguments.
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