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 3 of 6
Four checks before approving an install
builds on: Outdated knowledge and invented APIs
Say no first, then check on the registry website yourself (`pypi.org`, `npmjs.com`). Don't ask the agent to vouch for it.
1. **Need**: do Python's built-in modules or an existing dependency already do this?
2. **Name**: exact spelling, letter by letter.
3. **Publisher**: known maintainer, linked source code, long release history.
4. **Popularity**: real downloads and users, not just days old.
Any doubt: decline and redirect.
Terms on this card
- registry
- The public online catalogue packages are downloaded from: PyPI for Python, npm's registry for JavaScript. Anyone can publish there.
- PyPI
- The Python Package Index, the public registry `pip` installs Python packages from. Each package has a page at `pypi.org/project/<name>`.
- dependency
- A package your project relies on, usually listed in a file like `requirements.txt` or `package.json`.
- publisher
- Whoever put a package on the registry. On its registry page you can see the maintainer, any linked source code and the release history.
- maintainer
- The person or organisation who publishes and updates a package. Shown on its registry page.
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