Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Outdated knowledge and invented APIs card 2 of 6

It writes from memory, not from your project

builds on: Confidently wrong: plausible is not correct, Dependencies, package managers and lockfiles
The model behind the agent learned from a huge snapshot of public code, collected up to a cutoff date. It knows nothing released after that date. Within the snapshot, older library versions dominate because they had years to pile up examples. Unless it checks, the agent doesn't know which version your project installed. So it writes what feels familiar for some version, not necessarily yours. That can be an old call (`df.append` was removed in pandas 2.0), a call from a newer version than the one you have, or a name blended from similar libraries that never existed.
Terms on this card
pandas
A popular Python library for working with tables of data, called DataFrames.
library
A package of ready-made code that your project installs and calls, such as pandas or requests.
cutoff date
The date after which no new material was included in what the model learned from. It knows nothing published later.
model
The AI that reads text and writes text. In an agent, it decides what to do next.
agent
An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
Learn this step by step on Bytewise
Lesson goal: Explain why agents use old library versions, deprecated calls, or functions and flags that never existed. Counter this by pointing them at the installed version, the docs or the source. · the whole lesson