Review: Reading the Repo Behind the Diff
Here's an illustrative pull request you've probably approved some version of. Four lines in services/payments/client.py wrap capture() in the shared retry helper. The diff is clean, the tests pass, and the reviewer approves it in thirty seconds.
The bug isn't in those four lines. The ticket asked for retries on the status lookup, not on the capture. The rule file in services/payments/ says every retried call to the payment provider carries an idempotency key. And the team's BUSINESS.md says an order is charged once. Retry a capture whose first response timed out after the money moved, and you charge the customer twice.
None of that is in the diff. CloudThinker Review is built to read what surrounds the change. Its line is "Nothing breaks in production," and it gets there by reading the ticket, the rules and the team's own history before it comments on a line.
Review is one of our Frontier Investigation Agents. The job is the same as in an incident: find the why, show the evidence, propose the fix, and leave the decision with an engineer.
Why diff-only review breaks
A diff says what changed. It doesn't say what the change was for, which rules the code lives under, or what this team already learned the hard way.
Linters match syntax. That catches a hardcoded secret. It doesn't catch a change that compiles, passes tests and still breaks the requirement in the linked ticket.
Rules live in files nobody opens during review. Teams write conventions into AGENTS.md for their coding assistants. The human reviewer reading a 40-file diff rarely opens the one two folders up.
Memory doesn't scale. A senior reviewer remembers the last double charge. A busy one, or a new one, doesn't, and the memory never makes it into the comment.
What Review reads
01What it reads
The change and its context
The diffFrom its own copy of the repository
- The linked ticketJira, Confluence, Linear, Backlog or issues
- Convention filesAGENTS.md and friends, nearest folder first
- BUSINESS.mdInvariants your product must keep
- LearningsRules from findings you resolved
02CloudThinker Review
One review
- CodeSecurity, correctness, performance
- RulesPattern and business flow findings
- RequirementsA compliance verdict against the ticket
Fast, Auto or Advanced
03Where it lands
In your pull request
- Inline findingsLine, severity, impact, suggested fix
- Reviews workspaceTriage, vote, apply, re-run
- The next pushReviewed incrementally, fixes checked
When someone opens a pull request on a connected repository, Review picks it up with nobody starting it. Drafts wait until they're marked ready. It supports GitHub, GitLab (cloud or self-hosted), Bitbucket Cloud, Azure DevOps and AWS CodeCommit, one provider per workspace.
Besides the diff, it reads four things:
- The linked ticket. With an extension on, a Jira, Linear or Backlog key, a Confluence page or a
Closes #123reference pulls the ticket in. A Ticket compliance card then rates the change Fully compliant, Partially compliant or Not compliant. - Your convention files.
AGENTS.md,CLAUDE.md,CONVENTIONS.mdand the rule files of coding agents such as Cursor, Copilot, Windsurf and Kiro, picked up with no setup. The files nearest a touched file take priority, then the ones at the root. Review treats them as evidence of your conventions, not instructions, so text in a branch can't tell it to skip a finding. BUSINESS.md. A hand-written map of your modules and the invariants they must keep. Review checks every change against it and cites the invariant's ID in its Business flow findings.- Learnings. Rules CloudThinker distilled from findings your team already resolved. More on those below.
The BUSINESS.md entry behind the opening example would look like this:
## Modules
### modules.payments: Payments
Captures and refunds card payments through the provider client.
Code roots: `services/payments/`
Invariant invariants.payments.capture-once: An order is captured at most once.
One pull request, read hypothesis-first
Back to the retry change. Review doesn't start from the four lines. It starts from what the change could break and what each reading predicts.
Reading 1: the capture is already idempotent. If so, capture() passes an idempotency key to the provider, and a retry is harmless. Review reads the client: the key is set on refunds, not on captures. Rejected.
Reading 2: the ticket asked for this. If so, the acceptance criteria mention captures. They say "retry status lookups on timeout." The change covers more than the ticket asked for, so the compliance card reads Partially compliant.
Reading 3: the team's rules allow it. services/payments/AGENTS.md says retried provider calls carry an idempotency key. The change breaks it.
What lands on the line, illustrative:
Severity: High Category: Business flow
services/payments/client.py:88
Retrying capture() without an idempotency key can charge an order twice
when the first request succeeds but its response times out.
Breaks invariants.payments.capture-once.
Suggested fix: pass order.id as the idempotency key, or limit the retry
to get_status() as the ticket describes.
That's the bar we hold a finding to: the faulty line, what goes wrong, and why this team cares.
How a review runs
Findings land as one summary comment plus inline comments. Each has a severity (Critical, High, Medium or Low), a category and a suggested fix. The categories are Security, Correctness, Performance, Pattern, Deploy and migration, Test gap, and Business flow. The most severe unresolved finding sets the verdict, though your provider's branch rules still decide what merges.
You pick a workspace-wide mode. Fast is one reviewer and the lowest cost, and new workspaces start there. Advanced splits the change across parallel reviewers for the deepest read. Auto picks between them by change size, where it's enabled for your instance.
Push again and the next review is incremental: it reads only the new commits and checks whether they fixed the earlier findings.
Every review also lands in Review → Reviews inside CloudThinker. Vote a finding down there and write what it got wrong. Later reviews of that repository read the newest 20 of those notes from the last 90 days, so the same mistake doesn't come back on unchanged code.
What it learns from what you fix
01Finding
Review flags it
An inline comment with a line, a severity and a suggested fix.
02Fix
Your team resolves it
The resolved finding becomes evidence of how this team builds.
03Pattern
Learnings run
Weekly or monthly, a fix that keeps recurring becomes a rule.
04Citation
Cites Learning
Later findings name the rule they relied on, so you can audit it.
05Retire
Or keep
Uncited for 30 days, it retires. An Admin can retire it sooner.
Rule files are what your team wrote down. Learnings are what your team did.
Turn on a Weekly or Monthly schedule per repository and CloudThinker reads the findings your team resolved. The first run looks back 30 days. It writes a rule only once the same kind of fix recurs, so a young repository can finish a run with nothing new, and that's expected.
Each Learning applies to the repository it came from. When a finding relies on one, the comment carries a Cites Learning: line, and the Learning's page links every finding that cited it. A rule nobody cites for 30 days retires itself, and an Admin can retire or restore one by hand. You can't edit a Learning's wording. To state a rule yourself, put it in a convention file.
This is the part of the harness that's specific to Review. Resolve keeps lessons from incidents. Review keeps rules from fixes.
The bar we hold it to
01Self-run benchmark
30 of 37 bugs
Real production bugs from Cal.com, Sentry, Grafana and Keycloak.
02The bar
Faulty line plus impact
The right file is not enough, and neither is a vague warning.
03In production
About 97% precision
FPT Cloud, on live merge requests, with full backend logic coverage.
We ran Review on 37 real production bugs from Cal.com, Sentry, Grafana and Keycloak, following Greptile's published method. Review caught 30. The run is ours, not a third party's, and the benchmark post has the method, the other five tools and how to read the gaps.
The bar matters more than the score. A bug counts as caught only when the review names the faulty line and explains the impact. Pointing at the right file doesn't count, and neither does "this looks risky." That's the comment a developer can act on without redoing the review.
In production, FPT Cloud ran Review on live merge requests and measured about 97% precision, with full backend logic coverage in the evaluated set.
Fixes stay in your hands
Review never merges on its own. It gives you four ways to apply a fix, and they differ in how much you see first:
- Apply fix commits one finding's suggested change to the source branch, on GitHub, GitLab and Azure DevOps.
- Fix all findings (or
@cloudthinker-ai autofixin a comment) fixes every unresolved finding and pushes the commits to the source branch. It doesn't run your tests, and it skips findings that need an architectural decision. @cloudthinker-ai autofix stackedputs the fixes on a new branch with its own pull request, so you read them before they reach yours. GitHub and GitLab only.- Copy prompt hands the fix to your own coding agent, on any provider.
Plain autofix pushes without a separate approval step, and anyone who can comment on the pull request can run it. On a widely shared repository, limit who can comment, or use autofix stacked. Your provider's branch protection still applies to every push, and Merge in CloudThinker merges as you, through your own linked account.
Why this beats diff-only review
| Diff-only review | CloudThinker Review | |
|---|---|---|
| What's read | The changed lines | The diff, the ticket, convention files, BUSINESS.md and Learnings |
| Requirements | Whatever the reviewer remembers from the ticket | A compliance verdict against the linked ticket |
| Team rules | Enforced when the right person reviews | Read from the files you already keep, nearest folder first |
| Lessons | In people's heads | Learnings from resolved findings, each with its citations |
| A finding | "Looks risky" | Line, impact, invariant broken and a suggested fix |
| The next push | Re-read from scratch, or not at all | Incremental review that checks the earlier findings |
The deeper difference is where the context lives. In diff-only review it lives in a senior engineer's head and shows up when they're free. Here it lives in files and findings the repository already has, so every pull request gets the same read before a person opens it.
Honest limits
Review sees what a review can see. Bugs that only show up when the software runs still belong to tests, QA and human judgment.
The 37-bug benchmark is self-run. With 37 cases each bug is worth about 2.7 points, so read it in bands. The top two tools were one bug apart.
Learnings take time. A quiet repository, or one with few resolved findings, won't have any for a while.
Support varies by provider. GitHub and GitLab take every comment command. Bitbucket Cloud and Azure DevOps run autofix from top-level comments only, with no stacked option. AWS CodeCommit takes top-level questions only, though automatic reviews still run. GitHub Enterprise Server and Bitbucket Data Center aren't supported.
Getting started
Connect one repository, add a short BUSINESS.md, and open a pull request you already know has a problem. Then ask from the review's Ask CloudThinker drawer:
"Which of these findings would break the requirement in the linked ticket?"
"Is there a smaller fix for the High finding that keeps the public interface the same?"
"Which invariant in BUSINESS.md does this change come closest to breaking, and why?"
Connect a repository and open your first review in Review.



