How to Use /ship in Claude Code

Type /ship at the Claude Code prompt in a terminal, in your local clone of a GitHub repository, and Claude commits and pushes your change, opens the pull request, reviews it and then watches it for up to seven days, fixing failing checks and answering comments until you merge it yourself. It needs Claude Code 2.1.330 or later and the GitHub CLI 2.63 or later; /steward skips the review, /ship stop ends the watch. Read at Anthropic's docs on Nov 30, 2026.

Type /ship at the Claude Code prompt, in a terminal session opened in your local clone of a GitHub repository, and Claude commits your work, pushes the branch, opens the pull request, reviews it with /code-review and then keeps watching it, fixing failing checks, merge conflicts and review comments, until the pull request is ready for you to merge yourself (Get a pull request ready with /ship and /steward, read Nov 30, 2026). It needs Claude Code 2.1.330 or later, the GitHub CLI 2.63 or later signed in with gh auth login, and git 2.38 or later. /steward does the same watching on a pull request that is already open, with no review first, and /ship stop ends the watch. Neither command exists in cloud sessions, and on native Windows /ship opens the pull request but no watch starts.

Duncan Rogoff's Nov 24, 2026 walkthrough sums up the loop in one breath: Claude saves the work, pushes it, opens the pull request, reviews it, "stays on the request, which the docs call a watch", and works on failing checks, conflicts and comments, while the merge stays yours.

Next: the organization agents that run on every pull request, why auto mode matters for an unattended watch or the other commands typed the same way.

What to type

Every argument goes after the command at the Claude Code prompt; to combine them, put the effort level first, as in /ship low 41 +my-lint-bot (Anthropic's argument table, read Nov 30, 2026).

You type What happens
/ship Commit, push, open the pull request, review at high effort, then watch
/ship low (or medium, xhigh, max) The same, with the review at that effort level
/ship 41 or /ship <pull request URL> Work on that pull request, which must be yours with its branch checked out
/steward Start a watch on your open pull request with no review first, or restart one that ended
/steward +my-lint-bot Also read that bot's comments (Claude reads people with write access and Claude's own bot by default)
/ship origin/main On GitLab, Bitbucket or Azure DevOps, name the branch your change goes into (2.1.331 or later)
/ship terms Show what Claude may do during a watch and what limits it
/ship stop End the watch, after the turn Claude is in finishes; press Esc to stop that turn too
/tasks Check whether a watch is running: it shows as a task whose name starts /steward --tend

Rob Shocks of Switch Dimension runs it in auto mode on a project he set up to fail its tests, and points out the default review effort of high, which can be set from low to max, and that Claude then watches the pull request for up to seven days.

A worked example

You finished a fix on the default branch of a private GitHub repository and never committed it. In the shell, git status shows the two files you changed and one notes.txt you do not want shipped, so you run git stash push -u -- notes.txt first, as the docs advise, because /ship commits every uncommitted change, new files included, and a deny rule such as Read(./notes.txt) does not keep a file out of the commit. Then, in the same Claude Code session that made the fix (Claude writes the commit message from the conversation), you switch to auto mode and type:

/ship

Because you are on the default branch, /ship commits on a new branch, switches your checkout to it, pushes it and opens the pull request. Before the commit and again before the push, a line ending Esc to cancel says what is about to happen; if you do nothing, it carries on after a few seconds. If you cancel after the commit, the commit stays, and git reset HEAD~1 undoes it while keeping your files. After the review, the watch starts: in auto mode Claude fixes the findings it judges to be problems, pushes commits, merges the base branch in to resolve conflicts, re-runs failed checks and answers review comments, all under your own gh and git sign-ins. When checks pass and comments are answered, it says so in the session, and you press merge.

In Rob Shocks's run, about two minutes after the GitHub Actions check failed, the watch stepped in and pushed a new commit to the pull request with no input from him, and the checks passed on the next run.

Before you run it

  • Versions: Claude Code 2.1.330 or later; GitHub CLI 2.63 or later (with an older one, no watch starts); git 2.38 or later (docs, read Nov 30, 2026).
  • Where: the Claude Code CLI in a terminal, in your local clone. Cloud sessions do not have /ship or /steward, and a background session starts no watch.
  • Permission mode: auto mode if you want it to run unattended. In Manual and acceptEdits mode Claude waits at each prompt, in bypassPermissions mode no watch starts, and since 2.1.331 /ship does not start in plan mode (Claude Code Permissions and Modes).
  • Secrets: /ship looks for secrets only by file name, such as .env, so read your changed files yourself. In a private repository an uncommitted file named like a secret stops it from committing or pushing anything.
  • Keep the session open: the watch runs in your session, so the computer must stay awake, the session open and the branch checked out. Start your next change in a second clone, not the same folder, because Claude edits files in your checkout.

