跳到主内容
@wquguru
精选88Claude 博客(sitemap)产品发布/更新多源精选 ×6

Anthropic发布Claude Ship自动化PR工作流

Introducing Claude Ship | Claude by Anthropic

原文
发到 X
推荐理由

Agent落地工程流的标杆案例,把Review到Merge全链路自动化了,做AI辅助开发的同学值得重点关注其策略配置思路。

Anyone who has opened a pull request knows how this goes. They start on the next thing, and then the review comes back. So they stop, dig back into the old code, push a fix, and wait for the review to run again. Then they go find someone to approve it.

任何提交过 pull request 的人都知道这个过程是怎样的。他们先转向下一项任务,然后审查意见回来了。于是他们停下手中的事,重新深入旧代码,推送修复补丁,并等待审查再次运行。接着他们去找人批准。

There's a good reason it works this way. Most teams want a person to approve every change, and that's easy to keep up with when people write every line. But a lot of developers build with agents now. On the Claude Code team, Claude writes most of our code, and we wanted everything after the PR to move that fast too.

这种工作方式有其合理之处。大多数团队希望由专人批准每项更改,当每个人逐行编写代码时,这很容易跟进。但现在许多开发者借助 AI 代理进行开发。在 Claude Code 团队中,Claude 编写了我们大部分的代码,我们希望 PR 之后的流程也能同样快速推进。

That's why we built Claude Ship, available today in beta. It can review PRs, fix them, and decide what's ready to merge based on policies each team sets. Teams stay in control of where it runs and which changes need a person. The goal: ship code as fast as teams write it.

这就是我们构建 Claude Ship 的原因,它现已提供公测版。它可以审查 PR、修复问题,并根据各团队设定的策略判断哪些内容已准备好合并。团队可以控制其运行范围以及哪些更改需要人工介入。目标是让代码的发布速度跟上团队的编写速度。

Eligible Claude Enterprise organizations can claim at least $10,000 in Claude Ship credits to use within 30 days of claiming. Claim by January 15, 2027. Terms apply.

符合条件的 Claude Enterprise 组织可申领至少 10,000 美元的 Claude Ship 积分,须在申领后 30 天内使用完毕。请于 2027 年 1 月 15 日前申领。适用条款。

How Claude Ship works: review, fix, and approve

Claude Ship 的工作原理:审查、修复与批准

Claude Ship is made up of Code Review, which is already generally available, and two new agents in beta: PR Steward and Claude Approvals. Together, they take a pull request through review, fixes, and an approval decision so teams don't have to manage each step manually.

Claude Ship 由已全面可用的 Code Review 和两个处于公测阶段的新代理组成:PR Steward 和 Claude Approvals。它们共同将 pull request 经历审查、修复和批准决策的全过程,使团队无需手动管理每个步骤。

Code Review performs an in-depth review of pull requests against the codebase through multiple lenses. It collects findings, adversarially verifies them, categorizes them, and posts them to a PR. On the Claude Code team, where Claude's review is one layer of a broader process, merged PRs more than doubled from June to September while the share reverted fell by more than 40%. Code Review gives teams fast reviews, clear findings, and a choice of Quick, Standard, or Deep review levels for each repository.

Code Review 通过多个视角对 pull request 与代码库进行深度审查。它会收集发现的问题,以对抗性方式验证这些问题,对其进行分类,并发布到 PR 中。在 Claude Code 团队中,Claude 的审查只是更广泛流程中的一层,从六月到九月,已合并的 PR 数量翻了一倍以上,而回退比例下降了超过 40%。Code Review 为团队提供快速的审查、清晰的发现结果,并为每个仓库提供 Quick(快速)、Standard(标准)或 Deep(深度)三种审查级别的选择。

PR Steward works to keep a PR green, but is designed not to approve or merge pull requests. It jumps in on failing CI checks, merge conflicts, and review feedback from Code Review, other review tools, or team members. After every push, it comments with what it changed and how to undo it. Developers can comment @claude with an instruction to steer the work, or @claude stop to have it step back.

PR Steward 致力于保持 PR 状态为绿色(即所有检查通过),但设计上不用于批准或合并 pull request。它会在 CI 检查失败、合并冲突以及来自 Code Review、其他审查工具或团队成员的审查反馈出现时介入。每次推送后,它都会评论说明自己做了哪些更改以及如何撤销这些更改。开发者可以通过评论 @claude 并附带指令来引导工作方向,或发送 @claude stop 让它停止操作。

From there, Claude Approvals applies an approval policy that the team writes as a file in the repository. Claude can approve routine changes on its own if the policy allows it, or can require deeper human sign-off for certain scenarios. It works like a smarter CODEOWNERS file. Teams can have Claude Approvals consider a variety of signals in its decision-making process, including Code Review findings or their own classifiers using natural language. For most customers, we recommend enabling this first in observe-only mode to build confidence before configuring branch protection to require Claude Approvals' green light.

