feat(chat): run Antigravity as a chat agent over agy acp
Summary
- Antigravity (preset
agy) opens as a chat, not only a terminal.agy acpis Antigravity's own ACP stdio server, so the newagy-acpharness needs no adapter package. - Chats start in agy's
automode (shown as Approve for me), need CLI 1.5.13 or later (upgrade:agy update), and sign in withagy acp --login. fullAccessModeIdis renamed tostartModeId, because agy's start mode is not full access. A new test fails if the host catalogue and@superset/chat's preset and start-mode maps disagree.
Why / Context
Until now Antigravity ran only in a terminal. agy acp now works: on agy 1.5.14 a raw JSON-RPC probe returns protocol v1, loadSession, session resume/close/list, the modes default/accept-edits/auto/plan, and the config options model, thought_level and mode. session/new also works in an untrusted folder.
How It Works
acpCatalogue.ts: newagy-acpentry (agy acp, floor1.5.13,startModeId: "auto"), mapped from presetagy.packages/chatmirrors the preset map and the start modes.agentLogin.ts:agy acp --loginis the sign-in command shown when auth is missing. Login uses the Google account in the keychain, so no profile env goes with the command.- Composer:
accept-edits(agy's spelling) uses the same copy as Claude'sacceptEditsand is hidden the same way. No new strings. - The model picker needs no new code. Chat model discovery already reads the agent's ACP
modelandthought_leveloptions, so it lists the models agy offers that account.
Design Decisions
- Start mode
auto, not full access. agy has no unrestricted mode id.--dangerously-skip-permissionsis a launch flag that covers the whole process. It cannot follow a mode change, so a user who picks Ask for approval would still get no prompts. That is a picker that lies, so the flag is not used. agy's changelog describesautoas: approve edits inside the workspace, run commands in the terminal sandbox, and ask before commands that leave the sandbox. Terminal agy keeps--dangerously-skip-permissionsfrom #10112. Chat users who want fewer prompts getauto, and the docs say so. - Floor 1.5.13. 1.5.13 fixed
agy acprunning shell commands in the launch directory instead of the session folder. It also fixedagy acpignoring attached file contents. 1.5.10 fixed permission requests being held until the next prompt, which hangs a chat. The CLI updates itself, so most users are already past the floor. - Gemini stays terminal-only. #8058 registered
gemini-acpin the catalogue, but #8242 mapped only presets that had been verified as chats, andgeminiwas never one of them. This PR does not change that.
Manual QA Checklist
Done in the dev desktop from this worktree, driven over CDP with screenshots, on agy 1.5.14:
- A new Antigravity chat, with no remembered selections, starts in Approve for me on Gemini 3.8 Flash.
- In auto mode, "create cdp-auto.txt" wrote the file in the workspace's worktree folder with no approval prompt.
- After switching to Ask for approval mid-chat, an append shows "Allow this action?". Allow writes the file, and the file on disk has both lines.
- The model picker shows agy's own list (Gemini 3.8 Flash, Claude Sonnet 4.6 Thinking, Claude Opus 4.6 Thinking, GPT-OSS 120B) and the thought-level slider. After a switch to GPT-OSS 120B, the next turn reports that model.
- Closing the chat stops its
agy acpprocess. Reopening it from chat history restores the transcript, the mode and the model, and the agent still recalls the file it created. - The mode menu shows the same two modes as Claude (Ask for approval, Approve for me).
Testing
bunx turbo run typecheck --filter=@superset/host-service --filter=@superset/chat --filter=@superset/desktop --filter=@superset/mobile(mobile'sacpHarnessForPresetcallers included)bun run lintbun run check:i18n(no catalog changes)bun testinpackages/chat/src/core/harness,packages/host-service/src/chat-v3,packages/host-service/src/model-catalog, and the desktopAgentComposerfolder- The parity test fails when
agy-acp'sstartModeIddrifts from the chat package (checked by hand)
Known Limitations
- The first turn after a model switch began with the old model's name ("Gemini 3.8 Flash (High)GPT-OSS 120B (Medium)"). The next turn was clean. This text comes from agy; Paradev sends the config change before the prompt.
- Usage capture (
captureSessionAccount) covers only Claude and Codex, so agy chats record no session account. #10095 already counts agy CLI usage from transcripts.
Summary by cubic
Runs Antigravity as a chat agent over its own agy acp ACP stdio server, so the agy preset opens a chat instead of only a terminal and needs no adapter. Chats start in agy's auto mode (shown as Approve for me), because agy has no unrestricted mode id and --dangerously-skip-permissions covers the whole process, so it can't follow a mid-chat mode change.
Details
- Requires agy 1.5.13 or newer (upgrade:
agy update); when auth is missing, the sign-in command isagy acp --login. - Renames
fullAccessModeIdtostartModeIdin the host catalogue, since the agy start mode is not full access. - A parity test fails if the host catalogue's preset and start-mode maps drift from
@superset/chat. - Gemini stays terminal-only; only presets verified to work as chats were mapped.
- agy chats record no session account; usage capture still covers only Claude and Codex.
Summary by CodeRabbit
- New Features
- Added support for Antigravity chats, including sign-in and automatic updates.
- Antigravity chats start in Auto mode and request approval for risky actions.
- Added an “Approve edits” mode for editing files without confirmation while requiring approval for commands.
- Documentation
- Updated chat and agent setup guides with Antigravity requirements, access behavior, and supported agent options.