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 5 of 6
Which file your teammate gets
builds on: How a code project is laid out
A month later, a newer 4.x of `express` is out, and some of the other 68 packages have new versions too. Your teammate runs `npm ci` and gets exactly what the lockfile says: `express` 4.21.2 and the same version of every other package. Without the lockfile, npm would pick the newest versions each range allows, so their copy could quietly differ from yours. So share `package-lock.json` with the project.
Python works the same way: `pyproject.toml` asks for `requests>=2.31` (2.31 or anything newer), and `uv.lock` pins `2.32.3`. A `requirements.txt` with ranges like that is only a manifest. It pins nothing.
Terms on this card
- package
- A bundle of reusable code that someone published so other projects can use it, e.g. `express` or `requests`.
- npm
- The standard package manager for JavaScript projects. It reads `package.json` and installs packages into `node_modules/`.
- npm ci
- An npm command that installs exactly the versions in `package-lock.json`. It fails if the lockfile and the manifest disagree.
- 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`.
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