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.
Unknown and invented packages
card 1 of 6
A package name that sounds just right
builds on: Outdated knowledge and invented APIs
You ask the agent to make your Python script read tables from PDF files. It replies that it will add a library and proposes a command:
⚙ Run: `pip install pdf-table-extractor`
[Approve? yes / no / always]
The name describes exactly what you need, and the agent sounds sure. You have never heard of it. Should you approve, and what could go wrong if you do?
Terms on this card
- package
- A bundle of reusable code published by someone else that you download into your project, such as `requests` or `pdfplumber`.
- pip
- Python's package manager. `pip install <name>` downloads a package from PyPI and installs it.
- script
- A small program, usually one file, that you run to do a task, like `report.py`.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- Python
- A popular programming language. `python <file>` runs a Python file.
Lesson goal: Explain why an agent may suggest a package that does not exist or is a malicious look-alike, which attackers register on purpose. Check name, publisher, popularity and need before approving an install. ·
the whole lesson