How google-antigravity/antigravity-cli works
Purpose and Repository Shape
This repository is a public landing/documentation surface for Antigravity CLI, a terminal-based interface to Antigravity’s shared agent engine. It contains no CLI implementation, package manifest, build system, or runtime source; the product binary is installed remotely and invoked as agy. Primary user entry point: README.md.
Product Entry and Installation Boundary
Users install platform-specific scripts fetched from antigravity.google, then launch the externally supplied executable with agy. This repository documents, rather than owns, installation and execution:
• README.md
The installation scripts, executable distribution, updates, and core application lifecycle are external to this tree.
CLI Agent Runtime
The documented CLI runs as a low-overhead terminal/TUI agent for local and remote SSH workflows. Its advertised capabilities—codebase understanding, permissioned edits, command execution, multi-step reasoning, tool calling, and persistent history—belong to the shared Antigravity core agent engine, which is not present here:
• README.md
The key control boundary is user permission: the agent may edit files and execute commands only with user authorization.
Authentication and Session Flow
At startup or when authentication is needed, the installed CLI uses the system keyring for credentials. If no active session exists, it uses Google Sign-In: browser launch locally, or an authorization URL for SSH sessions. /logout clears saved credentials. Enterprise access additionally depends on GCP-project onboarding:
• README.md
Keyring storage, OAuth/sign-in implementation, SSH detection, and GCP integration are external services/runtime concerns.
Cross-Product Integration
Antigravity CLI and the Antigravity 2.0 GUI share an agent engine and synchronize preferences and permissions. CLI sessions can be exported to the GUI, establishing an interoperability boundary between terminal interaction and GUI-based continuation:
• README.md
Shell Customization Examples
The only executable artifacts in this repository are user-facing shell examples for integrating CLI state into terminal chrome:
• examples/statusline/statusline.sh
• examples/title/title.sh
Each example is documented alongside screenshots and is intended as optional shell-level presentation integration, not core CLI runtime behavior:
• examples/statusline/README.md
• examples/title/README.md
External Services and Governance
Material external dependencies are Antigravity’s hosted installer/distribution endpoints, Google authentication, system keyring facilities, optional GCP enterprise configuration, and Antigravity/Google data-governance services. Product, privacy, and risk disclosures are centralized in:
• README.md
• CHANGELOG.md
Main entry points: README.md Product guide · statusline/README.md Statusline guide · title/README.md Title guide · CHANGELOG.md Change log
Components 15
Repository surface
Documentation and optional shell presentation examples.
- Product guide · Primary installation, usage, authentication, and governance entry point.
README.md - Change log · Product change and disclosure record.
CHANGELOG.md - Statusline guide
examples/statusline/README.md - Statusline script · Optional terminal-chrome integration.
examples/statusline/statusline.sh - Title guide
examples/title/README.md - Title script · Optional terminal-title integration.
examples/title/title.sh
External CLI platform
Installed and operated outside this repository.
- agy executable · Remotely installed terminal/TUI client.
- Shared agent engine · Provides reasoning, tools, edits, commands, and history.
- User authorization · Gates file edits and command execution.
External services
- Hosted installer · Supplies platform-specific installation scripts.
- System keyring
- Google Sign-In · Uses browser login locally or an authorization URL over SSH.
- Antigravity 2.0 GUI · Continues exported CLI sessions.
- GCP enterprise onboarding · Required for enterprise access.
- Google data governance
Connections 16
- Product guide → Hosted installer: documents installation
- Hosted installer → agy executable: installs
- Product guide → agy executable: documents invocation
- agy executable → Shared agent engine: uses
- Shared agent engine → User authorization: requests edit and command approval
- agy executable → System keyring: loads saved session
- agy executable → Google Sign-In: authenticates when needed
- agy executable → GCP enterprise onboarding: uses for enterprise access
- Shared agent engine → Antigravity 2.0 GUI: shares engine, preferences, and permissions
- agy executable → Antigravity 2.0 GUI: exports sessions
- Product guide → Statusline guide: links example
- Statusline guide → Statusline script: documents
- Product guide → Title guide: links example
- Title guide → Title script: documents
- Product guide → Google data governance: centralizes disclosures
- Change log → Google data governance: records disclosures