These docs track main. Latest release: v2.0.0.

Skip to Content
antigravity-booster
ReferenceCLI

agb run

Execute a ticket DAG: build, gate, prosecute and merge every ticket in plan.json.

agb run executes a compiled plan.json: each ticket is built in its own git worktree, gated, prosecuted and merged. The plan defaults to plan.json in the current directory.

Synopsis

agb run <plan.json>

Execute a ticket DAG (build → gate → prosecute → merge).

FlagArgumentDescription
--driver<local|remote-sdk>execution driver
--dry-run—preview remote-sdk waves without spawning
--interactive—pause flailing Strike-2 ticket for /grill-me rescue without aborting siblings
--merge—verify and merge remote-sdk branches locally
--reset-rescue—clear rescue locks
--resume—skip already-merged tickets
-c<n>cap concurrent workers

Besides the plan path and the global --project flag, agb run accepts -c <n> to cap concurrent workers at runtime (C9), --resume to skip already-merged tickets cleanly across restarts, and --reset-rescue to clear .booster/rescue-<ticketId>.lock files after an interactive rescue (without --reset-rescue, unresolved rescue locks fail closed). Per-pool runtime concurrency is also bounded by the plan's caps field (while concurrencyCap is an advisory fan-out forecast written by adlc merge-forecast). See Plan schema.

What it does

  1. Loads the plan and validates it with the same checks as agb validate (loadPlan).
  2. Builds each ticket in a worktree at .worktrees/agb-<id> on branch agb/<id>, where <id> is the ticket id lowercased (C5).
  3. Runs post-merge gates in a disposable integration worktree named agb-integration-<first 8 characters of the run token> (integration worktree).
  4. Prints the run report as JSON on stdout.

The lifecycle is described in Run lifecycle.

Exit codes

CodeMeaning
0Every ticket merged (failed is empty and compromised is null).
1The plan is invalid (errors printed to stderr) or an internal error occurred.
2At least one ticket failed (failed map is not empty) or compromised is set.

Evidence: C10.

On this page