Skip to content

feat: Antigravity CLI (agy) as a supported agent - #1020

Merged
edgar-durand merged 3 commits into
mainfrom
feat/agent-antigravity
Nov 6, 2026
Merged

edgar-durand merged 3 commits into
mainfrom
feat/agent-antigravity

Conversation

@edgar-durand

@edgar-durand edgar-durand commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Adds Google Antigravity CLI (agy, 1.5.2, native ACP agy acp) as a supported agent.

  • @codeam/shared: registry entry (oauth_token preferred, api_key second), install snippet guarded by command -v agy.
  • CLI: ACP adapter, runtime with generateOneShot (agy -p … --print-timeout), on-demand installer, codeam link capture, credential delivery (OAuth → ~/.gemini/antigravity-cli/antigravity-oauth-token 0600; API key → GEMINI_API_KEY + settings.json modelProvider: gemini).
  • Box image: pinned agy release (sha512 checked per arch) in /usr/local/bin, auto-update disabled.

Verified against real agy in Docker: initialize → protocol 1, session/new authenticates with an API key; without credentials → "Authentication required". Backend counterpart lands in codeagent-mobile after this tag publishes @codeam/shared.

Known follow-ups: agy reports provider errors as a chat chunk with end_turn (no re-auth bubble yet); Baton + squad specialty not wired.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

edgar-ph and others added 3 commits November 6, 2026 12:51
Public/internal id `antigravity`, binary `agy`, auth kinds
oauth_token (preferred, backend-minted) + api_key, native ACP.
Adds its canonical no-sudo install snippet (command -v agy guarded)
and updates the Gemini comment: official ACP (`agy acp`) shipped in
agy 1.5.0, closing antigravity-cli#31.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ACP adapter `agy acp` (no --dangerously-skip-permissions: our runner
  answers session/request_permission like for every other agent), with
  on-demand install for local pairs and ~/.local/bin PATH folding.
- Runtime strategy with generateOneShot (`agy -p … --print-timeout`),
  backed by our kill timer since the timeout does not bound the
  signed-out sign-in wait.
- Self-hosted provisioning: oauth_token blob verbatim to
  ~/.gemini/antigravity-cli/antigravity-oauth-token (0600, validated);
  api_key exports GEMINI_API_KEY and merges modelProvider=gemini into
  settings.json, removing the shadowing OAuth file; switching back to
  OAuth drops modelProvider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Downloads the exact agy release (AGY_RELEASE + per-arch sha512 from
Google's manifests, verified) into /usr/local/bin/agy, root-owned,
outside the shadowed /home/box volume, so the codespace/self-hosted
`command -v agy` guard skips the install. Sets
AGY_CLI_DISABLE_AUTO_UPDATE=1: agy self-updates and relaunches, which
would swap the binary under a live session. Guarded by
__tests__/box/agy-version-pin.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@edgar-durand
edgar-durand merged commit 5ca0010 into main Nov 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants