/corgi:autopilotfrom corgi
Orchestrates a supervised loop that drains a ticket queue into draft PRs, one spec-gated batch at a time. Calls queue/stories/review skills; never merges or auto-approves.
Ships in corgi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Done when: this iteration's heartbeat is emitted: the batch reached draft PRs, or its spec gate is staged and waiting, or the queue was empty.
Supervised loop. One iteration = one /corgi-queue pickup → stories (spec gate → branch per service → tests → review → draft PR) → emit heartbeat → back off → repeat on host scheduler. Inherits corgi's one-spec-gate-per-batch guarantee + draft-PR-only rule; adds visible progress + clean kill switch. Orchestration only - calls queue/stories/review skills, never re-implements them.
stories' one spec sign-off gate. Autopilot stages + waits; never auto-approves a spec.gh pr ready, never glab mr update --ready, never merge, never force-push./loop / /schedule repeats it. No daemon, no inner busy-loop.tracker (Job 4); build + gate + draft PR live in stories; PR review lives in review. This skill calls them.maxBatch (default 3) so one gate covers a sane set.corgi autopilot status --json at the start of every iteration.../_shared/conventions.md first (attribution, manualRun, preflight).corgi autopilot status --json. Branch on mode:
mode: uninitialized (no state file yet - genuine first run, NOT a stop) → corgi autopilot resume --json to init running, continue.mode: running → continue.mode: stopped (kill switch) or mode: paused → emit heartbeat noting why, end the iteration (no pickup).
The uninitialized sentinel tells a first run apart from an explicit stop; don't mistake first run for the kill switch.tracker Phase 0: preflight per ../_shared/conventions.md, tracker per ../_shared/tracker-mcp.md. No compose or no tracker MCP → corgi autopilot pause with a note, surface what to connect, stop. Don't guess a layout.tracker Job 4 (pickup) with configured scope (from $ARGUMENTS; default agent queue). Do not re-implement scope/drift logic - call the skill. It filters not-In-Progress/not-Done/not-blocked and drift-skips merged/in-flight tickets.maxBatch (default 3): top N ready picks this iteration; rest wait for the next.idle, jump to Phase 3 (heartbeat) then Phase 4 (backoff). Not an error.stories. Its Phase 2 one spec sign-off runs for the whole batch - do not bypass, do not auto-approve./schedule): stage the batch, stop at the gate, record awaiting_spec_signoff + staged keys via corgi autopilot heartbeat, end the iteration. Resume builds them when a human approves.stories branches per service, tests, self-reviews (its Phase 3.5), opens draft PRs/MRs, moves tickets In-Progress → Code Review. That in-progress move de-dupes the next iteration - rely on it.maxRisk, default 6 - set in the words that start the loop, like maxBatch: "autopilot, max risk 5"): the pickup (tracker Job 4) forecasts each ticket and leaves anything above the ceiling in the queue, listed, never handed to stories unattended; the heartbeat's --note names them (needs human: <key> risk N/10 <tier>). A story that was under the ceiling as a forecast but scores above it once built (stories stamps every draft PR and prints the risk line per story) is still opened as a draft - the work is not thrown away - and the same --note names it, with the iteration's printed line leading with it. Nothing here auto-merges at any score; auto-approve: yes on a card is information for the human who flips the draft, not an instruction to this loop.review chain (config reviewAfterBuild, default off): after draft PRs open, run review on them. Off by default - review posts outward-facing comments behind its own gate.stories, dirty-tree overlap, gate failed twice) → record error + reason, corgi autopilot pause, surface to the human. Don't retry-spam.After each iteration (built, idle, awaiting-gate, or error), call:
corgi autopilot heartbeat --json --built <N> --skipped <M> --awaiting <K> --phase <built|idle|awaiting_spec_signoff|error> --note "<short>"
Then print one human line: autopilot · iter <i> · built N · skipped M · awaiting K · <note> so it shows in the harness/mission-control transcript.
/loop//schedule re-invoke.mode: stopped (kill switch); configured maxIterations/until reached; a hard error that paused the loop. On any, end without scheduling more (human or harness owns the schedule lifecycle).agent.Autopilot does not schedule itself. Use the host harness:
/loop 1h /corgi-autopilot - re-runs one iteration every hour while the session is open./schedule a routine running /corgi-autopilot on a cron (e.g. nightly) to drain the queue unattended; unattended iterations stop at the spec gate (Phase 2) and wait.
Each scheduled run is a fresh agent session - the durable corgi autopilot state file (mode + heartbeat) is how iterations coordinate.corgi autopilot stop - kill switch; next iteration sees stopped and no-ops. (Cancelling the /loop//schedule job also works; state stays consistent.)corgi autopilot pause / resume - toggle without losing config.corgi autopilot status [--json] - mode (uninitialized first run · running · paused · stopped), lastHeartbeat + age, last iteration summary. Heartbeat age > interval ⇒ a stalled loop a supervisor can flag.
State lives in .corgi/corgi_services/.autopilot.json (gitignored, per project). No daemon.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ticket-queue, draft-prs, batch-processing, supervised-loop, corgi
33 skills in this plugin
/agentUse for corgi agent mode: Remote Control from a phone, the session board ("who is waiting on me"), watching trackers and PRs ("tell me when someone comments"), why a watch fired, and handoffs ("leave a handoff for ABC-7"). NOT compose authoring (corgi), starting a stack (run), debugging (debug)./alignUse when the user says "align", "let's agree first", or a request can be read two ways before any code. Reaches a shared understanding cheaply, then codes. NOT a plan gate or a long interview./before-afterUse to prove a visual change against what it replaced: "before and after", "screenshot comparison", "attach screenshots to the PR". Captures the same screen on the base branch and yours. NOT a design match (design-parity) or store shots (mobile-screenshots).npx claudepluginhub andriiklymiuk/corgi --plugin corgiOther plugins' skills for the same job