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.
Training cutoff and API drift
card 6 of 6
Remember
builds on: Why agents fill gaps with plausible guesses
The agent writes the version its training data favoured, not the one in your lockfile. Expect this with recent major versions and fast-moving libraries. Counter it by stating versions and pointing the agent at the lockfile and the installed docs or types.
Terms on this card
- lockfile
- A generated file (poetry.lock, package-lock.json, Cargo.lock) recording the exact dependency versions your project installs. In Go, go.mod fixes the versions and go.sum stores their checksums.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: Explain that a model's library knowledge is frozen at training time and blended across versions. It therefore defaults to whatever was most common in its training data, not to the version in your lockfile. Predict when this will bite (fast-moving libraries, recent major versions) and how to counter it: state the versions, and point the agent at the installed docs, type definitions or the lockfile. ·
the whole lesson