Code quality for AI-built projects
A grade for every pull request, before you merge.
MergeGrade scores the code your AI writes, tracks quality over time, and turns every finding into a prompt and a rule your AI coding tool can follow. Quality goes up without you reviewing every line.
Launching February 2027 · GitHub · TypeScript and JavaScript · Free plan included
app/checkout/page.tsxC | 72 |
lib/cart.tsA | 93 |
lib/price.tsA | 91 |
In app/checkout/page.tsx, split CheckoutPage (142 lines) into a data hook and a view. Replace the 3 `as any` casts with checked types. Rule: cohesion 1/5 → aim for 5/5.
How it works
Install once. Every pull request gets graded.
No config files to write and no dashboards to babysit. MergeGrade fits into the GitHub flow you already use.
-
Install the GitHub App
One click. We open a setup pull request with a measurement workflow, AI rule files and a
.quality.yml. You review and merge it. -
Every pull request gets a grade
Changed files are scored when you open or update a pull request. Results land as a check and one comment, with a fix prompt you can paste into Claude Code or Cursor.
-
Your AI learns the rules
The rubric ships as
CLAUDE.md,AGENTS.mdand Cursor rules, so your AI writes better code before the next review. The dashboard shows the trend.
What you get
A score you can trust, and rules that raise it.
A rubric, not a vibe.
Eight criteria judged on fixed 1‑3‑5 anchors, plus the numbers tools can measure.
20 PRs free, every month
Scored with the full rubric, on every repository you connect.
Never used for training.
Raw source is deleted as soon as it is scored.
Grades at a glance.
A from 90, B from 80, C from 70.
Rules your AI follows.
Written to CLAUDE.md, AGENTS.md and Cursor rules.
What we measure
Two rubrics. One grade you can track.
An AI judge reads each changed file against fixed anchors, and deterministic tools measure the whole repository. Both roll up to a 0–100 score.
File rubric
Each changed file, judged on 1-3-5 anchors.
- Cohesion and readability
- Naming, error handling and types
- Testability, comments and dead code
- File length and unchecked casts
Repository metrics
Same input, same score, every time.
- Test coverage (lines and branches)
- Cognitive complexity and duplication
- Function and file size, lint
- Strict typing, typecheck, vulnerable dependencies
No tests? That counts as zero coverage. An honest first grade is where improvement starts.
Quality over time
See what changed after you added AI rules.
Your score history marks the day you installed AI rule files, then compares the average before and after. When we update the rubric, we rescore recent history so the line stays comparable.
Built to be trusted
Your code stays yours.
No training on your code
We never train models on your code. Scoring runs on Cloudflare Workers AI with zero data retention.
Deleted after scoring
Raw source code is deleted as soon as it is scored. We keep scores and short evidence excerpts for one year.
Never in your way
Checks are report-only by default. If our scoring fails, the check stays neutral instead of blocking your merge.
FAQ
Questions
Which languages and platforms are supported?
GitHub repositories with TypeScript and JavaScript. Test coverage is measured for Vitest and Jest, with more runners coming.
How is this different from an AI review bot?
Review bots leave one-off comments. MergeGrade gives every pull request a score on a fixed rubric, tracks it over time, and feeds the rules back to your AI coding tool so the next pull request starts better.
Will it block my merges?
Not unless you want it to. Checks are report-only by default. On paid plans you can make the MergeGrade check required.
What does MergeGrade change in my repository?
Only what is in the setup pull request: a measurement workflow, AI rule files and a .quality.yml. We never push to your existing branches and never merge anything ourselves.
Is there a free plan?
Yes. The Free plan includes 20 scored pull requests a month with the full rubric. See pricing.
Ship AI-written code you can grow with.
MergeGrade launches in February 2027. Tell us your GitHub handle and we will invite you early.
Get early access