Skip to main content

Module antigravity

Module antigravity 

Source
Expand description

Antigravity CLI agent driver (phase 41).

Launches the operator’s agy wrapper headless with a bidirectional stream-json transport: the initial user turn travels on the child’s stdin as an event-key JSON line ({"event":"user","message":{...}}), and its events come back on stdout one JSON object per line under an event key (init -> step_update -> result).

Every argv/schema fact here is deliberately review-derived and cited, not assumed (41-CONTEXT round-3, .planning/phases/41-antigravity-driver/):

  • D-01: agy is a shell wrapper (exec antigravity-cli --dangerously-skip-permissions "$@"); the wrapper injects the skip-permissions flag itself, so the driver argv must NOT repeat it.
  • D-02: no -p. -p is a Go-flag STRING flag requiring an argument; it swallows the next token and exits 0 silently, and it is mutually exclusive with --input-format stream-json. The prompt travels on stdin, never in argv.
  • F3: --print-timeout 60m — the CLI default is 5m, below the documented DevFlow stage length (a healthy stage measured at 47m); every prior invocation in this repo overrides it. 60m is the decided floor.
  • D-03: the completion parser is the Antigravity stream parser (agent_result::parse_antigravity_event_result), reading the marker from the last event: "result" object’s result.response STRING; the ERROR envelope is Layer-1 decisive.

Structs§

AntigravityDriver
The modular driver for Antigravity (agy): the stream-json launch with the reviewed argv, prompt delegation to the Claude-style renderer (D-05), and the Antigravity completion parser.