Launch flags, Mendel flags and desktop host
Full reference8 reviewed records from the shipped Antigravity artifacts: desktop app.asar launch defaults, remote SSH persistent-mode flags, Mendel flag sync, Computer Use gating, and language_server/CLI flag surfaces. 6 entries preserve the exact shipped bytes, offset, and SHA-256 provenance; 2 captured --help listings keep its file and SHA-256 provenance.
Configuration and launch
Desktop release channel detection (appChannel.js)
When: Determines stable vs Insiders channel from the Electron app name.
- Source:
desktop/Contents/Resources/app.asar:dist/appChannel.js@0x0–0x191(401 bytes) · SHA-2564415f53608150cb5fe46985935ca41d5203682e39f0f655b5f4e35b2bfd8f2ac
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isInsidersBuild = isInsidersBuild;
const electron_1 = require("electron");
/**
* Whether this is an Insiders build: its app name says so (e.g.
* "Antigravity Insiders"). Dev builds from `npm start` are not.
*/
function isInsidersBuild() {
return electron_1.app.getName().toLowerCase().includes('insiders');
}
macOS Computer Use gate (computer/gate.js)
When: Controls activation of the macOS Computer Use actuator in Antigravity Hub.
- Source:
desktop/Contents/Resources/app.asar:dist/computer/gate.js@0x0–0x16f5(5,877 bytes) · SHA-256b9aca508295d7c0487298f5e1c0eae79044ebc54003e9a4a1c24e7bf06cd2791
"use strict";
/**
* When computer use runs in the Hub, and which environment it reads.
*
* Computer use (the `computer` actuator, the desktop helper and the live
* preview) starts when, in this order:
* 1. in an unpackaged build only, AGY_ENABLE_CUA=1 (dev / E2E harness): on;
* 2. the `enable-agy-hub-cua-macos` custom flag override is a boolean (Hub
* Developer Settings, persisted as `jetski.developer.customFlagOverrides`):
* that value, so `false` opts out of a server-side rollout;
* 3. otherwise the server's `enable-agy-hub-cua-macos` Mendel value cached in
* app storage by src/mendelFlagSync.ts at the last poll: on iff `'true'`.
* Anything else (no cache yet, `'false'`, unreadable storage) is off.
*
* The decision is needed before app ready (the loopback WebRTC switch) and is
* read once at startup, so it cannot wait for the LS: the server value takes
* effect on the launch after the Hub first sees it, and a flag turned off
* stops computer use from the launch after the next poll that sees it off.
*
* Storage is renderer-writable, so this is a convenience gate, not a security
* boundary: the LS's own flag, per-app consent and the macOS TCC grants stay
* authoritative.
*
* Node-only, no Electron (callers pass `app.isPackaged`).
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.HELPER_ENV_ALLOWLIST = exports.MAX_PREVIEW_SLOTS = exports.MIN_PREVIEW_SLOTS = exports.DEFAULT_PREVIEW_SLOTS = exports.MAX_PREVIEW_SLOTS_KEY = exports.CUSTOM_FLAG_OVERRIDES_KEY = exports.CUA_FLAG = void 0;
exports.cuaFlagOverride = cuaFlagOverride;
exports.resolveMaxPreviewSlots = resolveMaxPreviewSlots;
exports.cuaServerFlagCached = cuaServerFlagCached;
exports.isComputerUseEnabled = isComputerUseEnabled;
exports.cuaEnv = cuaEnv;
exports.helperEnv = helperEnv;
const constants_1 = require("../constants");
const protocol_1 = require("../desktopHost/protocol");
exports.CUA_FLAG = constants_1.CUA_MACOS_FLAG;
exports.CUSTOM_FLAG_OVERRIDES_KEY = constants_1.CUSTOM_FLAG_OVERRIDES_STORAGE_KEY;
/** The override's value: true / false when set to a boolean, else undefined. */
function cuaFlagOverride(items) {
// A store that failed to load reads as no override.
const raw = items?.[exports.CUSTOM_FLAG_OVERRIDES_KEY];
if (typeof raw !== 'string' || !raw) {
return undefined;
}
try {
const o = JSON.parse(raw);
if (!o || typeof o !== 'object' || Array.isArray(o)) {
return undefined;
}
const v = o[exports.CUA_FLAG];
return typeof v === 'boolean' ? v : undefined;
}
catch {
return undefined;
}
}
/**
* How many windows the live preview shows at once: the single
* `computer.maxPreviewSlots` setting (an app storage item, or a custom flag
* override of that name in Developer Settings), 1..12, default 6. In an
* unpackaged build AGY_MAX_PREVIEW_SLOTS wins (dev / E2E). Read at startup.
*/
exports.MAX_PREVIEW_SLOTS_KEY = 'computer.maxPreviewSlots';
exports.DEFAULT_PREVIEW_SLOTS = protocol_1.DEFAULT_VIDEO_SLOTS;
exports.MIN_PREVIEW_SLOTS = 1;
exports.MAX_PREVIEW_SLOTS = protocol_1.MAX_VIDEO_SLOTS;
function resolveMaxPreviewSlots(items, env, packaged) {
if (!packaged && env.AGY_MAX_PREVIEW_SLOTS) {
return (0, protocol_1.clampVideoSlots)(env.AGY_MAX_PREVIEW_SLOTS);
}
const direct = items[exports.MAX_PREVIEW_SLOTS_KEY];
if (typeof direct === 'string' && direct.trim()) {
// Stored by the renderer as JSON (a number or a numeric string).
let v = direct;
try {
v = JSON.parse(direct);
}
catch {
// a bare string
}
return (0, protocol_1.clampVideoSlots)(v);
}
const raw = items[exports.CUSTOM_FLAG_OVERRIDES_KEY];
if (typeof raw === 'string' && raw) {
try {
const o = JSON.parse(raw);
if (o && typeof o === 'object' && !Array.isArray(o)) {
const v = o[exports.MAX_PREVIEW_SLOTS_KEY];
if (v !== undefined) {
return (0, protocol_1.clampVideoSlots)(v);
}
}
}
catch {
// ignore a bad overrides blob
}
}
return exports.DEFAULT_PREVIEW_SLOTS;
}
/**
* The server's flag value as cached by mendelFlagSync at the last poll:
* true / false, or undefined if never cached (or the store failed to load).
*/
function cuaServerFlagCached(items) {
const raw = items?.[exports.CUA_FLAG];
return raw === 'true' ? true : raw === 'false' ? false : undefined;
}
/** Whether computer use starts (see the file comment). */
function isComputerUseEnabled(items, env, packaged) {
if (!packaged && env.AGY_ENABLE_CUA === '1') {
return true;
}
return cuaFlagOverride(items) ?? cuaServerFlagCached(items) === true;
}
/**
* The environment computer use reads its overrides from: as is in an
* unpackaged build; without any AGY_* variable in a packaged app.
*/
function cuaEnv(env, packaged) {
if (!packaged) {
return env;
}
const out = {};
for (const [k, v] of Object.entries(env)) {
if (!k.startsWith('AGY_')) {
out[k] = v;
}
}
return out;
}
/** The only variables a packaged app passes to its helper processes. */
exports.HELPER_ENV_ALLOWLIST = [
'PATH',
'HOME',
'TMPDIR',
'LANG',
];
/**
* The environment of the desktop helper and the RTC sidecar: the full
* environment in an unpackaged build (dev and E2E overrides), only
* {@link HELPER_ENV_ALLOWLIST} in a packaged app (no AGY_*, DYLD_*, ...).
*/
function helperEnv(env, packaged) {
if (!packaged) {
return env;
}
const out = {};
for (const k of exports.HELPER_ENV_ALLOWLIST) {
if (env[k] !== undefined) {
out[k] = env[k];
}
}
return out;
}
Desktop feature flags and constants (constants.js)
When: Mendel feature flag keys and customFlagOverrides storage key in Antigravity.app.
- Source:
desktop/Contents/Resources/app.asar:dist/constants.js@0x0–0x3a6(934 bytes) · SHA-256b36cc05a0fdc43fe9149e3278adb9e83aff3e46d7e9114e7d4f6ca32f8e0a6ba
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CUSTOM_FLAG_OVERRIDES_STORAGE_KEY = exports.CUA_MACOS_FLAG = exports.RC_BROWSER_STREAM_FLAG = exports.WCV_THREE_LAYER_STACK_FLAG = exports.WINDOW_ORIGIN = exports.LS_LOG_FILE_NAME = exports.DYNAMIC_PORT = void 0;
/** Pass 0 to the LS so the OS assigns an available port automatically. */
exports.DYNAMIC_PORT = 0;
exports.LS_LOG_FILE_NAME = 'language_server.log';
exports.WINDOW_ORIGIN = 'https://127.0.0.1';
exports.WCV_THREE_LAYER_STACK_FLAG = 'enable-wcv-three-layer-stack';
exports.RC_BROWSER_STREAM_FLAG = 'enable-remote-control-hub-browser-stream';
/**
* Computer use on macOS (src/computer/gate.ts). Also the app storage key under
* which mendelFlagSync caches the server value for the next launch.
*/
exports.CUA_MACOS_FLAG = 'enable-agy-hub-cua-macos';
exports.CUSTOM_FLAG_OVERRIDES_STORAGE_KEY = 'jetski.developer.customFlagOverrides';
Desktop LS default flags and endpoints (lsDefaults.js)
When: Arguments and API endpoints passed when Antigravity.app launches language_server.
- Source:
desktop/Contents/Resources/app.asar:dist/lsDefaults.js@0x0–0x40b(1,035 bytes) · SHA-25611bec4bac29bf86af6c5439812720a5cc9b781524fb4cee85b4b8864135deb96
"use strict";
// Every LS's base flags. No Electron imports: pure modules use this file.
Object.defineProperty(exports, "__esModule", { value: true });
exports.LS_CLOUD_CODE_ENDPOINT = exports.LS_API_SERVER_URL = void 0;
exports.baseLsArgs = baseLsArgs;
exports.LS_API_SERVER_URL = 'https://generativelanguage.googleapis.com';
exports.LS_CLOUD_CODE_ENDPOINT = 'https://daily-cloudcode-pa.googleapis.com';
function baseLsArgs(opts) {
return [
'--standalone',
'--override_ide_name',
'antigravity',
'--subclient_type',
'hub',
'--override_ide_version',
opts.ideVersion,
'--override_user_agent_name',
'antigravity',
'--https_server_port',
String(opts.httpsServerPort),
...(opts.csrfToken !== undefined ? ['--csrf_token', opts.csrfToken] : []),
'--app_data_dir',
opts.appDataDir,
'--api_server_url',
exports.LS_API_SERVER_URL,
'--cloud_code_endpoint',
exports.LS_CLOUD_CODE_ENDPOINT,
];
}
Mendel flag sync client (mendelFlagSync.js)
When: Polls /exa.language_server_pb.LanguageServerService/GetMendelFlags and evaluates overrides.
- Source:
desktop/Contents/Resources/app.asar:dist/mendelFlagSync.js@0x0–0x37bf(14,271 bytes) · SHA-256ae48007efb50a7ae9de0751a7aa4c927825cb78dfde93a0f065434125e577546
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.MENDEL_EMPTY_RETRY_DELAY_MS = exports.MENDEL_POLL_INTERVAL_MS = exports.MENDEL_POLL_TIMEOUT_MS = void 0;
exports.parseMendelBoolFlag = parseMendelBoolFlag;
exports.evaluateRemoteControlBrowserStreamEnabled = evaluateRemoteControlBrowserStreamEnabled;
exports.startMendelFlagSync = startMendelFlagSync;
const https = __importStar(require("node:https"));
const constants_1 = require("./constants");
/** Wall-clock deadline in milliseconds for a single GetMendelFlags loopback RPC. */
exports.MENDEL_POLL_TIMEOUT_MS = 15000;
/** Interval in milliseconds between background GetMendelFlags loopback polls. */
exports.MENDEL_POLL_INTERVAL_MS = 60000;
/**
* Delay in milliseconds before one follow-up poll when an explicit `refresh()`
* observes an empty snapshot. Set deliberately just above the Language
* Server's on-demand Mendel retry cooldown (`onDemandRetryCooldown`, 3s, in
* google3 `third_party/jetski/experiments/mendel_state_cache.go`); the two
* values must change together.
*/
exports.MENDEL_EMPTY_RETRY_DELAY_MS = 3500;
const GET_MENDEL_FLAGS_PATH = '/exa.language_server_pb.LanguageServerService/GetMendelFlags';
const REQUEST_BODY = '{}';
const MAX_RESPONSE_BYTES = 1024 * 1024;
function isRecord(value) {
return typeof value === 'object' && value !== null;
}
/**
* Evaluates `flagKey` against a decoded `GetMendelFlags` JSON response payload.
* Returns `undefined` when `experimentConfig.experiments` is absent or empty so
* callers preserve prior persisted state until a non-empty snapshot arrives.
*/
function parseMendelBoolFlag(body, flagKey) {
const config = isRecord(body) ? body.experimentConfig : undefined;
const experiments = isRecord(config) ? config.experiments : undefined;
if (!Array.isArray(experiments) || experiments.length === 0) {
return undefined;
}
return experiments.some((entry) => isRecord(entry) &&
entry.keyString === flagKey &&
(entry.disabled === undefined || entry.disabled === false));
}
/**
* Evaluates whether the Remote Control built-in browser stream actuator is
* enabled (default off), giving boolean `customFlagOverrides` precedence over
* unpackaged `AGY_ENABLE_RC_BROWSER_STREAM=1` and synced Mendel storage.
*/
function evaluateRemoteControlBrowserStreamEnabled(items, env = process.env, packaged = true) {
const rawOverrides = items?.[constants_1.CUSTOM_FLAG_OVERRIDES_STORAGE_KEY];
if (typeof rawOverrides === 'string') {
try {
const parsed = JSON.parse(rawOverrides);
if (isRecord(parsed) && !Array.isArray(parsed)) {
const override = parsed[constants_1.RC_BROWSER_STREAM_FLAG];
if (typeof override === 'boolean') {
return override;
}
}
}
catch {
// Ignore malformed customFlagOverrides JSON and fall through.
}
}
if (!packaged && env.AGY_ENABLE_RC_BROWSER_STREAM === '1') {
return true;
}
const saved = items?.[constants_1.RC_BROWSER_STREAM_FLAG];
return saved === true || saved === 'true';
}
function fetchMendelFlags(port, csrfToken, requestImpl, setAbort) {
return new Promise((resolve) => {
let settled = false;
let hasResponse = false;
let req;
let activeRes;
const destroyStreams = () => {
for (const stream of [activeRes, req]) {
try {
stream?.destroy();
}
catch {
// Ignore teardown errors on already-closed streams.
}
}
};
const timer = setTimeout(() => {
settle(undefined);
destroyStreams();
}, exports.MENDEL_POLL_TIMEOUT_MS);
timer.unref?.();
function settle(value) {
if (settled) {
return;
}
settled = true;
clearTimeout(timer);
setAbort(undefined);
resolve(value);
}
setAbort(() => {
settle(undefined);
destroyStreams();
});
try {
req = requestImpl({
hostname: '127.0.0.1',
port,
path: GET_MENDEL_FLAGS_PATH,
method: 'POST',
// Mirrors setupLocalCertTrust (src/languageServer.ts) for 127.0.0.1:
// the Language Server embeds its rotated self-signed certificate in
// the Go binary rather than shipping a PEM file to Hub, and
// authenticates loopback callers via x-codeium-csrf-token.
rejectUnauthorized: false,
// Disable global keep-alive pooling across LS restarts and quit.
agent: false,
headers: {
'content-type': 'application/json',
'connect-protocol-version': '1',
'x-codeium-csrf-token': csrfToken,
'content-length': '2',
},
}, (res) => {
hasResponse = true;
activeRes = res;
res.on('error', () => settle(undefined));
res.on('close', () => settle(undefined));
if (res.statusCode !== 200) {
res.resume();
settle(undefined);
return;
}
const chunks = [];
let totalBytes = 0;
res.on('data', (chunk) => {
if (settled) {
return;
}
const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
totalBytes += buf.length;
if (totalBytes > MAX_RESPONSE_BYTES) {
settle(undefined);
destroyStreams();
return;
}
chunks.push(buf);
});
res.on('end', () => {
if (settled || res.complete === false) {
settle(undefined);
return;
}
try {
const raw = Buffer.concat(chunks, totalBytes).toString('utf8');
settle(raw ? JSON.parse(raw) : undefined);
}
catch {
settle(undefined);
}
});
});
req.on('error', () => settle(undefined));
req.on('close', () => {
if (!hasResponse) {
settle(undefined);
}
});
if (settled) {
destroyStreams();
return;
}
req.end(REQUEST_BODY);
}
catch {
settle(undefined);
destroyStreams();
}
});
}
/**
* Polls the local Language Server's `GetMendelFlags` endpoint on startup, port
* transitions, explicit refreshes, and a background interval, persisting changes
* to `WCV_THREE_LAYER_STACK_FLAG`, `RC_BROWSER_STREAM_FLAG` and `CUA_MACOS_FLAG`
* in `storageManager`. The default-off flags (RC, CUA) are written `'true'`
* when on, and `'false'` only over an earlier value, so a user who never had
* them on gets no new key.
*/
function startMendelFlagSync(options) {
const { csrfToken, storageManager, requestImpl = https.request } = options;
let activePort = 0;
let epoch = 0;
let disposed = false;
let intervalHandle;
let retryTimer;
let inFlight;
let trailingInFlight;
let abortInFlight;
function clearRetryTimer() {
clearTimeout(retryTimer);
retryTimer = undefined;
}
function resetCycle(nextPort) {
epoch += 1;
activePort = nextPort;
clearInterval(intervalHandle);
intervalHandle = undefined;
clearRetryTimer();
trailingInFlight = undefined;
const abort = abortInFlight;
abortInFlight = undefined;
inFlight = undefined;
abort?.();
}
async function runPoll(port, runEpoch, retryOnEmpty) {
const body = await fetchMendelFlags(port, csrfToken, requestImpl, (abort) => {
if (!disposed && runEpoch === epoch) {
abortInFlight = abort;
}
});
if (disposed || runEpoch !== epoch) {
return;
}
const wcvEnabled = parseMendelBoolFlag(body, constants_1.WCV_THREE_LAYER_STACK_FLAG);
const rcEnabled = parseMendelBoolFlag(body, constants_1.RC_BROWSER_STREAM_FLAG);
// Same snapshot, so undefined exactly when wcv / rc are.
const cuaEnabled = parseMendelBoolFlag(body, constants_1.CUA_MACOS_FLAG);
if (wcvEnabled === undefined ||
rcEnabled === undefined ||
cuaEnabled === undefined) {
if (retryOnEmpty && retryTimer === undefined && activePort > 0) {
retryTimer = setTimeout(() => {
retryTimer = undefined;
void launchPoll(false);
}, exports.MENDEL_EMPTY_RETRY_DELAY_MS);
retryTimer.unref?.();
}
return;
}
clearRetryTimer();
const nextWcvVal = wcvEnabled ? 'true' : 'false';
const nextRcVal = rcEnabled ? 'true' : 'false';
try {
const currentItems = await storageManager.getItems();
if (disposed || runEpoch !== epoch) {
return;
}
const updates = {};
if (currentItems[constants_1.WCV_THREE_LAYER_STACK_FLAG] !== nextWcvVal) {
updates[constants_1.WCV_THREE_LAYER_STACK_FLAG] = nextWcvVal;
}
if (rcEnabled
? currentItems[constants_1.RC_BROWSER_STREAM_FLAG] !== 'true'
: currentItems[constants_1.RC_BROWSER_STREAM_FLAG] !== undefined &&
currentItems[constants_1.RC_BROWSER_STREAM_FLAG] !== nextRcVal) {
updates[constants_1.RC_BROWSER_STREAM_FLAG] = nextRcVal;
}
// Read at the next launch by src/computer/gate.ts (computer use is
// decided before app ready, so it cannot wait for this poll).
const savedCua = currentItems[constants_1.CUA_MACOS_FLAG];
if (cuaEnabled
? savedCua !== 'true'
: savedCua !== undefined && savedCua !== 'false') {
updates[constants_1.CUA_MACOS_FLAG] = cuaEnabled ? 'true' : 'false';
}
if (Object.keys(updates).length === 0) {
return;
}
await storageManager.updateItems(updates);
}
catch {
// Contain StorageFullError and transient disk errors so background polls
// never emit unhandled rejections or wedge inFlight.
}
}
function launchPoll(retryOnEmpty) {
if (disposed || activePort <= 0) {
return Promise.resolve();
}
if (inFlight) {
return inFlight;
}
if (retryOnEmpty) {
clearRetryTimer();
}
const runEpoch = epoch;
const port = activePort;
const runPromise = runPoll(port, runEpoch, retryOnEmpty).finally(() => {
if (inFlight === runPromise) {
inFlight = undefined;
}
});
inFlight = runPromise;
return runPromise;
}
function refresh() {
if (disposed || activePort <= 0) {
return Promise.resolve();
}
if (!inFlight) {
return launchPoll(true);
}
if (!trailingInFlight) {
const queuedEpoch = epoch;
const trailing = inFlight.then(() => {
if (trailingInFlight === trailing) {
trailingInFlight = undefined;
}
if (!disposed && queuedEpoch === epoch && activePort > 0) {
return launchPoll(true);
}
});
trailingInFlight = trailing;
}
return trailingInFlight;
}
function onPortChanged(newPort) {
if (disposed) {
return;
}
resetCycle(newPort);
if (newPort <= 0) {
return;
}
void launchPoll(false);
intervalHandle = setInterval(() => {
void launchPoll(false);
}, exports.MENDEL_POLL_INTERVAL_MS);
intervalHandle.unref?.();
}
function dispose() {
if (disposed) {
return;
}
disposed = true;
resetCycle(0);
}
onPortChanged(options.port);
return { refresh, onPortChanged, dispose };
}
Remote SSH persistent LS flags (remoteLsArgs.js)
When: Arguments passed to language_server on remote SSH hosts (persistent mode and sidecars).
- Source:
desktop/Contents/Resources/app.asar:dist/remote/remoteLsArgs.js@0x0–0x4f1(1,265 bytes) · SHA-25661e21fe797b0d40b51482e7433111058521e1047c418d8ddc77c0222bb02dc43
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildRemoteLsArgs = buildRemoteLsArgs;
/**
* The SSH host's LS argv: baseLsArgs plus --persistent_mode, so the LS (and
* its agents) outlives a dropped connection and the next one re-attaches, and
* --enable_sidecars, which run on the host (their UIs reach SSH windows
* through the host's plugin:// handler, remoteSidecars.ts).
* No --exit_on_stdin_close (it would stop every agent on disconnect), and no
* host bridge flags (the laptop can't be reached from the host).
*
* TODO(nathanjuan): The LS starts every enabled sidecar at once and keeps it
* running: in persistent mode, start them for the first UI subscriber and
* stop them when idle, and don't run another LS's on the same host twice.
*/
const lsDefaults_1 = require("../lsDefaults");
const types_1 = require("./types");
function buildRemoteLsArgs(opts) {
return [
...(0, lsDefaults_1.baseLsArgs)({
ideVersion: opts.version,
httpsServerPort: 0,
csrfToken: opts.csrfToken,
appDataDir: opts.appDataDir,
}),
'--enable_sidecars',
'--persistent_mode',
'--workspace_id',
types_1.REMOTE_LS_WORKSPACE_ID,
];
}
Antigravity CLI flags and subcommands (v1.5.13)
When: Exact CLI flag and subcommand surface reported by the standalone antigravity binary (used for CLI and ACP).
- Source:
cli/antigravity· SHA-256de0cd9a6940230b2d1ac74dd5f47a743b492586987c36375d81e4571ab6b92a8
Usage of antigravity:
--add-dir Add a directory to the workspace (repeatable) (default [])
--agent Agent for the current CLI session
-c Short alias for --continue
--continue Continue the most recent conversation
--conversation Resume a previous conversation by ID
--dangerously-skip-permissions Auto-approve all tool permission requests without prompting
--disable-slash-commands Disable slash command and skill expansion in print mode
--effort Reasoning effort for the current CLI session (low|medium|high|xhigh|max)
-i Short alias for --prompt-interactive
--input-format Input format for print mode (text, stream-json). stream-json reads one NDJSON message per line from stdin and runs a turn for each; it requires --output-format stream-json (default text)
--json-schema Optional JSON schema string or path to a schema file to enforce structured output (for stream-json, only applicable to the final result)
--log-file Override CLI log file path
--mode Set the agent execution mode for this session (accept-edits, auto, plan)
--model Model for the current CLI session
--new-project Create a new project for this session
--output-format Output format for print mode (text, json, stream-json) (default text)
-p Short alias for --print
--print Run a single prompt non-interactively and print the response
--print-timeout Optional time limit for print mode; 0 waits until the turn completes (default 0s)
--project Project ID or project name for the current CLI session
--prompt Alias for --print
--prompt-interactive Run an initial prompt interactively and continue the session
--remote-agent Run this session's conversations using remote agents; --project then names a remote project by ID or name, otherwise they open in this machine's default remote project
--remote-control Create a remote connection for the CLI session on start up
--sandbox Run in a sandbox with terminal restrictions enabled
--settings Settings for this session only, never saved: a JSON object of settings.json keys, inline or as a file path
Available subcommands:
acp Start the Agent Client Protocol (ACP) stdio server
agent List available agents
agents List available agents
changelog Show changelog and release notes
help Show help for subcommands
install Configure environment paths and shell settings
mcp Manage MCP servers (add, remove, list, enable, disable)
mic-serve Serve this machine's microphone to a CLI on another host
models List available models
plugin Manage plugins (install, uninstall, list, enable, disable)
plugins Alias for plugin
remote-control Manage the remote-control background daemon (start, status, stop)
update Update CLI
Language server CLI flags (language_server --help)
When: Exact flag surface reported by Antigravity.app's language_server binary.
- Source:
desktop/Contents/Resources/bin/language_server· SHA-2563395ae043a40abc805b3af326073016c0e7252a4f807c707656d680ceaeaa2e9
Usage of desktop/Contents/Resources/bin/language_server:
-api_server_url="http://0.0.0.0:50001": API server host
-app_data_dir="antigravity-ide": Path where application data is stored, relative to GeminiDir
-beyond_quota_bucket="": Quota bucket to use for Beyond API calls (format: team/bucket)
-beyond_service_addr="": Address of the Beyond generative service (Stubby client)
-browser_eval_env=false: Whether the browser subagent runs in an eval sandbox (launches its own headless Chrome instead of attaching to the user's, no session recording)
-cloud_code_endpoint="": CCPA API URL
-config_dir="config": Path where user configuration files are stored, relative to GeminiDir.
-csrf_token="": CSRF token for language server
-disable_telemetry=false: If true, disable telemetry logging
-enable_computer_remote_host=false: Runs the computer-use plugin on a Language Server that is not the AGY Hub host, on macOS or Linux, for a Mac desktop host connecting to ActuatorService (over an authenticated loopback SSH tunnel from a remote Mac). Computer use must be on. Never on a shared instance. Experimental; off by default.
-enable_computer_remote_view=false: Enables remote viewing of the computer-use desktop over remote control (computer use must be on: the enable-agy-hub-cua-macos flag or --enable_computer_use_subagent). Experimental; off by default.
-enable_computer_use_foreground=false: Turns on the computer-use desktop tool's foreground actions (focus_app, display screenshots, clicks, typing, keys), which take over the user's screen, regardless of the enable-agy-hub-cua-foreground Mendel flag. Off, the tool offers only background actions. Computer use must be on. Off by default.
-enable_computer_use_script_mode=false: Turns on script mode of the computer-use desktop tool (one sandboxed JS script per call, when AGY Hub's actuator runs scripts) regardless of the enable-agy-hub-cua-script-mode Mendel flag. Computer use must be on. Experimental; off by default.
-enable_computer_use_subagent=false: Enables the computer-use subagent, which drives the user's Mac through a desktop host (AGY Hub's, or Antigravity Companion's), regardless of the enable-agy-hub-cua-macos Mendel flag. Applies only on a computer-use host: the AGY Hub host on macOS, or with --enable_computer_remote_view (macOS) or --enable_computer_remote_host (macOS, Linux); never on a shared instance. Experimental; off by default.
-enable_lsp=false: If true, enable LSP
-exit_on_stdin_close=false: If true, shut down gracefully when stdin reaches EOF. Used when the parent process cannot signal us across an OS boundary (e.g. WSL).
-file_watch_max_dir_count=0: The max number of directories we will watch.
-gemini_dir=".gemini": Path where Gemini files are stored. If absolute path, will set directly. If relative path, will be resolved relative to HomeDir.
-generative_service_addr="blade:google.ai.generativelanguage.v1main.generativeservice-prod": Address of the generative service
-google_cloud_project="": Google Cloud Project ID to use for keyless auth
-headless=false: Whether to run in headless mode
-http_server_port=0: Port for HTTP language server. 0 means random.
-https_server_port=0: Port for HTTPS language server. 0 means random.
-inference_api_server_url="": Inference API server host. If unset, uses default if not in enterprise mode
-is_google3_workspace=false: Deprecated: no-op.
-is_google_internal=false: Whether running in a Google internal environment.
-jetbox_release_channel="stable": Release channel (stable, insiders, autopush)
-limit_go_max_procs=4: Cap GOMAXPROCS at this value
-lsp_port=0: Port for LSP protocol. 0 means random.
-max_num_tracked_workspaces=10: Maximum number of tracked workspaces
-mock_fixture="": Path to a JSON mock fixture, or generate:<name> (requires --use_mocked_data)
-model_api_client_type=ccpa: Which model client to use: ccpa or gemini. Defaults to ccpa.
-override_business_oauth_client_id="": Override Business OAuth client ID
-override_business_oauth_client_secret="": Override Business OAuth client secret
-override_ide_name="": Override IDE name in metadata (e.g. 'antigravity')
-override_ide_version="": Override IDE version in metadata (e.g. '0.1.0')
-override_model_name="": Model name to override default model
-override_oauth_client_id="": Override OAuth client ID
-override_oauth_client_secret="": Override OAuth client secret
-override_user_agent_name="": Override user agent name for HTTP requests (e.g. 'antigravity-dev')
-parent_pipe_path="": Parent pipe path for monitoring whether the parent process is still running
-persistent_mode=false: If true, run in persistent daemon mode: writes discovery file and doesn't exit when extension closes
-running_in_xbox=false: Whether running inside Xbox sandbox
-sandbox_mode=false: Whether to use the eval model API client (modelapieval)
-stamp=false: If true, print stamp information and exit
-standalone=false: Whether to run in standalone mode
-startup_warning="": Warning message to display at startup in the UI.
-stubby_auth_cloud_location="": Google Cloud Region/Location to use for StubbyAuthProvider
-stubby_auth_cloud_project="": Cloud project ID to use for StubbyAuthProvider
-stubby_auth_mode="": Auth mode to use when using StubbyAuthProvider (personal_consumer, business_licensed_enterprise, business_agent_platform_paygo)
-subclient_type="": Subclient type for HTTP requests (e.g. 'sdk', 'cli', 'hub')
-traffic_stream_selfid="": Default Census traffic_stream_selfid tag for model API traffic isolation. A Beyond quota bucket with an l1 level takes precedence.
-use_local_chrome=false: Whether to use local chrome
-use_mocked_data=false: Use mocked data for testing
-use_stubby_auth=false: Use LOAS auth instead of OAuth browser flow. Only for use in Standalone + internal mode.
-use_test_gaia=false: Whether to use Test Gaia for authentication. If true, overrides OAuth endpoints to use gaiastaging.
-web_bundle_path="": Directory or .zip holding the compiled web UI to serve, in preference to the bundle compiled into this binary.
-workspace_id="": Workspace ID
-xbox_tool_use_port=0: Port for Xbox Tool Use gRPC server
-zerog_app_host_port=0: Port for the Zerog App host HTTP server.
-zerog_http_socket_path="": Path to the Unix Domain Socket for Zerog HTTP service.
-zerog_tls_cert_path="": Path to write the TLS certificate for Zerog gRPC service.
-zerog_vm_ssh_key_path="": Path to the SSH key for Zerog VM.
-zerog_vm_ssh_socket_name="": Name of the SSH socket for Zerog VM.