AI Trends

Claude Code Team’s Addy Osmani Explains How /ship Takes Over PR Reviews, Fixes, and Follow-Ups

Shao MengUpdated Nov 25 12:16

AI summary

Addy Osmani explains how Claude Code’s /ship commits changes, creates and reviews PRs, and continuously handles failed checks, conflicts, and feedback. Local follow-up can continue for up to seven days, with no more than three fixes pushed for the same issue, while major design decisions remain in human hands. The article also distinguishes the local command from the team version, Claude Ship, and explains permission risks involving automatic merging, credentialed execution, CI, branch protection, and approval policies.

Why read this

SelectedAI score 79

The article outlines the boundaries of PR follow-up automation and its permission risks, offering a configuration reference for teams adopting coding agents.

Topics

Tags

Quoted post

ClaudeDevs

@ClaudeDevs

A practical guide to shipping with Claude Code: how to hand off PR follow-up work to Claude Ship and stay in flow. https://claude.dev/blog/the-work-after-you-open-a-pr/

View original

A practical guide to shipping with Claude Code: how to hand off PR follow-up work to Claude Ship and stay in flow. https://claude.dev/blog/the-work-after-you-open-a-pr/

View original post

Body · AI translation

Claude Code’s Addy Osmani explains /ship in detail: How AI takes over review, fixes, and ongoing follow-up after a PR is opened

Once the code is written and the PR submitted, developers often still have to repeatedly deal with CI failures, review comments, and merge conflicts. In an official article, Addy Osmani explains how to hand this follow-up work over to an Agent, along with the permission constraints that cannot be skipped. https://claude.dev/blog/the-work-after-you-open-a-pr/

# What work does /ship take over?

In GitHub projects, /ship can commit changes, push a branch, and create a PR, then invoke /code-review to review it, fix issues it determines to be valid, and continue handling failed checks, conflicts, and feedback. If a PR already exists and does not need another review, you can use /steward to begin following up directly.

Local follow-up can continue for up to seven days and ends when the PR is merged or closed. It will push fixes for the same issue at most three times; if the issue remains unresolved, it hands the work back to the author. Major decisions, such as redesigning an API or expanding the scope, should also be left to people.

Check the workspace before running it. /ship’s initial commit is similar to git add -A and may include every uncommitted file; for public repositories, you must instead commit manually first. Checking for secret filenames is no substitute for inspecting file contents, and rules files must also be committed manually.

# Distinguish between local commands and team services

Local commands use your identity and quota. They require the session to remain open, the computer to stay awake, and the current branch to be preserved. To continue developing other tasks, use a separate working directory. Unattended operation requires auto mode; modes that skip permission checks do not support follow-up, and follow-up will not start on native Windows either.

The team version, Claude Ship, is configured by an administrator and runs in Anthropic’s cloud by default. Code Review finds issues, PR Steward fixes them, and Claude Approvals determines who must approve according to repository policy.

Code Review is now generally available, while the other two features are in public beta. The team services are available to Team and Enterprise customers on GitHub and are billed separately by token. Organizations with zero data retention, HIPAA configurations, or customer-managed encryption keys cannot currently use them.

# Not merging directly does not mean automatic merging cannot happen

During local unattended operation, direct merges and force pushes are restricted, and PR Steward is also designed neither to approve nor merge. However, once its fixes make the checks pass, automatic merging already enabled in GitHub may still be triggered.

A more direct risk is that local follow-up merges in the base branch and runs tests, with code executing under your credentials. It should therefore be used only in repositories involving trusted collaborators. Git operations performed during follow-up do not run the repository’s Git hooks, so required checks must be placed in CI and branch protection rules.

Claude Approvals should first be used in observe mode, comparing its policy decisions with the results of human review before deciding whether to enforce them. Observe mode may still incur review or classifier charges. Claude’s approvals also count as genuine GitHub approvals and cannot be configured separately from branch rules.

# My own take

Claude Code turns the repetitive rework that follows a submission into a trackable process. Recurring coding conventions should be recorded in CLAUDE.md, while verification steps and maintenance requirements should be turned into Skills, reducing the need for the Agent to rediscover them each time. Another detail is that local /code-review does not read REVIEW.md, so you cannot simply assume that all review entry points share the same rules.

The best tasks to delegate first are clearly defined, minor fixes. Design disputes, security judgments, and merge criteria still need human ownership. Addy also stresses that whoever invokes the Agent is responsible for its changes, just as if they had written the code themselves.

Source

Shao Meng