Claude Code /ship

Use /ship on your first branch, ask Claude to show its findings before it pushes fixes, and use /steward to watch checks and comments on an open PR.

Published

Claude Code /ship

Hand a finished branch to Claude Code with /ship and you can move on while the tests run. Claude can open the pull request, review your change and keep working when a check fails or a reviewer comes back with a comment. You still have a job at the end. Read the final changes and decide whether to merge.

Before you press Enter

Start with a small fix in a repository you trust. Suppose you corrected a broken link in a help page. You want a teammate to see that edit. You also have a new file of interview notes sitting next to it. Run git status in your shell first. On a private github.com repository that isn’t a fork, /ship can commit untracked files along with your edit. To set the notes aside, the documented shell command is git stash push -u -- <file>, with the actual path in place of <file>. Check the contents of the files you keep. Claude’s initial secret check looks at filenames.

Open Claude Code in a terminal in your local copy of the repository. If you made the change with Claude, use that session. The conversation informs the commit message, which people who can see the pull request can read. A pull request (PR) is the proposal to bring your branch’s changes into another branch.

CheckWhat you need for a first GitHub run
ToolsClaude Code v2.1.330 or later and GitHub CLI 2.63 or later, signed in with gh auth login. Use git 2.38 or later so Claude can merge fresh commits into your branch.
SessionType the command yourself at the local Claude Code prompt. Cloud sessions don’t offer it. Use a foreground terminal for the watch. Native Windows doesn’t start a watch.
PermissionsUse an account that can push to the branch. Auto mode lets the watch work unattended. Manual and acceptEdits modes wait when a permission prompt appears. bypassPermissions prevents a watch. On v2.1.331 and later, leave plan mode before starting /ship.
Plan and usageThe local commands count against your session usage. Team and Enterprise are the plans Anthropic names for the organization-wide Claude Ship agents. The local command guide lists no separate plan requirement.

If you need a draft PR, a different target branch or your team’s PR template, open the PR yourself first. Do the same for GitHub Enterprise or a fork. On a public repository, commit your intended edits on a non-default branch first because /ship leaves uncommitted changes out. Anthropic’s command guide

What happens when you type /ship

With the broken link fixed and the notes set aside, type this at the Claude Code prompt.

Text
/ship
  1. Claude gets the PR open. On an eligible branch it can commit the files, push the branch to GitHub and open the PR as you. On the default branch of a private non-fork repository it can put the change on a new branch and switch you to it. Before a commit and again before a push, watch for Esc to cancel. Doing nothing lets the operation proceed after a few seconds. If you cancel after the commit but before the push, the local commit stays.
  2. Claude reviews the change. It runs /code-review on the branch. Even for a small link fix, the order matters because your teammate may already be able to see the PR while Claude is reviewing it.
  3. Claude starts a watch. The same session keeps checking the PR. Claude works on review findings it judges to be problems and can push follow-up commits. A watch is like leaving someone at the test bench with the patch. They can correct a failure and run the check again.
  4. You merge when it’s ready. Claude reports back in the session when checks pass and comments have been answered. Read the final diff, including any fixes pushed during the watch. GitHub applies your permissions and the repository’s branch rules to the merge.
Four railway platforms labeled Open PR, Review, Watch and You merge.
Use /ship for the whole route. If your own PR is already open, /steward can take you straight to the watch.

How to ask before Claude pushes a fix

Imagine the PR is open and the review is running. You want to read the findings before Claude edits the branch or answers a colleague in your name. Send this while the review is still running, at the same Claude Code prompt.

Text
From now on, don't push code changes or reply to reviewers without asking me first. Show me the review findings and wait.

That timing gives Claude your request before it starts fixing findings. The initial push may already have happened. Claude Code treats the message as an instruction to Claude and does not enforce it as a permission rule. If someone must sign off before a change lands, require their approval in the repository’s branch rules. Check whether auto-merge is already on. GitHub can merge as soon as a fix satisfies the remaining requirements.

What /steward does on an open PR

If the PR is yours and its branch is checked out, type /steward to start the watch directly. It skips PR creation and the initial code review. It also restarts a watch that ended. If hosted PR Steward is already working on that PR, the local watch cannot start. If someone else owns the PR for your branch, /ship leaves your work uncommitted and unpushed and starts no watch.

The biggest payoff is on a branch that keeps calling you back after you have started something else. Here are the cases I’d hand over, in order.

SituationWhat to hand overWhere you come back in
A test fails on your open PRStart /steward. Claude can work on the failing check, push a fix and rerun the check.Read the fix alongside the test. A passing assertion should still describe the behavior you wanted.
A reviewer asks about an empty inputOn your open PR, the watch can read your teammate’s comment if they have write access, change the branch, reply, resolve the thread and request another review.If empty input is a product decision, use the ask-first message before Claude replies for you.
The target branch has movedThe watch can merge the base branch into yours and work on a conflict, so your reviewer sees a change against current code.Inspect the result where the two edits overlapped.
A lint bot left the actionable commentStart the watch with /steward +my-lint-bot, substituting the bot’s name. On github.com the watch already reads the Claude bot, your comments and those from people with write access.Choose which additional bot should inform the fixes. Name it again if you restart the watch.
A small documentation fix is readyUse /ship to get the branch up, open the PR and run the review.This is the easiest first run because the final diff should still be small enough to read in one sitting.
Levers for checks, comments and conflicts connect to a switch labeled Branch fixes.
A watch can change the branch in response to any of these. Its pushes and GitHub replies use your sign-in.

