Claude Ship: Let Claude Review, Fix and Approve Your Pull Requests
How to get Claude reviewing, fixing and approving your code changes, with /ship for one developer and Claude Ship for a whole team.
Back to all free guidesSo in the reel I showed you Claude Ship, Anthropic's new way to get code changes checked without waiting on a person for every one. AI writes the code fast now. The slow part is everything after: the review, the fixes, the sign-off. Claude Ship hands that to three agents. There are two ways in. If you just want to try it on your own work, use /ship in Claude Code. If you run a team on Claude Team or Enterprise, an admin can switch the whole thing on for a repo.
What it does
- Code Review reads your change next to the code around it and looks for logic errors, security vulnerabilities and broken edge cases. Its findings land as comments on the exact lines, ranked by how serious they are.
- PR Steward fixes what's red. Failing checks, merge conflicts, review comments from people, and the findings Code Review marks Important. After every push it comments with what it changed and how to undo it.
- Claude Approvals reads a policy file your team keeps in the repo and approves the routine changes your rules allow. Anything the rules say needs a person still goes to a person.
Anthropic's own number: on the Claude Code team, where Claude's review is one part of the process, merged pull requests more than doubled from June to September.
Before you start with /ship
You need three things on your machine:
- Claude Code v2.1.330 or later.
- The GitHub CLI, version 2.63 or later, signed in.
- git 2.38 or later.
Check and update them like this:
claude update
gh --version
gh auth login
git --versionYour repo has to be on GitHub. And one habit worth building before you run it: /ship can commit everything you haven't committed yet, new files included. So run git status first and stash anything you don't want in the pull request. Look inside your files for keys or passwords too, because it only spots secrets by file name, like .env.
Run /ship
Open Claude Code in your repo, ideally the same session you built the change in, because Claude writes the commit message from that conversation. Then type:
/shipClaude commits your change if it needs to, pushes it, opens the pull request and reviews it. Then it keeps an eye on the pull request in that session, working on feedback and failing checks. Keep the session open, your computer awake and the branch checked out while it watches. To stop it, type /ship stop.
If you'd rather Claude get on with it without asking you at every step, use auto mode. In the normal mode it waits for you at each prompt. Running /ship counts as your normal Claude Code usage.
Turn it on for a team
This part is for Claude Team and Enterprise. You need the Owner role. Go to Organization settings > Claude Ship on claude.ai, then turn on one agent at a time, in one repo, in this order:
- Code Review. Connect GitHub, install the Claude GitHub App, add the repo, pick a review level (Quick, Standard or Deep) and set a monthly spend limit.
- PR Steward. Start it on Manual, so it only jumps in when someone comments
@claude stewardon a pull request. Give it a spend limit too, because it has none of its own until you set one. - Claude Approvals. Add a policy file to the repo at
.claude/approvals.ymland leave it in observe mode first. That way the Claude Approvals check just reports what it would have decided, and you can see if you trust it before you make it a required check.
Here's the starter policy from Anthropic's docs. Any change needs two people, but when Claude's review passes, one is enough and Claude approves. Changes to the rules themselves, under .claude/, always need two people. The mode: observe line is what keeps it in observe mode:
version: 1
mode: observe
rules:
- purpose: "A change takes two people. When Claude's review passes, one is enough and Claude approves."
paths: ["**"]
verdict: { claude: comments, seats: 2 }
override:
- { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } }
- purpose: "A change to the review rules takes two people."
paths: ["**/.claude/**"]
nested: inherit
verdict: { claude: comments, seats: 2 }Or type /claude-approvals in Claude Code inside your repo and describe the rules you want, and Claude writes the file for you. That needs Claude Code v2.1.331 or later.
Claude Ship is billed on the tokens it uses, through your organization's usage credits, separate from your plan's included usage, so set those spend limits on day one. Observe mode is billed too, and this policy can start a Code Review at every push.
Where to read more
- Introducing Claude Ship, Anthropic's announcement
- The Claude Ship docs
- The /ship docs