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 3 of 6
Point it at the truth, not its memory
builds on: Confidently wrong: plausible is not correct, Dependencies, package managers and lockfiles
1. Find the installed version: look in the lockfile, or run `pip show <package>` / `npm ls <package>`.
2. State that version in your request.
3. Name a source of truth. That can be that version's official docs, or the package's own code installed in your project (`node_modules/`, or the Python environment folder). For a terminal tool, use its manual (`man <tool>`) or `<tool> --help`.
4. Ask it to check every function, option or flag it uses against that source, and to tell you where it found each one.
5. On errors like 'no attribute', 'unexpected keyword' or 'unknown option', suspect this first.
Terms on this card
- lockfile
- A file the package manager writes that records the exact version of every installed package, e.g. `package-lock.json`.
- `pip show <package>`
- Terminal command that prints details of an installed Python package, including its exact version.
- `npm ls <package>`
- Terminal command that shows which version of a JavaScript package is installed in the current project.
- `node_modules/`
- The folder where npm puts the installed JavaScript packages for a project, including their source code.
- Python environment folder
- The folder (often `.venv/`) holding the Python packages installed for this project, including their source code.
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