Where the watch stops

Keep the session open, the machine awake and the PR branch checked out. If you start your next change, use a second clone and session. For more on arranging your workspace, see Claude Code best practices. Otherwise Claude can edit a file you are working on, and your unpushed commits can travel with its next push.

Use /tasks after the review, while Claude is idle, to look for a scheduled task starting with /steward --tend. To end it, type /ship stop. The current turn can finish and post or push. Press Esc to stop that turn too. A GitHub watch ends when the PR closes or merges, when PR Steward labels it, or after seven days. It can stop earlier if the session ends or hits a usage limit.

During unattended turns Claude Code blocks direct commands to approve or merge the PR, enable auto-merge or force-push. Tests and hooks can still run with your credentials. Run a watch where you trust the people who can push to your branch or merge into its base. For a team deciding who can approve changes across a repository, Anthropic describes that separate setup in its Claude Ship announcement. Our Claude Ship overview covers the agents, and the PR Steward guide covers the organization-managed watcher.

Two things worth building around the command

A preflight checklist is the stronger first build. Developers already look for GitHub pull request checklist templates. A platform team could ship a local, read-only check that shows the current branch, untracked files and whether the PR has auto-merge on. End with the files the developer should inspect and the command they can type themselves. The catch is that a filename list alone cannot tell anyone the contents are safe.

A reviewer handoff could help teams evaluating automated code review tools. Start with a report for one PR that puts the original comment, follow-up diff and latest check result side by side. The buyer would be the engineering lead whose reviewers keep reopening threads to work out what changed. Try it on a review that went through several fixes. If the report cannot connect a comment to the right change, leave the connection for the author to confirm.

Does Claude Code /ship need GitHub?

GitHub is where the command can open a PR. On other supported hosts, including GitLab, commit and push the branch yourself. With v2.1.331 or later Claude can review and watch there, with fewer host actions available.

Can I run just the review?

Yes. Type /code-review to get findings in the session. Use /ship when you also want the PR and follow-up work. Local code review reference

What belongs on a pull request checklist before /ship?

Check the branch, untracked files, file contents, permissions and auto-merge setting. Decide whether to open the PR yourself for a draft or a particular base branch. To give Claude a repository-specific checklist for watches, put it in .claude/skills/steward/SKILL.md. See the guide to Claude Code skills.

If your team is choosing who should review the next PR, compare AI code review tools for small teams.

Published
Category
Build
Related Articles
Anthropic's Python to Rust Migration: The Method, Step by Step

Anthropic's Python to Rust Migration: The Method, Step by Step

How Anthropic moved its Messages API from Python to Rust: the old service as the check, Claude agents fixing each difference, and a checklist to copy.Nov 26, 2026Build
NotebookLM API Guide to Notebooks, Sources and Audio Overviews

NotebookLM API Guide to Notebooks, Sources and Audio Overviews

Create a Gemini Notebook from code, add a source and see which Google API can generate an Audio Overview for a personal or business workflow.Nov 26, 2026Build
Grok API: Get a Key and Make Your First Request

Grok API: Get a Key and Make Your First Request

Get a Grok API key, send the official first request, choose a model, and see how billing and rate limits work when you call Grok from code.Nov 26, 2026Build
Claude Code Skills: Where They Live and How to Add One

Claude Code Skills: Where They Live and How to Add One

Add a Claude Code skill from a copyable SKILL.md example. See which copy wins, how slash commands work, and when a team can block inline shell commands.Nov 26, 2026Build
Open WebUI: What It Is, What It Costs, and How to Start

Open WebUI: What It Is, What It Costs, and How to Start

See where team chats and documents go, how the Open WebUI License works, and how to start the interface with Docker and connect a model.Nov 26, 2026Build
Gemini CLI: Who Can Use It and How to Start

Gemini CLI: Who Can Use It and How to Start

Check which accounts still work with Gemini CLI, which models Google supports, and how to install the terminal agent or move a project to Antigravity CLI.Nov 26, 2026Build
Open Source AI Platforms in 2026: Ollama, LibreChat, Dify and 7 More

Open Source AI Platforms in 2026: Ollama, LibreChat, Dify and 7 More

Compare Ollama, LibreChat, Dify and seven more by licence, hosting effort and model costs. Choose the right layer for your company’s AI stack.Nov 26, 2026Build
Claude PR Steward

Claude PR Steward

See what Claude PR Steward does to one pull request, how to start it manually, where to cap spend, and which GitHub rules protect your merge.Nov 25, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.