These docs track main. Latest release: v1.0.0.
antigravity-booster
Reference

Environment variables

Every environment variable agb reads, generated from env-docs.json and checked against the source.

This list is generated from website/env-docs.json. The generator scans every AGB_*, ADLC_* and ANTIGRAVITY_* token in lib/, bin/, mcp/, hooks/, sidecars/ and root scripts/, and fails when a token in the code is undocumented or a documented name is no longer in the code. Variables that are only read under test are tracked but not shown.

The Bundled column says whether the published plugin honours the variable. The bundled build (__AGB_BUNDLED__ set by esbuild) ignores developer overrides so a stray .envrc cannot redirect plugin or CLI resolution.

Core

NameDefaultDescriptionBundled
AGB_AGY_BINagyPath or name of the agy executable used for builds, quota telemetry, doctor checks and bootstrap.honoured
AGB_ALLOW_DIRTYunsetSet to 1 to let agb run start against a repository with uncommitted changes (otherwise the run refuses to start).honoured
AGB_BUILD_MAX_TIMEOUT30mHard ceiling on a single agy invocation, applied even when AGB_BUILD_TIMEOUT is 0.honoured
AGB_BUILD_TIMEOUT5mPer-ticket builder timeout passed to agy. For stream-json output, 0 (or empty) means no wall-clock limit; the ceiling and no-progress watchdog still apply.honoured
AGB_EVENT_PROGRESS_TIMEOUT5mNo-progress watchdog: an agy stream that emits no events for this long is terminated.honoured
AGB_KILL_GRACE_MS15000Milliseconds to wait between SIGTERM and SIGKILL when stopping an agy process tree.honoured
AGB_PROVIDERunsetOnly the value jetski is meaningful: bootstrap then installs plugins through the jetski runner. The MCP server sets it to jetski for the agb processes it spawns.honoured
AGB_SESSION_IDunsetFallback session id used to locate the active brain when ANTIGRAVITY_CONVERSATION_ID is unset; forwarded to builder agy processes.honoured
AGB_TARGET_REPOunsetExtra directory bin/node-launcher.sh searches when locating a project-local Node runtime.honoured
AGB_WORKER_MODEset by agbSet by agb on read-only worker agy processes (value readonly). The PreToolUse guard denies mutations and never prompts while it is set.honoured
AGB_WORKER_TICKETset by agbSet by agb on builder agy processes to the ticket id; the PreToolUse guard scopes writes to that ticket and never prompts.honoured
ANTIGRAVITY_CONVERSATION_IDset by AntigravityCurrent Antigravity conversation id. Used to locate the active brain and artifact directory, and forwarded to builder agy processes.honoured

Plugin resolution

NameDefaultDescriptionBundled
ADLC_ANTIGRAVITY_PLUGIN_NAMEadlc-antigravityNot read from the environment: a source constant in lib/plugin-paths.mjs naming the companion plugin's directory under the agy plugins folder.honoured
ADLC_ANTIGRAVITY_PLUGIN_PATHunsetSource checkout of the adlc-antigravity plugin to install from. Honoured by bootstrap only in unbundled runs and only together with AGB_DEV_ALLOW_UNVERIFIED_PLUGIN=1.ignored
AGB_DEV_ALLOW_UNVERIFIED_PLUGINunsetSet to 1 (unbundled runs only) to let bootstrap install an unverified companion plugin from ADLC_ANTIGRAVITY_PLUGIN_PATH.ignored
AGB_PLUGIN_DIR~/.gemini/config/plugins/adlc-antigravity (handshake); ~/.gemini/agb-sidecar-plugin-<pid>-<port> (sidecar)Two readers: the companion-plugin handshake manifest directory (ignored by the bundled build) and the directory agb sidecar writes its plugin manifest into (honoured in every build).honoured
AGB_PLUGIN_ROOTthe booster plugin rootPlugin root holding vendor/adlc, used to find the vendored adlc CLI. Unbundled runs only.ignored

Sandbox and gates

NameDefaultDescriptionBundled
AGB_HOOK_DISABLEunsetAny non-empty value bypasses the PreToolUse rails guard. Each bypass is logged to hooks.log and agb doctor warns about it.honoured
AGB_REQUIRE_DRIVER_SIGNATUREunsetSet to 1 to make the Windows doctor sandbox check require a signed driver attestation in the probe output.honoured
AGB_SANDBOX_GATESonSet to 0 to run gate commands without the OS sandbox (an explicit acknowledgement of host risk).honoured
AGB_SANDBOX_PROBE_CMDunsetDoctor sandbox-probe command override. Restricted to test execution; otherwise the check fails.honoured
AGB_SANDBOX_PROBE_HELPERunsetHelper script passed to the doctor sandbox probe. Honoured only during test execution.honoured
AGB_STRICT_GATESon in plan; off in run unless the repo has package.jsonPlan compilation uses strict gates unless set to 0. At run time, 1 forces gate commands to match the npm pattern even without a package.json.honoured

Pools and quota

NameDefaultDescriptionBundled
AGB_POOLS_DIRunsetDirectory for the shared pool state, v2 state and lock files.honoured
AGB_POOLS_LOCKderivedExplicit pool lock file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE).honoured
AGB_POOLS_V2derivedExplicit v2 pool state file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE).honoured
AGB_QUOTA_STATEderivedExplicit shared quota state file path; the v2 and lock paths are derived from it when not set.honoured
AGB_QUOTA_TIMEOUT_MSunset (wait for reset)Maximum milliseconds a ticket waits for a quota reset before failing.honoured

