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.
| Flag | Argument | Description |
|---|---|---|
| --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 (defaultplan.json).--emit-workflow <file.py>compiles the validatedplan.jsonDAG into a deterministic Python script for Antigravity's nativerun_workflowtool (phase(),parallel(),agent(..., workspace="share")).--estimatecomputes a zero-dispatch static quota, token, and!RUNWAYforecast without invoking builders.--jsonprints the structured compile / estimate report as JSON to stdout.--forceoverwrites an existing output file; without it the command exits 1 rather than replace a hand-written plan (C13).--decomposeautomatically splits wide tickets whose file scope exceeds--max-ticket-scope.--max-ticket-scope <n>sets the maximum files per ticket when--decomposeis enabled.--no-fast-pathdisables the zero-LLM structured Markdown fast-path and forces LLM conversion.--no-coldstart,--no-parallaxand--no-premortemskip 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
| Code | Meaning |
|---|---|
| 0 | Plan written; the next step is printed (agb run <out>). |
| 1 | Usage error, existing output without --force, or quota telemetry unavailable. |
| 2 | Blocking findings: the plan was not compiled (blocking exit). |