在此基础上,Claude Approvals 应用团队在仓库中以文件形式编写的审批策略。如果策略允许,Claude 可以自行批准常规更改;对于某些场景,它也可以要求更深层次的人工签字确认。它的运作方式类似于更智能的 CODEOWNERS 文件。团队可以让 Claude Approvals 在决策过程中考虑多种信号,包括代码审查结果或使用自然语言构建的分类器。对于大多数客户,我们建议首先在仅观察模式下启用此功能,以建立信心,然后再配置分支保护以要求获得 Claude Approvals 的绿色许可。

Two ways to get started

两种入门方式

For developers: /ship it from Claude Code

对于开发者:从 Claude Code 使用 /ship 命令

Developers can try Claude Ship on their own pull requests with the new /ship command in Claude Code. When a change is ready, they run /ship. Claude pushes it, opens the PR, reviews the change, and works on feedback and failing checks to help get it ready to merge. What can merge depends on the developer's permissions and the repository's branch rules.

开发者可以在自己的拉取请求(Pull Request)中尝试 Claude Ship,方法是使用 Claude Code 中的新 /ship 命令。当更改准备就绪时,他们运行 /ship。Claude 会推送更改、打开 PR、审查更改,并处理反馈和失败的检查项,以帮助使其达到合并状态。能否合并取决于开发者的权限和仓库的分支规则。

For admins and engineering leaders: set the rules, one repository at a time

对于管理员和工程负责人:逐个仓库设置规则

Turning Claude Ship on for an entire repository puts it to work across a team's pull requests automatically, under settings and an approval policy the team controls. Developers don't need to manually invoke the /ship command.

为整个仓库开启 Claude Ship 后,它将在团队控制的设置和审批策略下自动应用于团队的拉取请求。开发者无需手动调用 /ship 命令。

  • Admins choose where it runs. An admin turns on Code Review and PR Steward for each repository. Claude Approvals starts when a connected repository has a policy file on its default branch, and an admin can turn it off.
  • Each repository gets the settings it needs. Admins choose the review level (Quick, Standard, or Deep), choose when reviews run, and configure spend limits.
  • Teams keep the tools they have. Claude Ship works with existing branch protection and required checks.
  • 管理员选择其运行位置。管理员为每个仓库开启代码审查(Code Review)和 PR Steward。当已连接的仓库在其默认分支上存在策略文件时,Claude Approvals 即开始工作,且管理员可以随时将其关闭。
  • 每个仓库获得所需的设置。管理员可以选择审查级别(快速、标准或深度),选择审查运行的时机,并配置支出限额。
  • 团队保留他们现有的工具。Claude Ship 与现有的分支保护和必需检查项配合工作。

Teams set the pace. They can start with one repository, choose a review level and when reviews run, set a monthly spend limit, and run their approval policy in observe mode until they trust it.

团队掌控节奏。他们可以从一个仓库开始,选择审查级别和审查运行时间,设置月度支出限额,并在信任该策略之前以观察模式运行其审批策略。

How the Claude Code team ships

Claude Code 团队的发布流程

We run Claude Ship on many of our own pull requests. One of the biggest changes is who can act on customer feedback. For example, a product manager on the Claude Code team can now read a piece of feedback, talk through ideas and tradeoffs with Claude Tag, have it open a PR, and move on to the next thing while Claude Ship takes it through review, fixes, and an approval decision.

我们在许多自己的拉取请求中运行 Claude Ship。最大的变化之一在于谁可以对客户反馈采取行动。例如,Claude Code 团队的产品经理现在可以阅读一条反馈,与 Claude Tag 讨论想法和权衡利弊,让它打开一个 PR,然后转向下一件事,而 Claude Ship 则负责对其进行审查、修复和审批决策。

Recently, a customer was confused because our Analytics API documentation implied an Admin key could pull Pro and Team usage. The PM asked Claude Tag whether a fix was in flight, and it opened one. Code Review found nothing blocking, a docs reviewer signed off, Claude Approvals passed, and the fix merged that same evening.

最近,一位客户感到困惑,因为我们的 Analytics API 文档暗示 Admin 密钥可以获取 Pro 和 Team 的使用情况。产品经理询问 Claude Tag 是否有修复计划,它随即创建了一个工单。代码审查未发现阻碍项,文档审核员签字批准,Claude Approvals 通过,该修复于当晚合并。

What customers are saying

客户的反馈

"We have had numerous cases where Claude Code Review caught real issues before a human reviewer got to the pull request, and PR Steward helped the contributor fix them. Our reviewers were already using Claude Code to keep up with the volume, so having Code Review, PR Steward and Claude Approvals start automatically when a pull request opens makes that simpler. We keep a human in the loop, and the human's time now goes to the changes that need it."

