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

Tests green. Is it safe to merge?

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
You asked the agent for a 'download invoice as PDF' endpoint. During the session it read a GitHub issue for hints, ran `cat .env` to find the database URL and installed a PDF library. It reports: 'Endpoint added, all tests green.' Before you merge, what exactly do you check, in the diff *and* in the session? And if you find four problems, which one do you fix first?
Terms on this card
.env
A local file of environment variables, often holding passwords and API keys, that should never be committed.
the diff
The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
endpoint
A URL plus method (such as GET /items) that a web API answers requests on.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
Learn this step by step on Bytewise
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