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 4 of 6
An invented option
builds on: Confidently wrong: plausible is not correct, Dependencies, package managers and lockfiles
You ask: 'fetch the page with 3 retries'. The agent writes `requests.get(url, retries=3)`. It reads naturally, but `requests.get` has no `retries` option. Running it fails with `TypeError: ... unexpected keyword argument 'retries'`. Replying 'are you sure?' often just gets another confident guess from the same memory. Better: 'Look in the installed `requests` code for how retries are set up, tell me the file you found it in, then change the code.'
Terms on this card
- TypeError
- A Python error saying a value or argument was the wrong kind, e.g. a function was given an option it doesn't accept.
- unexpected keyword argument
- Python's message when you pass a named option, like `retries=3`, that the function doesn't accept.
- requests
- A widely used Python library for downloading web pages and calling web services.
- 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