Guide · Claude Code

Claude Ship: How to Turn On Code Review, PR Steward, and Claude Approvals

Last updated: AI-generated

Three agents for GitHub pull requests, turned on in the order the docs give, plus the /ship command that does the same thing on a pull request of your own.

Short version: Claude Ship is three agents for pull requests on GitHub: Code Review finds problems, PR Steward pushes fixes, and Claude Approvals checks a pull request against an approval policy you write yourself. An Owner of your Claude organization turns them on under Organization settings > Claude Ship, one at a time and in one repository first. To see the same thing on a pull request of your own, you need none of that: /ship in Claude Code does the review and the fixes locally, in your session and against your usage.

Overview

Code ReviewPR StewardClaude Approvals/ship and /steward
What it doesreads a change alongside the surrounding code and posts findings as inline comments, ranked by severityworks on failing checks, merge conflicts, and review comments, and pushes commitsa check that reports who still has to approveopens the pull request, gets a review, works on feedback and failing checks
Statusgenerally availablepublic betapublic betain the Claude Code CLI
Who turns it onan Owner of the Claude organizationan Ownerwhoever can merge into the default branch, through a file in the repositoryyou, per session
Where it’s turned onOrganization settings > Claude Shipsame page.claude/approvals.yml in the repositorynothing to turn on
Billingtokens, from the organization’s usage creditstokens, sameclassifier runs and the reviews a policy asks foryour own usage

Claude Ship is available on Team and Enterprise plans. It isn’t available to organizations with Zero Data Retention enabled, the HIPAA configuration applied, or customer-managed encryption keys; Approvals has further limits. Each agent is billed on token usage through your organization’s usage credits, separately from your plan’s included usage. Eligible Enterprise organizations can claim promotional Claude Ship credits.

What actually merges is decided by your settings and your GitHub branch rules.

The order

The docs give an order, and it has a practical reason: each step starts costing money as soon as it runs, and PR Steward has no spend limit of its own until you set one.

  1. Turn on Code Review, in one repository.
  2. Turn on PR Steward, and start with Manual (@claude steward) for the setting that chooses when it starts.
  3. Turn on Claude Approvals in observe mode (mode: observe). Observe mode is billed too.

Everything else lives under Organization settings > Claude Ship on claude.ai, and every step there needs the Owner role.

Step 1: Code Review

Reviews run on Anthropic infrastructure, so you add no workflow files to your repositories.

First, make sure you have this access, or someone who does:

AccessNeeded for
Owner role in your Claude organizationevery step on the admin page
Owner of the GitHub organizationinstalling the Claude GitHub App and linking it to your Claude organization
Write access to each repository, from the GitHub account you connect to Claudeadding the repository

Then:

  1. Under Organization settings > Claude Ship, turn on the switch under Review and click Turn on in the dialog.
  2. If a Connect GitHub dialog opens, click Connect. On GitHub Enterprise Server, select your instance in the dialog first.
  3. If the repositories you want aren’t listed in Add a repository, click Install GitHub App: pick the GitHub organization, choose which repositories the app can access, and approve the permissions. The set is broader than a review uses, and other Claude features share it. If a Finish connecting GitHub button appears afterwards, click it.
  4. Select your repositories and click the button that adds them, which reads Add 2 repositories when you’ve selected two.
  5. In the Choose what Claude does on these repositories dialog, leave Code review selected and clear Steward unless you want PR Steward on those repositories too. Then click Turn on; that click is what turns Code Review on. Close the dialog any other way and your repositories stay added with nothing turned on.
  6. Open a test pull request, not as a draft. A check run named Claude Code Review appears within a few minutes. If the repository is already set to Manual (@claude review), comment @claude review to start the first review.

Every repository you add starts at After every push, the setting that runs the most reviews.

How thorough, and how often

The review level decides depth and price. Set an organization default under Review level and confirm with Change level; for a single repository, click Edit on its row, where the first option, Default, follows the organization.

LevelWhat it trades
Quicka lighter pass, fastest and cheapest
Standardthe default; balanced depth, speed, and cost
Deepthe most thorough pass, slowest and most expensive

When a review runs is set per repository under Review runs:

  • Once after PR creation: when a pull request is opened, reopened, or marked ready for review.
  • After every push: on pushes to the pull request branch, and it also auto-resolves threads when you fix a flagged issue.
  • Manual (@claude review): never by itself. @claude review requests one, and @claude review always also subscribes the pull request to reviews on later pushes.

Drafts and pull requests from forks skip automatic reviews whichever option you choose. Developers without the Owner role can still comment @claude review; that needs write access and works on drafts and fork pull requests. With REVIEW.md and CLAUDE.md in the repository, they change what a review flags. Reviews they request are billed to your organization.

