Dev.to AI 🤖 Ai 👁 0 📖 3 min read

Claude Code just added /ship. Here’s what it actually does

Yesterday Anthropic announced Claude Ship, and the part that caught my eye was a new slash command you type right in the terminal: /ship. Most of my pull requests are already automerged. I have rules in place that deplo

Claude Code just added /ship. Here’s what it actually does

Yesterday Anthropic announced Claude Ship, and the part that caught my eye was a new slash command you type right in the terminal: /ship.

Most of my pull requests are already automerged. I have rules in place that deploy without waiting for my review. So my first question was simple: can /ship take this further, to the point where I don't have to supervise anything?

I read the docs and tried it. Here is what it actually does, what it doesn’t, and how to run it on your next branch.

// Detect dark theme var iframe = document.getElementById('tweet-2125017383358066999-376'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2125017383358066999&theme=dark" }

What /ship does

/ship runs in the Claude Code CLI, in a terminal, inside your local clone of a GitHub repo. Cloud sessions don't have it.

It does four things, in order:

  1. Opens the pull request. If your branch doesn’t have one, /ship commits your work, pushes the branch, and opens the PR as you.
  2. Reviews it. Claude runs /code-review on the change.
  3. Watches it. Claude keeps checking the PR and pushes fixes for failing checks, merge conflicts, reviewers’ comments, and its own findings.
  4. You merge it.

That third step is called a watch, and it is the one that makes this different from asking Claude to fix the CI. You don’t ask again. Claude keeps working the pull request while it is open.

If your pull request is already open and you don’t want a review first, type /steward instead. Same watch, no review.

How to run it

  1. Update Claude Code. You need v2.1.330 or later, so run claude update.
  2. Check the rest. GitHub CLI 2.63 or later, signed in with gh auth login, and git 2.38 or later. With an older gh, Claude can't push fixes.
  3. Open Claude Code in your clone, on the branch with your change.
  4. Type /ship.

There is no confirmation prompt. After you press Enter it can commit, push and open the pull request, which brings me to the one thing I would check first.

Check your folder before you type it

/ship can commit all your uncommitted changes, new files included. It looks for secrets by file name, so a file called .env stops it, but a notes.txt with a key inside does not.

Run git status first, then drop anything you don't want in the pull request:

git stash push -u -- notes.txt

The arguments worth knowing

Put the effort level first, then the rest:

  • low, medium, high, xhigh, max: review effort. The default is high.
  • 41 or a pull request URL: work on that one.
  • +botname: also read that bot's comments. Handy if your repo has a lint bot.
  • stop: end the watch.
  • terms: show what Claude may do during a watch, and what limits it.

So /ship low 41 +my-lint-bot is a quick review of PR 41 that also reads your lint bot.

If you want the watch to work without stopping to ask you, run it in auto mode. Check it is alive with /tasks, and end it with /ship stop.

Is it worth it?

Yes, for the part it actually covers. Push a fix, wait for CI, read a comment, push another fix: that loop is the slowest part of my week, and the watch is exactly that loop.

But here is the thing: the watch lives in your session. It ends when the session ends, when you press Esc, when you check out another branch, when you run /clear, or after seven days. And /ship never merges or approves anything. You still do that.

So it is not the independent process I was after. The part that runs on its own across a whole repo is the rest of Claude Ship, the Code Review, PR Steward and Claude Approvals agents, which an owner turns on for a Team or Enterprise organization. /ship is the version you run yourself, on your own change, from your own terminal.

Update, open your next branch, and type it. You will know in one pull request whether you want it running on all of them.

Links

You can follow me on my social media:

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.