AI code review
Using models to review pull requests, and reviewing AI-written code critically.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Overview
AI code review has two sides. One is using models as reviewers: tools such as CodeRabbit, Copilot code review or a coding agent with a review skill can catch bugs, missing tests and inconsistencies before a person looks. The other is reviewing code that an AI wrote, which needs its own checklist.
Useful habits include giving the reviewer the intent of the change and project conventions, asking for specific issues rather than general opinions, verifying each claimed bug before acting on it, and watching for the common faults in generated code: plausible but non-existent APIs, swallowed errors, duplicated logic and tests that assert nothing meaningful.
What you will practise
- Give an AI reviewer the intent of the change and project conventions
- Verify each reported issue before acting on it
- Check generated code for swallowed errors and empty assertions
- Combine automated first-pass review with human judgement
Learning paths
- AI-assisted software engineering
Learn AI-assisted software engineering on real repositories: set up coding agents, give them good instructions, review their diffs and run several in parallel.
- Rolling out coding agents to a team
Roll out coding agents to a team: shared instruction files, permissions and hooks, spec-first work, agent review in CI and vetted Agent Skills for everyone.
Tutorials
- Evaluate coding agents on your own repository
Run Claude Code and Codex headless against 10 closed issues from your repo, then score them with the real fix's tests and a blind review rubric.
- Run coding agents headless in CI
Run claude -p and codex exec in GitHub Actions with pinned versions, narrow permissions, scoped secrets and separate jobs for writing back to the pull request.
Workflow recipes
- Code review with Claude Code on every pull request
Write your checklist once, dry-run it locally, then review every pull request in GitHub Actions and post the findings.
- Hand a GitHub issue to a background coding agent and review the PR
Write a brief it can finish, set up its environment, hand it to Copilot, Codex or Jules, then review and iterate once.
- Migrate a JavaScript project to TypeScript with a coding agent
allowJs first, convert files leaves first in worktree batches, then raise strictness one flag at a time.
- Audit and upgrade risky dependencies with an agent
Audit project dependencies with Trail of Bits' supply-chain-risk-auditor skill, group upgrades by risk, update one batch on a branch and prove tests pass.
- Upgrade a dependency with an AI coding agent, without surprises
Get an impact list from the migration guide, bump on a branch, let the agent fix with guardrails, then compare old and new output.
- Security-review a pull request with an agent
Run an AI security code review of one pull request with Trail of Bits' differential-review skill, then test each finding with fp-check before anyone acts on it.
Articles
- What is vibe coding, and when it bites
Vibe coding means building software by prompting an AI and accepting its code without reading it. Where that works, where it fails, and a test before you try.
- Reviewing AI-written code: what to look for
The ways agent-written diffs fail, a practical review checklist, and how to set up the work so review stays manageable.
Tools for this skill
Claude Code
Anthropic's agentic coding tool for the terminal, IDEs, desktop and web.
CodeRabbit
Automated pull request reviews with line-by-line comments.
Codex
OpenAI's coding agent across a CLI, IDE extension and cloud tasks.
Cursor
VS Code-based editor with agent mode, completions and Agent Skills support.
GitHub Copilot
Completions, chat and a coding agent inside GitHub and popular editors.
Greptile
Pull request reviewer that indexes the whole codebase for wider context.
Jules
Google's coding agent that works in a cloud VM and opens PRs.
Qodo
AI code review and test generation across the IDE, pull requests and CLI.