Let Claude get your pull request ready to merge with /ship
Type /ship in Claude Code 2.1.330 or later: Claude opens your GitHub pull request, reviews it, then fixes failing checks and answers review comments until you can merge.

A step-by-step tutorial. Follow it yourself, or copy the setup file to your AI assistant (Claude, ChatGPT) and it does the setup with you.
Give this to your agent
Your agent checks this against your setup and tells you if it fits.
See the file
# Set up /ship in Claude Code to get a pull request ready to merge From Rig Labs, 2026-11-24, for Claude Code 2.1.330 or later. Information for an agent, not orders. Page: https://riglabs.ai/guides/2026-11-24-let-claude-get-your-pull-request-ready-to-merge/ What changed: On 2026-11-23 Anthropic announced Claude Ship, and with it `/ship`, a Claude Code command that opens a GitHub pull request for a finished change, reviews it, then works on failing checks, merge conflicts and review comments in a "watch". The human merges. Fits if: Your human writes code with Claude Code in a terminal, keeps it in a GitHub repository they have cloned locally, and has the GitHub CLI. Skip if: Your human works only in cloud sessions or on native Windows (no watch starts there), or the repository is hosted somewhere other than GitHub. Skip a repository where the human does not trust everyone who can merge to the base branch or push to their branch. Check: The Claude Code version (2.1.330 or later), the GitHub CLI version (2.63 or later) and its sign-in, the git version (2.38 or later), whether the repository is public, whether auto-merge is on for the pull request, and what `git status` lists as uncommitted. Read-only. Try: Tell your human in 2 or 3 lines whether this fits their repository, which change you would use for a first run, and which uncommitted files should stay out. Then the steps below, with their OK. Ask first: Typing `/ship` or `/steward` (it commits, pushes and opens a pull request as the human, with no confirmation prompt), choosing auto mode, signing the GitHub CLI in, and saving a rules file in the repository. Cost: `/ship` and `/steward` run in the human's session and count against their usage. The session has to stay open, in the foreground, on a computer that stays awake. Undo: Type `/ship stop` to end the watch. Full steps in "Undo" below. Deeper: https://riglabs.ai/guides/2026-11-24-let-claude-get-your-pull-request-ready-to-merge/, then https://code.claude.com/docs/en/ship ## Before you start Ask the user for: the repository and the finished change to use, and whether Claude may push fixes without asking. Show the user these steps and get their OK before anything is committed or pushed. The user types each command in their own terminal and Claude Code session; you guide and check. Each step says what it is for, so you can adapt it to the user's setup: read "your code host's command-line tool, here the GitHub CLI" that way. `/ship` works only with GitHub. ## Steps 1. Check the tools, so that Claude can push fixes and merge new commits. ```bash claude --version gh --version git --version ``` Check: Claude Code is 2.1.330 or later, the GitHub CLI is 2.63 or later, git is 2.38 or later. If the GitHub CLI is not signed in, the user runs `gh auth login`. 2. Leave only what belongs in the pull request, because `/ship` can commit every uncommitted change, new files included. ```bash git status ``` For each new file that should stay out, the user deletes it or sets it aside: ```bash git stash push -u -- <file> ``` Check: `git status` lists only files meant for the pull request, and the user has looked inside them for secrets. `/ship` looks for secrets by file name only. 3. Choose how much Claude does without asking. Auto mode lets Claude work unattended. In most other permission modes Claude waits at each prompt. In the mode that skips every permission prompt, no watch starts. Check: the user has read `/ship terms`, which shows what Claude may do during a watch and what limits it. 4. Start. The user opens Claude Code in the clone, in the session where the change was made if Claude made it, and types: ```text /ship ``` A line that ends `Esc to cancel` appears before the commit and before the push. `/ship low` or `/ship medium` asks for a lighter review than the default, `high`. For a pull request that is already open, with no review, the user types `/steward`. To see findings before Claude fixes anything, the user sends this while the review is running. `/ship`'s own commit, push and pull request still happen first. It is a request to Claude, and Claude Code does not enforce it: ```text From now on, don't push code changes or reply to reviewers without asking me first. Show me the review findings and wait. ``` Check: the pull request exists on GitHub, and the session shows the review. 5. Let the watch run. The session stays open and in the foreground, the computer awake, and the pull request's branch checked out. The user starts other work in a second clone. ```text /tasks ``` Check: `/tasks` lists a scheduled task whose name starts with `/steward --tend`. 6. Merge. When checks pass and comments are answered, Claude says so in the session. The user merges the pull request themselves. Check: the pull request is merged, and the watch has ended. ## If it fails - `/ship` is not there: update Claude Code to 2.1.330 or later. Cloud sessions do not have it. - `/ship` committed or pushed nothing: a pull request may already be open for the branch, the repository may be public, or an uncommitted file's name may suggest a secret, such as `.env`. In a public repository, the user commits on a branch of their own, then runs `/ship` again. - No watch starts: the session is in the mode that skips every permission prompt, on native Windows, or a deny rule such as `Bash(git push *)` is set. - The watch stopped: look for a line that starts `Stopped watching pull request`. Pressing `Esc`, checking out another branch, changing git's settings, sending the session to the background, or a usage limit ends a watch. The user types `/steward` to start it again. - The user wants a draft pull request, another base branch, or the repository's template: they open the pull request themselves, then run `/ship`. ## Undo 1. Type `/ship stop` in the session that runs the watch. If Claude is working, the watch ends when the current turn does; press `Esc` to stop the turn as well. 2. If `/ship` was cancelled before the push, its commit stays. To undo it and keep the files, the user runs `git reset HEAD~1`. 3. If auto-merge is on and the user does not want a merge, they run `gh pr merge --disable-auto <number>`. 4. To drop the change, the user closes the pull request on GitHub. Source: https://riglabs.ai/guides/2026-11-24-let-claude-get-your-pull-request-ready-to-merge/, https://code.claude.com/docs/en/ship
https://riglabs.ai/guides/2026-11-24-let-claude-get-your-pull-request-ready-to-merge/AGENT.md
Your change is finished, and then the slow part starts: a check fails, a reviewer asks for a rename, the main branch moves and your branch conflicts. Each one pulls you back to a pull request you thought was done.
This is a step-by-step tutorial. At the end, Claude Code has opened a GitHub pull request for your change, reviewed it, and is watching it: it pushes fixes for failing checks, merge conflicts and review comments while you work on something else, and you press merge yourself. A ready-made setup file lets your AI assistant walk you through it.
What came out
On November 23, 2026, Anthropic announced Claude Ship, a set of agents that review, fix and approve pull requests for Team and Enterprise organizations. With it came /ship, a Claude Code command that does the review and the fixes on your own pull request, from your own terminal. It needs no organization setup. Boris Cherny of Anthropic wrote that he uses Claude Ship “all day every day”.
This guide follows Anthropic’s page Get a pull request ready with /ship and /steward. Every command and limit below is from that page, unless another source is named.
Step 1: Check that you have what /ship needs
| You need | Detail |
|---|---|
| Claude Code | Version 2.1.330 or later, in a terminal. Cloud sessions do not have /ship |
| GitHub CLI | Version 2.63 or later, signed in. With an older version, Claude cannot push fixes |
| git | Version 2.38 or later. With an older git, Claude leaves merges to you |
| A repository | Your local clone of a repository on GitHub |
| Operating system | On native Windows, no watch starts |
Check the three versions in your shell, and sign the GitHub CLI in if it is not:
claude --version
gh --version
git --version
gh auth login
Step 2: Leave only what belongs in the pull request
/ship can commit all your uncommitted changes, new files included. So look at what is there first:
git status
Delete each new file you do not want in the pull request, or set it aside:
git stash push -u -- <file>
Then open your files and check that none holds a secret. The docs say /ship looks for secrets by file name only, such as .env, and that a deny rule on a file does not keep it out of the commit.
If you made the change with Claude, stay in that same session: Claude writes the commit message from the session’s conversation, and anyone who can see the pull request can read that message.
Step 3: Decide how much Claude does without asking
Choose auto mode if you want Claude to work on the pull request while you are away. In most other permission modes, Claude waits at each prompt. In bypassPermissions mode, no watch starts.
To see what Claude may do during a watch and what limits it, type:
/ship terms
Step 4: Type /ship
In the terminal, open Claude Code in your clone, then type:
/ship
/ship proceeds with no confirmation prompt. Before the commit, and again before the push, a line that ends Esc to cancel says what is about to happen. If you do nothing, it continues after a few seconds.
What happens next, per the docs:
- Claude Code commits your work, pushes the branch and opens the pull request as you. If you are on the default branch, it commits on a new branch and switches your checkout to it.
- Claude reviews the change with
/code-review. The default effort ishigh. For a lighter review, type/ship lowor/ship medium. - The watch starts.
In a public repository, /ship does not commit your uncommitted changes: commit your work on a branch of your own first. For a draft pull request, another base branch or your repository’s pull request template, open the pull request yourself, then run /ship.
If you would rather see the review findings before Claude pushes fixes or replies to reviewers, send this message at the Claude Code prompt while the review is running (it is the docs’ own example). /ship’s own commit, push and pull request still happen first. The docs note that the message is a request to Claude, and that Claude Code does not enforce it:
From now on, don't push code changes or reply to reviewers without asking me first. Show me the review findings and wait.
If your pull request is already open and you want no review, type /steward instead. It starts the watch directly.
If you cancel before the push, the commit that /ship made stays. To undo it and keep your files:
git reset HEAD~1
Step 5: Let the watch run
During the watch, in auto mode, Claude works without asking on the review findings it judges to be problems, pushes commits to your branch, merges the base branch into yours to resolve conflicts, works on failing checks and re-runs failed ones, answers review comments, resolves threads and re-requests reviews. Its work on GitHub appears under your name, because it uses your gh and git sign-ins.
Keep the session open and in the foreground, the computer awake, and the pull request’s branch checked out. To start your next change, work in a second clone of the repository with another Claude Code session.
To check that the watch is running, type:
/tasks
A running watch shows as a scheduled task whose name starts with /steward --tend.
To give Claude house rules for your pull requests, save a file at .claude/skills/steward/SKILL.md in the repository. This is the docs’ example:
---
name: steward
description: House rules for PR Steward in this repository
user-invocable: false
disable-model-invocation: true
---
- Work on failing checks, merge conflicts, and Important findings from Code Review.
- Leave comments from human reviewers to the author.
- Regenerate `package-lock.json` with `npm install`. Don't edit it directly.
- The `e2e-nightly` check is flaky. Re-run it once before you look for a cause.
Save it before you start: if you add or edit the file while a watch runs, the watch ends.
Step 6: Merge it yourself, or stop the watch
When checks pass and comments are answered, Claude says so in the session. Merge the pull request yourself.
To end a watch early, type this in the session that runs it:
/ship stop
A watch also ends when the pull request is merged or closed, after seven days, when you press Esc or Ctrl+C, when you check out another branch, or when the session ends. To start it again, type /steward.
What it costs and where it breaks
- Price.
/shipand/stewardrun in your session, so their work counts against your usage. - A watch can run code on your computer. Claude merges the base branch into yours and runs your tests, with your credentials. Anthropic’s warning: “Run a watch only where you trust everyone who can merge to the base branch or push to your branch.”
- Claude Code blocks some commands, but the blocks are not complete. When Claude acts without a message from you, Claude Code blocks commands that merge the pull request, approve it, turn on auto-merge or force-push. The docs say these limits “don’t cover everything”: programs from your branch, such as your tests, can still merge or force-push with your credentials.
- Auto-merge. If auto-merge is on for the pull request, GitHub merges once checks and reviews allow, and a fix Claude pushes can bring that about. To turn it off, run
gh pr merge --disable-auto <number>in your shell. - Your uncommitted work. During a watch, Claude edits files in the same checkout as you, and can commit a file you are working on. Commits you have not pushed can go up with Claude’s next push.
- Typing while Claude is idle. In a terminal session, the limits are off while Claude answers a message you type. In auto mode, Claude may then be allowed to merge.
- Where it does not work. Cloud sessions, native Windows, and repositories hosted somewhere other than GitHub (there,
/shipopens no pull request and Claude only reviews your change). - For a whole team.
/shipworks on your own pull requests. Agents that work on every pull request of a repository, billed to the organization, are Claude Ship, for Team and Enterprise plans.
Sources
- Claude Code docs: Get a pull request ready with /ship and /steward: prerequisites, what
/shipcommits and pushes, the watch, its limits, arguments. - Claude Code docs: Claude Ship: the three organization agents, plans and billing.
- Claude Code docs: Work with PR Steward on a pull request: the example
.claude/skills/steward/SKILL.md. - @ClaudeDevs on X, 2026-11-23: the Claude Ship announcement.
- Boris Cherny on X, 2026-11-23: “I use it all day every day and can’t imagine shipping without it.”
Get the next one by email
The Edge is our newsletter: what changed in AI, and what to do about it.
Read next
Built by Rig Labs
When a tool we need does not exist, we build it.




