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

Why agents reach for packages

builds on: Invented APIs, flags, config keys and packages
To the agent, a package name is just a plausible string. Names like `is-iso-date-strict` sound right whether or not they exist, and it cannot see today's registry unless it looks. Adding a package is also the quickest way to make an error vanish. A vanished error looks like success, but it does not prove the code is right. Attackers register names that agents often invent, and one-letter lookalikes of popular ones. Later cost: foreign code run at install, abandoned code nobody patches, license trouble, a bloated dependency tree.
Terms on this card
registry
The public package index for an ecosystem: npm, PyPI, crates.io, Maven Central, or the Go module proxy.
license
The legal terms under which you may use, change and ship a package; some impose duties on your own code.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
dependency
Something your code calls but doesn't own, such as a payment gateway, database, clock or another service.
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