Claude Ship: 5 Risks Before You Run /ship
Claude Code's /ship opens a pull request, reviews it and then watches it for up to seven days, pushing fixes with your own GitHub and git sign-ins. During a watch it skips your git hooks, runs code from the base branch and other people's pushes, and follows a repository's steward skill file. It can still lead to a merge through auto-merge or a message you type, so check your branch rules, hooks and approvals.yml first.

Affected systems and impact
| Flaw | Affected systems | Impact |
|---|---|---|
| Watch skips git hooksClaude's fetches, merges, commits and pushes during a watch run as git -c core.hooksPath=/dev/null | /ship and /steward watches in Claude Code 2.1.330 and later | Pre-commit secret scanners and commit checks never see the commits Claude makes |
| Steward skill fileA watch follows .claude/skills/steward/SKILL.md from your checkout as instructions | Repositories with that file, which anyone who can merge to the repository can write | Repository text decides what Claude runs and pushes with your credentials |
| GitLab API readsClaude Code sends git's saved sign-in to the host's web API in GET requests without asking | https remotes on gitlab.com, bitbucket.org and dev.azure.com, Claude Code 2.1.331 and later | Your stored sign-in is used for reads from the first command until the watch ends |
Four days after Anthropic launched Claude Ship, the maintainer of devcontainer-airlock, an open-source project for development containers, put Claude Code's new /ship command on hold. The reason was one line in Anthropic's documentation: while /ship watches a pull request, Claude pushes with git -c core.hooksPath=/dev/null, so the hooks every commit there must pass never run.
That hook bypass is one of five risks written into Anthropic's own /ship documentation. During a watch, other people's code runs on your computer with your GitHub login. A file in the repository can steer Claude. A merge can still happen. And on GitLab, your saved git sign-in goes to the host's API without a prompt.
TrickyWorld read Anthropic's pages for /ship, PR Steward, Code Review and Claude Approvals as of Claude Code 2.1.332. It also checked which gh versions Linux distributions ship, linted every public Claude Approvals policy that GitHub's code search could find, and wrote a free read-only checker. This guide explains each risk, what Claude Ship costs, and how to check a repository before you type /ship.
What does /ship actually do?
/ship is a Claude Code command that commits your change, pushes the branch, opens a GitHub pull request and reviews it, then keeps working on that pull request from your terminal for up to seven days.
Anthropic calls that ongoing work a watch. Claude fixes failing checks, merges the base branch in to clear conflicts, answers review comments and re-requests reviews. In auto mode it does all of this without asking. The watch ends when the pull request is merged or closed, when seven days pass, or when you type /ship stop. You still press merge yourself, at least in theory.
/steward is the same watch without the review, for a pull request that is already open. Both commands arrived with Claude Ship on 23 November 2026. That launch also put three agents to work on whole repositories: Code Review, which was already generally available, plus PR Steward and Claude Approvals, both in beta. The commands are not the agents. /ship runs in your own session with your own logins, and its work appears on GitHub under your name.
/ship also starts without a confirmation prompt. After you press Enter, it can commit everything uncommitted, new files included, and push. A line ending in "Esc to cancel" appears before the commit and again before the push, and /ship carries on after a few seconds if you do nothing. A watch needs three tools, and a missing one stops it quietly:
Claude Code 2.1.330 or later. Version 2.1.331 shipped on launch day with several watch fixes, so use that or newer.
The GitHub CLI, gh, version 2.63 or later and signed in with gh auth login. With an older gh, no watch starts.
git 2.38 or later. With an older git, Claude leaves merges to you.
If /ship is missing from the / menu, the public changelog won't explain why. Neither 2.1.330 nor 2.1.331 mentions it, because the command depends on a feature flag that Claude Code fetches from Anthropic. Anthropic's troubleshooting page says to restart Claude Code twice after an update. It also lists what hides the command: DISABLE_TELEMETRY set to any value, even 0, turns off flag fetching and /ship with it. So do DO_NOT_TRACK=1, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC and CLAUDE_CODE_DISABLE_FEATURE_FLAGS. If you installed Claude Code from anywhere but Anthropic, TrickyWorld's guide to checking a Claude Code install is worth a look first.
Who can use Claude Ship, and what does it cost?
Anyone with Claude Code can run /ship, and its work counts as normal usage on your plan, but the three Claude Ship agents need a Team or Enterprise plan and bill your organization's usage credits by tokens.
The launch post and Anthropic's plan table split it this way:
/ship and /steward: any plan, including Pro, Max and Ultra. The review /ship runs is the same /code-review you can type yourself, so it uses your plan's limits or your API billing.
Code Review: Team and Enterprise. It has no flat per-review price. Each review costs more with a deeper review level, a bigger change and more findings to verify, and a repository added from the admin page reviews after every push by default.
PR Steward: Team and Enterprise, in public beta. It is billed by tokens and has no spend limit of its own until an Owner sets one.
Claude Approvals: Team and Enterprise, in public beta. It has no base charge, but the classifiers in a policy and the Code Reviews a policy asks for are billed, even in observe mode.
None of the agents works for organizations with Zero Data Retention, the HIPAA configuration or customer-managed encryption keys, and all three work with GitHub only. One billing detail catches people out: turning off usage credits doesn't stop an agent that is on. It keeps running and billing until an Owner turns it off. Anthropic is also offering eligible Enterprise organizations at least $10,000 in Claude Ship credits, to be claimed by 15 January 2027 and used within 30 days of claiming.
Why don't your git hooks run during a watch?
During a watch, Claude Code writes Claude's fetches, merges, commits and pushes as git -c core.hooksPath=/dev/null push, which tells git to look for hooks in /dev/null, where none can exist.
Anthropic's /ship page spells out the split. Git hooks still run for /ship's own first commit and push. They don't run for Claude's fetches, merges, commits and pushes on the turns where Claude acts without a message from you. In short, a watch pushes with your git hooks switched off.
Secret scanners lose the most, because a gitleaks or TruffleHog pre-commit hook never sees the commits Claude makes during a watch. /ship's own guard is narrower than it sounds. It looks for secrets by file name, such as .env or password.txt, and Anthropic tells you to look inside your files yourself. So during a watch, nothing on your machine checks a key that ends up in config.py before Claude pushes it.
The check that still runs is on GitHub's side. Push protection for users is on by default for public repositories and blocks a push that contains a supported secret. In a private repository it helps only if an administrator has turned on push protection for that repository. If a key does get out, TrickyWorld's guide to Claude Code secrets on GitHub covers rotation before cleanup.
Your permission rules help less than you'd expect. Anthropic's own table shows that an ask rule on Bash(git push *) doesn't match the watch's form, so it adds no prompt. An ask rule on Bash(git *) does match, and the watch then waits for you at each prompt, even in auto mode. The devcontainer-airlock issue lists two more side effects for strict teams. /ship opens the pull request as ready, not as a draft, which starts review bots before checks are green. And a watch refuses gh pr merge --auto, so a merge queue has to wait until the watch ends.
Whose code runs on your computer during a watch?
Code from the base branch, other people's pushes to your branch, your own test suite and your Claude Code hooks can all run on your machine during a watch, with your GitHub and git credentials.
Anthropic's list has five sources:
The base branch. To clear conflicts or catch up, Claude merges it into yours, including scripts that run by themselves.
Other people's pushes to your branch. Claude is instructed to merge them in.
Programs on your branch, such as your tests. Claude runs them, and they can merge or force-push with your credentials. Claude Code checks only the command that starts them.
Your Claude Code hooks. They run without asking and may run a file Claude has edited.
The steward skill file, covered in the next section.
The warning on that page is blunt: "Run a watch only where you trust everyone who can merge to the base branch or push to your branch. Any of them can run programs on your computer with your credentials." Claude Code holds back one kind of merge. If bringing in the base branch or someone's push would change its settings, .mcp.json or git's config files, Claude leaves that merge to you.
PR Steward, the cloud agent, is built differently. It works in an Anthropic-hosted session as the Claude GitHub App, and Anthropic's service refuses its requests to approve a pull request or change branch protection. A /ship watch has no such wall: it is your machine, your shell and your gh token. The same trust problem shows up with tool servers, which TrickyWorld covered in MCP security for autonomous Claude Code agents.
Why does a steward skill file change what Claude does?
During a watch, Claude reads .claude/skills/steward/SKILL.md from your checkout and follows it as instructions, and Anthropic's docs say anyone who can merge to the repository can write that file.
The file lets a team set house rules, such as which checks matter or how to run the tests. PR Steward reads the same file, but from the default branch. A watch follows the copy in your checkout, so whatever arrives with a merge of the base branch is what Claude follows next. Claude may skip a line that installs or downloads something, and the file can't lift the commands Claude Code blocks. If you edit the file yourself during a watch, the watch ends. So Claude follows a steward file that anyone who can merge can edit.
These files are already common. On 30 November, GitHub's code search found 221 public repositories with a steward file at the top folder. TrickyWorld downloaded all 221 and ran its checker over them:
137 tell Claude to run commands or scripts from the repository, such as npm run, make or a script in ./scripts.
38 include an install or download command.
12 tell Claude to merge a green pull request itself or to turn on auto-merge. The checker flagged 13, and one of those only describes a CI job.
One of the twelve says outright that its repository has no branch protection and that "The steward is the gate." Others tell Claude to turn on auto-merge as soon as a pull request is open or ready. During a watch, Claude Code blocks those merge commands while Claude acts alone. The next section shows when that block lifts.
Can a watch merge your pull request?
In some cases, yes: Claude Code blocks merging only while Claude acts without a message from you, and the watch uses your sign-ins, so a merge can follow wherever your branch rules let you merge alone.
When Claude works on its own during a watch, Claude Code refuses gh and git commands that merge, approve, turn on auto-merge or force-push. It also limits Claude to a short list of git and gh commands and takes away tools such as WebFetch and WebSearch. Anthropic lists the cases where a merge can still happen:
Auto-merge is already on. GitHub merges once checks and reviews allow, and a fix Claude pushes can be what brings that about. Turn it off with gh pr merge --disable-auto followed by the pull request's number.
You type a message while Claude is idle. The limits are off while Claude answers you, and in auto mode Claude may then be allowed to merge.
A setting lets commands past the limits. A permission rule or a hook in your session can do it.
An older Claude Code. Before 2.1.331, sending the session to the background ended the watch, and work already under way could go on there without the limits.
So the line in one popular setup guide that /ship "can't approve or merge on its own, no matter which plan you're on" is too strong. Anthropic's page says the watch "could merge a pull request that your repository's branch rules let you merge without another person's approval". On a solo repository with no branch protection, that means every pull request. Auto-merge or a typed message can still lead to a merge, so your branch rules are what actually protect you. Asking Claude in a message to check with you before merging helps, but Claude Code doesn't enforce that request.
Does /ship work with GitLab, Bitbucket or Azure DevOps?
It works in part: from Claude Code 2.1.331, a watch can follow a branch on GitLab, Bitbucket or Azure DevOps, but /ship opens nothing there, and Claude Code reads the host's API with git's saved sign-in without asking.
That answers the "claude ship gitlab" searches. You push the branch with an upstream and open the merge request yourself, then run /ship or /steward. Claude can merge the base branch, merge in other people's pushes and push to your branch for up to seven days. It has no command to reply to comments, re-run a check or read CI logs there.
To read your merge request, its checks and its comments, Claude Code asks git for the sign-in git keeps for that remote. It sends that sign-in to the API of gitlab.com, bitbucket.org or dev.azure.com in GET requests, and you aren't asked first. This notice appears before the first read, which can go out as soon as you run the command:
Claude Code is about to read gitlab.com's web API with the sign-in that git keeps for it. It only reads.The reads repeat until the watch ends. They happen only when the remote your branch pushes to fetches over https from one of those three hosts. To stop them, switch that remote to SSH before you start:
git remote -v
git remote set-url origin [email protected]:your-group/your-project.gitAdding the host to sandbox.network.deniedDomains also works, though the watch's own git commands still reach it. There is one more catch: if Claude Code can't read the host and you close the merge request without merging, the watch carries on. Type /ship stop. The Claude Ship agents themselves remain GitHub-only. For GitLab, Anthropic's comparison table lists running Claude in your own GitLab CI/CD instead.
Does /ship work on Windows?
On native Windows, /ship can review your change but no watch starts, so the fix is WSL, where Ubuntu's own gh package is too old for a watch.
TrickyWorld checked the gh and git packages in each Ubuntu LTS and Debian release on 30 November. None of them ships a gh new enough:
Ubuntu 26.04 LTS, the release that wsl --install picks by default: gh 2.46.0, git 2.53.0.
Ubuntu 24.04 LTS: gh 2.45.0, git 2.43.0.
Ubuntu 22.04 LTS: gh 2.4.0 and git 2.34.1, both too old.
Debian 13: gh 2.46.0, git 2.47.3. Debian 12: gh 2.23.0, git 2.39.5.
gh 2.63.0 came out on 27 November 2024 and the current release is 2.106.0, but distributions freeze package versions for the life of a release. Install gh from GitHub's own package repository at cli.github.com, then run gh --version inside WSL, because a gh installed on the Windows side doesn't count. The machine this article was researched on runs Ubuntu 22.04's packages, and it fails both version checks.
How can Claude Approvals let code merge without human review?
Anthropic's docs name the ways: one seat the author fills, zero seats for a bot's pull request, a claude: approves verdict that starts no review, a check GitHub doesn't require, and a policy that quietly stops automatic Code Reviews.
Claude Approvals reads a policy file, .claude/approvals.yml, from the default branch. Each rule names paths and a verdict, where seats says how many people must approve and claude says whether Claude approves, comments or blocks. The Approvals page and the policy reference describe each gap:
seats: 1. The author fills one seat without approving, so seats: 1 asks nobody else to look, and seats: 2 means the author plus one person.
seats: 0. Nobody has to approve, so a pull request a bot wrote can merge with no person looking at it.
claude: approves. This verdict starts no Code Review by itself. Unless the rule waits for claude/code_review = pass, Claude can approve a change nothing has reviewed.
Claude's approval counts on GitHub. Where a branch rule requires one approving review, Claude's review can be that one.
The check isn't required. The Claude Approvals check blocks a merge only where GitHub requires it. In observe mode it ends neutral, which GitHub counts as passing.
Automatic reviews stop. Once a policy file is on the default branch, in observe mode too, automatic Code Reviews normally stop for files that no rule naming claude/code_review covers.
Anthropic's GitHub rules page adds more: bots in a seat's people list, machine users that count as people, reuse settings that keep earlier approvals after a push, and files no rule covers. It also warns that the pull request's own text can steer a classifier's answer, Code Review's included. The fix it gives is a rule that asks for one person who isn't an author and reads no classifier:
version: 1
rules:
- purpose: "Every change needs one reviewer who didn't write it."
paths: ["**"]
nested: inherit
verdict:
claude: comments
seats: [{ count: 1, from: [humans, "!pr/authors"] }]
advisory: [claude/code_review]The advisory line keeps automatic Code Reviews running without letting their answer lower the bar.
What do the first public Claude Approvals policies show?
Most public policies a week after launch don't yet gate anything: of 30 found, 16 only observe, and only 6 of the 14 that enforce are backed by a required Claude Approvals check on GitHub.
TrickyWorld ran its checker on 30 November over every public policy file that GitHub's code search returned, then read each repository's branch rules through GitHub's API. Code search only covers indexed default branches, so this is a sample, not a census. Among the 30 policy files at a repository's root:
24 let the author alone meet at least one verdict. In 19 of them, a passing Code Review lowers the bar to one seat, as in Anthropic's starter policy, and the author fills it. 12 ask for only one seat even with no review.
12 have a verdict that asks nobody at all. Six use it for pull requests that Renovate or Dependabot open, and the others for docs, tests, version bumps or wider sets of changes.
7 let the author alone change the policy file itself, because no rule asks more than one person for .claude/.
2 let Claude approve with no review behind it, and 2 leave some files with no rule, so a pull request touching only those files passes.
8 of the 14 enforcing policies aren't a required check on the default branch, so on GitHub they decide nothing.
Not every finding is a mistake. A solo developer may want the author alone to merge, and a team may accept Claude alone on dependency bumps. But a solo setup that also enables /ship has nobody else in the loop at any point. Reading your policy against this list takes ten minutes.
How do you check a repository before running /ship?
Run TrickyWorld's free shipcheck tool in your clone: python3 -m shipcheck preflight reads your versions, settings, git hooks, steward file, policy file and GitHub branch rules, and changes nothing.
git clone https://github.com/vishal1610kamal/trickyworld_claude_ship_check
cd trickyworld_claude_ship_check
python3 -m shipcheck preflight --repo ~/code/your-appIt needs Python 3.10 or newer and nothing else. The GitHub part uses gh api GET requests, so it sees what your account can see. Its 95 tests pass on Python 3.10 to 3.13. The code is on GitHub, and it checks three areas:
This machine: native Windows, your Claude Code, gh and git versions, the variables that hide /ship, bypassPermissions mode, deny and ask rules, and project hooks that block a watch.
This checkout: the git hooks a watch skips and whether a secret scanner is among them, an https remote on GitLab, Bitbucket or Azure DevOps, token-like values in uncommitted files, and the lines of your steward file that matter.
GitHub: auto-merge on your pull request, required reviews and stale-approval settings, whether Claude Approvals is required and from the right app, and the policy file on your default branch, which is the copy Approvals applies.
On a demo repository built to show each finding, on this machine, the output starts like this:
== This machine
BLOCK gh 2.4.0 is too old for a watch
WARN git 2.34.1 is older than 2.38
== This checkout
RISK Your secret scanner won't see a watch's commits (gitleaks)
RISK The steward file tells Claude to merge or to turn on auto-merge
RISK Claude can approve with no reviewEach finding links the Anthropic page it comes from. Run shipcheck policy on a policy file, or shipcheck steward on a steward file, to check either one on its own.
How do you make /ship safer before you run it?
Turn off auto-merge, require a reviewer who isn't the author, keep secret scanning on GitHub's side, read the steward file, and run the watch from a separate clone with the narrowest GitHub token you can.
Require at least one approving review on the base branch, and turn on "Dismiss stale pull request approvals when new commits are pushed" so an old approval doesn't cover a watch's new code.
Check that auto-merge is off for the pull request before a watch starts.
Keep a secret scan that doesn't depend on local hooks: push protection, or a required CI job.
Read .claude/skills/steward/SKILL.md, and compare it with the default branch's copy.
On GitLab, Bitbucket or Azure DevOps, switch the remote to SSH unless you want those API reads.
Type /ship stop before you chat about something else in that session.
To approve every git step yourself, add an ask rule that matches the watch's form to your Claude Code settings. The watch then waits at each prompt, even in auto mode:
{
"permissions": {
"ask": ["Bash(git *)"]
}
}Administrators can turn both commands off in managed settings, with "ship-local": "off" and "steward": "off" under skillOverrides, or CLAUDE_CODE_DISABLE_SHIP=1 from 2.1.331. A deny rule on Bash(git push *) stops /ship's pushes, and with it no watch starts at all. Teams that already log CI output should also check what a watch's test runs print, as TrickyWorld's look at secrets in GitHub Actions logs shows.

