Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Get a pull request ready with /ship and /steward changedship-command

Nearest release: v2.1.332, published an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 24 Nov 2026 21:02 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 24 Nov 2026 21:07 UTC.

Upstream edited
Recorded here
Lines+70added
Lines−25removed
From line 43 where the diff opens
First seen 23 Nov 2026 this site's first read of the page
Recorded edits2to this page, all time

### Watch a branch on another host #### Checks and comments on GitLab, Bitbucket, and Azure DevOps

The whole hunk

from line 43, old and new numbered
/
lines
from line 43
4343Install or update these tools:
4444 
4545* Claude Code v2.1.330 or later. If `/ship` is missing, see [/ship isn't available in your session](https://code.claude.com/docs/en/ship-command-troubleshooting.md#%2Fship-isn’t-available-in-your-session)
46* The [GitHub CLI](https://cli.github.com) 2.63 or later, signed in with `gh auth login`. With an older version, Claude can't push fixes
47* git 2.38 or later, to merge new commits into your branch. With an older git, Claude leaves those merges to you
46* For a repository on GitHub, the [GitHub CLI](https://cli.github.com) 2.63 or later, signed in with `gh auth login`. With an older version, no watch starts. Before v2.1.331, a watch starts and Claude can't push fixes
47* git 2.38 or later, to merge new commits into your branch. With an older git, Claude leaves those merges to you, and no watch starts [on another host](#watch-a-branch-on-another-host)
4848 
4949Then get your change and your session ready:
5050 
51* **A finished change, for `/ship`**: have it in your local clone of a repository on GitHub. It can be uncommitted, committed on a branch other than the default branch, or already in an open pull request of yours. If the repository is hosted somewhere other than GitHub, `/ship` opens no pull request, and Claude reviews your change
51* **A finished change, for `/ship`**: have it in your local clone of a repository on GitHub. It can be uncommitted, committed on a branch other than the default branch, or already in an open pull request of yours. If the repository is hosted somewhere other than GitHub, `/ship` opens no pull request. Claude reviews your change, and can then [watch your branch](#watch-a-branch-on-another-host). Before v2.1.331, no watch starts there
5252* **Only the files that you want in the pull request, for `/ship`**: `/ship` can commit all your uncommitted changes, new files included. In your shell, run `git status`. Delete each new file that you don't want in the pull request, or stash the file with `git stash push -u -- <file>`
5353* **No secrets in those files, for `/ship`**: `/ship` looks for secrets by file name, such as `.env`, so look inside your files yourself. A deny rule such as `Read(./notes.txt)` doesn't keep a file out of the commit
54* **An open pull request on GitHub, for `/steward`**: it has to be your own, with its branch checked out in your local clone
55* **Permission mode**: choose [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) if you want Claude to work on the pull request unattended. In most other permission modes, Claude waits at each prompt. In `bypassPermissions` mode, no watch starts
54* **An open pull request on GitHub, for `/steward`**: it has to be your own, with its branch checked out in your local clone. On a host other than GitHub, see [Watch a branch on another host](#watch-a-branch-on-another-host)
55* **Permission mode**: choose [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) if you want Claude to work on the pull request unattended. In most other permission modes, Claude waits at each prompt. In `bypassPermissions` mode, no watch starts. In plan mode, `/ship` doesn't start
5656 
57On native Windows, [no watch starts](https://code.claude.com/docs/en/ship-command-troubleshooting.md#cases-where-no-watch-can-start).
57On native Windows, [no watch starts](https://code.claude.com/docs/en/ship-command-troubleshooting.md#cases-where-no-watch-can-start). In a [background session](https://code.claude.com/docs/en/agent-view.md), [no watch starts](https://code.claude.com/docs/en/ship-command-troubleshooting.md#a-session-setting-blocks-a-watch) either. Before v2.1.331, one can start there.
5858 
5959> [!WARNING]
6060>
from line 78
7878 
7979In a repository on github.com that isn't a fork, `/ship` can commit your uncommitted changes, push the branch, and open the pull request before the review. On the default branch, it commits on a new branch and switches your checkout to that branch. If your work is already committed on another branch, `/ship` pushes that branch and opens the pull request.
8080 
81`/ship` doesn't commit your uncommitted changes in these cases. Take the first one that fits:
81`/ship` does something else in these cases. Take the first one that fits:
8282 
83* **A pull request is already open for the branch**: commit and push anything that you want in the pull request
84* **The repository is public**: if you're on a branch other than the default branch and it has commits of its own, `/ship` pushes those and opens a pull request without your uncommitted changes. Otherwise, commit your work on a branch other than the default branch, then run `/ship` again
83* **Someone else's pull request is open for the branch**: `/ship` doesn't commit or push your work, and no watch starts
8584* **An uncommitted file's name suggests a secret, such as `.env`**: in a repository that isn't public, `/ship` doesn't commit or push anything. See [/ship committed or pushed nothing](https://code.claude.com/docs/en/ship-command-troubleshooting.md#%2Fship-committed-or-pushed-nothing)
85* **Your own pull request is already open for the branch**: where a watch can start and the repository isn't public, `/ship` can commit your uncommitted changes, then push them and your unpushed commits onto it. [In other cases](https://code.claude.com/docs/en/ship-command-troubleshooting.md#your-pull-request-is-already-open), it leaves some of that work off. If a watch then starts, your unpushed commits [can go up with Claude's next push](#keep-working-while-a-watch-runs). Before v2.1.331, `/ship` doesn't commit or push here
86* **The repository is public**: `/ship` doesn't commit your uncommitted changes. If you're on a branch other than the default branch and it has commits of its own, `/ship` pushes those and opens a pull request without your uncommitted changes. Otherwise, commit your work on a branch other than the default branch, then run `/ship` again
87* **Your commits are on the default branch, with nothing uncommitted**: in a repository that isn't public, `/ship` makes a new branch for them, pushes that branch, opens a pull request, and switches your checkout to the new branch. Before v2.1.331, `/ship` pushes nothing, so put the commits on a branch other than the default branch, then run `/ship` again
8688 
8789Open the pull request yourself, then run `/ship`, if you want any of these:
8890 
from line 103
101103 
102104## What Claude does during a watch
103105 
104A watch is Claude's ongoing work on your pull request, which starts after `/ship`'s review or when you type `/steward`. Claude uses your `gh` and `git` sign-ins, so its work on GitHub appears under your name.
106A watch is Claude's ongoing work on your pull request, which starts after `/ship`'s review or when you type `/steward`. On a host other than GitHub, see [Watch a branch on another host](#watch-a-branch-on-another-host). Claude uses your `gh` and `git` sign-ins, so its work on GitHub appears under your name.
105107 
106In auto mode, Claude takes these actions without asking:
108In auto mode, on a GitHub pull request, Claude takes these actions without asking:
107109 
108110* Works on the review findings that it judges to be problems
109111* Can post one comment that sums up its review
from line 114
112114* Works on failing checks, and re-runs failed ones
113115* Answers review comments, resolves threads, and re-requests reviews
114116 
115Claude reads comments from you and from people with write access. On github.com, it also reads comments from Claude's bot. To have Claude read another bot's comments, type `/steward +` and the bot's name, as in `/steward +my-lint-bot`.
117On GitHub, Claude reads comments from you and from people with write access. On github.com, it also reads comments from Claude's bot. To have Claude read another bot's comments, type `/steward +` and the bot's name, as in `/steward +my-lint-bot`.
116118 
117119When checks pass and comments are answered, Claude says so in the session. Merge the pull request yourself. What can merge depends on your permissions and your repository's branch rules. See [When a watch can lead to a merge](#when-a-watch-can-lead-to-a-merge).
118120 
121### Watch a branch on another host
122 
123On a host other than GitHub, such as GitLab, Bitbucket, or Azure DevOps, Claude can watch your branch for up to seven days. The watch needs git 2.38 or later, and works without the GitHub CLI. `/ship` and `/steward` don't commit, push, or open anything when they start. Before v2.1.331, `/ship` reviews your change there, and no watch starts.
124 
125Commit your change first, then push your branch with an upstream from your shell:
126 
127```bash theme={null}
128git push -u origin <branch>
129```
130 
131On gitlab.com, bitbucket.org, or dev.azure.com, open your merge request or pull request next. Claude Code can then [read its checks and comments with your git sign-in](#checks-and-comments-on-gitlab-bitbucket-and-azure-devops). Then type `/ship` at the Claude Code prompt, or `/steward` for a watch with no review first.
132 
133With your git sign-in, Claude can take actions such as these, in auto mode without asking:
134 
135* Merge the base branch into yours to resolve a conflict
136* Merge in other people's pushes to your branch
137* Push commits to your branch
138 
139The watch gives Claude no command to reply to comments, re-run a check, or read CI logs there. To see what Claude may do there, type `/ship terms` at the prompt while the watch runs.
140 
141#### Checks and comments on GitLab, Bitbucket, and Azure DevOps
142 
143In a terminal session, Claude Code can read details such as your open merge request or pull request, its checks, and its comments. To do so, it asks git for the sign-in that git keeps for the remote that your branch pushes to. That sign-in goes to the API of gitlab.com, bitbucket.org, or dev.azure.com in `GET` requests. You aren't asked first.
144 
145A line such as this one appears before the first read, which can go out as soon as you run `/ship` or `/steward`:
146 
147```text theme={null}
148Claude Code is about to read gitlab.com's web API with the sign-in that git keeps for it. It only reads.
149```
150 
151A watch that reads the host repeats these reads until it ends. To see whether they apply to your checkout, run `git remote -v` in your shell. They can happen only when the `(fetch)` line of the remote that your branch pushes to shows an `https` address on one of those hosts.
152 
153To prevent them, switch the remote to SSH or deny the host in your settings before you run `/ship` or `/steward`. If a watch is running, type `/ship stop` first:
154 
155* Have the remote that your branch pushes to fetch over SSH, as in `git remote set-url origin [email protected]:<group>/<project>.git` in your shell, with that remote's name in place of `origin`. Then check that `git remote -v` shows no `https` address on its `(fetch)` line
156* Add the host to [`sandbox.network.deniedDomains`](https://code.claude.com/docs/en/settings-reference#sandbox-network-denieddomains). The `about to read` notice still appears, but Claude Code doesn't ask git for the sign-in or call the web API. The watch's own git commands, which Claude Code runs outside the [sandbox](https://code.claude.com/docs/en/sandboxing.md), still contact the host with git's sign-in. With the sandbox on, Claude also can't fetch from or push to that host
157 
158At the watch's start, the host can refuse the sign-in, or show no open merge request or pull request of yours for the branch. The watch can then go on with git alone, and the lines at its start include `Claude can't see checks or comments on gitlab.com, so watch those yourself`. If you close yours without merging it, that watch continues, so type `/ship stop`.
159 
119160### Keep working while a watch runs
120161 
121While a watch runs, keep the session open and [in the foreground](https://code.claude.com/docs/en/agent-view.md#send-the-session-to-the-background), the computer awake, and your pull request's branch checked out. Claude edits files in the same checkout as you.
162While a watch runs, keep the session open, the computer awake, and your pull request's branch checked out. Before v2.1.331, also keep the session [in the foreground](https://code.claude.com/docs/en/agent-view.md#send-the-session-to-the-background). Claude edits files in the same checkout as you.
122163 
123164* **To start your next change**: work in another folder, such as a second clone of the repository, and open another Claude Code session there
124165* **To push your own commits**: name the remote and branch, as in `git push origin <branch>`. If you change git's settings, for example with `git push -u` or `git branch -u`, the watch ends
from line 198
157198 
158199### What ends a watch
159200 
160After a watch ends, look for a line that starts `Stopped watching pull request`. [A watch stopped](https://code.claude.com/docs/en/ship-command-troubleshooting.md#a-watch-stopped) lists reasons that it gives.
201After a watch ends, look for a line that starts `Stopped watching`. [A watch stopped](https://code.claude.com/docs/en/ship-command-troubleshooting.md#a-watch-stopped) lists reasons that it gives.
161202 
162203The watch ends in cases such as these:
163204 
164205| Where | What ends the watch |
165206| :- | :- |
166| On the pull request | It's merged or closed, [PR Steward](https://code.claude.com/docs/en/pr-steward.md) labels it, or seven days pass |
207| On a GitHub pull request | It's merged or closed, [PR Steward](https://code.claude.com/docs/en/pr-steward.md) labels it, or seven days pass |
208| On another host | Your branch is gone from its remote or adds nothing to its base any more, or seven days pass. Where Claude Code reads your merge request or pull request, the watch also ends when it's merged or closed. Otherwise, if you close it without merging it, [the watch can go on](#checks-and-comments-on-gitlab-bitbucket-and-azure-devops) |
167209| At the keyboard | You press `Esc` or `Ctrl+C` at the prompt or while Claude is working. One press can end the watch, with no confirmation |
168210| In your checkout | You check out another branch, or change git's settings |
169| In the session | The session ends, you send it to the background, you start another watch or a `/loop` with a task, or you run `/clear`, `/resume`, or `/branch` |
211| In the session | The session ends, you start another watch or a `/loop` with a task, you run `/clear`, `/resume`, or `/branch`, or the session is in plan mode when Claude next checks the pull request. Before v2.1.331, a watch goes on in plan mode, and ends when you send the session to the background |
170212| After a failure | An error, a declined prompt, or a usage limit can end it early |
171213 
172214### Stop or restart a watch
from line 215
173215 
174216To end a watch, type `/ship stop` at the Claude Code prompt in the session that runs it. If Claude is working when you type it, the watch ends when the current turn does, so what Claude pushes or posts in that turn still reaches the pull request. To stop the turn as well, press `Esc`.
175217 
176To start a watch again, type [`/steward`](#start-a-watch-with-%2Fsteward).
218To start a watch again, type [`/steward`](#start-a-watch-with-%2Fsteward). On a host other than GitHub, add any base that you named, as in `/steward origin/main`.
177219 
178220## Decide where to run a watch
179221 
from line 249
207249 
208250| Case | What happens |
209251| :- | :- |
210| Auto-merge is on for the pull request | GitHub merges once the checks and reviews allow. What Claude does during the watch, such as pushing a fix, can bring that about. To turn it off, run `gh pr merge --disable-auto <number>` in your shell |
252| Auto-merge is on for the pull request | The host merges once the checks and reviews allow. What Claude does during the watch, such as pushing a fix, can bring that about. To turn it off on GitHub, run `gh pr merge --disable-auto <number>` in your shell |
211253| In a terminal session, you type a message while Claude is idle | [Claude Code's limits](#what-claude-code-blocks-during-a-watch) are off while Claude answers your message. They're also off while Claude handles a background task's result that arrives during that time. In auto mode, Claude may then be allowed to merge |
212| You send a session that you started in your terminal to the background during the review or the watch, for example by pressing `←` | The watch ends. Work under way can go on there without these limits. To end that work, [stop that session](https://code.claude.com/docs/en/agent-view.md#manage-sessions-from-the-shell) |
254| Before v2.1.331, you send a session that you started in your terminal to the background during the review or the watch, for example by pressing `←` | The watch ends. Work under way can go on there without these limits. To end that work, [stop that session](https://code.claude.com/docs/en/agent-view.md#manage-sessions-from-the-shell) |
213255 
214256### Permission rules and hooks that apply to /ship and /steward
215257 
from line 282
240282}
241283```
242284 
285You can also set [`CLAUDE_CODE_DISABLE_SHIP`](https://code.claude.com/docs/en/env-vars#variables) to `1`, for example under `env` in managed settings. Requires Claude Code v2.1.331 or later.
286 
243287To stop `/ship`'s own pushes, put a [deny rule](https://code.claude.com/docs/en/permissions.md#manage-permissions) such as `Bash(git push *)` in managed settings. With that rule, no watch starts.
244288 
245289## Arguments for /ship and /steward
from line 293
249293| You type | Commands | What it does |
250294| :- | :- | :- |
251295| `low`, `medium`, `high`, `xhigh`, or `max` | `/ship` | Asks for a review at that effort level. The default is `high` |
252| `41`, or a pull request's URL | `/ship`, `/steward` | Works on that pull request. For a watch, it has to be your own, with its branch checked out |
253| `+botname` | `/ship`, `/steward` | Also reads that bot's comments. Repeat it when you start a watch again |
296| `41`, or a pull request's URL | `/ship`, `/steward` | On GitHub, works on that pull request. For a watch, it has to be your own, with its branch checked out |
297| `+botname` | `/ship`, `/steward` | On GitHub, also reads that bot's comments. Repeat it when you start a watch again |
298| `origin/main`, or another remote and branch | `/ship`, `/steward` | On [a host other than GitHub](#watch-a-branch-on-another-host), names the branch that your change goes into. Requires Claude Code v2.1.331 or later |
254299| `stop` | `/ship`, `/steward` | Ends the watch |
255| `terms` | `/ship`, `/steward` | Shows what Claude may do during a watch and what limits it |
300| `terms` | `/ship`, `/steward` | Shows what Claude may do during a watch and what limits it. On [another host](#watch-a-branch-on-another-host), type it while the watch runs |
256301 
257302## Related resources
258303 
Feedback