← Academy

/ship: Claude Code now looks after your pull request

Type /ship and Claude Code commits, pushes, opens the PR and reviews its own work, then watches the PR for up to seven days and fixes failing checks, conflicts and review comments. It never merges. Here is how to use it safely.

Opening a pull request is rarely the end. A check goes red, a reviewer leaves six comments, the main branch moves and now there is a conflict. Each one is small, and each one pulls you off the next task. Claude Code has a command for that follow-up work: /ship. Anthropic's guide on claude.dev, written by Addy Osmani, explains how the Claude Code team uses it.


What /ship does

/ship comes with the latest version of Claude Code and works before an admin turns anything on. On a branch with no PR yet, it does four things in order:

Before the PR

  1. 01Commit: it commits your pending changes as if you ran git add -A, and makes a branch if needed
  2. 02Push: it pushes and opens the PR as you

→ an open PR

On the PR

  1. 03Review: it runs /code-review on the change, unless Code Review has already looked at it
  2. 04Fix: it fixes the findings it judges valid

→ a reviewed PR

After the PR

  1. 05Watch: for up to seven days it works on failing checks, conflicts and review comments
  2. 06Stop: it exits when the PR is merged or closed

→ a PR ready for your call

During the watch it makes small changes and brings bigger calls to you: a request to redesign something, or a security issue it could not solve. It pushes at most three times for one issue, then reports what it tried.

It is part of a set. /code-review checks your branch before anyone else sees it. /steward looks after a PR you already opened, without reviewing it first.


(01)Check what it will commit

/ship commits everything pending, as if you had run git add -A. Run this first and make sure only the files you mean are in it:

git status

It will not commit files whose names look like secrets, or rule files like CLAUDE.md, REVIEW.md and anything in .claude/ or .github/. Commit those yourself beforehand. In a public repository it commits nothing for you, so commit by hand first.

(02)Log in to the GitHub CLI

The watch reads your PR through GitHub's own command line tool:

gh auth login

(03)Type /ship

In Claude Code, on the branch you want to ship:

/ship

A few variations from the guide:

/ship high          # review at high effort
/ship 41            # work on pull request #41
/ship +my-lint-bot  # also read comments from my-lint-bot
/ship stop          # end the watch

(04)Stay near it the first time

The watch uses model turns while you are away, so it counts against your plan or API bill. The guide's advice: be near your machine the first time, to see the usage is what you expect.

(05)Merge it yourself

When the checks are green and the comments are answered, the PR waits for you. Claude is told never to merge, and Claude Code limits the git and gh commands it can run on its own, so it cannot merge or force-push.


Before you use it: the warnings

The guide is clear about these, and they matter more than any feature:

How you know it is done

  • Run git status first: it commits everything pending, as git add -A would.
  • Use the watch only on repositories where you trust everyone who can land changes on the base branch: during the watch it merges the base branch into yours and runs your tests on your machine.
  • It uses your plan's usage while you are away.
  • Your laptop has to stay open and awake. Closing it stops the watch.
  • Give the watch its own checkout: leave the branch checked out, and use a separate worktree if you move on to the next task.
  • On Windows, /ship opens the PR and reviews it, but the watch does not start.
  • It will not watch in bypass-permissions mode, and outside auto mode it stops at every prompt for your answer.
  • Its own commits skip your git hooks, so any check that must always run belongs in CI and your branch rules.

Before the first run, type /ship terms in Claude Code to read the full terms of the watch.

Command
/ship (comes with the latest Claude Code)
Does
commit, push, open the PR, review, watch up to 7 days
Never
merges the PR
Needs
gh auth login, a trusted repository, your machine awake
Related
/code-review (before you push), /steward (an existing PR)

Common questions

Got any questions left?

Does /ship merge my PR?

No. Claude is told never to merge, and Claude Code limits the git and gh commands it can run during an unattended turn. You merge.

Do I need an admin to turn it on?

No. /ship runs in your own session. Admins only get involved if your team wants Claude Ship's agents to run on everyone's PRs automatically.

Does it cost extra?

It uses your plan's usage or your API bill while it watches. The cloud review, /code-review ultra, can be billed separately.

What is the difference with /steward?

/steward only watches a PR you already opened and fixes checks, conflicts and comments. It does not review it first.

Can I run it on a client's repository?

Only where you trust everyone who can land changes on the base branch, because the watch runs their changes and your tests on your machine.

Build systems that run your brand__

info@hybrdstudio.com
Share article X LinkedIn

Discover more