termly-cli icon indicating copy to clipboard operation
termly-cli copied to clipboard

[FEATURE] Anti-Gravity (agy) support.

Open MikeyCarter opened this issue 6 months ago • 1 comments

Feature Description

I believe gemini-cli is being retired next month in favour of Anti-Gravity (agy) cli client.

https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/

MikeyCarter avatar May 26 '26 17:05 MikeyCarter

Implementation spec for agy (Google Antigravity CLI) support

agy is the official replacement for Gemini CLI, which Termly already supports. Google shut down Gemini CLI for free/Pro/Ultra users on June 18, 2026. agy is a Go binary (not Node), installed to ~/.local/bin/agy on macOS/Linux via:

curl -fsSL https://antigravity.google/cli/install.sh | bash

What needs to change

1. lib/ai-tools/registry.js — add registry entry:

'agy': {
  key: 'agy',
  command: 'agy',
  args: [],
  displayName: 'Google Antigravity CLI',
  description: 'Google\'s terminal coding agent powered by Gemini (successor to Gemini CLI)',
  website: 'https://github.com/google-antigravity/antigravity-cli',
  checkInstalled: async () => await commandExists('agy')
}

2. lib/session/pty-manager.js — add to tuiTools array:

agy uses an alternate screen buffer TUI (scrollable conversation pane, status bar with model/token info, subagent status). It needs TUI-mode handling:

this.tuiTools = ['opencode', 'kilo', 'agy'];

Edge cases worth noting

  • OAuth on first launch: agy opens a browser for Google Sign-In on first run. In an SSH/headless context it detects this and prints an authorization URL instead. Through Termly's mobile relay, the browser-open path won't work — but the URL fallback should, since it's just terminal text output. Users should run agy once locally to complete auth before using it through Termly.

  • Existing gemini registry key: Since Gemini CLI is dead, consider aliasing the existing gemini key to agy, or at minimum noting the migration in termly tools info gemini.

  • --dangerously-skip-permissions: For unattended mobile use, users will likely want this flag. Could be documented as a suggested --ai-args value, or noted in termly tools info agy.

  • Detection path: commandExists('agy') should work — the installer adds ~/.local/bin/ to PATH. No special path logic needed beyond what commandExists already does.

References

Happy to open a PR if that's preferred.


Drafted with assistance from Claude (Anthropic). All changes reviewed and verified by the contributor.

david-w-millar avatar Jul 03 '26 21:07 david-w-millar