AI code review agent

Build an AI code review agent

A code review agent reads each pull request, comments on likely bugs, missing tests and risky changes, and posts a short summary so a human reviewer knows where to look first. It uses our coding stack: a strong coding model, an agentic coding tool that can read the whole repository, and a trigger that runs on every new or updated pull request. The bot comments; people still approve and merge.

Uses the picker's Coding assistant / vibe coding stack, with advice specific to this use case.

Recommended stack

Model

Framework

  • Cursor: Free (limited); Plus $8/mo (Grok models only); Premium $30/mo adds third-party models at API list price (verified 2026-11-22)
  • Claude Code: Included with Claude Pro ($20/mo, or $17/mo billed annually) and Max (from $100/mo) (verified 2026-11-22)
  • Aider: Free, open source; bring your own API key

Hosting

  • Vercel: Hobby $0 (personal, non-commercial); Pro $20/mo incl. $20 credit (verified 2026-11-15)

No-code alternative

  • Bolt.new: Free 1M tokens/mo (300K/day); Pro $25/mo (verified 2026-11-15)
  • Lovable: Free: 5 build credits/day (up to 30/mo) plus 20 Cloud credits/mo; paid plans add a monthly credit balance (prices not shown on the page we read on 2026-11-15 - check site)

Rough monthly cost

$0–40/mo (editor plan + hosting free tier)Approximate. Tool prices checked 2026-11-15.

Difficulty

Beginner

Some links may be affiliate links. Disclosure

Why this stack

Step-by-step

  1. Write a short REVIEW.md: what to flag (bugs, security issues, missing tests, breaking API changes), what to ignore (style your linter already catches), and the tone of comments.
  2. Install one review tool on one repository, for example the Claude Code GitHub Action, or Bugbot if you already pay for Cursor Premium. Store the API key as an encrypted repository secret.
  3. Trigger it when a pull request is opened or updated. Have it post one summary comment, plus inline comments only for issues it can point to with a line reference.
  4. Replay it on 10 recent merged pull requests, including one that later caused a bug, and check whether it would have caught the problem without burying it in noise.
  5. Keep a human approval rule on the branch: the bot comments, people approve and merge. Review its false positives weekly and update REVIEW.md.

Common pitfalls

FAQ

Can AI review my pull requests automatically?

Yes. Tools such as the Claude Code GitHub Action or Cursor's Bugbot can run on every new pull request and leave a summary and inline comments. Keep a human approval step before merging.

How much does an AI code reviewer cost?

It depends on the tool. Bugbot is included in Cursor Premium ($30/month) and higher plans. With the Claude Code GitHub Action you pay for model usage on your own API key, for example Claude Sonnet 5.5 at about $2 in / $10 out per 1M tokens. Standard GitHub-hosted runners are free for public repositories.

Is it safe to run an AI reviewer on pull requests from forks?

Treat fork pull requests as untrusted. Run the reviewer without secrets or write permissions, or only after a maintainer has looked at the pull request.

Try it in the picker: AI code review for my pull requests · Review my PRs automatically · PR review bot for my GitHub repo

Customise this stack in the picker →

Related stacks

Last updated 2026-11-22.

📬 The Loadout

One weekly AI build loadout: a project idea, the stack to build it, and the tools worth knowing. Free, unsubscribe anytime.

Subscribe to The Loadout