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 5 of 6
Version first, then a checked fix
builds on: Confidently wrong: plausible is not correct, Dependencies, package managers and lockfiles
Look up the version yourself and hand it over. Then make the agent check the installed library before editing. Notice it reports what it checked, not what it remembers. Then run the script again yourself.
$ pip show pandas
Name: pandas
Version: 2.2.2
▸ You: We have pandas 2.2.2. Before fixing
merge.py, check the installed pandas
for the right way to stack two tables.
⚙ Run: python -c "import pandas as pd;
print(hasattr(pd.DataFrame, 'append'))"
⚙ Run: python -c "import pandas as pd;
help(pd.concat)"
◂ Agent: Checked installed pandas 2.2.2:
DataFrame has no append (the check
printed False). pd.concat exists. I'll
replace the append call with
pd.concat([df, other]).
Terms on this card
- library
- A package of ready-made code that your project installs and calls, such as pandas or requests.
- script
- A small program, usually one file, that you run to do a task, like `report.py`.
- 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.
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