DiffSense

AI Code Reviews That Learn Your Standards Deploy Anywhere.

Diffsense plugs into your GitHub repos and reviews every Pull Request with Claude AI, and gets smarter from your team's feedback over time.

From push to review in seconds.

01

PR Opened

A Pull Request is opened or updated. GitHub sends a webhook to your ReviewBot server.

02

Job Queued

The event is validated and a review job is queued via BullMQ.

03

Agent Reviews

Claude reads diffs, full file contents, commit history, and past review patterns via MCP tools.

04

Comments Posted

Inline comments appear on the PR with severity tags.

Built for teams that take code quality seriously.

01

Inline Comments

Comments land directly on the specific file and line, exactly like a human reviewer would.

src/auth/middleware.ts
42
43
44
const token = req.headers.auth;
if (!token) return next();
const user = jwt.verify(token);
⚠ CRITICAL · line 44

Unhandled exception if token is malformed. Wrap jwt.verify in a try/catch or validate first.

02

Severity Levels

Every comment is tagged CRITICAL, SUGGESTION, or NITPICK. Low-confidence comments are suppressed entirely.

CRITICALblocks merge
SUGGESTIONinformational
NITPICKstyle only
LOW CONFIDENCE → SUPPRESSED
03

7 MCP Tools

The agent reads files, diffs, commit history, and past reviews.

1read_file
2get_diff
3list_commits
4file_history
5search_code
6past_reviews
7post_comment
04

RAG Memory

Past review comments are embedded and stored with pgvector. The bot surfaces historically relevant patterns on every PR.

pgvector● MATCH
05

Feedback Loop

Resolving a thread increases that pattern's weight. Dismissing lowers it. Review quality improves over 20–30 PRs.

Missing error handling
Unhandled promise rejection
Magic numbers in config
CONVERGES ~20–30 PRs
06

GitHub App Auth

Installs as a GitHub App, works on any org or repo, no personal tokens, no elevated permissions.

What the review actually looks like.

Inline Comment

Line-level feedback posted directly on the diff. Each comment includes a severity tag and a clear explanation.

github.com/org/repo/pull/42/files
Inline Comment — GitHub PR Review
Inline Comment — GitHub PR Review

PR Summary

A high-level overview posted at the end of the PR. Covers critical issues, suggestions, and an overall assessment.

github.com/org/repo/pull/42
PR Summary — GitHub PR Review
PR Summary — GitHub PR Review

Self-host in minutes.

zsh — review-bot
git clone https://github.com/ShahuKor/review-bot
cd review-bot && pnpm install
cp .env.example .env
docker-compose up -d postgres redis
pnpm db:migrate
pnpm dev:server
pnpm dev:worker
WHAT YOU NEED
GitHub AppCreated in your GitHub settings
Anthropic API keyUsed for the Claude review agent
OpenAI API keyUsed for text-embedding-3-small for RAG
DockerRuns Postgres with pgvector and Redis locally
ngrok or Cloudflare TunnelExposes localhost for GitHub webhooks

DiffSense

Made By Shahu Kor

www.shahukor.com