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 4 of 6

One install, many packages

builds on: How a code project is laid out
You asked for one package and got 69, because `express` needs others, and those need others too. The manifest stores a range: `^4.21.2` means "4.21.2 or any newer 4.x". The lockfile pins the exact `4.21.2`. `-A1` makes `grep` also print the line after each match. A `\` at the end of a line continues the command, so `package-lock.json` is part of the command, not output. Counts and versions are illustrative.
$ npm install express
added 69 packages in 3s
$ grep '"express"' package.json
    "express": "^4.21.2"
$ grep -A1 '"node_modules/express"' \
    package-lock.json
    "node_modules/express": {
      "version": "4.21.2",
Terms on this card
package
A bundle of reusable code that someone published so other projects can use it, e.g. `express` or `requests`.
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.
package-lock.json
npm's lockfile. It records the exact version of every package npm installed for the project.
^4.21.2
An npm version range meaning "4.21.2 or any newer version starting with 4".
Learn this step by step on Bytewise
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