ReferenceCLI
agb shape
Parse a structured Markdown specification, run deterministic DAG pre-analysis, and optionally sync the hardened spec to the Antigravity Brain artifact.
agb shape parses a structured Markdown specification (### Ticket N: <id> -- Title sections with Scope, Rails, Edges, Tier, Pool Hint, Objectives, and Acceptance Criteria), runs deterministic DAG pre-analysis (forecastOverlaps, verifyDeclaredPaths, scanStaticImportCoupling), and computes a 0–100 readiness score before agb plan.
Synopsis
agb shape <spec.md | id> [repo]Deterministically pre-analyze a structured spec or brain plan for DAG validity, scope overlaps, and import coupling before agb plan.
| Flag | Argument | Description |
|---|---|---|
| --analyze | — | pre-analyze spec |
| --json | — | emit JSON |
| --max-ticket-scope | <n> | warn above n files |
| --strict | — | fail on warnings |
| --sync-brain | — | sync to brain and .booster |
Arguments and flags
<spec.md | id>is the path to a Markdown specification file or an Antigravity brain ID/prefix.[repo]is optional and sets the target repository root for literal rail verification and static import coupling analysis (default.).--analyzeruns deterministic DAG pre-analysis (default behavior).--stricttreats non-empty warnings as exit code2.--sync-brainwrites the formatted plan artifact toimplementation_plan.mdin the active Antigravity brain session directory and.booster/agb_plan_artifact.mdin the repository.--max-ticket-scope <n>sets the per-ticket scope warning threshold (default12).--jsonemits the structured JSON report to stdout.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Pre-analysis passed (ok: true, zero structural or scope-overlap errors). |
| 1 | Usage error or unreadable specification file. |
| 2 | Structural errors, concurrent scope overlaps, missing literal rails, or --strict warnings. |