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 2 of 6
Its library knowledge is frozen and blended
builds on: Why agents fill gaps with plausible guesses
The model learned libraries from public code up to its training cutoff. All versions are mixed together, weighted by how much code used each one. A major version released shortly before the cutoff has little public code yet, and the old one has years of it. Anything released after the cutoff is unknown. The most typical continuation is therefore often the old API, unless your version is in its context.
Terms on this card
- training cutoff
- The date after which no new data went into the model's training. It knows nothing released later and little about things released shortly before.
- major version
- The first number in a version like 2.7.1. A change in it signals breaking API changes.
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- model
- The AI language model at the core of a chat assistant or agent: it takes text in and produces text out.
- API
- Application programming interface: here, the server endpoint the page calls for data.
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