Anthropic Launches Claude Ship, Covering the Complete GitHub PR Delivery Workflow
Anthropic has launched Claude Ship, extending AI agents into GitHub PR review, remediation, and approval workflows. The system consists of three independent components—Code Review, PR Steward, and Claude Approvals—which work together, while YAML policies and a Classifier control approval permissions. About 90% of Anthropic’s internal code is now written by Claude; within three months, the number of merged PRs doubled, while the rollback rate fell by more than 40%.
Why read this
SelectedAI score 78
The combination of separation of responsibilities, policy-based approvals, and semantic classification provides teams with a concrete reference for designing controllable agentic code delivery workflows.
Topics
Body · AI translation
Claude now writes approximately 90% of the code, daily code changes have risen from 2,500 to 30,000 lines, and review coverage has increased to 54%.
By Zheng Jiamei
Edited by Cen Feng
Just now, Anthropic launched Claude Ship, further extending the scope of AI agents to the complete GitHub PR delivery workflow.
From code review and automatic remediation of CI failures to resolving merge conflicts and approving PRs, Claude is beginning to participate in the entire engineering process, from code submission through merging.
This release features a notable architectural change: rather than having a single agent handle everything, Anthropic has divided Code Review, PR Steward, and Claude Approvals into three independent components responsible for review, remediation, and approval, respectively. They collaborate around the same PR: when an issue is found in the code, a fix can be triggered automatically, after which the PR proceeds through the corresponding review and approval processes.
In particular, the policy-driven approval mechanism introduced by Claude Ship changes how AI participates in code delivery. Teams can use YAML files to define relationships among code paths, the scope of changes, review outcomes, and approval requirements, allowing the system to dynamically determine approval conditions based on the actual modifications. This also establishes clear rule-based boundaries around the actions an agent may perform. Leifengwan
This architecture raises a deeper engineering question: when AI begins modifying code autonomously and even participates in deciding whether code can be merged, how can execution, review, and approval be prevented from becoming concentrated in the hands of the same agent? By combining separation of duties with a policy engine, Claude Ship offers its own implementation approach.
01
PRs become the shared state layer for agent collaboration
Claude Ship uses GitHub PRs as the shared work object for its three components. Diffs, commits, CI checks, review threads, and approval results remain in the PR. Each agent works from these engineering states and writes its results back to the PR. In this way, task context no longer depends on being passed through conversations; the code version and operation records themselves can carry subsequent tasks forward.
The workflow is driven by PR events. PR creation, branch pushes, failed checks, and newly added review comments all affect subsequent execution. Teams can choose among three review levels—Quick, Standard, and Deep—and configure reviews to run when a PR is created, after every push, or upon manual request.
Code Review uses a four-stage process internally: Find, Verify, Rank, and Post. During the Find stage, multiple agents read the diff and surrounding code in parallel, looking for issues such as logic errors, security flaws, and edge cases. The scope of review extends beyond the modified lines because whether a local piece of code functions correctly often depends on its callers, data flows, and interface constraints.
The Verify stage rechecks candidate findings to confirm that the issues are supported by actual code paths. The Rank stage deduplicates and ranks them by severity, while the Post stage writes the results to the PR as inline review comments and checks.
This design addresses a typical problem in code review: a model may identify suspicious code without necessarily being able to determine whether it constitutes a genuine defect. Independent verification can filter out some judgments that lack contextual support. It is important to note that Code Review examines code in read-only mode and does not build or run the project, so CI is still needed to provide actual execution results.
PR Steward runs in a cloud session and handles CI failures, merge conflicts, and review feedback related to the current PR. It can modify files, push commits, and explain what each modification changes and how to revert it. It can directly carry out clearly scoped code changes, but when larger architectural trade-offs are involved, it waits for a developer to decide.
It also has explicit triggering restrictions: PRs originating from forks, created by bots, or submitted by users without write access to the repository are skipped by default. While it is running, developers can adjust the task through @claude or stop execution by sending @claude stop.
The architectural boundary here is important: PR Steward can write code, but it has no authority to approve or merge. It is responsible for producing a new version of the code, while subsequent approval is handled by an independent mechanism. Remediation and authorization are separated, preventing the agent performing the task from also serving as its own reviewer.
02
Compiling repository standards into approval policies
At the core of Claude Approvals is the repository’s .claude/approvals.yml file. Teams express approval requirements as structured rules. The system matches those rules against the files modified in a PR, then determines whether Claude may approve it and how many human approval seats are required.
Each Rule primarily consists of paths, if, verdict, and override.
paths specifies the range of files covered by a rule, if describes the conditions under which the rule applies, and verdict determines the approval outcome. For claude, there are three states—approves, comments, and blocks—meaning, respectively, that Claude is allowed to approve, is only allowed to leave review comments, or is prevented from approving. seats specifies the number of human approvers required and can also restrict participants to members of a particular GitHub Team or exclude the PR author.
These rules are evaluated file by file. The system checks which Rules apply to each modified file, then aggregates the results for the entire PR. If a single file matches multiple rules, the most restrictive result is retained, with the priority order being blocks, comments, and approves. Human approval seats required by different rules must also be satisfied separately.
Directory-level configuration further addresses the challenge of maintaining rules in large repositories. The system searches upward from the directory containing a modified file and uses the configuration that is closer to the file path, has Enforce status, and covers the file. A higher-level policy can continue to constrain lower-level directories through nested: inherit. Organizations can maintain baseline rules in the root directory, while business modules can set local requirements based on the characteristics of their own code.
Conditional expressions can also access attributes such as a PR’s number of files, Diff line count, author, initiator, and target branch, and they support logical combinations such as ANY and ALL. There is an important distinction here: pr/diff_lines measures the size of the entire PR, while rule/files_changed counts only the files covered by the current rule. These two measurement scopes allow teams to manage both the overall size of a change and the approval requirements of individual modules.
override allows conditional branches to be added on top of the base Verdict, with the system using the first matching rule in configuration order. It can adjust the number of human approvals based on review results or change whether Claude has permission to approve.
This policy computation must account for model call failures. If a classifier used by an Override returns no result, the system falls back to the base Verdict. If a classifier used in a Rule’s own if clause returns no result, the approval Check fails. Baseline rules therefore need to retain sufficiently strict approval requirements to avoid inadvertently relaxing permissions when model calls fail.
There is another key security design: Claude Approvals reads policy files from the default branch. Changes to approval rules in a PR that has not yet been merged do not apply to that PR; only after the rules enter the default branch will they be used in subsequent evaluations. This prevents contributors from modifying approval conditions in code awaiting review to lower the bar for their own changes.
Claude Approvals cannot directly read CI results, so tests and builds must still run as separate GitHub Required Checks. Its own Check must also be configured as a Required Check to actually participate in merge constraints. Observe Mode allows teams to run policies and observe approval results before deciding whether to enable enforcement.
03
Bringing semantic judgment into approvals
Path rules and PR attributes can describe where a change occurred and how large it is, but they cannot fully express what changed semantically in the code. Claude Approvals adds this layer of judgment through Classifiers.
Teams can create classifiers in .claude/classifiers/ and use def.yml to define the model, Prompt, input parameters, and output range. The Prompt describes the evaluation task, while outputs restricts the results the model may return, such as low, medium, and high. The policy engine reads these structured results and then determines approval requirements based on its conditions.
Anthropic provides two built-in classifiers: claude/code_review and claude/diff.
The former reads Code Review results and returns pass when there are no unresolved Important-level findings, or fail when such issues remain. The latter compares the old and new Diffs and classifies the change as trivial, same_intent, or different, determining whether subsequent code changes continue the original intent.
This introduces one of the more technically sophisticated designs in Claude Approvals: reuse. After every Push to a PR, whether existing human approvals remain valid must be reassessed against the new version of the code. If every modification invalidated all historical approvals, humans would have to repeatedly process large numbers of localized fixes. If old approvals were retained unconditionally, however, new code could continue relying on authorization that was no longer applicable. Leiphone
reuse allows teams to separately configure the conditions for reusing human approval seats and classifier results. For example, previous human approvals may continue to count only when the old and new Diffs are classified as same_intent and the new version’s Code Review returns pass.
There are actually two layers of evaluation here: claude/diff checks whether the intent of the changes has been preserved, while claude/code_review checks whether the current version still contains important issues. Only by combining both conditions can the system decide whether to retain historical approvals.
reuse also supports using max_age to limit how long evaluation results remain valid; once the time limit is exceeded, they must be recomputed. Approvals revoked on GitHub generally are not automatically restored, and a force push may also affect the validity of old approvals. If the author previously filled a human approval seat, that seat may continue to count after reuse. Teams therefore need to exclude pr/authors through participant rules to prevent authors from substituting for independent approvers.
Classifiers can also be configured with tool permissions and execution budgets. Some classification tasks only need to read the Diff, while others may need to inspect surrounding code or review threads. The tool list determines what a classifier can access, while the budget limits runtime and Token consumption.
Review findings have separate permission controls as well. Through findings, teams can specify who is authorized to close findings generated by classifiers. It is important to distinguish between closing a review thread and fixing the code: the former changes only the issue’s handling status, while the latter changes the actual implementation. Without restrictions on who has this permission, review statuses could be altered manually and thereby affect subsequent approvals.
Semantic classification also carries input risks. PR descriptions and code files may contain instructional text that interferes with the model’s judgment. Even when outputs are restricted to fixed categories, the model’s assessment may still be biased. Policies covering high-risk code should therefore retain human approval requirements rather than lowering permission requirements solely on the basis of classifier output.
04
Engineering challenges after automating code delivery
Claude Ship can reduce the waiting time between code submission, review, and remediation, but software delivery efficiency does not depend entirely on PR processing speed.
As agents continue to participate in code changes, review quality, the scope of fixes, and the cumulative effects of multiple rounds of modification will become key measures of the system. Particularly in large projects, code passing review locally does not mean that the behavior of the system as a whole meets design expectations. Leiphone
The cost of maintaining approval policies must also be considered. As business modules are added, team responsibilities shift, and code structures evolve, inheritance relationships between rules, exception conditions, and classification criteria must be continuously updated. If the time saved through automation is consumed by policy maintenance and exception handling, its actual engineering benefits will need to be reassessed.
Claude Ship therefore cannot be evaluated solely by how many PRs it can handle independently. Its rollback rate, missed defects, frequency of human intervention, and overall delivery cost must also be examined. More than merely increasing the speed of code production, ensuring that these automated capabilities can operate reliably over the long term in complex engineering environments may be the challenge Anthropic needs to solve next.
AI Trends