# 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.

- Published: 2026-11-24
- Publisher: Rig Labs (https://riglabs.ai/)
- Canonical: https://riglabs.ai/guides/2026-11-24-let-claude-get-your-pull-request-ready-to-merge/
- Agent file (a card, then setup steps for your agent): 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](https://x.com/ClaudeDevs/status/2124959436640858475), 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](https://x.com/bcherny/status/2124961485801836573) that he uses Claude Ship "all day every day".

This guide follows Anthropic's page [Get a pull request ready with /ship and /steward](https://code.claude.com/docs/en/ship). 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:

```bash
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:

```bash
git status
```

Delete each new file you do not want in the pull request, or set it aside:

```bash
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:

```text
/ship terms
```

## Step 4: Type /ship

In the terminal, open Claude Code in your clone, then type:

```text
/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:

1. 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.
2. Claude reviews the change with `/code-review`. The default effort is `high`. For a lighter review, type `/ship low` or `/ship medium`.
3. 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:

```text
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:

```bash
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:

```text
/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:

```markdown
---
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:

```text
/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.** `/ship` and `/steward` run 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, `/ship` opens no pull request and Claude only reviews your change).
- **For a whole team.** `/ship` works on your own pull requests. Agents that work on every pull request of a repository, billed to the organization, are [Claude Ship](https://code.claude.com/docs/en/claude-ship), for Team and Enterprise plans.

## Sources

- [Claude Code docs: Get a pull request ready with /ship and /steward](https://code.claude.com/docs/en/ship): prerequisites, what `/ship` commits and pushes, the watch, its limits, arguments.
- [Claude Code docs: Claude Ship](https://code.claude.com/docs/en/claude-ship): the three organization agents, plans and billing.
- [Claude Code docs: Work with PR Steward on a pull request](https://code.claude.com/docs/en/pr-steward-pull-requests): the example `.claude/skills/steward/SKILL.md`.
- [@ClaudeDevs on X, 2026-11-23](https://x.com/ClaudeDevs/status/2124959436640858475): the Claude Ship announcement.
- [Boris Cherny on X, 2026-11-23](https://x.com/bcherny/status/2124961485801836573): "I use it all day every day and can't imagine shipping without it."
