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
/shipor/steward, and a background session starts no watch. - Permission mode: auto mode if you want it to run unattended. In Manual and
acceptEditsmode Claude waits at each prompt, inbypassPermissionsmode no watch starts, and since 2.1.331/shipdoes not start in plan mode (Claude Code Permissions and Modes). - Secrets:
/shiplooks 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
- Get a pull request ready with /ship and /steward, Claude Code Docs, read Nov 30, 2026
- Claude Ship, Claude Code Docs, read Nov 30, 2026
- GitHub CLI, GitHub
- Claude Code Just Dropped /Ship (Master it in 5 Minutes), Duncan Rogoff | Learn Claude Code, Nov 24, 2026 (video)
- Is Claude's New /Ship Worth Turning On?, Rob Shocks - Switch Dimension, Nov 24, 2026 (video)
Moments
Claude Code Just Dropped /Ship (Master it in 5 Minutes)
Duncan Rogoff | Learn Claude Code
Is Claude's New /Ship Worth Turning On?
Rob Shocks - Switch Dimension
- Rob Shocks of Switch Dimension runs it in auto mode on a project he set up to fail its tests, and points out the…
- In Rob Shocks's run, about two minutes after the GitHub Actions check failed, the watch stepped in and pushed a new…
- Rob Shocks's caution is the practical one: the watch will not start in bypass permissions mode or on native Windows…
See also
-
Claude CodeWe rate Claude Opus 5.5, Claude Code's default model, S tier, and think Claude Code is among the strongest coding agents measured and the dearest to run: second on Terminal-Bench 4.1 on Nov 25, 2026, behind GitHub Copilot's Copilot Fusion, after leading it on Nov 11. Claude Code is Anthropic's agentic coding tool. It reads a codebase, edits files, runs commands and opens pull requests from the terminal, VS Code, JetBrains IDEs, the Claude desktop app, the browser and Slack, and it comes with every paid Claude plan or a pay-as-you-go Console account. -
Claude Ship ReleaseOn Nov 23, 2026 Anthropic released Claude Ship in beta for Team and Enterprise organizations with GitHub repositories, three agents that review pull requests, fix them and approve the ones a team's policy allows, plus a /ship command in Claude Code. There is no flat price: each agent is billed on tokens through usage credits, apart from the plan.
-
Claude Code Permissions and ModesClaude Code has six permission modes (Manual, Accept edits, Plan, Auto, Don't ask and Bypass permissions), cycled with Shift+Tab; since v2.1.283 interactive sessions start in auto mode, and --dangerously-skip-permissions turns every check off and belongs only in a container or VM.
-
Claude Code Slash CommandsClaude Code's slash commands are typed at the start of a message, such as /clear, /compact, /model, /init, /rewind and /usage. Anthropic's list had 121 entries on Nov 6, 2026, counting bundled skills and workflows, and your own commands are skills in .claude/skills/ or .claude/commands/.
-
SkillsA Claude skill is a folder with a SKILL.md file of instructions, plus optional scripts and files, that Claude loads when a task needs it. Skills are on every Claude plan, Free included, and the same skill runs in the Claude app, Claude Code and the API. -
Claude Agent SDKThe Claude Agent SDK (formerly the Claude Code SDK) is Anthropic's Python and TypeScript library that runs Claude Code's agent loop, tools, hooks, subagents and MCP support inside your own program; install it with pip install claude-agent-sdk or npm install @anthropic-ai/claude-agent-sdk.