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

Skip to Content
antigravity-booster
ReferenceCLI

agb plan

Compile an Antigravity brain plan or a Markdown spec into plan.json, behind the plan-boundary gates.

agb plan compiles a plan artifact into an executable plan.json. The first argument is an Antigravity brain id (or a unique prefix) or the path to a Markdown spec; the second is the target repository.

Synopsis

agb plan <id | spec.md> [repo]

Compile an Antigravity brain plan or spec file into plan.json.

Pipeline: convert → validate → overlap/coldstart/parallax gates with feedback loop → advisory premortem.

FlagArgumentDescription
--decompose—split wide tickets
--delta<prev-plan.json>incrementally recompile modified/commented tickets
--emit-workflow<file.py>emit native run_workflow script
--estimate—forecast quota burn without writing files
--force—overwrite existing
--json—emit JSON
--max-ticket-scope<n>max files per ticket
--no-coldstart—skip coldstart
--no-fast-path—force LLM conversion
--no-parallax—skip parallax
--no-premortem—skip premortem
--out<file>output plan path
--prompt-only—emit conversion/premortem/parallax prompts without agy

Flags

  • --out <file> sets the output path (default plan.json).
  • --emit-workflow <file.py> compiles the validated plan.json DAG into a deterministic Python script for Antigravity's native run_workflow tool (phase(), parallel(), agent(..., workspace="share")).
  • --estimate computes a zero-dispatch static quota, token, and !RUNWAY forecast without invoking builders.
  • --json prints the structured compile / estimate report as JSON to stdout.
  • --force overwrites an existing output file; without it the command exits 1 rather than replace a hand-written plan (C13).
  • --decompose automatically splits wide tickets whose file scope exceeds --max-ticket-scope.
  • --max-ticket-scope <n> sets the maximum files per ticket when --decompose is enabled.
  • --no-fast-path disables the zero-LLM structured Markdown fast-path and forces LLM conversion.
  • --no-coldstart, --no-parallax and --no-premortem skip the corresponding gate.

Gates

Compilation converts the artifact, validates it, then runs the scope-overlap, coldstart and parallax gates in a feedback loop. The premortem runs once on the surviving plan and is advisory: its risks are printed but never block (premortem is advisory, scope-overlap gate). See Plan boundary.

Exit codes

CodeMeaning
0Plan written; the next step is printed (agb run <out>).
1Usage error, existing output without --force, or quota telemetry unavailable.
2Blocking findings: the plan was not compiled (blocking exit).

On this page