Skip to content

Light-ship mode / per-diff toggles for always-on adversarial + doc agents (subscription usage caps) #2188

Closed

Description

@abigsplash

Feature request: a light-ship mode (or per-diff toggles) for subscription-capped users

/ship currently has one ceremony level. The <50-line specialist skip is great, but three costs remain unconditional on every ship:

  1. The Claude adversarial subagent ("always-on for every review... no configuration needed") — a fresh full-context agent even for one-line copy tweaks.
  2. The document-release pass (+ its verifier agent).
  3. The workflow turn count itself (~50 tool steps in /ship + ~40 in /land-and-deploy), where every >5-min CI wait expires the Anthropic prompt cache, so each wake-up re-uploads the session's full context at cache-WRITE price.

On Claude Max (weekly usage caps), measured on a real project over 7 days: ~93M input-token-equivalents, of which a one-line wording tweak shipped via /ship + /land-and-deploy cost 324 turns, 3 subagents, ~1.4M cache-write tokens, and a lint-cleanup ship cost 528 turns, 7 subagents, ~4.6M cache-writes. "Boil the ocean" is the right ethos when marginal cost ≈ 0, but subscription caps make the marginal cost real; today the only knobs are the global skip_eng_review (all-or-nothing, "not recommended") and codex_reviews.

Ask (any of these would help):

  • A light_ship_max_lines config: below the threshold AND no user-designated risky paths, skip the adversarial + doc agents and the deep canary — keep tests, checklist review, version/changelog, PR.
  • Or per-feature toggles: adversarial_review: always|risky-only|off, doc_release: always|risky-only.
  • Independently: batch the long CI waits in /land-and-deploy into a single blocking script call (one model wake-up instead of one per phase) — this alone removes ~1M cache-write tokens per shipped PR for cap-limited users, with zero behavior change.

Workaround we've deployed locally (happy to share): a "two-lane" CLAUDE.md rule that routes small non-risky diffs around /ship to a native commit/push/PR flow with an inline checklist review, gated by a PreToolUse hook that deterministically re-verifies diff size + risky paths before allowing the push, plus a single-wake watcher script for the CI chain.

Activity

  1. time-attack commented on Jul 15, 2026

    @time-attack
    Contributor

    Maintainers must decide the adaptive light-ship profile and which safety checks can never be skipped before implementation can proceed.

  2. dgrant commented on Sep 4, 2026

    @dgrant
    Contributor

    The document-release does seem to take a long time!

  3. dgrant commented on Oct 5, 2026

    @dgrant
    Contributor

    ship seems to have gotten even heavier recently, as it seems to automatically run up to 3 passes.

  4. capy-ai commented on Oct 11, 2026

    @capy-ai
    Contributor

    Thanks @abigsplash for the idea. In the Oct 11 triage we grouped the open feature requests by theme so related asks get built together instead of one at a time. This one is part of the Ship, review and safety theme in TODOS.md (https://github.com/garrytan/gstack/blob/50d020ad9/TODOS.md#L54-L69). Closing it here so the open list stays actionable; it isn't rejected, and the theme credits every linked reporter when it's picked up.

  5. added
    parked
    on Oct 25, 2026
  6. capy-ai commented on Oct 25, 2026

    @capy-ai
    Contributor

    Reopened under the parked label: this is tracked in the Ship, review and safety theme in TODOS.md (https://github.com/garrytan/gstack/blob/main/TODOS.md#p3-feature-themes-from-the-wave-9-triage-filed-2026-10-11), and what fixes it is the next /ship, /review or safety-skill wave, which takes the theme as a whole. Closed-but-tracked read as closed, so parked issues now stay open until they ship, are duplicates, or are declined (https://github.com/garrytan/gstack/blob/main/docs/triage.md).

  7. dgrant commented on Oct 29, 2026

    @dgrant
    Contributor

    /ship (and /review) is ridiculously expensive. I just did a small change that involved moving some common code from 3 places into one shared place, and it's going nuts running 3 ships and still finding issues... I'm not stupid... usually I don't let it do that (I have custom instructions in my CLAUDE.md), but this time just as an experiment I let it do it's default thing. It needs to be reigned in.

    My guess is that many gstack user's already have instructions in their CLAUDE.md to reign in /ship. This should be built into /ship though.

    Issues I see:

    • It seems to want to fix everything by default, even INFORMATIONAL nits with low confidence (5? and above)
    • Should be a setting (global and per-review/per-ship) to tweak what issues to care about (ie. MAJOR and above)
    • gstack auto-fixes things... which is cool, but it triggers a full cycle of reviews again. Low ROI, it will literally fix NITs over and over again, each time triggering a new full reviews.
    • Red team for example, has this check: "When diff > 200 lines" - it doesn't discriminate. So you could change 200 lines of documentation and yet this specialist will go and re-review the whole branch again from scratch.
  8. added
    S3
    enhancement
    on Oct 31, 2026
  9. capy-ai commented on Oct 31, 2026

    @capy-ai
    Contributor

    Thanks @dgrant for the detailed report. I tested the loop you described on current main (2d1b55d, v1.91.379.0) using gstack-review-plan, which decides whether /ship runs another review pass. I used scratch branches: a 300-line docs-only change, and a ~120-line code change spread across three files, similar to your shared-code move. It doesn't reproduce today:

    • Fixing informational nits doesn't start a new full review. After pass 1, if only below-floor (informational) findings were fixed, the plan is next=fix-check: one reviewer reads just the touched hunks. If that fix-check finds nothing blocking, the plan is next=done, even when more nits were fixed, so it doesn't fix-and-re-review in a loop.
    • A second full pass happens only after a blocking fix, meaning one that would fail a test, break production, or lose data or secrets. Full passes are capped at 2. After the cap, one fix-check reads the fix. If that still finds a blocker, /ship stops and asks you instead of starting a third pass (next=stop).
    • The red team doesn't fire on documentation. A 300-line docs-only diff plans at light depth (runtime_lines=0), and specialists, the red team and the adversarial reader are all skipped. The red team's 200-line threshold counts runtime lines in code, not lines of documentation.

    What's still true: /ship applies informational fixes by default, and that adds the one bounded fix-check above. A setting to choose which severities /ship acts on (for example, CRITICAL only) is a feature request, and it's tracked with the other light-ship asks in the "Ship, review and safety" theme in TODOS.md.

    The fixes you saw were added since this issue was filed, mainly the review-convergence work (v1.91.256.0, #3481) and #3527. Closing this as completed. If you still see /ship start another full pass after fixing only informational findings, please reopen with the REVIEW_PLAN: lines from that run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S3enhancementparked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions