DEV Community

Cover image for Should you replace your shipping pipeline with Claude Code's /ship? I raced it against mine.
Kelvin
Kelvin

Posted on

Should you replace your shipping pipeline with Claude Code's /ship? I raced it against mine.

Short answer: you probably should. I won't. This post is how to tell which one you are, based on one real bug, one real race, and the numbers from it.

My setup

I run a job platform for Indonesians on my own. Claude Code agents write most of the code, several sessions at once, on an 8 GB MacBook. Since March I've built a pipeline around them:

  • 20 shell hooks around the agents' tool calls. Each one exists because an agent broke something once: one ran git stash in a shared checkout and wiped another session's work; one merged a PR eight seconds after another landed, on a stale CI result.
  • A preflight that checks the PR body against what CI requires.
  • CI on rented runners, because the laptop can't run the real gate.
  • A merge train that batches green PRs, merges them without me, ejects any that break, and re-tries them. Its target: no PR sits longer than six hours.

Last week it merged 341 PRs.

Then Claude Code shipped /ship: commit, push, open a PR, review it in the session, watch CI and review comments for up to 7 days. It never merges. The question I had to answer: did I waste eight months?

The test: one real bug

Production cron_runs for the scam-review job, before and after the fix

Every hour a cron screens new job posts for scams. On 2026-11-24 it failed four runs:

D1 DB is overloaded. Too many resources consumed within a 10 second window.
Enter fullscreen mode Exit fullscreen mode

The retry gave up after 3 seconds, so every retry landed in the same 10-second window, and each failed run left the rest of its batch unscreened. The fix was small. At 5:29 in the morning I typed /ship.

What happened

GitHub timeline: the merge train ejects and then lands the PR

First push: blocked by my own hook. /ship showed the hook's first output line and failed to push some refs. The line naming the failing check was cut off. I reran the hook three ways by hand (a real dry-run push, Claude Code's own PATH, a fresh worktree). It passed every time. I still don't know which check failed.

A guard tripped on it too. My worktree guard refused /ship's git -c core.hooksPath=/dev/null fetch, because it blocks git config injection inside an agent's isolated worktree.

Second push: PR opened at 02:16 UTC. /ship started its review.

My train didn't wait. It picked up the PR on its own. At 03:12 it ejected it because e2e-smoke went red; at 04:31 it landed it on main. 2 hours 14 minutes.

Then the review came back with two real bugs:

  1. The longer retry gave each of three writes up to 15 seconds. A job started near the run's 170-second deadline could push the run past the backend's ~180-second wall limit and kill it.
  2. The retry helper could retry an error a lower layer had already waited out for 45 seconds, so one write could stall for ~90.

Both were already merged. The fixes went out in a second PR, with a test for each that fails on the merged code and passes after (2 failed on the merged code, 11 of 11 passing after). That PR needed four body sections my CI requires on fix PRs. /ship had written none of them.

The database's own log of the cron, before and after the first fix merged at 04:31 UTC: four write failures on the 24th and one more just after midnight, then every scheduled run clean so far. The two LLM failures are a separate provider problem, and one manual run at 04:35 ended without finishing.

Should you replace yours?

Terminal: two tests fail on the merged code, 11 of 11 pass after the fix

Replace it with /ship if

  • A human merges every PR. /ship never merges, and that's a feature: someone reads before code lands.
  • Your repo has no custom PR rules. /ship writes a Summary and a Test plan. If CI demands more, you'll be editing every PR body.
  • You don't already wrap your agents in hooks. Mine and /ship stepped on each other twice in one run.
  • You want a real review and zero upkeep. It found two bugs my whole pipeline let through.

What to expect if you switch

  • Commit, push and PR in one command, with a review in your session.
  • A CI watch for up to 7 days that handles failures and review comments.
  • No merge. You still press the button.
  • No knowledge of your repo's rules, and when a hook fails, possibly only the first line of why.
  • In a bypass-permission session it won't watch the PR; it tells you to switch mode first.

Keep your own if

  • Merges run without you. Mine runs 24/7, and the question isn't "who merges" but "what does the merge wait for".
  • CI enforces repo-specific rules. A generic tool can't know them; a preflight can.
  • You run many agent sessions on one machine and already guard what they can do. Your guards will catch /ship too.

What I'm actually doing

GitHub diff of the follow-up fix

Neither. I'm keeping the pipeline and taking the one thing /ship did better: the review. The train will only take a PR once a review has run and its findings are fixed on the same PR, so the next "fix for the fix" doesn't land after the bug.

The cost, from this run: the review took 68 seconds and about 78k tokens. At 341 PRs a week that's around 27M tokens weekly, so it will run on fix and feature PRs and on risky paths (database, cron, payments), not on docs and chores.

The real lesson

My pipeline did exactly what I built it to do. It was fast, and it was safe from agents doing damage. It never waited for anyone to read the code. A built-in tool that knew nothing about my repo did the one thing mine skipped.

Before you decide whether to replace your setup, answer one question: what does your pipeline actually wait for before it merges?

If you want a second pair of eyes

I've run AI coding agents in production on a real product for eight months, alone: the hooks, the guards, the merge train, and the incidents behind each of them. If you're deciding between /ship and your own setup, send me a short description (who writes the code, who merges, what CI checks) and I'll tell you which side you're on and what I'd change first.

I take on a few consulting projects for teams setting up agent pipelines, and I'm open to the right full-time role in AI developer tooling or agent infrastructure. Comments and DMs are open.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The ordering problem is the whole post for me — your train did exactly what it was built to do, and that is why the two bugs were already merged when the review landed. Gating the train on a completed review is the right fix, but it raises a question: does the train now wait on the review synchronously, or poll for a reviewed label? If the review is slow or asks for changes, the train either idles or you get a queue of reviewed-but-stale PRs. Also, /ship showing only the first line of a failed hook's output is a nasty failure mode — that is the one piece of information you actually need, and it is the one it hides.