Reverstile is now LGTM: open source under Apache-2.0read the announcement →
OPEN SOURCE · APACHE-2.0v1.0 · self-host free

review every
diff

Open-source AI code review that catches real bugs before merge. Multi-model reviewers, a strict judge, and merge gates you control — on your infra or ours.
github.com/humanity-org/lgtm·Invited? Sign in with Google
acme/payments · PR #412 · fix: retry refund webhooks+3 −1
src/webhooks/refunds.ts
41export async function onRefund(evt: WebhookEvent) {
42- if (await db.refunds.exists(evt.id)) return
43 const order = await db.orders.get(evt.orderId)
44+ const refund = await stripe.refunds.create({
45+ charge: order.chargeId, amount: order.total,
46+ })
LGTM logolgtmbotHIGH · LOGICline 42
Webhook retries will refund the same order twice
Stripe retries failed webhooks for up to 3 days. Removing the exists() guard means every retry creates a new refund. Pass an idempotency key instead.
suggested change
46- })
46+ }, { idempotencyKey: `refund:${evt.id}` })
▲ helpful▼ not usefulFix with agent →
LGTM logo5/5 LGTM
✓ Fixed in 9c1e4fa · re-reviewed in 41s0 open findings · safe to merge · $0.18
across open-source and design-partner repos, last 30 daysEXAMPLE DATA
18,240PRs reviewed
2,913real bugs caught
96.8%finding precision
41 smedian re-review
$0.21median cost / PR
how it works

several reviewers, one strict judge

Every PR gets independent reviews from different models. A judge throws out duplicates and anything it can’t verify against the code, so you only see findings worth fixing.
pull request
opened · synced
re-requested
webhook
lgtm engine
context
repo index · memory
custom rules
reviewers ×3
multi-model lenses
logic · security · perf
judge
dedupe · verify
score 1–5
publish
PR comment
inline findings
+ merge gate
why lgtm

a reviewer that earns the green check

01

Catches real bugs

Tuned against labeled bug sets, not vibes. Precision gates mean a quiet PR is a clean PR, not a sleepy reviewer.
Logic, security, concurrency and data-loss bugs, with a suggested fix for each.
02

Cheap enough for every PR

Cheap models for triage, expensive ones only when the diff warrants it. Cost per review is tracked and graphed.
Bring your own keys or route through any OpenAI-compatible proxy.
03

Yours to run

Apache-2.0, one Docker image, Postgres. Your code never leaves your infra unless you choose LGTM Cloud.
GitHub App, CLI and REST API. Config lives in lgtm.yml in your repo.
benchmarks

measured, not marketed

Every release runs the same open benchmark. Results, prompts and the harness are public so you can reproduce them.
Benchmark · 200 labeled PRs, 412 seeded bugs
reviewerprecisionrecallF1$/PRp50 time
LGTM logo  LGTM v1.0 (self-hosted)96.8%81.2%0.883$0.2141 s
Hosted reviewer A89.5%74.0%0.810$0.602 m 10 s
Hosted reviewer B82.1%69.3%0.752$0.453 m 30 s
PLACEHOLDER NUMBERSMethodology, raw findings and the eval harness are in the repo: bench/README.md
Cost per review · 30-day moving average
$0.21▼ 38% in 16 weeks
why it movedtriage on small diffs −$0.07review cache hits −$0.04fewer escalations −$0.02
EXAMPLE DATA
Merge gates · lgtm.yml
gates: min_score: 4 # block merge below 4/5 block_on: [critical, high] max_cost_per_pr: 0.50 # USD, hard cap reviewers: - gemini-4-neon # logic - claude-opus-5-5 # security - gemini-3-flash # triage judge: claude-sonnet-5-5
open source

self-host in five minutes

1
Clone or npxOne binary, one Postgres. No vendor account required.
2
Install the GitHub AppPick repos; LGTM comments on the next PR.
3
Tune lgtm.ymlModels, rules and merge gates live in your repo.
npx
Docker
GitHub App
copy
# review a local branch against main, no account needed $ npx lgtm review --base main # or run the full server + GitHub App $ docker run -p 8080:8080 \ -e DATABASE_URL=postgres://… \ ghcr.io/humanity-org/lgtm:1.0
Diff Owl, the LGTM mascot
lgtm cloud · invite-only

don’t want to run it? we’ll host it.

Managed LGTM with SSO, usage dashboards and zero infra. We’re onboarding teams in waves.
No spam. Already invited? Sign in with Google