Skip to main content

Add an Antigravity worker

Status: Ready

Article ID: 045

Truth label: Limited

Audience: Fleet operator

Reader outcome: Register the Antigravity adapter and interpret its single-envelope result, permission mapping, resume behavior, and known side-write risk.

Related articles: 041, 044, 047

Target week: 18

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Prepare the CLI account​

Install agy, log in interactively as the worker account, and confirm the credential store is available to the eventual non-interactive process. The adapter uses that CLI login and does not require Brain to distribute a Google provider key.

Start a named worker with --engine antigravity and verify the backend appears in its registration.

Understand the adapter contract​

The adapter runs headless print mode with streamed JSON: an init event, step updates as the agent works and calls tools, and a nested final result envelope. Progress reaches the task log while the run is live, and the final result still decides success; a stream that stops before it is a failure with whatever partial session identity was captured. The adapter normalizes status, response or error, conversation id, duration, turns, and token usage. The CLI reports token usage but never dollars, so cost remains unavailable.

Explicit model ids reach the CLI unchanged, including its Claude and GPT-OSS choices, and an invalid id fails through the CLI's own validation. An omitted model uses the CLI default. The adapter accepts a reasoning effort of low, medium, or high.

Antigravity can resume with a conversation id. Because those conversations live on the originating machine, follow-ups should remain pinned to that worker. Before comparing two Antigravity installations, run the parity script that inventories each one's configuration, rule files, and model catalogue, so a difference in results is not a difference in setup.

Map permission carefully​

Safe uses plan mode. Write uses the headless bypass flag together with the CLI sandbox because shell commands otherwise wait for an approval that cannot be given. Yolo uses the bare bypass. The worker ceiling still clamps any task that asks for more authority.

These mappings are adapter behavior, not proof of host containment.

Test for side writes​

Use a disposable repository and ask for one tightly bounded change. Inspect the complete diff, including governance and task files. Production evidence has shown Antigravity may update project memory files according to its own conventions even when the task asked for nothing else.

Only approve the adapter for a repository after that behavior is acceptable or mechanically caught by diff and verification gates.

Current limits​

The adapter reports no dollar cost. Keychain access can differ between interactive and supervised sessions. Tight prompts do not guarantee tight file scope, and write mode relies on the CLI's sandbox plus a permission bypass required by headless execution. Matched quality against the IDE and macOS builds of the same CLI has not been measured.

Next lesson​

Continue with Run multiple workers on one machine.

Derivative map​

  • Weekly package: WEEK-18
  • Long video: VIDEO-W18-LONG
  • Shorts: SHORT-W18-PROBLEM, SHORT-W18-MECHANISM, SHORT-W18-WARNING
  • Email: EMAIL-W18
  • LinkedIn: LI-W18-A, LI-W18-B
  • X: X-W18-A, X-W18-B
  • Visual: VISUAL-W18

Review record​

  • Login, invocation, envelope, usage, resume, permission, and progress behavior checked against current source.
  • Keychain, cost, containment, and observed side-write limits reviewed.
  • Proof uses a disposable repository and full-diff review.
  • Internal links and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13