DEV Community

Keynition
Keynition

Posted on

How I built an AI code reviewer that automatically comments on GitHub PRs

I got tired of waiting days for code reviews on my PRs. So I built a tool that uses Claude AI to review every pull request automatically.

Here's how it works and what I learned building it.

The problem

Code reviews are slow. You open a PR, ping your team, wait hours (or days), and half the comments are about obvious stuff — missing error handling, weak passwords, SQL injection risks.

I wanted to automate the obvious stuff so human reviewers could focus on logic and architecture.

How it works

  1. Connect your GitHub repo via webhook
  2. Every new PR triggers Claude AI to analyze the code
  3. Claude posts inline comments directly on the diff within seconds

What Claude catches

  • 🔒 Security issues: hardcoded secrets, SQL injection, weak crypto
  • ⚡ Performance problems
  • 🏗️ Architecture issues
  • 💅 Code style

Tech stack

  • Next.js 14
  • PostgreSQL (Neon)
  • Claude API (Anthropic)
  • GitHub Webhooks + API
  • Vercel

Try it

Free plan: 20 reviews/month. Pro: $99/month.

https://codereview-keynition.vercel.app

Top comments (0)