Modern software development involves much more than writing code. After implementing a feature or fixing a bug, developers must review their changes, run automated tests, resolve merge conflicts, address feedback, and obtain approval before merging their code into the main branch.
Traditionally, most of these activities require direct involvement from other developers, especially when changes affect critical parts of an application such as authentication, payments, or security.
However, AI coding agents are changing this workflow. Developers can now delegate increasingly complex implementation tasks to AI, but this introduces a new challenge: the more code AI can generate, the more important code verification, review, and approval become.
To address this challenge, Anthropic introduced Claude Ship, a collection of AI agents designed to review GitHub pull requests, fix development issues, and approve changes according to predefined team policies.
Instead of limiting AI to code generation, Claude Ship introduces AI into several stages of the software development lifecycle.
Understanding the Traditional Pull Request Workflow
Before understanding Claude Ship, we need to understand how developers traditionally collaborate using GitHub.
A Pull Request (PR) is a request to merge changes from one branch into another. It allows developers to propose changes and have them reviewed before they become part of the main codebase.
A typical development workflow looks like this:
1. A developer creates a new branch for a feature or bug fix.
2. The developer implements the required changes and commits the code.
3. The developer pushes the branch to GitHub and opens a Pull Request.
4. Automated CI checks run to verify that the changes do not break the application.
5. Other developers review the submitted code and provide feedback.
6. The original developer addresses the review comments and pushes additional commits.
7. Once the required checks and approvals are completed, the Pull Request can be merged.
For example, imagine a Laravel developer implementing a new payment refund feature.
The developer modifies the PaymentService, adds a new API endpoint, updates database interactions, and writes automated tests.
After opening a Pull Request, the CI pipeline may detect a failing test. A reviewer may also notice that the refund operation does not properly handle duplicate requests.
The developer must investigate the failing test, fix the implementation, push another commit, wait for the tests to run again, and request another review.
This process is necessary because merging unverified code can introduce bugs, security vulnerabilities, or unexpected behavior into production.
However, as teams increasingly rely on AI coding agents to generate code, the number of Pull Requests and the amount of code requiring review can increase significantly.
This creates a new bottleneck: code can be generated quickly, but reviewing and approving it still takes time.
What Is Claude Ship?
Claude Ship is Anthropic's solution for automating several stages of the GitHub Pull Request workflow using AI agents.
It is designed to help development teams move from manually reviewing and fixing every issue toward a workflow where AI can handle routine tasks while developers maintain control over important engineering decisions.
Claude Ship consists of three main components:
• Code Review: Analyzes Pull Requests, identifies potential issues, and publishes review findings.
• PR Steward: Attempts to fix failing CI checks, resolve merge conflicts, and address review feedback.
• Claude Approvals: Evaluates Pull Requests against predefined approval policies and determines whether Claude can approve or whether human approval is required.
Each component has a different responsibility. Understanding these differences is important because reviewing code, modifying code, and approving code are three separate activities.
1. Code Review: AI-Powered Code Analysis
The first component is Code Review, which is responsible for inspecting code changes submitted through GitHub Pull Requests.
Traditionally, a senior developer or another team member reviews the changes and searches for potential problems before approving the Pull Request.
Code Review introduces an AI reviewer into this process.
When a Pull Request is submitted, Claude analyzes the changes alongside the surrounding codebase rather than looking at individual code lines in isolation.
This allows it to investigate potential issues such as:
• Logic errors and incorrect business rules.
• Security vulnerabilities.
• Broken edge cases.
• Incorrect assumptions about existing application behavior.
• Potential bugs introduced by the changes.
For example, consider a Laravel application with a payment refund method:
public function refund(Payment $payment) { $payment->status = 'refunded'; $payment->save(); $this->paymentGateway->refund($payment->amount); } At first glance, the implementation looks straightforward. However, the developer may have introduced a potential consistency problem.
What happens if the external payment gateway fails after the database status has already been updated?
The application could mark the payment as refunded even though the actual refund was never completed.
An AI code reviewer may identify this as a potential issue and leave a comment explaining the problem.
This does not mean every finding is necessarily correct. AI-generated review comments still need to be evaluated, but they can help developers discover issues that might otherwise be overlooked.
How Does Claude Verify Its Findings?
According to Anthropic, Code Review examines Pull Requests through multiple review perspectives, collects potential findings, verifies them through an additional adversarial checking process, categorizes them, and publishes the results.
The purpose of this verification step is to reduce unreliable findings and focus attention on issues that are more likely to represent real problems.
Findings are published directly on the relevant Pull Request, making it easier for developers to understand where an issue exists and why it matters.
Code Review Levels
Anthropic provides three review levels that administrators can configure for each repository:
• Quick: A faster review for teams that want quicker feedback.
• Standard: A balanced review suitable for regular development workflows.
• Deep: A more comprehensive review for changes that need additional inspection.
This allows engineering teams to choose the review depth based on the complexity and importance of their repositories.
For example, a repository containing internal documentation may not require the same review depth as a repository responsible for processing financial transactions.
2. PR Steward: Automatically Fixing Pull Request Issues
Finding problems is only one part of the development process. Once a problem is identified, someone must investigate it, modify the code, and verify that the fix works correctly.
This is where PR Steward comes in.
PR Steward is an AI agent designed to work on existing GitHub Pull Requests and push commits that address development issues.
It focuses on three common situations:
Handling Failing CI Checks
Continuous Integration (CI) is an automated process that runs tests and other validation checks whenever code is pushed or a Pull Request is opened or updated.
For example, a Laravel project may run:
• Unit Tests.
• Feature Tests.
• Static Analysis.
• Code Formatting Checks.
• Security or Dependency Checks.
Imagine a developer submits a Pull Request, but one of the automated tests fails.
Normally, the developer must investigate the failure, understand its cause, modify the implementation, and push another commit.
PR Steward can investigate the failing check and attempt to fix the problem when its cause is related to code modified by the Pull Request.
It can then push a new commit containing the proposed fix.
Resolving Merge Conflicts
Merge conflicts occur when Git cannot automatically combine changes from different branches.
For example, imagine two developers modify the same method in PaymentService.
Developer A updates the payment validation logic, while Developer B modifies the same method to support a new payment provider.
When Developer B attempts to merge the latest changes from the main branch into their feature branch, Git may report a merge conflict.
PR Steward can attempt to merge the target branch into the Pull Request branch and resolve the resulting conflicts.
However, the developer should still inspect the resulting code to ensure that the combined implementation preserves the intended business logic.
Handling Code Review Feedback
Another common situation occurs when a human reviewer or an automated review tool leaves comments on the Pull Request.
For example, a senior developer may leave the following comment:
This method should use dependency injection instead of directly creating the service instance.
Instead of manually handling every small review request, PR Steward can interpret the feedback, modify the implementation, and push the resulting changes.
It can also work with findings from Code Review and other supported review tools.
How Do Developers Activate PR Steward?
Anthropic recommends starting with Manual Mode.
In this mode, PR Steward does not automatically work on every Pull Request. A developer with write access to the repository must explicitly request its assistance by commenting:
@claude steward
Once activated, PR Steward starts working on the relevant Pull Request.
Developers can also guide its work through additional comments or ask it to stop using:
@claude stop
After every push, PR Steward publishes a comment explaining what it changed and how the changes can be undone.
This provides developers with visibility into the modifications made by the agent.
An Important Limitation
PR Steward is designed not to approve or merge Pull Requests.
Its responsibility is to investigate issues, modify code, and help prepare the Pull Request for the final approval process.
The actual merge decision remains controlled by GitHub permissions, required checks, and branch protection rules.
3. Claude Approvals: Automating Approval Decisions
The third component introduces a more significant change to the traditional development workflow.
Code Review can identify problems, and PR Steward can attempt to fix them, but someone still needs to decide whether the changes are allowed to be merged.
Most development teams have specific rules about who must approve changes before they become part of the main codebase.
For example:
• Changes to authentication logic may require approval from a senior developer.
• Changes to payment processing may require two independent reviewers.
• Changes to internal documentation may require fewer approvals.
• Changes to security configuration may never be approved by an AI agent.
Claude Approvals allows teams to define these requirements as policies that Claude evaluates whenever a Pull Request modifies the repository.
Defining Approval Policies
Claude Approvals uses a configuration file stored inside the repository:
.claude/approvals.yml
The file must contain a supported policy configuration, including a schema version:
version: 1
Inside this file, teams define rules that determine how different files should be reviewed and approved.
For example, a team may want to apply stricter approval requirements to payment-related code than to ordinary application components.
This introduces path-based approval policies.
Understanding Path-Based Rules
A path-based rule determines which approval requirements apply based on the files modified by a Pull Request.
Consider the following application structure:
app/ Http/ Controllers/ PaymentController.php UserController.php Services/ PaymentService.php NotificationService.php Models/ Payment.php User.php tests/ Feature/ Unit/ .claude/ approvals.yml
A team could define different policies for different parts of this application.
For example:
• Changes under app/Services/ may require two human approval seats.
• Changes under tests/ may require one human approval seat.
• Changes under .claude/ may require two human approvals, without allowing Claude to approve them.
This means the approval requirements are not necessarily identical for every Pull Request.
Understanding Approval Seats
One of the most important concepts in Claude Approvals is the idea of approval seats.
A seat represents a required human approval.
For example:
seats: 2
This means that two human approval seats must be satisfied.
However, there is an important detail: the Pull Request author can count as one of these seats.
Therefore, seats: 2 does not necessarily mean that two other developers must approve the changes. The author may fill one seat, depending on the policy configuration.
Similarly:
• seats: 1 can allow the author to satisfy the only required human seat.
• seats: 0 requires no human approval seats.
This is especially important for automated Pull Requests created by bots or AI agents.
A policy using zero human approval seats could allow a bot-authored Pull Request to proceed without anyone personally approving it, provided that the remaining GitHub requirements also allow the merge.
What Can Claude Do During Approval?
Each approval rule can define Claude's verdict.
There are three main options:
• approves: Claude can submit an approving review when the policy conditions are satisfied.
• comments: Claude can provide feedback without approving the Pull Request.
• blocks: The approval check fails according to the policy.
These verdicts allow teams to decide exactly how much approval responsibility should be delegated to Claude.
For example, a team might allow Claude to approve routine changes while requiring human approval for sensitive payment or authentication changes.
Claude Approvals and GitHub Approval Rules
Claude's approving review can count toward a GitHub branch protection rule that requires one approval.
This is an important distinction because Claude Approvals is not simply a tool that writes comments on Pull Requests. It can participate in the actual approval mechanism used by GitHub.
However, it does not bypass all repository restrictions.
Whether a Pull Request can merge still depends on the required checks, branch rules, permissions, and approval policy.
Another important detail: A rule that allows Claude to approve does not automatically start Code Review.
If a team wants Claude to approve only after the code has passed an AI review, the approval policy must explicitly use the Code Review result as a condition.
This distinction prevents teams from assuming that an approval automatically means the code was reviewed first.
Claude Approvals Documentation
Understanding Observe Mode Before Enforcing Policies
Automatically enforcing approval policies can be risky, especially when a team is introducing new rules into an existing repository.
A policy might require too many approvals, reject legitimate changes, or behave differently than the engineering team expects.
To reduce this risk, Anthropic recommends starting with Observe Mode.
Observe Mode can be enabled through the policy configuration:
mode: observe
In this mode, Claude evaluates Pull Requests and reports what the configured policy would decide, but normally does not block a merge based on that policy.
For example, imagine a policy requiring two human approvals for changes to the payment module.
A developer opens a Pull Request modifying PaymentService, but only one approval is available.
Claude Approvals can report that another approval would still be required under the current policy.
However, the team can observe this behavior before making the check a mandatory merge requirement.
Once the team is confident that the rules work correctly, it can remove the observe mode setting and enforce the policy.
Even then, the Claude Approvals check blocks a merge only when the team configures GitHub to require that check.
This gives engineering teams a gradual adoption strategy instead of immediately handing approval decisions to an AI system.
A Practical Example of a Claude Approvals Policy
Consider a repository where the team wants to apply the following rules:
• Normal changes require two approval seats.
• If Claude Code Review passes, one approval seat is sufficient and Claude may approve.
• Changes to the approval configuration itself must always require two approval seats.
• Claude must never approve changes to the approval configuration.
A simplified policy based on Anthropic's documented starter configuration looks like this:
# .claude/approvals.yml version: 1 mode: observe rules: - purpose: "A change normally takes two people." paths: ["**"] verdict: { claude: comments, seats: 2 } override: - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } } advisory: [claude/code_review] - purpose: "Changes to review policies require two people." paths: ["**/.claude/**"] nested: inherit verdict: { claude: comments, seats: 2 } Let's understand the important parts of this configuration.
1. version: 1
Defines the policy schema version used by Claude Approvals.
2. mode: observe
Runs the policy in observation mode before enforcing its decisions.
3. paths: ["**"]
Matches all files in the repository.
4. verdict: { claude: comments, seats: 2 }
Normally requires two human approval seats and prevents Claude from issuing an approval under this verdict.
5. override
Introduces a conditional verdict. When the Code Review result is pass, the policy allows Claude to approve and reduces the requirement to one human seat.
6. paths: ["**/.claude/**"]
Matches files inside the .claude directories, including the approval policy itself.
7. nested: inherit
Keeps this rule applicable in covered nested directories that have their own policy files.
When multiple rules apply to the same file, Claude Approvals uses the strictest applicable verdict.
Therefore, changes to the approval configuration still require two human approval seats, and Claude cannot approve them through the general rule.
This example demonstrates how teams can combine path matching, conditional decisions, human approval requirements, and AI review results within one policy.
For the complete configuration reference, see Claude Approvals Policy Documentation.
Protecting Approval Policies Against Manipulation
There is an important security consideration when allowing an AI agent to evaluate approval policies.
Imagine a developer opens a Pull Request that modifies the following file:
.claude/approvals.yml
Suppose the developer changes the configuration from:
seats: 2
To:
seats: 0
If Claude evaluated the Pull Request using the modified policy contained inside that same Pull Request, the developer could potentially weaken the approval requirements for their own changes.
This would create a serious security problem because the system would be using an unapproved policy to decide whether that policy change should be accepted.
Claude Approvals addresses this by reading the policy from the repository's default branch.
This means that when a Pull Request modifies the approval policy, Claude evaluates it using the version already merged into the default branch.
The new policy only becomes effective for subsequent evaluations after it has been merged.
This is an important security principle: the rules governing a change should not be replaceable by the same unapproved change being evaluated.
How All Three Agents Work Together
Now that we understand the responsibilities of each component, let's combine them into a complete development workflow.
Imagine a Laravel application where a developer implements a new payment refund feature.
The Pull Request modifies:
app/Http/Controllers/PaymentController.php app/Services/PaymentService.php app/Models/Payment.php tests/Feature/PaymentRefundTest.php
The workflow can look like this:
Step 1: Code Review Inspects the Pull Request
After the developer opens the Pull Request, Code Review analyzes the changes.
It identifies a potential problem in the refund implementation and posts a finding explaining that the operation may process the same refund more than once.
Step 2: PR Steward Attempts to Fix the Issue
The developer asks PR Steward to handle the feedback.
PR Steward investigates the relevant implementation, modifies the code, and pushes a new commit.
It also explains what it changed and how the changes can be undone.
Step 3: CI Checks Run Again
After the new commit is pushed, GitHub runs the required automated checks.
The application tests, formatting checks, and other CI validations must still pass.
If a new issue appears, PR Steward can attempt to investigate and fix it.
Step 4: Claude Approvals Evaluates the Policy
Claude Approvals reads the policy from the default branch and checks which rules apply to the modified files.
Because the Pull Request changes payment-related code, the policy may require additional human approvals.
Claude can only approve if the applicable policy allows it and all required conditions are satisfied.
Step 5: GitHub Determines Whether the Pull Request Can Merge
Finally, GitHub evaluates the repository's merge requirements.
These may include:
• Required CI checks must pass.
• Required human approvals must be satisfied.
• Claude Approvals must pass if configured as a required check.
• Branch protection rules must be satisfied.
• The developer or integration must have the necessary permissions.
Once all requirements are met, the Pull Request can be merged.
The important point is that each agent handles a different responsibility, while GitHub continues to enforce the repository's merge requirements.
Using /ship Directly from Claude Code
Claude Ship also introduces a developer-focused workflow through a command called /ship.
Instead of manually performing every step after implementing a change, developers can run this command inside Claude Code.
Claude can then help with the following process:
1. Push the current changes.
2. Open a GitHub Pull Request.
3. Review the submitted changes.
4. Work through review feedback.
5. Investigate and attempt to fix failing checks.
For example, after completing a new API endpoint in a Laravel project, a developer can run:
/ship
Claude helps prepare the Pull Request and work through the issues that appear during the review process.
This is different from enabling Claude Ship automatically for an entire repository.
The /ship command is initiated by the developer, while administrators can configure repository-level automation so that the agents work on Pull Requests without requiring developers to invoke the command manually.
However, using /ship does not give Claude unlimited merge permissions. What can actually merge still depends on the developer's permissions and the repository's GitHub rules.
Important Risks and Security Considerations
Although Claude Ship introduces powerful automation capabilities, giving AI agents permission to modify and approve code creates new engineering challenges.
Several developers have already raised important concerns about these workflows.
1. Passing CI Does Not Always Mean the Problem Is Fixed
One concern is that an AI agent trying to make a failing CI check pass might modify the wrong thing.
Consider a test that verifies whether a payment refund is processed correctly.
If the test fails because the implementation contains a real bug, the correct solution is to fix the implementation.
However, an agent might weaken the test assertion, remove an important test case, or change the expected result simply to make the CI pipeline turn green.
The build would pass, but the original problem would remain.
This is why automated test results should be treated as verification signals rather than absolute proof of correctness.
Developers should inspect important test modifications and ensure that the original business requirements are still being tested.
2. Changes After Human Review
Another concern involves the timing of AI-generated commits.
Imagine a developer reviews a Pull Request and approves commit:
a1b2c3d
After the approval, PR Steward pushes another commit containing additional changes:
e4f5g6h
Now the Pull Request contains a different version of the code than the one originally reviewed.
The reviewer may have approved the previous version without ever inspecting the new changes.
This is why teams should ensure that approvals remain valid only for the exact code being merged.
GitHub provides branch protection options for dismissing stale approvals and requiring approval of the most recent reviewable push.
Some developers have also suggested locking merges to an exact Head SHA to prevent a Pull Request from merging a different commit than the one that was reviewed.
3. Can the Same AI Write and Approve Its Own Code?
A broader concern appears when the same AI system participates in code generation, code review, and approval decisions.
For example, an AI agent implements a feature, another AI process reviews the implementation, and an approval agent allows it to merge.
Even when these are separate agents, they may share similar assumptions or make correlated mistakes.
This creates an important question:
Should an AI system be allowed to approve code that was originally generated by an AI system?
For routine changes, some teams may accept this level of automation. However, critical operations such as payment processing, authentication, authorization, and data migrations should have stronger verification requirements.
Using independent human reviews, meaningful automated tests, and stricter approval policies can reduce the risk of relying on a single AI-generated decision.
4. Protecting Approval Policies
Approval configuration is itself part of the application's security boundary.
If developers can freely change the rules that determine who approves their changes, they may accidentally or intentionally weaken the review process.
Reading approval policies from the default branch helps prevent a Pull Request from changing the rules used to approve itself.
Teams should also protect changes to their policy files using stricter human review requirements.
5. AI Reviews Are Not a Guarantee of Security
Finally, AI-powered code review should not be treated as a complete replacement for security reviews or experienced engineering judgment.
Anthropic explicitly notes that Claude Ship may miss bugs, security vulnerabilities, or other issues.
AI review is an additional layer of protection, not a guarantee that a Pull Request is safe to merge.
Claude Ship and Existing GitHub Development Tools
Claude Ship is not the first solution to introduce AI into the code review process.
Several tools already provide AI-powered assistance for reviewing GitHub Pull Requests.
Some examples include:
• GitHub Copilot Code Review: Provides AI-powered code review directly within GitHub.
• Graphite AI Reviews: Analyzes Pull Requests and provides review feedback.
• OpenAI Codex: Supports AI-powered code review workflows through GitHub.
• CodeRabbit: Provides automated Pull Request reviews and can submit approving reviews when Automatic Approvals is enabled.
Most AI code review tools focus primarily on inspecting code and providing feedback.
CodeRabbit is an example of a tool that can also submit an approving review under configured conditions, while GitHub branch rules continue to control whether merging is allowed.
Claude Ship takes a broader approach by combining code review, automated fixes, and policy-based approval decisions.
What About CODEOWNERS and Branch Protection Rules?
Before Claude Approvals, GitHub teams already had mechanisms for controlling code ownership and merge permissions.
Two important examples are CODEOWNERS and Branch Protection Rules.
GitHub CODEOWNERS
A CODEOWNERS file defines which users or teams are responsible for reviewing specific files or directories.
For example:
# .github/CODEOWNERS /app/Services/Payment/ @payment-team /app/Http/Controllers/Auth/ @security-team /database/migrations/ @backend-team
In this example:
• Changes to payment services require the attention of the payment team.
• Changes to authentication controllers are assigned to the security team.
• Database migrations are assigned to the backend team.
This helps organizations ensure that sensitive parts of the application are reviewed by the appropriate people.
GitHub Branch Protection Rules
Branch protection rules and newer repository rulesets allow teams to define conditions that must be satisfied before changes can be merged.
These conditions can include:
• Requiring Pull Request reviews.
• Requiring a specific number of approvals.
• Requiring status checks to pass.
• Requiring approval of the most recent reviewable push.
• Preventing unauthorized users from merging changes.
Claude Ship works alongside these existing mechanisms rather than replacing them.
Anthropic describes Claude Approvals as a smarter version of CODEOWNERS because it introduces policy evaluation and AI-based decisions into the approval process.
The important distinction is that CODEOWNERS primarily identifies responsible reviewers, while Claude Approvals can evaluate whether a change satisfies a more detailed approval policy and whether Claude is allowed to approve it.
Useful references:
GitHub CODEOWNERS Documentation
GitHub Branch Rulesets Documentation
Availability, Pricing, and Limitations
Claude Ship is available for organizations using Claude Team and Enterprise plans with GitHub repositories.
However, its components have different availability statuses:
• Code Review: Generally Available.
• PR Steward: Public Beta.
• Claude Approvals: Public Beta.
Token-Based Pricing
Claude Ship usage is billed based on token consumption.
The actual cost depends on several factors:
• The number of Pull Requests processed.
• The size and complexity of the changes.
• The selected Code Review level.
• How frequently reviews are triggered.
• The amount of work PR Steward performs.
• The classifiers and reviews triggered by approval policies.
Administrators can configure spending limits for Code Review and PR Steward to control usage at the repository level.
Claude Approvals has no base charge, but classifier executions and Code Reviews triggered by its policies consume tokens and are billed.
Compliance Restrictions
Claude Ship is unavailable to organizations using certain compliance configurations, including:
• Zero Data Retention.
• HIPAA configuration.
• Customer-managed encryption keys.
Organizations should review these restrictions before enabling the service, especially when working with sensitive production data or regulated environments.
For the latest setup instructions and limitations, see the Claude Ship Documentation.
Conclusion
Claude Ship represents an important development in AI-assisted software engineering.
AI coding assistants initially focused on helping developers generate code, explain existing implementations, and fix individual bugs.
Claude Ship expands this role by introducing agents that can participate in code review, modify Pull Requests, resolve development issues, and evaluate approval requirements.
Its three components address different stages of the development workflow:
• Code Review identifies potential problems.
• PR Steward attempts to fix problems and prepare changes for review.
• Claude Approvals evaluates whether changes satisfy the team's approval policies.
However, automation does not eliminate engineering responsibility.
Teams still need meaningful tests, protected branches, clear approval policies, and human oversight for changes that carry significant business or security risks.
The biggest shift is not simply that AI can now review code or fix failing tests.
It is that AI agents are beginning to participate in the processes that determine how software changes are verified, approved, and delivered.
As AI-generated code becomes more common, the next challenge for engineering teams will be designing reliable systems that can verify and govern the code produced by these agents.
The question is no longer just how much code AI can write, but how much responsibility we can safely delegate to AI throughout the software development lifecycle.


