Claude Approvals on GitHub: writing the policy and when a PR merges without people
Claude Approvals sets how many people must approve a PR. Example policies, costs, GitHub rules to align, and the cases that merge with no human review.
Claude Approvals is a pull request check on GitHub, part of Claude Ship, that reads a .claude/approvals.yml file in your repository and reports how many people still have to approve and whether Claude may approve in their place. According to Anthropic's documentation it is in public beta for Team and Enterprise plans. The part to read closely: a badly written policy lets a PR merge with nobody but its author having looked at it.
In sintesi
- Claude Ship bundles three agents for GitHub PRs: Code Review (generally available), PR Steward and Claude Approvals (both public beta), on Team and Enterprise only.
- The policy lives in
.claude/approvals.ymlon the default branch and sets, per path, how many people (seats) must approve and whether Claude may approve (claude: approves). - The check blocks a merge only if you make it a required check in GitHub. In
mode: observeit does not block, but it is billed. - With
seats: 1the author alone is enough, withseats: 0a PR written by a bot can merge with nobody reading it, and Claude's approving review can count as the approval GitHub requires. - To always get a person other than the author, you need an explicit rule with
"!pr/authors", shown below.
What Claude Ship is and where Claude Approvals fits
Claude Ship is a set of three agents that take a PR from review to an approval decision, as the Claude Ship page describes. Each does a different job:
| Agent | What it does | Stated status |
|---|---|---|
| Code Review | Looks for logic errors, vulnerabilities and edge cases; comments on lines with a severity | Generally available |
| PR Steward | Pushes commits for failing checks, merge conflicts and review comments; does not approve or merge | Public beta |
| Claude Approvals | A check that reports who still has to approve, based on a policy in the repository | Public beta |
All three need a Claude organization on a Team or Enterprise plan and are unavailable with Zero Data Retention, the HIPAA configuration, or customer-managed encryption keys. Approvals has extra limits: with FERPA or Access Transparency settings it cannot be started. It works on github.com, GitHub Enterprise Cloud included.
Billing is per token against the organization's usage credits, separate from the usage included in the plan. The same page warns that Claude Ship uses AI and may miss bugs, security vulnerabilities or other issues.
How to write a policy
A policy is a list of rules in .claude/approvals.yml, and each rule maps paths (paths) to a verdict. Approvals reads the policy from the default branch: while a policy change sits in an open PR, that PR is still governed by the rules already merged.
This is the starting point the setup guide proposes: two people per change, one if Claude's review passes, and always two for anything under .claude/.
# .claude/approvals.yml
version: 1
mode: observe
rules:
- purpose: "A change takes two people. When Claude's review passes, one is enough and Claude approves."
paths: ["**"]
verdict: { claude: comments, seats: 2 }
override:
- { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } }
- purpose: "A change to the review rules takes two people."
paths: ["**/.claude/**"]
nested: inherit
verdict: { claude: comments, seats: 2 }
The fields that matter, from the policy reference:
| Field | Values | Effect |
|---|---|---|
seats | 0 to 16, or lists of sets | How many people must approve |
claude | approves, comments, blocks | Claude approves, only comments, or fails the check |
override | list of conditions | Replaces the rule's verdict while the condition is true |
advisory | list of classifiers | Run without deciding anything, useful to keep automatic reviews |
mode | enforce, observe | In observe the check shows what it would decide |
Several rules combine by taking the strictest verdict: blocks beats comments, which beats approves, and every seat must be filled. A changed file that no rule covers asks nobody, so keep a rule on "**" with no if.
Observe first, enforce later, and what it costs
The recommended path starts in mode: observe, where the check title begins with "(observe mode)" and normally counts as passing. Later you delete that line to enforce, run @claude approvals rerun on open PRs, and add Claude Approvals to the required checks in GitHub, picking the Claude app as the source.
There is no fixed price. According to the Code Review costs page it depends on review level, change size and the number of candidate issues to verify. The suggested estimate is simple: run a pilot with a monthly limit, read each repository's average cost per review under Organization settings > Claude Ship, and multiply.
monthly repository spend = average cost per review x PRs per month x pushes per PR
The last factor applies only with "After every push" reviews. Two billing details that surprise people:
- observing is billed: Code Reviews and classifier runs start in
observetoo; - if a rule uses
claude/code_reviewinside anif, a paid review can start when the PR opens and on every push. To stop that, move the classifier underadvisory.
Spend limits for Code Review and for classifiers are set separately under Organization settings > Usage. If the Code Review limit runs out, a check that needs Claude's review can stop passing.
Where a PR passes without people
The page on Approvals and your GitHub rules lists the cases where a PR merges with nobody but its author looking at it. They are legitimate configurations:
| Configuration | What happens |
|---|---|
| The check is not required in GitHub | It blocks no merge |
seats: 1 | The author can fill the seat, nobody else has to look |
seats: 0 | A PR written by a bot merges with no person involved |
A from set that admits bots | The seat fills without a person |
| A machine user (an account driven by a script or agent) | Counts as a person |
reuse that keeps seats after a push | Approvals given earlier stay valid |
| Files no rule covers | The result is neutral and GitHub counts it as passing |
| A condition that reads a classifier's answer | The PR's text can steer that answer |
The GitHub side matters too. The same page states that Claude's approving review can satisfy a branch rule that requires one approval. GitHub's documentation on protected branches has the options that close the gap: dismiss stale approvals when new commits are pushed, require that the most recent reviewable push is approved by someone other than the person who pushed it, and require review from code owners.
One more trap: with auto-merge or a merge queue and a policy that does not require a person, a change can merge with nobody acting. The documentation puts this in an explicit warning.
The rule that always asks for a person other than the author
The same page offers a rule that asks for at least one person who is not among the authors, on every path:
# .claude/approvals.yml
version: 1
rules:
- purpose: "A change takes one person who isn't an author."
paths: ["**"]
nested: inherit
verdict:
claude: comments
seats: [{ count: 1, from: [humans, "!pr/authors"] }]
advisory: [claude/code_review]
It works because it has no if or override, so no classifier answer can loosen it, and because "!pr/authors" excludes whoever wrote or pushed a commit. Two caveats from the documentation: humans includes machine users (to keep one out, add its login with "!"), and "!pr/authors" does not read Co-authored-by lines. On a fork PR, no approval counts toward a set that excludes the authors.
Files that control the review itself have a built-in protection: policy files, .claude/classifiers/, REVIEW.md at the root and CODEOWNERS normally need a person. Other sensitive files, such as .github, CLAUDE.md, AGENTS.md or .mcp.json, are not protected: the guide says to write a rule for the ones you care about.
What to do now
This is Rayo's view, not an Anthropic recommendation: for a repository with production code I would start from the "two people, Claude comments" policy and only after a few weeks of data try the override that lets Claude approve.
- One pilot repository,
mode: observe, monthly spend limit set first. - For two weeks, compare the check titles with what your reviewers actually decide.
- Add the
"!pr/authors"rule on sensitive paths:.github, agent configuration files, payments and authentication code. - Enforce the policy, make Claude Approvals a required check with the Claude app as source, and set GitHub's required approvals to at most one, as the documentation advises.
- Turn on dismissal of stale approvals in GitHub.
If your organization uses Zero Data Retention or HIPAA, none of the Claude Ship agents is available: the fallback is local review with /code-review or your own check.
Sources
- Claude Ship, Anthropic documentation, read on 30 November 2026
- Claude Approvals
- Policy file reference
- Set up Claude Approvals
- Claude Approvals and your GitHub rules
- Code Review costs
- PR Steward
- About protected branches, GitHub documentation
FAQ
Does Claude Approvals really approve pull requests for me?
Only if the policy allows it with claude: approves and the check passes. With claude: comments Claude only comments. With approves, Claude can post an approving review, and where the rule reads no classifier it can approve a change that no review has read.
How much does Claude Approvals cost? There is no fixed price. You pay per token from usage credits for the Code Reviews and classifier runs the policy starts, observe mode included. To estimate, run a pilot with a spend limit and multiply the average cost per review by the month's PRs and pushes.
Do I need a specific plan? Yes, Team or Enterprise, on github.com. It is unavailable with Zero Data Retention, the HIPAA configuration or customer-managed keys. You also need the Claude GitHub App installed and linked to your organization, plus admin access to the repository to make the check required.
How do I stop a PR merging on the author's approval alone?
Add a rule with seats: [{ count: 1, from: [humans, "!pr/authors"] }] on "**" and make the check required in GitHub. Also turn on dismissal of stale approvals and keep GitHub's required approvals at one.
Can PR Steward merge pull requests? No. The documentation says it is designed not to approve or merge. It pushes commits for failing checks, conflicts and review comments, so merging stays with branch protection and your Approvals policy.