Repository navigation
feat(agents): offer Antigravity instead of Gemini as an agent - #11417
Conversation
Accept --agent gemini as a deprecated alias for antigravity.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
📊 Benchmark resultsComparing with b095d3d
|
commit: |
|
@autobump-app approve |
Opened by Netliloop run #6634 (general), asked in Slack
Why
Netlify agent runners are moving from the Gemini CLI to Google's Antigravity coding agent.
netlify agents:createandnetlify createstill offer onlyclaude, codex, gemini, so there is no way to pick Antigravity from the CLI:--agent antigravityfails withInvalid agent. Available agents: claude, codex, gemini.What changed
agents:createandcreateoffer Antigravity in place of Gemini, in the interactive picker, the--agenthelp text and the generated docs (docs/commands/agents.md,docs/commands/create.md, regenerated withnpm run --prefix=site build:docs-md:gen).--agent geministill works as a deprecated alias: it prints› Warning: The "gemini" agent is deprecated, using "antigravity" instead.and sendsagent: "antigravity". The mapping lives in one helper,resolveAgentAliasinsrc/commands/agents/utils.ts, used by both commands. This mirrors bitballoon's server-side remap ofgeminitoantigravity(netlify/bitballoon#23773).claude, codex, antigravity.agents:listandagents:showprint an older run's storedgeminias is, in lowercase, because there's no longer aGeminidisplay name.src/utils/agent-detection.ts,src/utils/init/agent-mcp.ts, the telemetry docs indocs/index.md). Theregeminimeans the Gemini CLI running the Netlify CLI, not an agent runner.How we verified
New integration tests. All five fail on
mainand pass on this branch:agents-create.test.ts›should send the antigravity agent in the create request: onmainit fails withError: Invalid agent. Available agents: claude, codex, gemini.agents-create.test.ts›should map the deprecated gemini agent to antigravity with a warningagents-create.test.ts›should list the available agents when the agent is invalid(--agent nonsense; anchored to the end of the message, so it also goes red ifgeminiis added back to the list)create.test.ts›--agent flag›should send the antigravity agent in the agent runner requestcreate.test.ts›--agent flag›should map the deprecated gemini agent to antigravity with a warningThe tests run the built CLI binary against the repo's mock API and assert on the recorded
POST /api/v1/agent_runnersbody.npx vitest run --retry=0 tests/integration/commands/agents/ tests/integration/commands/create/: 57 passednpx vitest run tests/unit/: 987 passednpm run typecheck,eslinton the touched directories,oxfmt --check: cleannetlify agents:create --helpandnetlify create --helpshowagent type (claude, codex, antigravity)We also ran the built CLI binary against a standalone local mock API that records every request body (the only mocked seam is the Netlify API):
agents:createwith--agent antigravity,gemini,gemini --jsonandnonsense(asciinema recording)All 8 cases send
agent: "antigravity"or refuse before any POSTPOST /api/v1/agent_runnersbodyagents:create "…" --agent antigravity --branch mainAgent: Antigravity, no warning{"branch":"main","prompt":"…","agent":"antigravity"}--agent gemini› Warning: The "gemini" agent is deprecated, using "antigravity" instead.--agent gemini --json--json, as for every CLI warning)--agent nonsense› Error: Invalid agent. Available agents: claude, codex, antigravitycreate "…" --agent antigravity --no-wait{"prompt":"…","agent":"antigravity","mode":"create"}--agent gemini--agent nonsenseagents:create(no--agent, in a pty)agent: "antigravity"after picking itFull output and recorded requests for the
createand interactive picker cases: create-and-picker-receipt.txtWhat is left to test
--agent antigravityor--agent gemini.antigravityfrom the CLI. When to release is a maintainer's call. Merging is safe because nothing reaches users until a release. The server-side remap ofgemini(netlify/bitballoon#23773) is still open.Risk
Merge Risk: Low
One narrow path: the agent name the two commands send. It is covered by integration tests against the mock API. If it's wrong,
agents:create/createwith Antigravity or Gemini fails visibly with an API error, and Claude and Codex are unaffected.Linear: PAW-820