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 6 of 6
A dependency is code under review
builds on: Invented APIs, flags, config keys and packages
Treat every package the agent adds as code you are approving. Check that it is needed, that the exact name is the project you meant, and that it is maintained, pinned and licensed. Then read what the lockfile pulled in with it. "It installed and tests pass" proves only that *something* with that name exists.
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.
- pinned
- Fixed to an exact version (or a tight range) so updates happen only when you choose them.
- 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.
- pass
- Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
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