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

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.
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.
/ship- 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. - Claude reviews the change. It runs
/code-reviewon 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. - 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.
- 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.

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

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