Sidecar

NameDefaultDescriptionBundled
AGB_SIDECAR_PORT3333Default port for agb sidecar; --port overrides it.honoured
ANTIGRAVITY_SIDECAR_WEB_PORTunset (launcher port 3333)Selects jetski mode in the sidecar launcher and sets its port. Security: Setting it disables token auth on the sidecar dashboard and event stream: any local client can read run data.honoured

Paths

NameDefaultDescriptionBundled
AGB_ARTIFACT_DIRactive brain dir, else <repo>/.boosterWhere agb writes plan artifacts.honoured
AGB_BRAIN_DIR~/.gemini/antigravity/brainAntigravity brain directory searched for plans.honoured
AGB_CALIBRATION_DIRthe plugin's docs/calibration/Where agb probe appends its probe-<day>.md calibration file.honoured
AGB_EXEC_CACHE_DIRunder AGB_HOME_DIRCache directory for authenticated executables.honoured
AGB_EXEC_LOCKS_DIRunder AGB_HOME_DIRDirectory for executable lock records; stale locks with a dead PID are recovered.honoured
AGB_HOME_DIRthe OS home directoryHome directory override for agb's per-user state.honoured

ADLC toolkit

NameDefaultDescriptionBundled
ADLC_ADMIN_KEYunsetHMAC key used to verify a Windows sandbox-bypass attestation. Treated as a secret: never forwarded to builder agy processes.honoured
ADLC_CLI_PATHunsetCustom adlc executable. Honoured only with AGB_ALLOW_CUSTOM_ADLC_CLI=1 in unbundled runs; the bundled build uses only the vendored adlc.ignored
ADLC_MANIFEST_KEYunsetKey used by adlc gate-manifest. Treated as a secret: never forwarded to builder agy processes.honoured
ADLC_P4_ENFORCEMENTset by agbSet to 1 by the scheduler on builder processes when rail enforcement is available, enabling the PreToolUse rails hook.honoured
ADLC_PROVIDERunsetRead by the @adlc tools, not by agb. Bootstrap suggests ADLC_PROVIDER=agy to run them on Antigravity quota.honoured
ADLC_TICKETset by agbSet by the scheduler on builder processes to the ticket id whose rails the PreToolUse hook enforces.honoured
ADLC_TICKET_STOREunsetTicket-store path override the PreToolUse guard also protects.honoured
ADLC_TICKETSunsetAlternative ticket-store path the PreToolUse guard also protects.honoured
AGB_ADLC_BINunsetAlias of ADLC_CLI_PATH with the same restrictions (AGB_ALLOW_CUSTOM_ADLC_CLI=1, unbundled only).ignored
AGB_ALLOW_CUSTOM_ADLC_CLIunsetSet to 1 to honour ADLC_CLI_PATH / AGB_ADLC_BIN in unbundled runs. The path must pass the temporary/world-writable path checks.ignored
AGB_ALLOW_SYSTEM_ADLCunsetSet to 1 to let unbundled runs fall back to an adlc found on the system PATH.ignored

Notes and evidence

  • No stream-cap variables. Stream limits are hard-coded: 1 MB per line, 50 MB per stream and 5 MB of consecutive unparseable output (C2). There is no environment variable for them.
  • Timeouts. AGB_BUILD_TIMEOUT defaults to 5m (C19); for stream-json output an empty or 0 timeout means no wall-clock limit (unlimited stream-json). AGB_BUILD_MAX_TIMEOUT (default 30m) and the AGB_EVENT_PROGRESS_TIMEOUT no-progress watchdog (default 5m) still apply (ceiling and watchdog).
  • ANTIGRAVITY_SIDECAR_WEB_PORT is real and security-relevant: it selects jetski mode and the port in the sidecar launcher (C3) and, when set, the server skips its token check for the dashboard and the event stream (token check skipped). See Security.
  • AGB_REQUIRE_DRIVER_SIGNATURE=1 makes the Windows doctor sandbox check require a signed driver attestation (C8).
  • AGB_PLUGIN_DIR is not the ADLC plugin source path. agb sidecar writes its manifest there (C17), and the unbundled companion-plugin handshake reads its installed manifest from there (handshake manifest dir). The ADLC plugin source is ADLC_ANTIGRAVITY_PLUGIN_PATH.
  • Custom ADLC CLI. ADLC_CLI_PATH and AGB_ADLC_BIN are honoured only with AGB_ALLOW_CUSTOM_ADLC_CLI=1 (C18), and never in the bundled build, which resolves only the vendored ADLC (bundled early return).
  • Secrets are not forwarded. ADLC_ADMIN_KEY, ADLC_MANIFEST_KEY and any name matching the sensitive-key pattern are stripped from builder agy processes (FORBIDDEN_SECRETS).
  • Bundled guards. ADLC_ANTIGRAVITY_PLUGIN_PATH and AGB_DEV_ALLOW_UNVERIFIED_PLUGIN (bootstrap guard), AGB_PLUGIN_ROOT (plugin root guard) and the custom/system ADLC switches are ignored when bundled.

On this page