Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Vetting a dependency the agent added card 5 of 6

Reading the lockfile, not just the manifest

builds on: Invented APIs, flags, config keys and packages
In package.json, `"*"` lets the next update pull any version, published by whoever controls the name then. The lockfile (excerpt below) shows more: - version `0.0.3`: barely released - `hasInstallScript: true`: it runs code during `npm install` on every laptop and CI runner - `UNLICENSED`: no right to use it - it declares its own dependency `dateparse-x` as `"*"`, so any version is accepted there too Check with `$ npm view is-iso-date-strict time maintainers repository` and `$ npm ls --all`.
// TypeScript
--- a/package.json
+++ b/package.json
   "dependencies": {
+    "is-iso-date-strict": "*",
     "zod": "3.23.8"
--- a/package-lock.json
+++ b/package-lock.json
+    "node_modules/is-iso-date-strict": {
+      "version": "0.0.3",
+      "license": "UNLICENSED",
+      "hasInstallScript": true,
+      "dependencies": { "dateparse-x": "*" }
Terms on this card
lockfile
A generated file (package-lock.json, Cargo.lock, go.sum, uv.lock…) recording the exact version of every direct and indirect package, so every install gets the same code.
package.json
npm's manifest: declares a JavaScript/TypeScript project's direct dependencies and their allowed versions.
hasInstallScript
A field in package-lock.json marking a package that runs an install script during npm install.
npm install
Command that downloads the packages a project needs, updates the lockfile and runs any install scripts.
"*"
An npm version range meaning 'any version at all'.
Learn this step by step on Bytewise
Lesson goal: For each new package, check that it is needed, that it exists under exactly that name (guarding against hallucinated or typosquatted names), and that it is maintained, pinned and licensed acceptably. Review what it does to the lockfile and the transitive dependency tree. · the whole lesson