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.
Review agent work for security and supply-chain risk
card 2 of 6
Security bugs don't show up in green tests
builds on: String-built SQL, shell commands and HTML, Secrets in code, logs and commits, Security checks switched off to make it work, Endpoints that authenticate but don't authorize, Vetting a dependency the agent added, Limiting what the agent can break
Every security risk you have met so far gets past the proxy signals the agent chases. String-built SQL still returns the right row for normal test input. A missing owner check passes when the test user owns the record. `verify=False` makes the error go away. The agent cannot see your threat model. The session is exposure too: text it read could steer it, and commands it ran have already run. **Later cost:** breaches that no test ever flags.
Terms on this card
- owner check
- A check that the logged-in caller may access this specific record, not just that they are logged in.
- threat model
- Your picture of who might attack the system, what they can reach, and what they would want.
- verify=False
- Argument to Python's requests library that turns off TLS certificate checking for that request.
- model
- The AI language model at the core of a chat assistant or agent: it takes text in and produces text out.
- SQL
- Structured Query Language, the language used to query relational databases.
Lesson goal: Check an agent change and session for injection, leaked secrets, disabled protections, missing authorization, risky new dependencies, prompt-injection exposure and excessive permissions. Rank the findings by impact. ·
the whole lesson