[FEATURE] Anti-Gravity (agy) support.
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/
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:
agyopens 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 runagyonce locally to complete auth before using it through Termly. -
Existing
geminiregistry key: Since Gemini CLI is dead, consider aliasing the existinggeminikey toagy, or at minimum noting the migration intermly tools info gemini. -
--dangerously-skip-permissions: For unattended mobile use, users will likely want this flag. Could be documented as a suggested--ai-argsvalue, or noted intermly tools info agy. -
Detection path:
commandExists('agy')should work — the installer adds~/.local/bin/to PATH. No special path logic needed beyond whatcommandExistsalready does.
References
- Antigravity CLI repo
- Google transition announcement
- Termly CONTRIBUTING.md — Adding AI Tool Support
- Termly CLAUDE.md — TUI tools
Happy to open a PR if that's preferred.
Drafted with assistance from Claude (Anthropic). All changes reviewed and verified by the contributor.