Vibeleaderboard
← All Intel
Intel / article

Handing PR Follow-Up to Claude Code with /ship and /steward

Source
claude.dev
Author
ClaudeDevs
Date

Context

When a developer opens a pull request, the proposed change a team reviews before merging it, small chores follow: a failed , a batch of review comments, a conflict after the main branch moves. A guide by Addy Osmani on Anthropic's developer blog, shared by ClaudeDevs in a post, explains how a developer without admin rights can hand those chores to Claude Code. The core is what the guide calls a watch. Running /ship commits pending changes, pushes, opens the pull request under the developer's own account, reviews it with /code-review and fixes the findings it judges valid, then keeps watching the pull request for up to seven days, working on failing checks, conflicts and review comments until the pull request is merged or closed. /steward runs only that watch, without the review, on a pull request the developer already opened. This is the do-it-yourself side of the Claude Ship beta announced a day earlier: it works before an admin turns on any of those team agents, and the guide warns not to confuse /steward with the cloud PR Steward service an admin enables, because the command runs as the developer, in their own session.

The watch is meant to clear small problems and hand back the rest. Claude is told to make small changes and escalate larger ones, such as a request to redesign an API or a security issue it could not resolve, and it pushes at most three times for a given issue before reporting what it tried and escalating to the author. By default it reads comments from the developer, people with write access and the Claude GitHub App; other bots can be added with +name, and their comments are treated as claims to check against the code. Claude is told never to merge, and Claude Code restricts the and GitHub CLI commands it can run during an unattended turn so it cannot merge or force-push directly. Teams can write down how their pull requests should be looked after, such as how to regenerate a lockfile or which check is flaky, in .claude/skills/steward/SKILL.md, which the local watch reads from the working directory.

The hand-off depends on the developer's own setup. The watch runs on their machine and uses their quota, so closing the laptop stops it, and the model turns it spends while they are away count against their plan or API bill. It needs a GitHub CLI login, watches only pull requests the developer opened, pauses at every prompt unless Claude Code is in auto mode, refuses to run in bypass-permissions mode, does not start on Windows, and needs the branch left checked out, so the next task belongs in a separate worktree, a second checkout of the same repository. /ship also commits all pending changes as if git add -A had been run, which the guide says surprises people, though it skips files that look like secrets and rule files such as CLAUDE.md, and in a public repository it commits nothing for the developer.

The largest limit is trust. Because the watch merges the base branch into the pull request when needed and then runs commands like the tests, anyone who can land changes on that base branch can run commands on the developer's machine during the watch, and the guide says to use it only where the developer trusts all of them. The guide also says the never-merge instruction and the command limits do not cover every route: the test script runs with the developer's credentials, typing a message during a turn lifts the command limits for that turn, a fix from the watch can be what lets GitHub auto-merge proceed, and the watch's commits skip the repository's git hooks, so required checks belong in CI and branch rules. The case for accepting these limits is Osmani's own experience: he says handing this follow-up to an agent minimizes switching and keeps him in a flow state, and the guide offers no measurement beyond that. It also tells teams to keep their existing tests, scanners and reviewers, because these tools can miss bugs and security problems.

Key takeaways · AI-distilled
  • /ship commits pending work as if you had run git add -A before pushing, which surprises people. It refuses files whose names look like secrets and rule files such as CLAUDE.md, REVIEW.md, .claude/ and .github/, and in public repositories it commits nothing.
  • The local watch runs as you, on your machine and your quota, for up to seven days, and closing the laptop stops it. It needs gh auth login, its own checkout with the branch left checked out, and will not start if the repo has a PreToolUse or Bash permission .
  • Osmani states the trust boundary plainly: the watch merges the base branch and runs your tests, so anyone who can land changes on that branch can run commands on your machine. Typing a message during a turn also lifts the unattended constraints for it.
  • Which file a rule belongs in depends on the reader. Local /code-review reads CLAUDE.md but not REVIEW.md, and the local watch reads the steward skill from your working directory while cloud PR Steward reads it from the default branch.
  • In .claude/approvals.yml the advisory line is load-bearing. Once a policy is on the default branch, Code Review runs automatically only on PRs matching a rule that names it, and a policy naming it can start billed reviews even where Code Review is turned off.
Terms in this piece · Glossary
  • Automated check — A program that reads the output, the record or the destination and reports whether a stated condition holds, without a model.
  • Git and version control — A system for recording and comparing changes to a codebase.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
More from ClaudeDevs
Recommended reads
Comments

Checking sign-in…

Loading comments…