Duncan Rogoff's list of where it falls short matches the docs: no cloud sessions, no follow-up watch on Windows, and a pull request opened only on GitHub; on Pro or Max you get /ship as a command you type yourself.

When /ship does something else

The docs list the cases in order, the first that fits wins (What /ship commits and pushes, read Nov 30, 2026):

Your situation What /ship does
Someone else's pull request is open for the branch Commits and pushes nothing; no watch
An uncommitted file named like a secret, private repository Commits and pushes nothing
Your own pull request is already open Can commit and push onto it (2.1.331 or later)
The repository is public Never commits uncommitted changes; pushes a branch's existing commits only
Your commits sit on the default branch, nothing uncommitted Makes a new branch for them, pushes it and opens the pull request (2.1.331 or later)
The repository is on GitLab, Bitbucket or Azure DevOps Opens nothing; reviews, then can watch the branch for up to seven days

Open the pull request yourself first, then run /ship, for a draft pull request, another base branch, your repository's pull request template, GitHub Enterprise or a fork.

What it costs and who gets it

/ship and /steward run in your own session, so their work counts against your plan's ordinary Claude Code usage, with no separate charge (docs). That differs from the organization agents of Claude Ship (Code Review, PR Steward and Claude Approvals), which are for Team and Enterprise only and are billed on tokens through usage credits (Claude Ship, read Nov 30, 2026). Where an organization's PR Steward is already working on your pull request, no watch starts.

An administrator turns both commands off with skillOverrides in managed settings (ship-local is the skill behind /ship), or with CLAUDE_CODE_DISABLE_SHIP=1 on 2.1.331 or later:

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

Safety limits during a watch

When Claude acts without a message from you, Claude Code blocks gh and git commands that merge, approve, turn on auto-merge or force-push, and refuses tools the watch does not need, such as connectors, WebFetch and WebSearch. Anthropic warns that these limits do not cover everything: if auto-merge is on, a fix Claude pushes can lead the host to merge, and code from the base branch, from other people's pushes and from your own tests runs on your computer with your credentials. Run a watch only where you trust everyone who can merge to the base branch or push to your branch (Decide where to run a watch, read Nov 30, 2026). A file at .claude/skills/steward/SKILL.md in the repository gives the watch standing instructions, such as which checks matter, and the organization's PR Steward reads the same file (Skills).

Rob Shocks's caution is the practical one: the watch will not start in bypass permissions mode or on native Windows, /ship stop ends it, and on a local machine the session has to stay open the whole time for Claude to notice new comments.

Sources

Moments

Claude Code Just Dropped /Ship (Master it in 5 Minutes)

Duncan Rogoff | Learn Claude Code

  1. Duncan Rogoff's Nov 24, 2026 walkthrough sums up the loop in one breath: Claude saves the work, pushes it, opens the…
  2. Duncan Rogoff's list of where it falls short matches the docs: no cloud sessions, no follow-up watch on Windows, and a…

Is Claude's New /Ship Worth Turning On?

Rob Shocks - Switch Dimension

  1. Rob Shocks of Switch Dimension runs it in auto mode on a project he set up to fail its tests, and points out the…
  2. In Rob Shocks's run, about two minutes after the GitHub Actions check failed, the watch stepped in and pushed a new…
  3. Rob Shocks's caution is the practical one: the watch will not start in bypass permissions mode or on native Windows…

See also

About this page

Last updated Nov 30, 2026 by the Vi.ki team. Page text CC BY-SA 4.0.

Edit History

Hotkeys

/
Jump to the search box
? or Ctrl + /
Open this list
Esc
Close this list, the photo viewer, or the account menu

Video

Space or K
Play or pause
← →
Back or forward 5 seconds
J L
Back or forward 10 seconds
0 to 9
Go to 0% to 90% of the video
, .
Previous or next frame, while paused
M
Mute or unmute
C
Captions on or off
F
Full screen on or off
A D
Previous or next moment

Photo viewer

← → or A D
Previous or next photo
↑ ↓ or W S
Previous or next photo
Home End
First or last photo
I
Show or hide the photo's info
Z
Clickless on or off: a pointer over a thumbnail shows it
N
Compare with the last photo: back to the one shown before this, and N again comes back
Q
Move the thumbnails to the next edge: top, bottom, left and round
, or Ctrl + ,
Open or close the viewer's settings
V
Clickless pan: a zoomed photo follows the pointer, rather than being dragged
Shift
Browse on or off
B
Show or hide the button bar
T
Show or hide the thumbnails
1
100% zoom on or off
0
Rate the photo as no opinion; again takes the answer back
+ -
Rate the photo a step higher or lower
F
Full screen: the photo alone. F again puts everything back.
Back to top