To cover a whole GitHub organization, set Review runs on its row in the Repositories table. That takes three things: the GitHub account you connected is an owner of that GitHub organization, the organization is on github.com, and a monthly spend limit is set. It can raise spend significantly.

Step 2: PR Steward

PR Steward pushes commits to pull requests, which is why the docs want your branch rules in place first.

In your Claude organization you need the Owner role, usage credits, and the GitHub connector turned on under Organization settings > Connectors. On GitHub you need to be an owner of the GitHub organization, an admin of the repository (a private repository also needs a paid GitHub plan), and to have push access from the account you connect to Claude.

Branch rules first

  1. Add a ruleset rule on the default branch that requires a pull request with at least one approval.
  2. In that rule, dismiss stale approvals when new commits are pushed, or require approval of the most recent push.
  3. Keep the Claude GitHub App off the ruleset’s bypass list. On GitHub Enterprise Server, that’s the app your organization created. If PR Steward runs in a self-hosted environment, keep the runner’s git identity off it as well.
  4. Add rules to any other branch PR Steward shouldn’t push to, and block force pushes where you don’t want them.

Where a Claude Approvals policy lets Claude approve, Claude’s review can count as the approval in step 1.

Then turn it on

  1. Add the repository under Repositories if it isn’t listed. If a dialog then asks what Claude does on it, click Not now, which keeps the repository listed.
  2. Under the Steward switch, use Runs for to set whose pull requests PR Steward works on: All eligible authors, or Listed users only with GitHub usernames to pilot with a few people. On GitHub Enterprise Server, select All eligible authors, because PR Steward doesn’t start there with a list.
  3. Click the Steward switch, then Turn on.
  4. Go to Organization settings > Usage and set the limit in the PR Steward row under Services. Until you do, PR Steward has no spend limit of its own.
  5. On the Claude Ship page, click Edit beside the repository, set Steward to Manual (@claude steward), then click Change beside Steward spend cap and enter the cap in US dollars.
  6. Test it: open a pull request from an account that has write access and that Runs for covers, and comment @claude steward. The claude-pr-steward-watching label and a comment headed Claude PR Steward appear.

When PR Steward starts is set per repository in the Steward menu:

OptionWhen PR Steward starts
Manual (@claude steward)when a person with write access comments @claude steward or adds the claude-pr-steward-watching label
Onwhen a pull request is opened, reopened, or marked ready for review, and at the next push to an open one it hasn’t started on before
On (including drafts)the same as On, and on draft pull requests
Offnever in that repository

To skip an author, add their GitHub username to Excluded users under the Steward switch. Once PR Steward’s fixes match what your reviewers would do, set the repository to On. PR Steward can be on in up to 256 repositories.

Watching the spend

A repository’s estimated spend is in its Edit dialog, and your organization’s estimated total over the last 30 days is at claude.ai/analytics/pr-steward. When PR Steward reaches a limit, it says so in a comment on the pull request:

  • Its monthly limit, or your organization’s usage-credit limit: PR Steward pauses, and picks up again at the next push or comment once usage credits can pay.
  • The spend cap: PR Steward stops on that pull request. Spend can pass the cap before it stops. A person with write access can start it again with the full cap, and when PR Steward works on a pull request for more than about a week it can start a new cloud session, so the full cap applies again.

With no usage credits left to spend, PR Steward doesn’t start, and the Claude Ship page shows Steward cannot start on pull requests.

Environment and credentials

When PR Steward needs more to build and test your code, select a Default environment under Where it runs; to override it for one repository, click Change beside Environment in the Edit dialog. With neither set, PR Steward can use your organization’s default environment. If that default is self-hosted, select an environment under Where it runs, or pull requests can get a comment that PR Steward hasn’t started. If your organization has no default, PR Steward runs in an Anthropic-hosted environment with no setup script and no environment variables. Runners in a self-hosted environment need Claude Code v2.1.317 or later.

To give PR Steward a credential, such as a login for a private package registry, keep it in a Claude Tag bundle: go to Organization settings > Claude Tag, select the Bundles tab, open the bundle, turn on the switch in the PR Steward row under Where it applies, and click Save changes. The switch covers every credential in the bundle, across your organization. Without it, an install or a test fails with a 403 that starts like this:

denied by policy: this host's bundle of logins and rules isn't turned on for PR Steward

PR Steward works unattended and reads pull request text other people write, which could steer how it uses a credential. Limit each credential to the hosts and permissions that building and testing your code needs. If a bundle holds more than PR Steward needs, create a bundle with that one credential.

Step 3: Claude Approvals

Approvals is a check on GitHub pull requests that reports who still has to approve. You don’t turn it on from the admin page but with a file: .claude/approvals.yml in the repository’s root, on its default branch. Once the file is there, Approvals can start billing.

For that you need a Claude organization that qualifies, with usage credits; the Claude GitHub App installed on the repository and linked to your organization; permission to merge into the default branch; admin access to the repository on GitHub to require the check (a private repository also needs a paid GitHub plan); and two people with write access before you enforce a policy, because both starter policies in the docs require two people on a change under .claude/, and that includes the policy file itself.

This starter policy asks for two people on each change and lets Claude only comment:

# .claude/approvals.yml
version: 1
mode: observe
rules:
  - purpose: "A change takes two people."
    paths: ["**"]
    verdict: { claude: comments, seats: 2 }
    advisory: [claude/code_review]
  - purpose: "A change to the review rules takes two people."
    paths: ["**/.claude/**"]
    nested: inherit
    verdict: { claude: comments, seats: 2 }

The other starter policy lets Claude approve once claude/code_review reads pass, and lowers the count to one person. For that it puts claude/code_review in an if condition instead of under advisory, which starts a billed review at each push.

To have Claude write the policy file, type /claude-approvals at the Claude Code prompt followed by what you want. That needs Claude Code v2.1.331 or later and a session that fetches feature flags.

Observe mode, then enforcement

The mode key takes one of two values:

ValueWhat happens
observethe check shows what the policy would decide, Claude doesn’t approve, and the check normally counts as passing
enforcethe check can block a merge, and Claude can approve where the policy allows it. This is the default, so a policy file with no mode line is enforced

Turning it on in observe mode:

  1. Add the policy file in a pull request of its own, from a branch in the repository.
  2. Merge when Claude comments that it “found the policy file in this change valid”. If the file is invalid, a failed check titled This change breaks a policy file appears; fix it in that pull request.
  3. Open another pull request into the default branch, not as a draft. A Claude Approvals check appears with a title that starts (observe mode).

Enforcing it, once the titles you see in observe mode match what your reviewers decide:

  1. Delete the mode: observe line and merge that change.
  2. Five minutes after the merge, comment @claude approvals rerun on each open pull request whose check title starts with (observe mode) or Observe mode ended. On a pull request from a fork, read the change first and add the latest commit’s full SHA. Keep open pull requests out of the merge queue until you’ve done this.
  3. In GitHub, for the default branch and each branch you listed, require status checks to pass and add Claude Approvals. As its source, select the Claude app that reported it.
  4. Confirm it: open a pull request that changes a file under .claude/. When the check finishes, the title reads Waiting on human review from any person (1/2), and GitHub’s merge box lists the check as required.

Change the number of approvals GitHub itself requires only after that last step.

If you allow any source for the required check, GitHub accepts a check named Claude Approvals from elsewhere. Through GitHub’s API, put the Claude app’s ID, 1236702, in integration_id in a ruleset or app_id in a branch protection rule.

What a policy costs

Approvals bills the model runs a policy starts, and observe mode counts. Billing can start, and continues, while usage credits are turned off.

  • With claude/code_review in an if condition, a policy can start a billed Code Review when a pull request opens and at each push. Move it to advisory to stop those; when it’s only under advisory with no level, reviews follow your Code Review settings.
  • For claude/diff and custom classifiers, each run that calls a model is billed. To limit each run of a custom classifier, set its budget key.

An Owner sets the limits under Organization settings > Usage: your organization’s spend limit for usage credits, Code Review’s limit (under Services, open the Claude Code Review row’s menu and select Edit spend limit), and the limit on classifier runs (in the Approvals row, which has no limit when it appears). At Code Review’s limit, a check that needs Claude’s review can stop passing.

If you already use Code Review

Code Review’s settings moved to Organization settings > Claude Ship.

An Approvals policy file also changes which pull requests Code Review reviews automatically. Once .claude/approvals.yml is on the default branch, in observe mode or enforced, automatic reviews normally stop where no matching rule names claude/code_review. To keep them, add claude/code_review to a rule.

/ship and /steward in Claude Code

For a pull request of your own you need none of Claude Ship. /ship opens a GitHub pull request if your branch doesn’t have one, Claude reviews the change with /code-review, and then a watch begins: Claude works on failing checks, merge conflicts, reviewers’ comments, and its own findings, and pushes fixes. You merge. /steward skips the pull request and the review and starts the watch straight away, on an open pull request of yours or to start a watch again after one ended.

Both commands run in the Claude Code CLI in a terminal, in your local clone. Cloud sessions don’t have them. Both run in your session, so their work counts against your usage.

Install or update these first:

  • Claude Code v2.1.330 or later.
  • The GitHub CLI 2.63 or later, signed in with gh auth login, for a repository on GitHub. With an older version, no watch starts.
  • git 2.38 or later, so Claude can merge new commits into your branch.

