# Code review

> Automated review of every pull request, grounded in an analysis of your whole codebase.

Abstraction reviews every pull request the moment it opens. Astrid reads the
change against a full analysis of the codebase, not just the diff, so it can
say what a function's new caller means three packages away and whether it
breaks a rule your team has written down.
The result lands where your team already works: as a summary and inline
comments on the pull request, as GitHub check runs you can require before
merge, and as a full report in the web app.

Two things set it apart from a diff-only reviewer:

- **Checks.** Your architecture and compliance rules become
  [checks](https://docs.abstraction.dev/code-review/checks.md) that run on every pull request and across the whole
  codebase, with a verdict and the concrete code that violates them.
- **Verified findings.** The logic review's findings pass through an agentic
  gate that checks them against the code graph and drops the false positives
  before anything reaches the pull request.

## Get started

1. [Enable PR review](https://docs.abstraction.dev/code-review/getting-started.md) for the workspace and choose the
   projects it covers.
2. [Add checks](https://docs.abstraction.dev/code-review/checks.md), or turn on one of the ready-made ones.
3. [See what lands on GitHub](https://docs.abstraction.dev/code-review/github.md), and how to re-run a review or ask
   Astrid a question from a PR comment.
4. [Pre-review a branch](https://docs.abstraction.dev/code-review/pre-review.md) privately, before you open its pull
   request.

Reading a report in detail? The [web app](https://docs.abstraction.dev/web/reviewing-pull-requests.md)
has the full review: summary, checks, per-function reviews, and a map of the
pull request's snapshot.
