Claude Code's /ship Command: Automating Pull Requests Explained
Anthropic's /ship beta lets Claude Code commit, push, open a PR, and fix review comments on its own. Here's how the workflow works.

What does the /ship command do in Claude Code?
/ship is a beta command in Claude Code that automates the back half of a coding task: once your change is finished, you type /ship and Claude commits the code, pushes it to the remote, opens a pull request on GitHub, and then stays attached to that PR, watching for failing checks, fixing them, and responding to review comments. The one thing it holds off on, until you explicitly give it permission, is merging. Boris Cherny, who leads Claude Code at Anthropic, has said he uses it “all day, every day,” which is a strong signal that it’s meant for routine, repeated use rather than a one-off demo trick.
TL;DR
/shipcovers the full PR lifecycle after a change is complete: commit, push, open the pull request, monitor CI, fix failing checks, and reply to review comments.- Merging stays a manual step by default, so a human still decides when code actually lands on the main branch.
- It’s currently in beta, meaning the behavior and defaults could shift as Anthropic collects more usage data.
- It pairs naturally with
/code-reviewor third-party review plugins, like the Codex plugin for Claude Code, so you can get a second model’s opinion before/shipeven opens the PR. - It fits into a broader “treat Claude like an employee” workflow where you delegate not just writing code but the follow-through work of getting it merged.
- It reduces the context-switching cost of PR babysitting, which is normally where a lot of a developer’s day gets eaten up waiting on checks or responding to nitpicks.
Build a credit limitreview app for800 relationshipmanagers
One prompt. Role-based access, audit trail and SSO come built in.
How does the /ship workflow actually run?
The sequence is straightforward. You finish a change in a Claude Code session, run /ship, and from there Claude takes over the mechanical parts of shipping that change:
- It commits the working changes with a message.
- It pushes the branch to the remote repository.
- It opens a pull request on GitHub.
- It keeps watching the PR after opening it, which means it checks CI status, catches failing tests or lint errors, and attempts fixes.
- It reads and responds to review comments as they come in, iterating until the PR is in a mergeable state.
The merge itself is withheld unless you’ve set Claude Code up to operate with a more autonomous permission level. That’s a deliberate boundary: automating the busywork around a PR is low-risk, but automating the decision to put code into production is a different category of risk, and Anthropic’s own permission system treats it that way.
Why does /ship matter for how people use AI coding tools?
Most AI coding assistants stop being useful at the exact point a PR workflow gets annoying. You can get a model to write a feature or fix a bug quickly, but then you’re the one committing, pushing, writing the PR description, watching CI, and going back and forth on review comments. That loop is where a lot of the real time cost of software work lives, and it’s mostly mechanical rather than creative.
/ship targets that loop specifically. Instead of treating the pull request as something you hand off to a human process once the “AI part” is done, it extends the agent’s responsibility through the entire lifecycle of the change. That lines up with a broader shift in how Claude Code is being used: not as a one-shot code generator, but as something closer to a team member who follows a task through to completion, including the parts that used to require you to sit and wait.
This also connects to Claude Code’s permission modes. Auto mode, for instance, lets a second model review and approve routine actions instead of requiring a human to click “allow” on every command, with Anthropic reporting it catches a large majority of risky actions that manual review tends to miss. /ship extends that same philosophy to the PR stage: let the agent handle the repetitive, well-defined steps, and reserve explicit human approval for the one step that actually changes what’s running in production (the merge).
Is /ship worth using right now?
For teams already running Claude Code on real repositories, /ship is worth trying, with the usual caveats that come from it being a beta feature. The upside is concrete: fewer manual steps between “the code works” and “the PR is open and being watched,” and less time spent manually re-checking CI status or copy-pasting fixes in response to review comments.
The caveat is that beta features change. Anthropic can and likely will adjust how /ship behaves, what it automates by default, and how much autonomy it’s given as they gather feedback from real usage (Cherny’s daily use of it is a good sign the team is dogfooding it seriously). If you adopt it now, treat it the way you’d treat any new automation touching your git history and GitHub repo: start on lower-stakes branches, keep merge permission gated, and watch a few PRs go through the full cycle before trusting it on anything sensitive.
It’s also worth pairing with a review step before /ship even runs. Claude Code supports /code-review style checks with a fresh agent that hasn’t seen the conversation, and there’s an official Codex plugin that lets you run /codex-review for a second opinion from a different model family. Catching issues before the PR opens means /ship has less to clean up afterward, and a second model often catches things the first one missed simply because it’s not carrying the same blind spots from the conversation.
How does /ship fit with other Claude Code automation features?
/ship doesn’t operate in isolation. It sits downstream of a few other mechanisms worth knowing about if you’re trying to build a more autonomous Claude Code setup:
- Auto mode handles the moment-to-moment approval of commands during the coding session itself, so you’re not manually approving every file write or shell command before you even get to the ship stage.
- Code review commands (Claude’s own
/code-reviewand third-party options like the Codex plugin) act as a quality gate before you run/ship, catching bugs or duplicated logic a single model might miss. - Permission settings control how far Claude Code is allowed to go on its own. By default,
/shipstops short of merging, but as you build trust in the workflow, you can extend those permissions.
Put together, the picture is a pipeline: auto mode handles session-level approvals, review commands catch mistakes before they ship, and /ship automates everything from commit to an open, monitored PR. Merge is the final human checkpoint, at least until you decide otherwise.
Frequently Asked Questions
What exactly triggers when I run /ship in Claude Code?
Running /ship after finishing a change tells Claude Code to commit your changes, push the branch, open a pull request on GitHub, and then continue monitoring that PR, fixing failing CI checks and responding to review comments until it’s ready to merge.
Does /ship merge the pull request automatically?
No. By default, /ship stops at opening and maintaining the PR. Merging requires explicit permission, keeping a human decision point before code lands on the main branch.
Is /ship available to all Claude Code users?
It was launched as a beta feature, meaning it’s accessible but still being refined. Behavior and default settings may change as Anthropic gathers more real-world usage.
Can I use /ship alongside other code review tools?
Yes. It works well paired with Claude Code’s own review commands or third-party options like the Codex plugin for Claude Code, letting a separate model review changes before or after /ship opens the pull request.
Who is /ship meant for?
It’s aimed at developers already using Claude Code as an agentic coding tool who want to cut down on the manual steps between finishing a code change and getting it fully reviewed and mergeable on GitHub.