Claude Ship can take a pull request from review to green while you work on the next thing, and most of these risks exist because it acts as you. Treat a watch like lending a colleague your laptop and your GitHub login for a week: fine on a repository where you trust everyone who can push, and a poor idea where you don't.
Frequently asked questions
Is /ship the same as Claude Ship?
No. /ship is a Claude Code command that runs in your own terminal session on any plan and acts with your gh and git sign-ins. Claude Ship is Anthropic's set of three agents for GitHub repositories, Code Review, PR Steward and Claude Approvals, which need a Team or Enterprise plan and act as the Claude GitHub App.
How do I stop a /ship watch?
Type /ship stop in the session that runs it. If Claude is in the middle of a turn, the watch ends when that turn does, so press Esc to stop the turn as well. One press of Esc or Ctrl+C can also end a watch with no confirmation, and so can switching branches, /clear or closing the terminal. Type /tasks to see whether a watch is still running.
Can a script or claude -p start /ship?
No. /ship and /steward start only from a line you type at the Claude Code prompt. Run from claude -p or a program, or picked from a prompt suggestion, they print a "Nothing started" message instead, so another tool can't start a watch on your behalf.
Does /ship work in Claude Code's cloud sessions?
No. Anthropic's docs say to run /ship and /steward from the Claude Code CLI in a terminal, in your local clone, and that cloud sessions don't have them. For fixes from a cloud session, Anthropic points to auto-fix, and for whole repositories to the PR Steward agent.
Sources
- Write-upAnthropic: Introducing Claude Ship (23 November 2026) · claude.com
- Codedevcontainer-airlock issue 321: Revisit Claude Code /ship once its watch keeps git hooks on · github.com
