AI Agent Code Review Checklist 2026
Agent pull requests look tiny and change everything: 200 lines of prompt, quietly widened tool permissions, a model swap that doubles cost. A five-part review checklist, PR template and what CI should own.
📜 Table of Contents
📖 Keep reading
AI Agent Code Review Checklist
A pull request touches three files: two new prompt paragraphs, one extra tool, and a model swap from the cheap tier to the expensive one. The diff looks clean and review takes ten minutes. After release, cost per conversation quadruples and tool failures climb, and nobody connects either to that PR.
Agent changes are small in appearance and large in effect. Prompts are natural language, so logic errors are invisible; permissions are booleans, so one character relaxes a boundary; models are one line, so cost and latency shift entirely. Ordinary review habits are not enough.
Why normal review misses things
Beyond logic, signatures, tests and performance, agent review must cover prompt impact on existing behavior, tool schema and permission expansion, whether evals ran, cost and latency deltas, and the behavior of third-party MCP servers. The most commonly skipped item is a prompt change merged without running evals, because nothing errors.
Five blocks
Prompts: a specific problem, no contradictory rules, nothing that belongs in validation, version bumped with the old file kept, evals green.
Tools and permissions: least privilege, type and range validation rather than trusting the model, descriptions that say when not to use the tool, a confirmation path for writes, source-reviewed and pinned third-party servers.
Data and privacy: delimited external content with provenance, masked new log fields, no test data in production collections, retention aligned with new fields.
Cost and performance: a token and cost estimate in the PR, no expensive model on hot paths, no needless context growth, bounded retries.
Observability and rollback: logging and trace fields for new logic, changes behind a flag or a written reason, one-line rollback steps, alerts on critical paths.
PR template
The template forces two fields: impact surface and rollback. If the author cannot fill them in, they have not thought the change through.
What CI should own
Eval regression (fail on score drop), dependency vulnerabilities (fail on high), secret scanning, semgrep rules, plus advisory checks on prompt diff size and cost estimate. Add a policy that large prompt diffs require two reviewers; that rule catches more than any tool.
Six commonly missed items
Tool descriptions quietly growing (they cost context on every request), permission widening hidden in one diff line, new fields missing from masking rules, unbounded retries that multiply spend during an outage, eval assertions edited to make a PR green, and rollback paths that no longer exist because old prompt files were overwritten.
Small teams
Review for yourself ten minutes later: what behavior changed, how it was verified, how to revert. Write it in the PR template even with no second reviewer, and spend ten minutes weekly reviewing your own PRs to spot the item you keep missing.
FAQ
Reviewer without prompt expertise? Have them check the problem being solved, the eval delta and the rollback path; none of that requires prompt engineering. Evals too slow? Keep 20 to 50 cases, run ten on commit and the full set before merge. Detecting widened permissions? Structure permission declarations as fields (read/write, scope, approval required) and diff them automatically. Checklist too long? Enforce the first three blocks and leave cost and data as CI reminders.
Tools and metrics here are examples; adapt to your project and check official documentation.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.