Code Review
Code Review overview
Solidafy Code Review is an AI reviewer for your GitHub pull requests, delivered as a GitHub App. Support for Bitbucket Cloud is coming soon. This page explains what it does on a pull request, how its findings show up, and how you and your team respond to them.
The same reviews also show up in the portal, in the Review Agents app: findings across all your repositories, every reviewed pull request, and the supply chain of your dependencies, in one place. Everything on this page is what happens on GitHub; the app is where you look across it.
What happens on a pull request
Once the app is installed on a repository (see Setup), every non-draft pull request gets a review:
- You open a pull request, push to it, reopen it, or mark a draft ready for review.
- A check run called Solidafy Code Review appears on the head commit and stays in progress while the review runs.
- Six reviewers read the change in parallel, each focused on one area (see below). They don't just read the diff: they can open other files in the repository, follow symbols to where they're defined and used, and look up the public API of your dependencies.
- Findings are posted as inline review comments on the lines they concern, plus one summary comment on the pull request that opens with a walkthrough of the change.
- The check completes. It passes when there's no unresolved blocking finding, and fails otherwise. If most of the reviewers were cut short by their limits, it's neutral instead of passed (see The summary comment).
- The app's review on the pull request shows the same verdict: approved when the check passes, changes requested when it fails (see The verdict on the pull request page).
If you push several commits in quick succession, the burst is reviewed once, at the latest commit. A review that's still running when a newer commit arrives is superseded: its check is marked neutral and the newer commit gets the review.
Later pushes are normally reviewed as a delta: the reviewers focus on what changed since the last reviewed commit, and earlier findings are carried forward, re-checked, or resolved. Two kinds of push get a full review instead: one that rewrites history (a rebase or a force-push), and one that changes 300 or more files, because GitHub can't list more than that between two commits. Either way, comments you dismissed stay dismissed and open threads keep their place, as long as the code they're about didn't change.
If your pull request is stacked on another one and gets rebased because the one below it merged, it isn't reviewed again: the change the pull request itself makes is unchanged, so the previous review's verdict stands for the new commit, and the check says which commit that review was of. A rebase that also changes the pull request's own diff is reviewed in full, and /review always reviews the current commit.
Tip: To make the review gate merges, add Solidafy Code Review as a required status check in your GitHub branch protection rules or rulesets. The app never merges anything itself; GitHub merges once the required checks pass.
The six reviewers
All six run by default. You can switch reviewers off for your whole organization or for one repository, and you can give each of them your own guidance. See Configuration.
Alongside the six, every review also checks the open-source licenses of the dependencies your repository declares. That one isn't an AI reviewer at all: see Open-source licenses.
Severity, blocking and advisory findings
Every finding has one of five severities: critical, high, medium, low, info.
Each reviewer has a blocking threshold. A finding at or above that threshold is blocking: it fails the check until it's dealt with. Anything below is advisory: it's posted for you to read but never fails the check. Out of the box, every reviewer blocks at medium and above. You can change the threshold per reviewer, or make a reviewer advisory-only, in .review-agents/config.yaml.
A finding on a file your pull request did not change is always advisory. Only a finding on a changed file becomes an inline thread you can resolve, so one on an untouched file never blocks, even at high severity.
How findings are posted
Inline review comments
Each finding is its own review thread on the line it refers to. The first line shows a coloured severity marker, the reviewer and severity, the title, and whether it blocks, as in the thread above.
Below that is a short human-readable explanation, and a collapsed Details for the fix agent section with the full reasoning and a suggested fix. That section is written so a coding agent can pick the finding up and fix it without re-deriving the analysis.
If the finding is about a line outside your diff, the comment is anchored to the nearest changed line and says which line it actually refers to.
One-click fixes
When the fix is a small edit of exactly the lines the comment points at, such as a missing argument, a wrong comparison or a misspelt constant, the comment also carries a GitHub suggested change. Click Commit suggestion to apply it. Every other finding describes its fix in words.
A suggestion is only offered for lines your pull request changed, and it stays small: at most 12 lines. It's checked against the commit it's posted on, and if a later push changes the lines it would replace while the finding is still open, it's taken off the comment, so it can never apply to code that has moved on. A finding your push fixed is resolved with its comment left as it was.
Every comment, reply and check summary the app posts ends in a hidden, machine-readable note that it was generated by AI, as the EU AI Act asks. You only see it in the raw text, never in the rendered comment.
The summary comment
The app keeps a single summary comment, titled Solidafy Code Review, on the pull request and updates it in place on every review rather than posting a new one. It opens with a walkthrough of what your pull request changes, and then gives the result:
- The verdict: Result: passed, Result: requires changes, or Result: unfinished when most reviewers were cut short (see below).
- How many blocking and advisory findings are open, or No open findings.
- A table of the six reviewers: each one's verdict, how many findings it raised and how long it took.
- The findings of the current round, each tagged new (first raised on this push) or still open (carried over from an earlier push).
- Resolved findings: earlier findings that are no longer detected, so addressed work stays visible.
- Accepted / refuted findings: findings dismissed with
/review acceptor/refute(see below), one line each with the original title and a link to its thread, where the reason stays. Each finding appears in only one of these lists. - How much the review used, in credits (see Billing).
- How to work with the review: a collapsed section with the same rules this page describes.
- Review history: earlier rounds, collapsed, newest first.
When the check fails on a finding from an earlier review that's still open, the summary lists it with a link to its thread, even if this review stopped before it looked at that finding again. So a failed check always names what's blocking it.
The reviewers look up where the names in your change are declared, what calls them and what they call. If some of those lookups fail on our side, the summary says so at the top, so a thinner review isn't mistaken for a clean one. There's nothing for you to change.
A reviewer can be cut short by one of its limits (time, cost or reading; see Budget). Everything it reported still stands, and a partial review still blocks on what it found.
If four or more of the six reviewers are cut short and nothing is blocking, the check is neutral rather than passed, and the summary says how many reviewers finished. GitHub still lets you merge on a neutral check; it tells you the review was incomplete. Such a review marks none of your earlier findings as resolved, and one that's still blocking keeps the check failed. Push a new commit or comment /review to have it reviewed again.
The walkthrough
The summary comment starts with a short walkthrough, so a reviewer can see what the pull request does before reading any finding:
- Summary. A few sentences on what the change does. Names from your code, such as functions, types, files and settings, are shown as code.
- Changed flow. When the pull request changes how its functions call each other, a sequence diagram of that flow, or two when it has two. It's drawn only from calls that exist in your code at the reviewed commit, never through tests or test fakes. A small or configuration-only change gets no diagram.
- Changed data model. When the pull request changes your data model, an entity diagram of the tables it adds or changes, the tables they reference and the relations between them, with the changed columns marked. Every table, column and relation in it is one your migrations or models define at the reviewed commit. A dashed line is a relation only your code declares, with no foreign key in the database behind it. It needs at least two tables and shows at most ten, and says what it left out.
- Changed files. A folded table of the changed files grouped by folder, each with its line counts and one line on what it changes.
After a push that only edits the code of functions the pull request already changed, the summary and flow diagrams are kept and say which commit they were written for. They're written again when a changed file, a changed function or a call between them is added or removed, and on /review full. The data model diagram is drawn again on every review.
The walkthrough is charged as part of the review and counts against the same per-review cap. If it can't be written, for example because the cap was already spent, the review carries on without it.
The verdict on the pull request page
The app's own review on the pull request follows the check, so the verdict shows beside the reviewer at the top of the page and in the pull request list:
- When the check passes, the app approves the pull request.
- When the check fails, it requests changes.
- When the check is neutral, its review stays a plain comment.
It moves with the check: a fix push, a waived thread or a /review accept that turns the check green turns the review into an approval, and a reopened blocking thread turns it back. When the check passes, no earlier request for changes from the app is left standing, whichever commit it was given on, so a rebase or force-push never leaves an old one in the way of the merge. If GitHub won't take the approval, the app dismisses its earlier requests for changes instead.
The required check is still what decides whether you can merge.
Responding to findings
You have five ways to deal with a finding. Which one fits depends on whether the finding is right.
Fix it
Push a fix as a new commit. On the next review, a finding the reviewers confirm is fixed is resolved automatically and moves to Resolved findings in the summary. You don't need to reply in the thread.
A finding is only resolved this way when the reviewer that raised it finished its review. If that reviewer was stopped by one of its limits first (time, cost or reading), it never got to check, so the thread stays open and still counts against the check, even if your code is fixed. The next review settles it, or comment /review to run one straight away.
Tip: Push fixes as new commits rather than amending or force-pushing. The re-review then reads only what changed since the last reviewed commit.
Discuss it
Reply in the finding's thread to add context or push back, in plain prose. The app reacts to your reply with an eyes reaction straight away, so you know it's been picked up, and then answers. It only does this on its own threads: a reply on another tool's comment or in a conversation between colleagues gets no reaction and no answer. The reviewer that raised the finding re-evaluates it against the whole thread and the current code: every message you and your colleagues wrote there, and its own earlier answers, not just the latest reply. So a short follow-up such as "any update?" doesn't hide the argument you made above it. If it agrees, it resolves the thread and records the decision so the same concern isn't raised again on later pushes. If it disagrees, it replies with its reasoning and the thread stays open. Only replies from people with write access to the repository are considered.
Refute it
If a finding is simply wrong, reply on its thread:
/refute The value is validated by the schema in src/api/model.ts before it reaches this handler.
The reason is required. Anyone with write access can refute, including the pull request author. The thread is resolved, your reason is kept as a record, and the finding stays suppressed on future reviews unless the code at that spot is materially rewritten. That holds across a rebase or a force-push too, as long as the code it's about didn't change.
Accept it as a decision
If a finding is valid but you're choosing to live with it, a reviewer other than the pull request author can reply:
/review accept We accept the extra query here until the reporting rewrite lands next quarter.
The rationale is required. The thread is resolved, and the finding stays suppressed on future reviews, even if it's re-worded, as long as the code there isn't materially rewritten. A material rewrite brings it back for a fresh look.
Waive it
A reviewer other than the pull request author can resolve a blocking thread with GitHub's Resolve conversation button. That waives the finding and the check updates straight away. The author can't waive their own findings: if the author resolves a blocking thread, the app reopens it.
Draft pull requests
Drafts are treated as work in progress and aren't reviewed by default. Instead, the app posts a one-time comment on the draft explaining how to get it reviewed. You have three options:
- Add the
solidafy-reviewlabel. The draft is reviewed when the label is added and re-reviewed on every push while the label stays on. Remove the label to stop. - Comment
/review. Reviews the current head once. A later push to the still-draft pull request is skipped again until you comment again. - Mark it ready for review. It's reviewed like any other pull request, and the draft notice is removed.
Re-running a review
Comment on the pull request conversation (not on a finding thread):
| Command | What it does |
|---|---|
/review | Reviews the current head again, focused on what changed since the last reviewed commit. |
/review full | Reviews the whole pull request diff again, ignoring what was reviewed before. |
The comment has to start with the command. Anything after it is free text for humans, so /review now that CI is green works. Only people with write access (owners, members, and collaborators) can trigger a review this way.
A forced review costs a full review, so it's paced: if one started very recently, the app replies with the time you can ask again. If a review is already running, it tells you so and the running review posts its result.
Pull requests the app skips
- Bot-authored pull requests (any GitHub account ending in
[bot], such as Dependabot or Renovate) aren't reviewed. The check still completes as passed so a required check never blocks them. - Pull requests with no changed files are skipped the same way.
Changes to the review configuration itself
The .review-agents/ files are always read from your default branch, never from the pull request. If a pull request changes them, the app posts an advisory note saying the changes didn't apply to this review and take effect once merged. See Configuration.
When a review can't run
The check never passes silently. If a review can't complete, the check fails with an explanation and you can comment /review to try again.
If the AI model provider we send reviews to refuses our requests, the summary comment says so: The AI model provider refused this review, and that it's a problem on our side, not with your code. We usually re-run the review on our own once the provider accepts requests again, and pushing a new commit re-runs it too.
If a review keeps stopping part way through because the pull request is too large to review in one go, the check fails after two tries with pull request too large to review. Split the change into smaller pull requests, or comment /review to try again.
If GitHub's hourly limit on the requests the app makes for your organization runs out while a review is running, the review stops and the merge stays held: the check stays in progress, or, if GitHub accepts the update, fails saying the hourly limit is why and when it resets. Either way the review runs again by itself once the limit resets.
If your organization is out of credits or over its monthly budget, the check fails with out of credits or budget exceeded and no review runs. See Billing.
Languages and ecosystems
The reviewers read any text file in the repository, so every language gets a review. Some get extra depth:
- Code navigation. The reviewers can jump to definitions and find callers in TypeScript and JavaScript (including the
<script>block of Vue single-file components), Python, Rust, Go, C#, Java, Kotlin, Swift, Objective-C (.mfiles and their headers), Elixir, Terraform and other HCL, and shell scripts (.shand.bash; a script without an extension isn't read). In an app that mixes Swift and Objective-C, a Swift call into an Objective-C method and an Objective-C message to a Swift method marked@objcare connected, so a change on one side is reviewed with its callers on the other. - Language-specific rules. Built-in checklists for TypeScript and JavaScript, Python, Rust, Go, C#, Java and Kotlin, Swift, Objective-C, Elixir, Terraform, shell scripts, GitHub Actions workflows, and YAML including Kubernetes manifests and Helm templates. They're applied automatically when a change touches those file types.
- Dependency APIs. The reviewers can look up the real signatures and docs of the libraries you import, for npm, PyPI, Cargo, Go modules, Maven and Gradle, NuGet, Hex and Swift packages (including the public headers of a Swift package's Objective-C targets), plus Terraform providers and modules. An npm package that ships no types is read from its
@typespackage or, failing that, from its JavaScript; a package that only re-exports another package's API is looked up in the package that declares it; and a dependency yourpackage.jsondeclares by a version range, with no lockfile, is read at the newest release that range allows. Public packages work out of the box. For private packages, add a registry credential. - Environment variables and Helm values. The reviewers can look up an environment variable by name and get every file and line that reads it, including shell scripts that read or export it, and look up a Helm chart value and get each chart's default for it and every template that reads it.
- Helm charts. For Helm changes the reviewers can render the chart and judge the manifests it actually produces. A subchart that your
Chart.yamlpulls from anoci://registry or anhttps://chart repository is fetched and rendered with the chart, using your stored registry credential for an OCI registry that needs one. A plainhttp://chart repository is never fetched. A dependency that can't be fetched is reported to the reviewer as not rendered, rather than guessed at.
Data model
The reviewers know the tables and collections your code keeps data in, so they can look a table up instead of guessing its shape from the code around it. Looking one up gives its columns or fields with their types, its keys, indexes and relations, and the code that reads and writes it, with the columns each piece of code uses.
What they read:
| Where the data lives | What the reviewers read |
|---|---|
| Entity Framework Core | Which table each entity class maps to, its columns, keys, indexes and relations, as your model snapshot, migrations and Fluent configuration define them |
| SQL migrations and SQL in your code | The tables, columns, keys, indexes and row-level security policies your .sql files and the SQL statements your code keeps in strings create, replayed in the order your migration tool runs them (DbUp's numbered scripts included). Each migration directory is its own database; archived and down migrations aren't replayed |
| SQL Server Data Tools database projects | One database whose tables are what its table files declare, with a rename recorded in the project's refactor log read as a rename. Deployment scripts and test database projects aren't read as databases |
| MongoDB, in Java and Kotlin | The collections your code uses, the document class each one is read into with its fields, embedded documents and ids pointing at other collections, and the indexes your code and your Mongock change units create. The official drivers, Jongo, Spring Data MongoDB and DAO classes that hold a collection are covered |
| Realm, in Swift and Kotlin | Each object class with its stored properties and their types, which are optional, the primary key, indexes, embedded objects and links, and which Realm configuration opens it at which schema version |
| Azure Table Storage and Cosmos DB, in C# | Each table or container by name, the entity class it holds with the properties actually stored, its key and, for Cosmos DB, its partition key path |
The code that reads and writes each table is found in Entity Framework Core queries, SQL run through Dapper and ADO.NET commands, and postgres.js queries in TypeScript.
Each database's SQL dialect is worked out from what your files write, a database project's target and the database drivers of the project that holds it, never assumed: Postgres, SQL Server or MySQL. Its SQL is then read by that engine's rules, and advice that only holds for one engine is only given where the engine is known. Where several databases have a table of the same name, a query is tied to the database of the project its code is in, or to the only database that has the table; when that can't be told, it isn't tied to any.
Checks on a pull request
When a pull request changes the data model or the code using it, the reviewers are handed what changed and the following checks, each with the line it's about. They decide whether it's a finding in your case:
- Model without migration. An Entity Framework Core entity or its configuration changes with no migration that goes with it.
- Risky migrations on a table that already holds data. Dropping or renaming a column or a table, adding a required column with no default (saying what your engine does with it), or narrowing a column's type.
- Locking index builds. A Postgres index built on an existing table without
CONCURRENTLY, or a SQL Server index withoutONLINE = ONin a migration script. - Missing row-level security. A new Postgres table without row-level security where your other tables have it.
- Foreign key without an index. A new foreign key whose columns no index starts with (not on MySQL, which indexes them itself).
- Unindexed filters. New code that filters or joins on columns no index of the table or collection starts with.
- Queries in a loop. New code that queries once per item of a loop or callback.
- Dropped but still used. A table or column the pull request drops or renames that code still uses, other than the migration doing it.
- MongoDB fields without a change unit. A field removed or renamed from a document class, with no Mongock change unit updating the documents already stored.
- Realm schema version not raised. A stored property added, removed or retyped, or an optionality or primary key changed, without raising the schema version of the configuration that opens the class. Where the configuration deletes the data on a mismatch instead, the review says the data would be lost.
- Full table scans. An Azure Table Storage query filtering on neither
PartitionKeynorRowKey, or a Cosmos DB query that names no partition key.
Nothing here is guessed at. SQL the review can't read for certain, such as a table name filled in at run time, isn't listed or checked, and a query filter your code builds at run time isn't checked either. If a database's SQL couldn't be read for a commit, the review says that database wasn't read, and why, rather than showing it with no tables.
Open-source licenses
This part of the review isn't an AI reviewer: it resolves each dependency your repository declares to its license and sorts that license into a category, so the same dependency gets the same answer every time and it adds nothing to what the review costs you.
It covers dependencies declared for npm and Bun, Cargo, Go modules, Maven and Gradle, NuGet, and Swift packages, and only where the version is pinned exactly: a dependency declared as a version range can't be looked up, so it's left out rather than reported as unknown. Terraform is left out too, because a Terraform provider isn't a package coordinate whose license can be looked up. A manifest inside a fixture, fixtures, __fixtures__ or testdata directory describes a project your tests feed in, not your own, so its packages get no license or vulnerability comments.
It flags a copyleft license (GPL, AGPL, LGPL, MPL), a non-standard or source-available one, and a dependency whose license can't be determined at all, which for due diligence matters as much as a known one. A permissive license is never flagged.
Findings show up as license in the summary comment and the per-reviewer table, the same way a reviewer's do, but they never fail the check: a copyleft or explicitly denied license comes in at low and everything else at info. A pull request that changes the declaration of a flagged dependency gets an inline comment on the line that declares it; if one pull request changes more than ten of them, they're rolled up into a single summary finding rather than a wall of comments. Everything already in the repository is summarized in one line instead of commented on individually.
You can name licenses that should always be flagged, whatever category they fall into, in .review-agents/config.yaml.
Guidance pull requests
Besides reviewing your pull requests, the app may open one of its own: a suggested .review-agents/ directory for a repository that has none, and later a small pull request keeping those files true as the code moves. Nothing in one of them affects a review until you merge it, and you can talk to it in the comments. See Guidance we suggest for you.
From your coding agent
The code index the reviewers read is also open to your own coding agent, through the code index MCP server at https://index.admin.solidafy.com/mcp, so it can look up declarations, callers and your data model the same way a review does.
Ticket context
If you connect a GitHub, Jira or Linear data source, the reviewers read the tickets a pull request references (in its branch name, title or description) and use them as context for what the change is meant to do. See Ticket lookup.
