How to open a pull request with Claude Code's /ship and hand off review and fixes
Claude Code now has /ship and /steward commands, the local counterpart of Claude Ship that Anthropic launched this week. They run in your own session with your gh and git sign-ins, and count against your own usage. /ship commits and pushes your change, opens the pull request, reviews it with /code-review, then watches the PR and pushes fixes for failing checks, merge conflicts, and review comments. /steward skips the review and only watches a PR of yours that's already open.
You need Claude Code v2.1.330 or later (v2.1.331 or later recommended), GitHub CLI 2.63 or later signed in with gh auth login, and git 2.38 or later. The commands work only in the terminal CLI, not in cloud sessions. To let it run unattended, use auto mode. In Manual and acceptEdits modes it waits at each prompt, and in bypassPermissions mode no watch starts.
- Check what will be committed.
/shipcommits new files with no confirmation prompt and only spots secrets by file name such as.env, so stash anything you want left out.
git status
git stash push -u -- <file>
- Type
/shipin the same session where you made the change, because Claude writes the commit message from that conversation. A line endingEsc to cancelappears before the commit and the push, and if you do nothing it continues after a few seconds. Arguments go in this order: review effort (lowtomax, defaulthigh), PR number, and extra bots to read (+name).
/ship
/ship low 41 +my-lint-bot
- While the watch runs, keep the session open, the computer awake, and the PR branch checked out. Start your next change in another clone or worktree. To see whether it's running, look in
/tasksfor a task starting with/steward --tend. It watches for up to seven days and ends when the PR is merged or closed. Stop it with/ship stopand restart it with/steward.
Rules for a repository go in .claude/skills/steward/SKILL.md, which Claude follows during a watch (the organization-level PR Steward reads the same file).
Merge the PR yourself. On turns Claude takes without a message from you, Claude Code blocks merging, approving, turning on auto-merge, and force-pushing, but those limits are off while Claude answers a message you send. On a PR with auto-merge on, a fix Claude pushes can be enough to merge it. Because the watch merges the base branch and runs your tests, use it only in repositories where you trust everyone who can merge to the base branch or push to your branch. Type /ship terms to see what a watch may do. To turn both commands off for an organization, add this to managed settings, or set CLAUDE_CODE_DISABLE_SHIP to 1 (v2.1.331 or later).
{
"skillOverrides": {
"ship-local": "off",
"steward": "off"
}
}
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.