Skip to content

The token-capped /ship child on Claude Code now starts its prompt with the typed /ship command (GST-3078) - #4487

Merged
capy-ai[bot] merged 2 commits into
mainfrom
ship-child-starts-with-typed-ship
Nov 18, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
ship-child-starts-with-typed-ship

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

The /ship child that gstack-ship-budget launch starts on Claude Code now opens its prompt with /ship --continue <brief> (or /gstack-ship under skill_prefix), so Claude Code expands the skill instead of hoping the model finds it.
Why: Claude Code expands a skill only when the prompt starts with the typed command, and unattended Opus 5.5 found a skill from its description in 0 of 60 sessions (gstack-evals#366).
Nothing to do: the rule for parents is now in docs/unattended.md.

What changed
  • lib/ship-handoff.ts: the child prompt starts with the typed command, then the session id and the verify-handoff, steps and return instructions. The -- before the prompt (Token-capped /ship hands its child Claude Code session its prompt (#4448) #4452) stays. The command name follows skill_prefix from the gstack config, because a typed name that isn't installed expands to nothing.
  • docs/unattended.md: new section "Starting a child agent: type the skill first".
  • docs/ship-budget.md: the launch step now says the child's prompt opens with the typed /ship --continue <brief> and links to that section.
  • capy/skill/gstack/SKILL.md: the Claude Code launch line said "tell it to load gstack and name the intended workflow", which invites the same prose prompt; it now says to start with the typed /<skill> and points at the docs section.
  • test/ship-budget.test.ts: a new test launches the child through a fake claude and checks the prompt starts with /ship --continue <brief> , and with /gstack-ship when skill_prefix: true. It failed on main (the prompt started with "Load gstack.") and passes now. No paid probe.
Is the Skill tool needed in the child's allowed tools? No

The child keeps --allowedTools Bash,Read,Edit,Write,Grep,Glob. Claude Code's Agent SDK docs ("Commands in Agent SDK sessions") say a command is sent by putting it in the prompt, that dispatch doesn't depend on the skills option, and that sending /<name> runs a user-invocable skill even when the skills list omits it. The Skill tool is the model's own way to load a skill, which is the route that failed. gstack-evals#366's typed arms also delivered the skill text with no Skill call. /ship reads its section files by path with Read, so adding Skill would only widen the child beyond edits and the shell. The claude CLI isn't installed on the machine that made this change, so its --help wasn't read; the docs are the source.

Every place gstack starts a child agent, and what this PR does there
Site Host Names a gstack skill? Action
lib/ship-handoff.ts (gstack-ship-budget launch) Claude Code claude -p yes, /ship fixed: typed /ship --continue <brief> first
capy/skill/gstack/SKILL.md Claude Code launch line Claude Code, launched by a Capy parent yes, any fixed: says to type /<skill> first
ship/sections/budget-handoff.md.tmpl Capy brief Capy subagent yes, /ship unchanged: Capy doesn't expand typed commands; the subagent reads SKILL.md by path
lib/claude-code.ts (/claude-code second-model review) Claude Code claude -p --disable-slash-commands no, review material only none
lib/outside-voice-runner.ts, scripts/resolvers/outside-voice.ts codex exec - no, review packet only none
bin/gstack-codex-probe codex exec "reply OK" no none
spec/sections/gate-and-file.md.tmpl (/spec --execute) Claude Code claude -p no, the spec plus the coordinator contract none
scripts/cso-eval-producer.ts Claude, Codex, Gemini /cso, with the whole SKILL.md inlined and hash-pinned unchanged: the text is already in the prompt, and changing it would change an eval's pinned input
scripts/skill-gates-smoke.ts Claude Code against a scripted model server yes unchanged: the scripted server issues the Skill call itself, and it tests hooks, which are out of scope
browse/src/terminal-agent.ts interactive Claude Code terminal no, the person types none

The paid E2E harness under test/ launches its own claude -p sessions; those prompts are the measurement and weren't changed.

Agent notes

Notes

  • Evidence: GSTA-614 audit (bbf48aa) and gstack-evals#366 (9fa19a7).
  • Not verified: that a live claude -p expands the typed command for this child (no paid probe).
  • Out of scope: hooks, routing defaults, safety and start hooks, CLAUDE.md routing.

Review

  • REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=0 scope=frozen ledgers_read=2 dispatches=4
  • Plan as printed by gstack-review-plan: class gate, depth full, 5 dispatches, one pass on tree 4dc6a00f5c42 (base bbf48aa). Readers: batched specialist (testing, security, state-machines), red-team, native adversarial, second-model review on openai/gpt-6.1-sol (certified setting) and the targeted reader. All returned blocking=0; VERIFY: clean briefs=5 outputs=5.
  • Pre-Landing Review: 1 issues — 0 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 1 noted
  • Gate edits: 2 listed, 2 read, 0 findings — 0 kept, 0 restored, 0 open (the RH-1 hunk in test/ship-budget.test.ts moves the launch test under the new launchChild helper with every assertion kept)
  • Noted, red-team: the "60 of 60" figure in docs/unattended.md was unverified from the eval's PR page. Checked: gstack-evals#366 README line 81 ("60 of 60 on each model") and report.txt line 5 (Opus command arm, steps seen 60) support it.
  • Noted, adversarial (all Low, classified as notes): a skill_prefix read from a different state root than the install's can type a name that is not installed (falls back to the old behaviour); the shared config reader keeps trailing YAML comments (lib/state-root.ts, outside this diff); the brief path is unquoted in the prompt (unchanged from before); the "no Skill tool needed" claim, supported by the eval's command arm recording 0 Skill loads beside 60 steps seen.
  • Coverage: 3 of 3 changed code paths tested; the new test fails at base on its own assertion and passes at the head.
  • Exploratory QA: the launch test with a fake claude at the head and base; a live claude -p expansion was not probed.
  • Evals: none run. The selector picks 110 cases only through lib/ship-handoff.ts reaching every gate case; per docs/ship-policy.md the main release gate runs those, and no paid case starts a real Claude Code child.
  • Tests: ship-budget lane 25 pass, 0 fail; the full free suite came from CI run 44311211391 at this tree (37816 tests).

Documentation

Status: updated — the documentation for this change was already in place; one factual cross-reference was added to docs/ship-budget.md.

Scope: the diff from base bbf48aa to head a5500af (one commit, 5 files; nothing staged, unstaged or untracked). Docs read in full or in their relevant sections: docs/unattended.md, docs/ship-budget.md, capy/skill/gstack/SKILL.md, changelog.d/ship-child-starts-with-typed-ship.md, ship/sections/budget-handoff.md.tmpl, docs/hosts.md and docs/OPENCLAW.md. lib/ship-handoff.ts and test/ship-budget.test.ts were read to check the contract.

Documentation health:

  • docs/unattended.md: current. The new "Starting a child agent" section matches the code, including the skill_prefix handling.
  • docs/ship-budget.md: updated. The launch step now says the child's prompt opens with the typed /ship --continue <brief> and links to unattended.md.
  • capy/skill/gstack/SKILL.md: current. It matches the new rule.
  • changelog.d/ship-child-starts-with-typed-ship.md: current (reviewed only, not edited).
  • ship/sections/budget-handoff.md.tmpl: current for Claude Code. Its Capy brief ("Load gstack … run /ship --continue") is allowed because the rule exempts hosts that don't expand a typed skill.
  • docs/hosts.md, docs/OPENCLAW.md: debt. Their examples still say "Load gstack. Run /X" for spawned Claude Code sessions, which conflicts with the new general rule. This audit did not verify whether OpenClaw's acp runtime expands a typed skill, so these were not edited.

Coverage debt: the change to the launch prompt is covered as reference and explanation (unattended.md, ship-budget.md). No tutorial or how-to is needed. Diagram drift: none.

Approvals

Plan: exempt: bug fix

Receipt

{
  "schema_version": 1,
  "pr": 4487,
  "head": "583d1dfb808e3e1afeaf387622e4f50cf2f898d9",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "ship-budget": {
      "pass": 25,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 29,
  "session_kind": "unattended",
  "run": "ship-4487",
  "head_tree": "09e011561cd69e3f8e6f0cf2fb86cad57d99d3fb",
  "product_patch_id": "0daefb8513233585ace386ec78be66459f662f1f",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 29,
    "rules": "1afa38a4be3b5eef",
    "base": "bbf48aa7ef195459afcf7d7840af7073cd050734",
    "registry": "bbf48aa7ef195459afcf7d7840af7073cd050734",
    "gate_scan": {
      "tagged": 1,
      "head": "583d1dfb808e3e1afeaf387622e4f50cf2f898d9"
    },
    "reasons": [
      "gate-class",
      "runtime=29"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "pass @09e011561cd6 (8 checks, current for 583d1dfb808e)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md and capy/skill/gstack/ against the 5-file diff from origin/main bbf48aa7"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 1,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "23eb808423669ba0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "0daefb8513233585ace386ec78be66459f662f1f",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

Open in Capy

…h the typed /ship command (GST-3078)

Claude Code expands a skill only when the prompt starts with the typed
command; the child's prompt opened with "Load gstack. ... Run /ship", which
unattended Opus 5.5 turns into a find-the-skill-yourself route (0 of 60 in
gstack-evals#366). The rule for parents is now in docs/unattended.md.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…he typed /ship command

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 3ecd716 into main Nov 18, 2026
77 checks passed
This was referenced Nov 18, 2026
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466)
- An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481)
- A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481)
- `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470)
- `revise --plan` with a different file now says the run follows that file. (#4470)
- A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471)
- The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460)
- A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456)
- A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451)
- /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458)
- A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458)
- A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458)
- A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473)
- /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461)
- /ship on Codex no longer stops at the test coverage audit. (#4489)
- A cold first-use check before an app build reaches its owner (GST-3025). (#4465)
- `skill_prefix=true` now survives updates when gbrain is installed. (#4454)
- The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454)
- `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454)
- /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464)
- /office-hours explains why it recommends a mode. (#4450)
- /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463)
- Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490)
- A Captain can check an ask against the owner's earlier answers before sending it. (#4467)
- `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488)
- GitHub release notes now list every change in plain words, with a link to its pull request. (#4390)
- gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442)
- /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469)
- /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472)
- A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479)
- The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457)
- A security finding's location and reason no longer go into a PR body. (#4486)
- The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487)
- A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485)
- A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452)
- /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474)
- A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440)
- One queued record with a malformed path no longer stops artifacts sync for every project. (#4455)
- A failed artifacts push stays reported until a push succeeds. (#4455)
- The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455)
- ### Tests (#4495)
- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495)
- CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453)
- Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447)
- The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447)
- Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484)
- Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459)
- Two /autoplan runs started in the same second no longer share a run id. (#4459)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant