跳到正文
𝕏 Addy Osmani(x.com)·· 39 分鐘前精選品質評分79
重點導讀

寫完程式碼送出 PR 後,開發者常得來回處理審查意見、修正問題、等檢查重跑,再找人核准。

  • Claude Ship 把這些工作分成三部分:Code Review 會檢查 PR 並留言。
  • PR Steward 會處理失敗的 CI 檢查、合併衝突和審查意見,但不會核准或合併 PR。
  • Claude Approvals 則依團隊寫在專案中的規則,決定例行變更能否自動核准,或是否需要人工核准。團隊可選擇審查深度、設定花費上限,並先用只觀察、不執行核准的模式。這項服務適用於 GitHub 上 Team 和 Enterprise 方案的專案,費用依 token 用量而異。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

推薦理由

Claude Ship 把程式碼審查、修正與核准政策串進同一個流程,能看出團隊如何依自己的規則安排 AI 助理與人工審查。

Addy Osmani
Addy Osmani@addyosmani
·39 分鐘前
𝕏

Introducing Claude Ship! 🚀 Claude can take a PR through review, fixes and an approval decision based on your team's policy.

If you've ever opened a PR, you know the flow: You open a PR and move on to your next task, then you get the review and you go back and fix something and you wait for the review to rerun and then you have to go find an approver. That's how it's designed to work: Most teams want a human to approve changes, and if you're writing code line by line, that's feasible. But many developers are already writing code with agents.

As the Claude Code team, we write most of our code with Claude. But we wanted post-PR to move just as quickly as the pre-PR part. Claude Ship evaluates your PRs, works on fixes, and determines when they can be merged based on policies that you define for your team. It is comprised of three components: Code Review (generally available): Performs a multi-faceted, in-depth review of a PR against your codebase. It collects findings, adversarially verifies them, classifies them, and posts comments on your PR.

You select from a tiered review depth for each repo: Quick, Standard, or Deep.

PR Steward (beta): Works to keep a PR green by responding to failing CI checks, merge conflicts, and comments from Code Review, other review tools, or reviewers. After every push it posts comments detailing what it did and how to revert those actions. You direct it with Claude comments or stop to have it step back. PR Steward is not designed to approve or merge PRs.

Claude Approvals (beta): Applies a policy that your team writes as a file in the repo. You can think of it as a smarter CODEOWNERS that approves routine changes autonomously if your policy allows it, or asks for human approval in specific situations. Claude can take into account Code Review findings and your own natural language classifiers. For most teams, we recommend starting in observe-only mode to gain confidence before enabling it as a required check in your branch protection configuration.

You can use Claude Ship in two ways: As a developer, upgrade your local CLI to the latest version of Claude Code and type /ship when you're ready to push a change.

Claude pushes the change, creates the PR, reviews it, and responds to feedback or failing checks. Whether the change can be merged is determined by your permissions and your repo's branch protection rules. As an admin or engineering lead, you can enable Claude Ship on a repo-by-repo basis and have it run automatically across your team's PRs. You turn on Code Review and PR Steward per repo, and Claude Approvals starts when a connected repo has a policy file on the default branch. You can leverage your existing branch protection and required checks.

You decide what review depth to use, when reviews run, and your spend limits, enabling a gradual rollout and pace of adoption.

Claude Ship is available for repos on GitHub on the Team and Enterprise plans. Costs are billed by tokens and will vary based on the number of PRs it touches, the review depth, and the effort put in by PR Steward. As an admin, you can set spend limits for Code Review and PR Steward.

Hope it's useful!

推文來源 · X (Twitter)在 X 參與討論

讀者討論

理性交流 · 即時討論