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

Green tests, one new package

builds on: Invented APIs, flags, config keys and packages
You asked the agent to accept ISO dates in an API payload. The diff touches two files: one new line in `package.json` and 300 new lines in `package-lock.json`. The summary says: "Added `is-iso-date-strict` for robust validation." Tests are green. Do you approve? A new package is code you will run, ship and update for years, and neither you nor the agent has checked who wrote it.
Terms on this card
package-lock.json
npm's lockfile: lists every installed package with its exact version, license, install-script flag and own dependencies.
package.json
npm's manifest: declares a JavaScript/TypeScript project's direct dependencies and their allowed versions.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
green
A test or check that passes.
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