For permission prompts in a Claude Code session, see Configure permissions.
Find Claude Approvals on a pull request
Approvals adds a check named Claude Approvals to the pull requests that it evaluates. The check’s title says what’s still needed, such as Waiting on human review from any person (1/2). A title that starts with (observe mode) means that the policy wasn’t enforced when the check ran. In observe mode, the check shows what your policy would decide. Claude also posts a comment with the reasons. Where the policy allows it, Claude can post an approving review:- In github.com repositories where the Claude GitHub App reports the check: that review comes from
claude[bot] - On a pull request that
claude[bot]opened: that review comes fromclaude-approvals[bot], once you add the Claude Approvals GitHub App
Example policy
You write a policy as a list of rules in.claude/approvals.yml.
This policy has one rule, which asks for two people on every change:
mode: observe: starts the policy in observe modepurpose: says why the rule existspaths: names the files that the rule matches, which here is every fileseats: 2: asks for two people, one of whom can be the authorclaude: comments: means that Claude doesn’t approveadvisory: keeps automatic Code Reviews
- Facts about the pull request: such as how many lines changed, who opened it, and which branch it targets
- A classifier’s answer: a model’s judgment on a question such as how risky the change is
Before you turn on Approvals
Before you add a policy file to a repository, check that your organization qualifies and who can turn Approvals on or off. Then see what Approvals changes for merges, Code Review, and billing.Availability
Approvals is in public beta for Claude organizations on Team and Enterprise plans, as part of Claude Ship. It works on github.com, including GitHub Enterprise Cloud. Compliance settings limit who can use it:- Not available: with Zero Data Retention enabled, the HIPAA configuration applied, or customer-managed encryption keys (CMEK)
- Can’t start Approvals: with FERPA or Access Transparency settings
Who can turn Approvals on or off
Once the prerequisites are met, anyone who can merge a policy file into the default branch can turn Approvals on. An Owner of the Claude organization can turn Approvals off for the whole organization, and it then stays off when a policy file merges.Merges without human review
A pull request can merge without human review when your policy or your GitHub rules allow it, for example:- You leave the check optional: for the Claude Approvals check to block a merge, make it a required check in GitHub and enforce the policy
- You set the
seatsfield to1or0: withseats: 1, the author can meet it alone. Withseats: 0, a pull request can merge without any human review, whether a person or a bot wrote it. To require approval from a person other than the authors, add a policy rule that excludes authors - GitHub counts Claude’s approval: if you require one approval in a GitHub branch rule, Claude’s approving review can be that approval. To prevent that, add an unconditional
claude: commentsrule to an enforced root policy file. Write it for every path and setnested: inheriton it, as in the rule that excludes authors - You set
claude: approveson a rule: Claude can approve an unreviewed change. To get a review first, let Claude approve only when Code Review passes
Keep automatic Code Reviews
Code Review, another Claude Ship agent, can review each pull request automatically. Automatic reviews normally stop on a pull request whose changed files are each under a directory with a policy file, unless a rule for those files names theclaude/code_review classifier. This applies to enforced policies and in observe mode.
To keep automatic reviews, list claude/code_review in a rule, as the example policy does under advisory.
Billing for Approvals
Approvals bills your organization’s usage credits, by tokens, for the Code Reviews and classifier runs that a policy starts. See what starts a charge.Set up Claude Approvals
To set up Approvals, start your policy in observe mode, where the Claude Approvals check shows what your policy would decide. Reviews and classifier runs are billed in observe mode. For starter policies and the steps, see Set up Claude Approvals.Related resources
- Work with Claude Approvals on a pull request: check titles and comment commands
- Approvals and your GitHub rules: required reviews, CODEOWNERS, and merge queues
- Policy file reference: keys and an example policy
- Troubleshoot Claude Approvals: when no check appears or a policy file is refused
- Configure permissions: permission prompts in Claude Code