# Captain skill for coding agent crews

> Manages a team of AI coders and merges their finished work.

- **What it does:** Lets you run a team of AI coding helpers from one main controller. The helpers report when their work is ready, and the controller merges it all together, keeps a summary, and handles approvals.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_e718e1674824caef77682753`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Posted by:** 2 creators: [@greg isenberg](https://www.youtube.com/watch?v=vJEy3nP2_C8), [@tristen o'brien](https://www.youtube.com/watch?v=XV2PAHWnJN0)
- **Reach:** Creators' posts about it have 363,163 views
- **Safety:** Checked by Orbit: use with care. Runs local gstack scripts; telemetry; follows instruction blocks from tool output
- **Last updated:** 2026-12-01
- **Page:** https://orbitinbox.app/s/captain-agent-to-run-a-crew-of-coders

## Skill

---
name: captain-crew-controller
description: Use when one agent must coordinate many coding agents: lanes send READY blocks, the controller merges via trains and relays owner approvals.
---

# Captain: one controller, many lanes

## What this does
One coordinating agent (the controller) runs many worker lanes, each on its own branch. Lanes never merge. A READY block is the only merge trigger, every merge runs through a train, owner decisions are recorded in the owner's own words, and flakes are fixed daily instead of retried away. Requires gstack (`gstack-ship-queue`).

## When to use
Use for "run the crew", "merge train", "validate this ready", "write the digest", or "flaky pass". Usage: `/captain [setup | ready <pr> | train | digest | approvals | flaky-pass]`. With no argument, read the crew rules file and the digest, then act on the open item at the top of the digest.

## How to run it

**Boundaries**
- The controller merges; a lane never merges, enables auto-merge, or uses a merge queue the controller does not drive. A lane's job ends at an unstamped READY.
- The controller never commits to a lane's branch. It calls slots; the lane stamps.
- Nothing merges outside a train; a single PR takes a one-PR `--urgent` train, and a repair under a freeze takes `train build --repair`.
- Owner decisions arrive through the controller, in the owner's exact words, and are recorded before the approved work starts.
- Paid evidence is read, never rejudged: no thresholds, trial counts, case kinds or budgets change to turn a red green.

**Setup.** Fill these once in a crew rules file, never hard-code them in a message: `REPO`, `BASE`, `REQUIRED_CHECKS`, `FULL_GATE_CHECK`, `TRAIN_MAX`, `FILL_HOURS`, `MERGE_METHOD` (squash or merge, never mixed), `STAMP_FILES`, `KNOWN_INFRA_FLAKES`, `SPEND`, `CONTROLLER`.

**Validate a READY.** A lane sends the block printed by:
bash
~/.claude/skills/gstack/bin/gstack-ship-queue ready --pr "$PR" --no-screen    # or --screen [--broad]

Refuse and send the lane back when: the SHA is short or a fork head, or the head moved after the block printed; `STAMP_VERSION` is not `unstamped` before a slot call; `base` is not BASE; any required check is pending, failed or on another head; `PREGATE` is not `pass` for the pin's tree; the paid evidence is just "ran the cheap tier"; `SHIP_RECEIPT` is none, invalid or for another head; no screen choice is made; the READY_RECEIPT is missing; a flaky case is unlogged or a second failure is called a flake; or the lane statement "head frozen from now on" is absent. After READY the head is frozen; a push needs a new READY.

**Build a train** (one full gate covers up to TRAIN_MAX PRs):
bash
~/.claude/skills/gstack/bin/gstack-ship-queue train build --prs "$PINS" --dry-run
~/.claude/skills/gstack/bin/gstack-ship-queue train build --prs "$PINS"

`PINS` is `41@<sha>,42@<sha>` in READY order; screened PRs take the first slots. Fewer than TRAIN_MAX PRs wait until the oldest READY is FILL_HOURS old; one urgent PR goes alone with `--urgent`. Announce ORDER to lanes. Every queue command ends with `NEXT:` and `GSTACK_RESULT:`; do what NEXT says. Refusals name their PR and happen before spend.

## Output
Per item: the READY verdict (accepted or the exact failing field), the train ORDER, the updated digest, and a list of owner approvals needed, quoted in the owner's words.

Credit: Based on public content by garrytan, packaged by Orbit.

Shared by Mariah Brunner, credited on Orbit.