TL;DR When a change is done, type
/shipin the same session you built it in, with auto mode on. Claude commits, pushes and opens the PR, reviews it, then watches CI and the comments for up to seven days. When it tells you the PR is green, you merge it.
/ship is the Claude Code command that takes a finished change all the way to a pull request ready to merge: it commits and pushes, opens the PR if the branch has none, reviews it with /code-review, then watches the PR from your session and fixes failing CI, merge conflicts and reviewer comments. It landed on November 23 with Claude Ship and needs v2.1.330 or later. It never merges: that stays with you and your branch rules.
What you see when you type /ship
Typing /ship in v2.1.331 brings up three commands, two of them with their Claude Ship alias:
❯ /ship Open a pull request if there is none, review it here, then watch it
/code-review (ship:review) Review the current diff or a PR for bugs
/steward (ship:steward) Watch your open pull request in this session and fix what comes up
| Command | What it does | When |
|---|---|---|
/ship |
PR if missing, review, then the watch | The change is finished |
/steward or /ship:steward |
The watch alone, no review | The PR is already open, or a watch ended and you want it back |
/code-review or /ship:review |
The review alone, no watch | You want a review and nothing else, as in /code-review before the PR |
/ship is not the Claude Ship your organization buys. That one is a set of agents (Code Review, PR Steward and Claude Approvals) an admin turns on per repository on Team and Enterprise plans, billed separately. /ship runs in your session, with your own gh and git, and counts as regular Claude Code usage.
What it does, step by step
- The pull request. If the branch has no PR, Claude Code commits all your uncommitted changes, new files included, pushes and opens the PR. On the default branch it creates a new branch and switches you to it. Claude writes the commit message from the conversation, so run it in the session where you made the change.
- The review. It runs
/code-reviewat high effort and fixes what it judges to be real problems. - The watch. Claude Code checks the PR every two minutes with your
gitandgh, without spending a model turn. It wakes Claude only when something changes (a red check, a comment, someone else's push, a conflict, the PR merged or closed), and never sooner than ten minutes after the last wake. A quiet watch costs no turns. - The merge. Once checks pass and comments are answered, Claude says so in the session. You merge.
In auto mode, during the watch Claude pushes commits to your branch, merges the base branch into yours to resolve conflicts, re-runs failed checks, answers comments and resolves threads, all under your name on GitHub. It reads comments from you, from people with write access and from Claude's bot; add any other bot with +, as in /ship +my-lint-bot. It resembles the desktop app's Auto-fix, which also watches the PR from your session, and /autofix-pr, which does it from a cloud session; /ship adds the commit, the PR and the review first.
What Claude Code won't let it do
/ship terms prints the rules of the watch before anything starts. An excerpt, as v2.1.331 prints it:
● /ship runs in this session, on your plan's usage limits or your API or cloud bill.
- Then I'll watch your pull request on my own for up to 7 days. I stop if it's merged or closed.
- As you, with your credentials, I may push to your branch, comment, resolve threads, re-request reviews, and re-run failed checks. I've been told never to merge the pull request.
- Claude Code limits my gh and git commands to a short list, which stops a direct merge or force-push.
- A message you type lifts these limits for that turn, and for whatever joins it, like a background task's result. Auto mode may then allow a merge.
The fence holds only while Claude acts without a message from you: it blocks merge, approve, auto-merge and force-push, plus connectors, WebFetch and WebSearch. Three cases can still end in a merge:
- Auto-merge is on for the PR. GitHub merges once checks allow, and a fix from Claude can be what gets it there. Turn it off with
gh pr merge --disable-auto <number>. - You type a message while Claude is idle. That turn has no fence, and in auto mode it could merge if you ask.
- Your tests and hooks. Whatever Claude runs uses your credentials; the fence only checks the command that starts it.
When it commits for you and when it only reviews
/ship looks at the repository and at each file name before it commits. In these cases it leaves the commit to you and, if the branch still has no PR, it reviews the change and watches nothing:
| Case | What it does |
|---|---|
| The branch already has an open PR | Reviews and watches; you push your uncommitted changes |
| Public repository | No commit: For a public repository /ship doesn't commit anything for you |
A file whose name suggests a secret (.env, password.txt) |
Commits and pushes nothing |
You changed .gitignore, CLAUDE.md or anything under .github/ |
Leaves the commit to you |
| GitHub Enterprise, a fork, or a repo outside GitHub | Opens no PR; open it yourself, then run /ship |
A deny rule on git push or git commit |
Leaves those steps to you and starts no watch |
bypassPermissions, Remote Control on, or native Windows |
Reviews, but starts no watch |
When it falls back to reviewing, it says so up front. In the desktop app, on a branch with no PR:
This branch has no open pull request, so there is nothing to watch yet. Open one, then run /ship again. /ship runs in this session, on your plan's usage limits or your API or cloud bill. Reviewing at high effort. I fix the real problems in your working tree, and I don't commit, push or comment.
It also refuses to start unless you type it yourself. From claude -p or a program it answers /ship starts only from a line that you type, not from claude -p or a program, and in a session started by another session, v2.1.331 replied This session was started by another session, so /ship can't run here. Run it in a session you started yourself. Cloud sessions don't have it at all.
How to use it
1. Set up the session. Switch to auto mode with Shift+Tab if you want it to work without stopping at every prompt; bypassPermissions starts no watch. If auto mode is new to you, read auto mode vs --dangerously-skip-permissions.
2. Leave only what belongs in the PR. /ship commits everything, new files included:
git status
git stash push -u -- notes.txt
3. Run it. The review's effort comes first and defaults to high; it also takes the number of one of your PRs:
/ship
/ship medium
/ship low 41 +my-lint-bot
If you cancel before the push, the commit /ship made stays; git reset HEAD~1 undoes it and keeps your files.
4. Let it work. Keep the session open and in the foreground, the computer awake and the PR's branch checked out. For your next change, open another session in a second clone. /tasks lists the watch as a task whose name starts with /steward --tend.
5. Stop it or pick it back up. /ship stop ends it when the current turn finishes; Esc or Ctrl+C cut it right away. Switching branches, git push -u, /clear, /resume, another /ship or a /loop end it too, with a line that starts Stopped watching pull request. To resume without a second review, /steward.
For your repository's own rules (which checks matter, how to run the tests), save instructions in .claude/skills/steward/SKILL.md: the watch reads it, and so does PR Steward. And if you want a review on every PR without depending on your machine, the route is still Claude in GitHub Actions.
Official docs: Get a pull request ready with /ship and /steward · Troubleshoot /ship and /steward · Claude Ship
Requirements
- Claude Code v2.1.330 or later. If
/shipis missing, runclaude updateand start it twice. It is not in sessions that skip feature flags, such as withDISABLE_TELEMETRYor a third-party provider. - GitHub CLI 2.63 or later, signed in with
gh auth login, and git 2.38 or later. - A repository on github.com. The docs ask for no plan for
/ship; the Claude Ship agents for a whole repository are Team and Enterprise. - Tested in Claude Code v2.1.331 on Linux: the menu,
/ship termsand the refusal from a session started by another. The review and the watch on a real PR come from the docs and the binary.