Then three things about your session and your checkout:

  • Only the files you want in the pull request. /ship can commit all your uncommitted changes, new files included. Run git status first, and delete or stash what shouldn’t go in: git stash push -u -- <file>.
  • No secrets among them. /ship looks for secrets by file name, such as .env. A deny rule like Read(./notes.txt) doesn’t keep a file out of the commit.
  • The right permission mode. Choose auto mode for unattended work. In Manual and acceptEdits mode Claude waits at each prompt, in bypassPermissions mode no watch starts, and from v2.1.331 /ship doesn’t start in plan mode. On native Windows and in a background session, no watch starts either.

/ship proceeds with no confirmation prompt. Before the commit, and again before the push, a line that ends Esc to cancel says what’s about to happen, and if you do nothing it continues after a few seconds. If you cancel before the push, a commit /ship made stays; git reset HEAD~1 undoes it and keeps your files.

Check, stop, or restart a watch

/tasks at the Claude Code prompt lists a running watch as a scheduled task whose name starts with /steward --tend. /ship stop ends it; if Claude is working when you type it, the watch ends when the current turn does, so what Claude pushes or posts in that turn still reaches the pull request. A watch also ends by itself when the pull request is merged or closed, when PR Steward labels it, after seven days, on Esc or Ctrl+C, when you check out another branch or change git’s settings, and when the session ends or you run /clear, /resume, or /branch. /steward starts it again.

To tell Claude how to look after pull requests in a repository during a watch, save a file at .claude/skills/steward/SKILL.md in the repository’s top folder. PR Steward reads the same file. If you add or edit it yourself while a watch runs, the watch ends.

Arguments go after the command, effort level first, as in /ship low 41 +my-lint-bot:

You typeWhat it does
low, medium, high, xhigh, maxasks for a review at that effort level. The default is high
41, or a pull request’s URLworks on that pull request
+botnamealso reads that bot’s comments
origin/mainon a host other than GitHub, names the base branch (from v2.1.331)
stopends the watch
termsshows what Claude may do during a watch and what limits it

Turning it off for your organization

Both commands are turned off with skillOverrides in managed settings. ship-local is the skill behind /ship:

{
  "skillOverrides": {
    "ship-local": "off",
    "steward": "off"
  }
}

You can also set CLAUDE_CODE_DISABLE_SHIP to 1, for example under env in managed settings; that needs Claude Code v2.1.331 or later. To stop only /ship’s own pushes, put a deny rule such as Bash(git push *) in managed settings; with that rule, no watch starts either.

Turning Claude Ship off runs in the reverse order, because a policy can start billed reviews where Code Review is off: Approvals first, then PR Steward, then Code Review. That leaves /ship and /steward on.

Limits

  • PR Steward is designed not to approve or merge. From a PR Steward session acting as its GitHub App, Anthropic’s service refuses these requests: approving a pull request, changing branch protection, rulesets, or statuses, writing check runs, deleting a branch, and pushing tags.
  • Merging is left to GitHub’s branch rules. Merging, turning on auto-merge, and force-pushing are allowed. Two checks run on the command first, but permission rules match a command’s text and auto mode’s check is a model’s judgment, so a command written another way can pass both. Also allowed: pushing to another branch of the same repository, and dismissing a review. Branch rules are the barrier here, not Claude Ship.
  • In a self-hosted environment these limits don’t apply. There, Claude can reach GitHub directly with any GitHub credential a session can read, and Anthropic’s service can’t refuse an approval made that way. GitHub can count it toward the approvals you require. PR Steward also loads no CLAUDE.md and no rules file from the runner there, so put what it should follow on the default branch.
  • Approvals blocks a merge only where you make the check required, and normally not in observe mode. If you use GitHub auto-merge or a merge queue with a policy that doesn’t require a person’s approval, a change can merge without anyone acting.
  • An enforced policy also covers pull requests into branches other than the default branch. On such a branch, a pull request with no covered file gets no check, so a required check waits.
  • Claude Ship uses AI and may miss bugs, security vulnerabilities, or other issues. That is what the docs say.
  • During a watch, other people’s code runs on your computer with your credentials: the base branch Claude merges into yours, other people’s pushes to your branch, your tests, your Claude Code hooks, and .claude/skills/steward/SKILL.md, a file anyone who can merge to the repository can write. Leave a watch alone only where you trust everyone who can merge to the base branch or push to your branch.
  • Asking Claude is not a barrier. If you say in the session that Claude should ask before every push, that’s a request, and Claude Code doesn’t enforce it.

Changes

  • 2026-12-01: First version, checked sentence by sentence against the docs of 2026-12-01.

Sources