Claude Ship against our own pull request tooling, and a review on our own runner¶
Type: idea. Status: evaluating (2026-11-28): three questions for the owner, open in #1060.
Claude Ship has three agents that run on GitHub: Code Review, the PR Steward and Claude Approvals.
It also adds the local /ship commands. This page sets each against what this repository already
does, and proposes how to get the same on our own runner under the main rule,
buy, don't build. How these pages are built: index.
Questions for the owner¶
- Move the review to the runner on the server, with severity, a summary and a check run? It keeps Anthropic's open-source review plugin and the Claude Code GitHub Action. Ours is only about 130 lines of glue. Recommended: yes, after one test pull request.
- Add a fixer workflow on our runner that fixes failing checks, answers review comments and
merges the base into a conflicted pull request? It has at most three rounds and never merges.
Recommended: yes, after a rerun of the pilot: its first run showed that
/ship:stewardcannot watch the bot account's pull requests (pilot), so a fixer on the runner is the only bought route for those. - Turn on "Require review from Code Owners" in the main ruleset, with no bypass for the bot account? This is a setting only the owner can change. It is off today, so CODEOWNERS enforces nothing yet. Recommended: yes, now.
What Claude Ship does¶
All three agents run on Anthropic's infrastructure and need a Team or Enterprise plan. The documentation was read in full on 2026-11-28.
| Agent | What it does | Limits |
|---|---|---|
| Code Review | several finder agents in parallel, a verify step that drops false positives, dedupe and ranking, then inline comments, a summary and a "Claude Code Review" check run; severities Important, Nit and Pre-existing; rules from REVIEW.md and CLAUDE.md on the default branch; levels Quick, Standard and Deep; on every push, once, or on request |
never blocks a merge; billed per token; not self-hosted |
PR Steward |
fixes failing checks, merge conflicts and small review requests by pushing commits; replies to large requests; @claude stop stops it |
never approves or merges; needs a ruleset with one required approval and no bypass for its app; no spend limit until one is set |
| Claude Approvals | a policy file names who must approve which paths; a check run reports what is missing; can approve where the policy allows | blocks only as a required check |
/ship, /ship:review, /ship:steward |
commit, push, open the pull request, review, then watch it for up to seven days, fixing checks, conflicts and comments | command line only; no background or bypass-permissions sessions; its pushes skip git hooks, so our pre-push gate does not run |
How it compares to ours¶
| Area | Ours today | Gap against Claude Ship |
|---|---|---|
| Review | claude-review.yml runs Anthropic's open-source code-review plugin through the Claude Code GitHub Action with the owner's subscription token: four finders in parallel, a checker per finding |
no severity, no summary, no check run, no REVIEW.md, no review after later pushes; runs on GitHub's runners, because the server's job container cannot run Claude's sandbox |
| Defences | a refusal of hidden text in pull requests, a network sandbox, a scan of what Claude posted for secrets | ahead of Claude Ship here |
| Fixing a pull request | babysit-pr, in a session: round caps, Copilot pacing, the push slot | none on GitHub's side without a session |
| Who must approve | merge-kind in the coordinator (paths, labels, ADRs, breaking changes), the merge guard hook |
CODEOWNERS lists the paths, but the ruleset does not enforce it |
Recommended setup¶
1. Review on our runner, about 130 lines of glue. The model finds and verifies, a script posts. This removes the reason the review needed GitHub's runners.
- Job A runs on the server with read-only permissions. It writes the diff,
REVIEW.mdand theCLAUDE.mdfiles from the default branch to files, then runs the plugin without posting. The findings come back as JSON with a severity each. The model gets no shell, noghand no posting tool, so it needs no sandbox. - Job B never runs the model. It checks the JSON against the schema and for secrets, posts one review with inline comments and a severity table, and creates a neutral check run with the counts.
- Kept: the hidden-text refusal, one review per pull request, the turn and time limits. New: an
owner-only
@claude reviewasks for another review.
2. A fixer on our runner, about 150 lines, if question 2 says so. One workflow with three jobs (failing checks, review comments, conflicts), each running the same GitHub Action:
- It is switched on with a label per pull request, so it never fights a local
/ship:steward. - It makes at most three rounds per pull request, then labels the pull request
steward:stuck. - It never retries its own failed fix, never merges, approves or force-pushes, and leaves
alone a change to
.github/,CLAUDE.mdor.claude/.
3. Approvals from GitHub itself: the ruleset setting in question 3, plus a small required job
of about 40 lines for the rules that are not paths (labels, ADRs, breaking changes). The job
complements the coordinator's merge-kind and the merge guard hook; they stay until the ruleset
and the job cover every case merge-kind handles (forks, Dependabot, large changes and spec
paths among them) and the ruleset alone stops a raw merge by the bot. Only then do they go, in
the same change, under the main rule.
Claude Approvals for our own skills¶
Read in full on 2026-11-28: the setup, policy and classifier pages. Not now.
- Approvals runs only on Anthropic's service, for Team and Enterprise plans. There is no published schema, no local evaluator and no licence for the file format, which is a beta.
- The format can say which paths need the owner, the owner's Approve on the current head, and the
Dependabot and size rules. It cannot read labels, titles, linked issues or the
owner:approvedpre-approval, and it has no "the owner merges" tier, so about half ofmerge-kindwould stay in code beside it. - Reading the file with an evaluator of our own would be about 250 lines and a second source of the same policy: building, under the main rule.
So: turn on code-owner review in the ruleset now, with the small job for labels, ADRs and
breaking changes (question 3 and the recommended setup). Write .claude/approvals.yml only if a
Team plan comes, first in observe mode. Found on the way: .gitattributes, .gitmodules and
symbolic links are not among our owner paths today, though Approvals protects them.
Which login the workflows use¶
Read in full on 2026-11-28. Max and Ultra plans include monthly API credits: $100 on Max, $200 on Ultra, the plan called Max 20x before. They pay for the Claude API and the Agent SDK through an API key of a Console organization linked to the plan, expire each month, and do not cover interactive Claude Code. The workflows today use the subscription token, so they never touch these credits.
The Claude Code GitHub Action takes an API key as well as the subscription token, and recommends an API key for a shared secret. Proposed: link a Console organization to the plan, make a workspace for CI with its own spend limit and no auto-reload, and give the workflows its key. CI then stops drawing on the owner's own limits, gets a hard cap, and leaves the grey zone of the legal page. Whether the Action's runs draw on the included credits is not confirmed; one run and the Console's cost page settle it. One review costs an estimated $1 to $10 at list prices, so the credits cover a few dozen reviews a month.
Pilot 2026-11-28¶
Two identical pull requests, #1057 driven by Claude Ship's commands and #1058 by babysit-pr, run from the owner's Windows machine.
| Claude Ship (#1057) | babysit-pr (#1058) | |
|---|---|---|
| Started | /ship:steward refused: the pull request was opened by the bot account, not the session's account; /ship fell back to review only |
yes |
| Result | blocked: no push, three threads unanswered | green, merge state clean, in about 17 minutes of work: one fix round, one review round |
| Review findings | its own review found the three reviewers' findings and five more none of them saw | checked two against the code and the ruleset, fixed and resolved them; escalated the scope question to the owner instead of calling the pull request done |
| Guards | none of push slot, round cap or escalation | push slot, round cap, never skipped a hook, no merge without consent |
| Owner steps | typing the command; cannot be started by an agent | one go-ahead after a local hook fault; one decision still open |
What follows: babysit-pr stays: Ship's watch cannot drive the bot account's pull requests and needs a typed command. Ship's review is the strongest reviewer here and is worth buying as an extra review step. babysit-pr's escalation is too heavy for one question (a page, the Question Board, a comment and two labels); it should become the in-session question of buy, don't build, decision 3.
Found on the way: on Windows the local semgrep pre-push hook crashed in a worktree with a long
path, and Git Bash rewrote its --include paths so that a passing scan had checked no file. CI's
semgrep still ran. The fix is a separate pull request, because it touches scripts/ci/.
Critical assessment¶
What critics say¶
- The terms of a subscription in CI are not settled. Anthropic's
authentication page offers the token from
setup-tokenfor CI, while its legal page says plan limits assume ordinary individual use. Read in full. - Automated fixers loop. Community guides on CI repair agents, such as this one, warn that a fixer re-triggered by its own push needs a hard round cap. Search results only.
Our assessment¶
| Concern | Evidence | Severity | What would settle it |
|---|---|---|---|
| Law and compliance: a subscription token in CI | Anthropic's own pages point both ways | minor once CI uses an API key | the Console key and its spend limit (login) |
| Security and data protection: the server runner has no sandbox and reaches the private network | the runner documentation | serious for the fixer, minor for the review | the review model has no shell; the fixer holds only its token |
| Cost and economics: the review starts four finders and a checker per finding, all on the plan's quota | the plugin's own structure | unknown | watch refused runs for two weeks |
| Reliability: returning the plugin's findings as JSON is untested | not tried yet | unknown | one test pull request |
Bottom line¶
Trial small: move the review to the server on one test pull request; decide on the fixer after the pilot.
Where it came from¶
Four analyses on 2026-11-28: the Claude Ship documentation read in full (18 pages), a map of our
review, babysit-pr and merge code, a design for the review on our runner, and options for the
fixer and approvals. They read the source of the Claude Code GitHub Action and of Anthropic's
plugins. The pilot of /ship:steward against babysit-pr runs in parallel.