The release of Google Antigravity CLI (agy) has introduced several terminal-based development agent paradigms. While it replaces the legacy Gemini CLI, it is not merely a replacement tool — it is a complete, concurrent development environment designed for multi-agent workflows.
In this reference guide, we will explore the core features of the Antigravity CLI, detailing how to configure the Terminal Sandbox, how the Plugin architecture is structured, how to manage Subagents, and provide a complete reference list of TUI slash commands.
TL;DR
| Topic | Detail |
|---|---|
| Command | agy (Antigravity CLI) |
| Sandbox | macOS sandbox-exec, Linux nsjail, Windows AppContainer |
| Plugins | ~/.gemini/antigravity-cli/plugins/<name>/ |
| Subagents | Parallel background workers; /agents panel |
| Shortcuts | Ctrl+J teleport to pending approval; Ctrl+K fast approve |
| Migration | Gemini CLI deprecation guide |
1. Terminal Sandbox Isolation
To protect your host machine from potentially destructive code changes or unauthorized network access during agent actions, the CLI contains a native operating system sandbox layer.
Rather than running heavy containers, agy leverages native OS APIs to enforce containment boundaries with zero startup overhead:
- macOS: Enforced via
sandbox-execprofiles. - Linux: Managed via namespace isolation with
nsjail. - Windows: Isolated inside containerized
AppContainersessions.
Configuration
You can toggle or adjust sandbox boundaries inside your global configurations file (~/.gemini/antigravity-cli/settings.json):
{
"enableTerminalSandbox": true,
"toolPermission": "request-review"
}
enableTerminalSandbox(boolean): Toggles general process confinement on command executions (default:false).toolPermission(string): Defines approval level (always-proceed,request-review,strict,proceed-in-sandbox).
Interactive Sandboxing Approvals
When the agent proposes a command, confirmation prompts adapt dynamically:
- Sandbox Enabled: The prompt includes a bypass option ("Yes, and run without sandbox restrictions") for trusted, heavy command calls.
- Sandbox Disabled: The prompt includes a safety option ("Yes, and run in sandbox") to execute unverified, risky scripts in containment.
Sandbox troubleshooting
| Issue | What to check |
|---|---|
| Commands hang in sandbox | Network allowlist; try proceed-in-sandbox vs full bypass |
| Writes fail outside project root | Expected—scope agent with /add-dir |
| macOS denies sandbox-exec | SIP/profile permissions; update Antigravity build |
| CI/CD headless runs | Sandbox may need disable + strict permissions.deny instead |
Treat sandbox bypass like sudo: log who approved it and restrict to senior engineers on production machines.
2. Staged Plugin Architecture
Plugins in Antigravity CLI are namespaced directory bundles containing skills, rules, lifecycle hooks, and Model Context Protocol (MCP) server definitions grouped as a single deployable unit.
Filesystem Layout
When you install a plugin, files stage under your home directory:
~/.gemini/antigravity-cli/
├── plugins/
│ └── <plugin_name>/
│ ├── plugin.json # Required metadata file
│ ├── mcp_config.json # Optional MCP server definitions
│ ├── hooks.json # Optional event hook definitions
│ ├── skills/ # Optional local agent workflows (.md)
│ ├── agents/ # Optional custom agent blueprints
│ └── rules/ # Optional workspace rules (.md)
└── import_manifest.json # Staging registry ledger
Once staged, agy automatically crawls these folders on startup and registers the skills, hooks, and commands into active memory.
Minimal plugin.json example
{
"name": "team-security-rules",
"version": "1.0.0",
"description": "Deny destructive shell patterns; load review skill",
"skills": ["skills/security-review.md"],
"rules": ["rules/no-force-push.md"]
}
Share plugins via git the same way you share agent skills—version bumps should trigger team-wide agy inspect smoke tests.
3. Parallel Subagents Framework
The CLI supports asynchronous task delegation. When you prompt agy with a complex goal, it does not lock your active shell. Instead, it can spawn independent subagents to work in parallel.
For example, if you ask the agent to fix a build error and document the changes, the main agent will:
- Spawn a Testing Subagent to locate, edit, and verify the build error in an isolated Git worktree.
- Spawn a Documentation Subagent to search files and draft matching guides in the background.
Complete AI Builder Bootcamp
Claude, Python automation & full-stack — 12 live sessions with Yash Thakker.
The Complete AI Builder Bootcamp is the best AI development course for learning Claude AI, prompt engineering, Python automation, and full-stack web development. This intensive 6-week live bootcamp teaches you how to build AI-powered applications using Claude Projects, Claude Artifacts, Claude Code, and the complete Claude ecosystem. You'll master prompt engineering techniques, learn to create custom Claude connectors and MCP integrations, build Python automation workflows, develop full-stack websites with AI assistance, and create AI marketing agents.
The bootcamp includes 12 live Zoom sessions with Yash Thakker, founder of AISOLO Technologies and instructor to 350,000+ students. You'll build 8+ portfolio projects including AI playbooks, full-stack note-taking applications, Python automation scripts, marketing agents, and personal portfolio websites. The curriculum covers AI fundamentals, Claude Projects and Artifacts, Claude Co-work, Claude plugins and skills, Claude Code for Python development, full-stack development, AI marketing, and capstone projects.
Students receive 1-year access to all recordings, permanent Discord community access, a certificate of completion, and personalized career guidance. All enrollments include a 7-day money-back guarantee. This is the most comprehensive Claude AI bootcamp available, taking students from zero AI knowledge to expert AI builder in 6 weeks.
Managing approvals in TUI
When a subagent needs file write or system execution permissions, it requests confirmation. You can manage these approvals via two mechanisms:
- The
/agentsPanel: Type/agentsin your prompt box to open the list of running, completed, or blocked subagents. Selecting a subagent opens its full console history showing every thought and step. - Teleport Shortcuts:
- Press
Ctrl+Jto instantly teleport to the detail panel of the next subagent waiting for review. - Press
Ctrl+Kto grant permission from the fast-path alert bar directly above your active prompt, without switching windows.
- Press
Subagent workflow patterns
| Pattern | Main agent | Subagent | Outcome |
|---|---|---|---|
| Fix + document | Plans approach | Worker fixes build in worktree | Green CI + draft docs |
| Research + implement | Holds user thread | Researcher gathers API docs | Main agent implements |
| Test matrix | User-facing chat | Multiple testers on packages | Parallel failure reports |
Subagents align with loop engineering: the primary loop orchestrates; workers execute until gates pass. Review blocked subagents daily—stale permissions requests stall entire workflows.
4. CLI Core Slash Commands Reference
Antigravity CLI provides a rich set of built-in slash commands typed directly into your terminal prompt box:
| Command | Category | Purpose | Example |
|---|---|---|---|
/add-dir | Workspace | Adds a folder path to the active agent workspace. | /add-dir ./libs |
/agents | Subagents | Opens the interactive background subagent dashboard. | /agents |
/artifact | Artifacts | Opens the TUI viewer for previewing staged files. | /artifact |
/btw | Utility | Asks a quick question without initiating a coding run. | /btw what is port? |
/changelog | Utility | Displays release notes and product changelogs. | /changelog |
/config | Configuration | Opens the interactive settings configuration menu. | /config |
/context | Context | Visualizes currently loaded files and context usage. | /context |
/diff | Utility | Displays a git-style diff of files edited by the agent. | /diff |
/fork | Sessions | Branches the active conversation into a new session. | /fork |
/keybindings | Configuration | Opens the interactive shortcut remapping editor. | /keybindings |
/logout | Account | Logs out of the current Google session and clears cache. | /logout |
/mcp | Tools | Lists active MCP hosts and details exposed tools. | /mcp |
/model | Configuration | Changes the default Gemini model used for reasoning. | /model gemini-3.5-ultra |
/permissions | Configuration | Adjusts allowed and denied commands list. | /permissions |
/resume | Sessions | Opens the conversation list to switch sessions. | /resume |
/rewind | Sessions | Rolls back conversation turns to a previous checkpoint. | /rewind 3 |
/skills | Skills | Lists all active local and global agent skills. | /skills |
/statusline | Configuration | Toggles the terminal status bar visibility. | /statusline |
/tasks | Tasks | Displays active background runs and progress bars. | /tasks |
/usage | Utility | Shows current token usage and account statistics. | /usage |
Session and recovery commands
Use /fork when you want to explore a risky refactor without losing the main conversation. /rewind rolls back turns when the agent polluted context—pair with /context to verify what remains loaded. /resume switches between long-running tasks; document session IDs in team runbooks for handoffs.
5. Setting Custom Rules
To restrict or enforce conventions across your CLI agents, you can configure command permissions in ~/.gemini/antigravity-cli/settings.json under the "permissions" block:
{
"permissions": {
"allow": ["command(git)", "command(npm test)"],
"deny": ["command(rm -rf)"]
}
}
This prevents the agent from attempting dangerous system modifications while allowing common operations to proceed without prompting you for manual approval.
If you are currently migrating from Gemini CLI, follow our step-by-step transition checklist: Gemini CLI Deprecated: How to Migrate to Google Antigravity CLI (agy).
MCP and skills integration
Antigravity CLI treats MCP servers and skills as first-class plugin citizens—same architectural idea as Model Context Protocol hosts in Cursor or Claude Code.
| Surface | Command | Use |
|---|---|---|
| MCP hosts | /mcp | Inspect connected tools and auth |
| Skills index | /skills | List staged markdown workflows |
| Context audit | /context | See token-heavy files before they blow the window |
Browse community skills at /skills and MCP servers at /mcp-servers before authoring duplicate internal plugins.
Keyboard shortcuts reference
| Shortcut | Action |
|---|---|
Ctrl+J | Jump to next subagent awaiting approval |
Ctrl+K | Approve pending tool request from prompt bar |
/keybindings | Open remapping UI for custom layouts |
Remap cautiously on remote SSH sessions—terminal multiplexers may intercept the same chords.
Security model vs legacy Gemini CLI
| Risk | Gemini CLI (legacy) | Antigravity CLI |
|---|---|---|
Destructive rm -rf | Ran on host if approved | Sandbox blocks writes outside root |
| Exfiltration curl | Unrestricted by default | Network policy in sandbox profile |
| Secret leakage in logs | Same risk | Same risk—redact before sharing traces |
| Plugin supply chain | Extensions less structured | Audit plugin.json + staged folders |
Pair CLI permissions with agent skills security review when importing third-party plugin bundles.
Example settings.json starter profile
{
"enableTerminalSandbox": true,
"toolPermission": "request-review",
"permissions": {
"allow": ["command(git)", "command(npm test)", "command(go test ./...)"],
"deny": ["command(rm -rf)", "command(curl)", "command(wget)"]
},
"defaultModel": "gemini-3.5-flash"
}
Tune deny for your stack—blocking all curl breaks legitimate API debugging. Many teams allow curl only when sandbox is enabled and deny when bypass is requested.
/model and token budgeting
Switch models with /model when tasks differ: faster flash models for search and scaffolding; larger reasoning models for architecture refactors. Monitor /usage during heavy subagent days—parallel workers multiply token burn the same way multi-agent loops do in other CLIs.
When to use /btw vs full agent runs
/btw answers quick factual questions without spawning tool-heavy coding loops—use it for port numbers, flag meanings, or syntax checks. Full prompts with file edits should use normal messages so subagents, sandbox, and /diff tracking engage. Mixing modes keeps token spend predictable.
Antigravity vs other terminal agents (2026)
| Tool | Vendor | Sandbox | Plugin model |
|---|---|---|---|
| Antigravity CLI | Native OS | Staged plugins | |
| Claude Code | Anthropic | Policy + hooks | Skills + CLAUDE.md |
| Codex CLI | OpenAI | Varies by host | Plugins repo |
| Cursor CLI | Cursor | IDE-integrated | Rules + skills |
Pick Antigravity when your stack is Gemini-native and you want Google OAuth plus subagent panels in one TUI—not because it replaces every other agent CLI feature-for-feature.
First-week learning path
| Day | Focus | Commands |
|---|---|---|
| 1 | Install + migrate | agy, agy inspect, agy plugin import gemini |
| 2 | Sandbox + permissions | /permissions, /config, test allow/deny |
| 3 | Context hygiene | /add-dir, /context, /rewind |
| 4 | Subagents | /agents, Ctrl+J, Ctrl+K |
| 5 | Plugins + MCP | /skills, /mcp, author plugin.json |
Block 30 minutes daily the first week—Antigravity rewards operators who configure guardrails before automating large refactors.
Related Reading
- Gemini CLI → Antigravity migration guide
- What is MCP?
- Loop engineering
- skills-lock.json for reproducible installs
- LLM context window explained
Summary
Antigravity CLI (agy) is Google's sandboxed, plugin-aware, multi-agent terminal: native OS containment, staged plugins under ~/.gemini/antigravity-cli/, parallel subagents with /agents and Ctrl+J/Ctrl+K approvals, and a broad slash command surface for sessions, MCP, and permissions.
Enable enableTerminalSandbox early, stage plugins with valid plugin.json, and migrate from legacy Gemini via our deprecation guide.
Operators coming from Gemini CLI should treat Antigravity as a new harness—reuse plugins and skills, but relearn approval flows (Ctrl+J / Ctrl+K) and context commands (/context, /rewind) before delegating production incidents to subagents.
Target queries: antigravity cli sandbox, agy slash commands, install plugins antigravity, subagents panel agy, and settings.json antigravity—use this page as the canonical ExplainX reference when sharing internally.
For Gemini CLI deprecation context and install commands, start with the companion migration guide then return here for day-to-day slash command and sandbox operations.
Keep ~/.gemini/antigravity-cli/settings.json in dotfiles backup—permissions and sandbox flags are the fastest way to accidentally widen agent power across machines.
Updated June 19, 2026 for Antigravity CLI 2.0 reference coverage.
Note: CLI commands, shortcuts, and configurations are based on Google's initial June 2026 Antigravity 2.0 release specs. Ensure your terminal PATH is loaded before running agy commands.