"在许多案例中,Claude Code Review 在人工审核员处理拉取请求之前就已发现真实问题,而 PR Steward 帮助贡献者修复了这些问题。我们的审核员已经在使用 Claude Code 来应对工作量的增长,因此让 Code Review、PR Steward 和 Claude Approvals 在拉取请求打开时自动启动,使得这一过程更加简便。我们保留了人工审核环节,现在人工的时间可以更多地投入到需要关注的变更上。"

Vatsal Bhatt, Director of Engineering, TELUS Digital

Vatsal Bhatt,TELUS Digital 工程总监

"PR Steward is helping teams in our pilot spend less time working through code review feedback and more time building. We can tailor it to our teams' processes, including how it suggests changes and organizes feedback. That flexibility has made it a useful part of the development workflow."

"PR Steward 正在帮助试点团队减少花在代码审查反馈上的时间,从而将更多时间用于构建。我们可以根据团队的流程对其进行定制,包括它如何建议更改和组织反馈。这种灵活性使其成为开发工作流中有用的组成部分。"

Alex Devkar, Senior Vice President, Engineering and Analytics, Carvana

Alex Devkar,Carvana 工程与分析高级副总裁

Availability

可用性

Claude Ship is available on Claude Team and Enterprise plans for repositories on GitHub. Code Review is generally available, and PR Steward and Claude Approvals are in beta.

Claude Ship 可在 GitHub 上的 Claude Team 和 Enterprise 计划中使用。Code Review 已全面可用,PR Steward 和 Claude Approvals 处于测试阶段。

Claude Ship usage is billed on tokens, so turning it on can add to an organization’s costs. The amount depends on the number and size of pull requests covered, the review level, how often reviews run, and how much work PR Steward does. Admins can set spend limits for Code Review and PR Steward. Claude Approvals has no base charge, but classifiers in a policy are billed on the tokens they use, and a policy that uses Claude's review triggers a billed Code Review, even in observe mode. Running /ship counts as regular Claude Code usage.

Claude Ship 的使用按令牌计费,因此开启它可能会增加组织的成本。具体金额取决于所覆盖的拉取请求的数量和大小、审查级别、审查运行的频率以及 PR Steward 的工作量。管理员可以为 Code Review 和 PR Steward 设置支出限额。Claude Approvals 没有基础费用,但策略中的分类器按其使用的令牌计费,且使用 Claude 审查触发的策略会触发计费的 Code Review,即使在观察模式下也是如此。运行 /ship 算作常规 Claude Code 使用。

Claude Ship is not available to organizations with Zero Data Retention, the HIPAA configuration, or customer-managed encryption keys.

Claude Ship 不适用于具有零数据保留、HIPAA 配置或客户管理加密密钥的组织。

Get started

开始使用

Developers can update Claude Code and run /ship on their next change. /ship is rolling out in Claude Code and the desktop app starting today.

开发者可以更新 Claude Code 并在下一次更改时运行 /ship。/ship 从今天开始在 Claude Code 和桌面应用中逐步推出。

Teams already using Code Review can add PR Steward on a repository, and an approval policy in observe mode.

已经在使用 Code Review 的团队可以在仓库中添加 PR Steward 和一个处于观察模式的审批策略。

Teams new to Code Review can read the setup guide to connect GitHub and turn on their first repository.

初次使用 Code Review 的团队可以阅读设置指南以连接 GitHub 并启用第一个仓库。

Learn more in documentation.

在文档中了解更多。

ArticleNov 23, 2026

文章 2026年11月23日

KPMG's Todd Lohr on AI when your data is also your clients' data

KPMG的Todd Lohr谈AI:当你的数据也是客户的数据时

Todd Lohr, KPMG US Vice Chair and Head of Client Technology & Innovation, on adopting frontier AI and building safeguards at the same time, and what that means for a firm that holds its clients' most sensitive data.

KPMG美国副主席兼客户技术与创新负责人Todd Lohr探讨在采用前沿AI的同时构建保障措施,以及这对一家持有客户最敏感数据的公司意味着什么。

Claude Enterprise

ArticleNov 23, 2026

文章 2026年11月23日

Zero data retention with Enterprise Frontier Safeguards is now in beta

Enterprise Frontier Safeguards 的零数据保留功能现已进入测试阶段

Claude Platform

ArticleNov 17, 2026

文章 2026年11月17日

Linked billing on the Claude Platform

Claude Platform 上的关联计费

Claude Platform

ArticleNov 17, 2026

文章 2026年11月17日

Using a "chaos loop" to harden the Claude Docs launch: 60 server errors across billions of requests

利用“混沌循环”加固 Claude Docs 发布:数十亿次请求中出现60次服务器错误

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →