Newsroom Wire

CN China11-27 16:41⏱ 10 min read

Anthropic Launches Claude Ship: Internal PR Merges Double in 3 Months, Rollback Rate Down Over 40%

Anthropic Launches Claude Ship: Internal

Claude has now written about 90% of the code, with daily code changes up from 2,500 to 30,000 and review coverage up to 54%. By Jiamei Zheng, edited by Feng Cen (Leiphone). Anthropic has just released Claude Ship, extending the scope of its AI agents further into the full delivery pipeline of the GitHub PR, from code review and automatically fixing CI failures to handling merge conflicts and approving PRs. The release brings a visible architectural change: instead of one agent doing everything, Anthropic splits Code Review, PR Steward, and Claude Approvals into three independent components that respectively handle review, fixes, and approval, collaborating around the same PR; when code problems appear, fixes trigger automatically, and the completed fix then re-enters the corresponding review and approval flow. Its policy-driven approval mechanism changes how AI participates in code delivery.

Claude has now written about 90% of the code, with daily code changes up from 2,500 to 30,000 and review coverage up to 54%. By Jiamei Zheng, edited by Feng Cen. Anthropic has just released Claude Ship, extending the scope of AI agents further into the full delivery pipeline of a GitHub PR. From code review and automatically fixing CI failures to handling merge conflicts and approving PRs, Claude is starting to take part in the complete engineering journey of a piece of code from commit to merge.

The release carries a visible architectural change: instead of letting a single agent do everything, Anthropic has split Code Review, PR Steward, and Claude Approvals into three independent components that respectively handle review, fixes, and approval. They collaborate around the same PR; when a code problem appears, a fix can be triggered automatically, and once the fix is done, the code moves into the corresponding review and approval flow.

Among them, the policy-driven approval mechanism Claude Ship introduces changes how AI participates in code delivery. Teams can define, in a YAML file, the relationships among code paths, scope of changes, review outcomes, and approval requirements, and the system dynamically judges approval conditions based on the actual modifications. Which operations an agent is allowed to perform thus gains a clear rule boundary.

This architecture touches a deeper engineering question: when AI starts modifying code autonomously, and even helps decide whether code can be merged, how do you avoid concentrating execution, review, and approval in the same agent? Claude Ship combines separation of duties with a policy engine to offer its own implementation path.

01 PR as the shared state layer for agent collaboration

Claude Ship makes the GitHub PR the shared working object of the three components. Diffs, commits, CI checks, review threads, and approval results stay in the PR; each agent works from this engineering state and writes execution results back. Task context no longer has to be passed along through conversation; code versions and operation records themselves carry the follow-up work.

Workflows are driven by PR events. PR creation, branch pushes, failing checks, and new review comments all influence subsequent execution. Teams can choose among three review levels, Quick, Standard, and Deep, and set them to run at PR creation, after every push, or on manual request.

Internally, Code Review uses a four-stage process: Find, Verify, Rank, and Post. In the Find stage, multiple agents read the diff and surrounding code in parallel, hunting for problems from angles such as logic errors, security flaws, and boundary conditions. The review scope extends beyond the modified lines, because whether a piece of local code runs correctly often depends on callers, data flow, and interface constraints.

The Verify stage re-checks candidate findings to confirm whether they are supported by actual code paths; the Rank stage deduplicates and orders them by severity; and the Post stage writes the results back into the PR as inline review comments and checks.

This design addresses a classic problem in code review: a model can spot suspicious code without necessarily being able to judge whether it constitutes a real defect. Independent verification filters out some judgments that lack contextual grounding. Note that Code Review inspects code read-only; it does not build or run the project, so actual execution results still have to come from CI.

PR Steward runs in cloud sessions, handling CI failures, merge conflicts, and review feedback tied to the current PR. It can modify files and push commits, explaining what each change does and how to revert it. For code adjustments with a clear scope it can act directly; when bigger architectural trade-offs are involved, it waits for a developer to decide.

It also has explicit trigger limits: PRs from forks, PRs created by bots, and PRs whose submitter lacks write access to the repository are skipped by default. While it runs, developers can adjust the task via @claude, or send @claude stop to terminate execution.

The architectural boundary here matters: PR Steward can write code but has no approval or merge authority. It produces new code versions, and subsequent approvals are handled by a separate mechanism. Fixing and authorization are split, so the agent executing the task does not also become its own acceptor.

02 Compiling repository conventions into approval policies

The core of Claude Approvals is .claude/approvals.yml in the repository. Teams write approval requirements as structured rules; the system matches rules against the files a PR modifies, then computes whether Claude can approve and how many human approval seats are needed.

Each rule mainly consists of paths, if, verdict, and override. paths specifies the file scope the rule covers; if describes the conditions under which the rule holds; verdict decides the approval outcome. Claude has three states, approves, comments, and blocks, meaning Claude may approve, may only leave review comments, or is barred from approving. seats sets the number of human approvers, and can restrict participants to a given GitHub Team or exclude the PR author.

Rules are evaluated file by file. The system checks which rules apply to each modified file, then aggregates the results across the whole PR. If one file matches multiple rules, the stricter constraint wins, with priority running blocks, comments, approves. The human approval seats required by different rules must each be satisfied separately.

Directory-level configuration further solves rule maintenance in large repositories. The system searches upward from the directory containing the changed file, using the configuration closest to the file path that is in Enforce state and covers that file. Upper-level policies can keep constraining lower directories through nested: inherit. An organization can maintain baseline rules at the root while business modules set local requirements based on their own code characteristics.

Conditional expressions can also read PR attributes such as file count, diff line count, author, initiator, and target branch, with logical combinations like ANY and ALL. One detail: pr/diff_lines counts the change size of the whole PR, while rule/files_changed counts only the files the current rule covers. The two metrics let teams manage overall change scale and per-module approval requirements at the same time.

override allows conditional branches on top of the base verdict, with the system adopting the first rule that matches, in configuration order. It can adjust the number of human approvals based on review results, or change whether Claude has approval authority at all.

This policy computation must account for model-call failures. If a classifier an override depends on returns no result, the system falls back to the base verdict; if the classifier appears in the rule's own if condition and has no result, the approval check fails. Base rules therefore need to keep approval requirements strict enough, so permissions are not accidentally loosened when model calls misbehave.

Another key security design: Claude Approvals reads the policy file from the default branch. Approval-rule changes still sitting unmerged in a PR do not apply to that PR; only once a rule lands in the default branch does it take part in later evaluations. This prevents a submitter from modifying approval conditions through the code under review to lower the bar for their own code.

Claude Approvals cannot read CI results directly; tests and builds still need to run as separate GitHub required checks. Its own check also has to be configured as a required check to actually participate in merge constraints. Observe Mode lets teams run the policies first, observe approval outcomes, and then decide whether to enable enforcement.

03 Letting semantic judgment into approvals

Path rules and PR attributes can describe where a modification happened and how large it is, but they cannot fully express what changed semantically. Claude Approvals fills in that layer of judgment through classifiers.

Teams can create classifiers in .claude/classifiers/, using def.yml to define the model, prompt, input parameters, and output range. The prompt describes the judgment task; outputs restrict what the model can return, for example low, medium, or high. The policy engine reads these structured results, then decides approval requirements according to conditions.

Anthropic ships two built-in classifiers: claude/code_review and claude/diff. The former reads Code Review's results, returning pass when no unresolved Important-level findings remain and fail when such issues persist. The latter compares old and new diffs, categorizing changes as trivial, same_intent, or different, judging whether later code modifications continue the original intent.

This surfaces one of the more technically interesting designs in Claude Approvals: reuse. After every push to a PR, whether existing human approvals remain valid has to be re-judged against the new version of the code. If every modification invalidated all historical approvals, humans would repeatedly process large numbers of small fixes; if old approvals were kept unconditionally, new code might inherit authorizations that no longer apply.

reuse lets teams set reuse conditions separately for human approval seats and classifier results. For example, prior human approvals only keep counting if the old and new diffs are judged same_intent and the new version's Code Review returns pass.

There are really two layers of judgment here: claude/diff checks whether the intent of the change continues, and claude/code_review checks whether the current version still has important problems. Only by combining both conditions can the system decide whether to keep historical approvals.

reuse also supports max_age to limit how long an evaluation result stays valid; past the deadline it must be recomputed. Approvals revoked on GitHub are generally not restored automatically, and force pushes can also affect the validity of old approvals. If the author ever filled one of the human approval seats, that seat may keep counting after reuse, so teams need personnel rules that exclude pr/authors to keep the author from standing in for independent approvers.

Classifiers can also be configured with tool permissions and execution budgets. Some classification tasks only need to read the diff; others may need to see surrounding code or review threads. The tool list decides what a classifier can access; the budget limits runtime and token consumption.

Review findings have their own permission management too. Teams can use findings to specify who has the right to close findings produced by classifiers. It matters to distinguish closing a review thread from fixing code: the former only changes an issue's handling status, while the latter changes the actual implementation. Without personnel permission constraints, review status could be changed by hand, which would in turn affect later approvals.

Semantic classification carries input risks too. PR descriptions and code files can contain instruction text that interferes with the model's judgment; even with outputs restricted to fixed categories, the model's judgment can still skew. So policies covering high-risk code should still keep human approvals, and permission requirements should not be lowered on classifier output alone.

04 The engineering challenges after code-delivery automation

Claude Ship can shorten the waits between code submission, review, and fixes, but software delivery efficiency does not depend entirely on how fast PRs are handled.

As agents keep participating in code modification, review quality, fix scope, and the cumulative effects of multiple rounds of changes will become the key measures of this kind of system. Especially in large projects, local code passing review does not mean the whole system behaves as designed.

The maintenance cost of approval policies also needs weighing. As business modules grow, team responsibilities shift, and code structure evolves, inheritance relations among rules, exception conditions, and classification standards all need continuous updating. If the time automation saves is eaten up by policy maintenance and exception handling, its real engineering benefit has to be recalculated.

So judging Claude Ship cannot stop at how many PRs it can handle independently; one also has to watch the rollback rate, missed defects, the frequency of human intervention, and overall delivery cost. Compared with simply raising the speed of code production, keeping these automation capabilities running stably over the long term in complex engineering environments may be the problem Anthropic needs to solve next.

Reference: https://claude.com/resources/articles/introducing-claude-ship

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…