Code review
Inspect takes part in a pull request in two roles. As the author, the session that opened the pull request keeps working on it after you push: it can fix review feedback, failing checks, and merge conflicts. As a reviewer, three agents run on pull requests in your repositories, whoever wrote them.
Review agent
Reviews the diff with a panel of specialist reviewers and posts findings as review comments. Turned on by a per-repository setting, or your personal setting for your own pull requests.
Verification agent
Runs the app from the pull request's commit, exercises the changed behavior, and posts evidence.
Turned on by .inspect/verification/config.yml in the repository. Runs only on pull requests from
sessions.
Approval agent
Checks the pull request against policy files in the repository and submits a GitHub approval. Turned
on by an organization switch plus a policy bundle under .inspect/approvals/ on the default branch.
Approval agent can wait for Review agent to finish before it evaluates a pull request. Review providers let a third-party reviewer's findings appear and be auto-fixed next to Review agent's.
Pull requests view
Pull requests lists pull requests in your organization's connected repositories. It opens filtered to open pull requests that request your review. You can filter by reviewer (You, Anyone, None), author, status (open, closed, draft, ready for review, merged, unmerged), and repository, and Inspect saves your filters. Opening a pull request shows its diff, review threads, checks, and Review agent findings without leaving Inspect. Replies and resolutions you make there are posted to GitHub.
Address review feedback
On any review thread, Address this attaches the thread to your session's prompt with the request "Fix this finding". The agent reads the thread, changes the branch, and can resolve threads on GitHub with its resolve_pull_request_threads tool. That tool accepts only thread IDs you or the prompt selected, so the agent never resolves a thread you did not hand it. Read-only sessions and sessions with git writes turned off cannot resolve threads.
Resolve with reason resolves a thread and records why: Fixed it, Incorrect, Not relevant, Too minor, Won't fix, or Outdated.
Fix review feedback automatically
Fix Pull Request review findings in Settings → Agent makes the session that opened a pull request respond to new reviews without a prompt. It is off by default. Choose which reviewers it acts on:
- Human reviewers acts on reviews from individual GitHub users.
- Robot reviewers acts on reviews from GitHub App and bot accounts. Selecting it includes Review agent.
- Review agent acts on Review agent findings. Locked on while Robot reviewers is selected.
- Customize sets Auto-fix or Ignore for a specific GitHub identity. An ignore rule wins over every category.
The policy belongs to the pull request's author, and a session can carry its own override. Inspect skips the review when:
- No Inspect session is linked to the pull request, or its session is archived.
- The pull request author has no Inspect account linked to their GitHub account.
- The pull request was closed without merging.
- The review mentions
@inspect. Mentions go to the mention flow instead.
When a review arrives on a merged pull request, Inspect starts a new follow-up session from the base branch instead of reusing the original session.
Fix failing checks and merge conflicts
Fix CI failures in Settings → Agent is on by default. When a check fails on a pull request linked to a session, or GitHub reports merge conflicts, Inspect queues a prompt in that session with the check name, status, description, and details link. The agent rechecks the current CI state, since the notice may be stale, then investigates and fixes the failure.
- Inspect skips the failure if the pull request's head has moved past the failing commit.
- Failures from GitHub's merge queue are sent too. The prompt tells the agent to reproduce against the latest base branch and to report, without changing the pull request, when another queued pull request caused it.
- Canceled and skipped Buildkite builds are ignored.
- To ignore specific checks in a repository, list them in Ignore CI failures from these checks in the repository's settings. Names are matched case-insensitively.
Related settings
These are personal settings in Settings → Agent:
- Create Pull Requests as Ready for Review (default off): sessions open pull requests as ready instead of draft.
- Review Pull Request drafts (default: organization default): overrides the organization's Review agent timing for your own drafts. Locked while the setting above is on.
- Run Verification agent on Pull Requests (default on): starts Verification agent after each push to your sessions' pull requests.