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.
Dependencies, package managers and lockfiles
card 6 of 6
Remember
builds on: How a code project is laid out
A package manager fetches the packages you ask for, plus every package they need. The manifest (`package.json`, `pyproject.toml`) says what you asked for, as version ranges. The lockfile (`package-lock.json`, `uv.lock`) pins exactly what you got, down to every nested package, and it decides what your teammate gets. Add packages with the manager's command, never edit the lockfile by hand, and share it with the project.
Terms on this card
- package
- A bundle of reusable code that someone published so other projects can use it, e.g. `express` or `requests`.
- package manager
- A command-line program that downloads, installs and updates packages for a project, e.g. `npm` or `pip`.
- uv
- A Python package manager that keeps a lockfile, `uv.lock`, next to the manifest `pyproject.toml`.
- manifest
- The file listing the packages a project directly asks for, usually with allowed version ranges, e.g. `package.json` or `requirements.txt`.
- lockfile
- A file generated by the package manager that records the exact version of every installed package, including nested ones, so installs can be repeated identically.
Lesson goal: Explain that projects pull in external packages through a package manager (pip, npm, ...), listed in a manifest and pinned in a lockfile. Explain why installing a package runs someone else's code on your machine. ·
the whole lesson