explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • 1. Terminal Sandbox Isolation
  • 2. Staged Plugin Architecture
  • 3. Parallel Subagents Framework
  • 4. CLI Core Slash Commands Reference
  • 5. Setting Custom Rules
  • MCP and skills integration
  • Keyboard shortcuts reference
  • Security model vs legacy Gemini CLI
  • Example settings.json starter profile
  • /model and token budgeting
  • When to use /btw vs full agent runs
  • Antigravity vs other terminal agents (2026)
  • First-week learning path
  • Related Reading
  • Summary
← Back to blog

explainx / blog

Antigravity CLI: Sandbox, Plugins, and Slash Commands Reference

A deep dive reference for Google Antigravity CLI: learn how the terminal sandbox, subagents delegation, plugins staging, and slash commands work.

Jun 19, 2026·10 min read·Yash Thakker
Antigravity CLIDeveloper ToolsSandboxSubagentsPlugins
go deep
Antigravity CLI: Sandbox, Plugins, and Slash Commands Reference

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

TopicDetail
Commandagy (Antigravity CLI)
SandboxmacOS sandbox-exec, Linux nsjail, Windows AppContainer
Plugins~/.gemini/antigravity-cli/plugins/<name>/
SubagentsParallel background workers; /agents panel
ShortcutsCtrl+J teleport to pending approval; Ctrl+K fast approve
MigrationGemini CLI deprecation guide
Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


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-exec profiles.
  • Linux: Managed via namespace isolation with nsjail.
  • Windows: Isolated inside containerized AppContainer sessions.

Configuration

You can toggle or adjust sandbox boundaries inside your global configurations file (~/.gemini/antigravity-cli/settings.json):

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:

  1. Sandbox Enabled: The prompt includes a bypass option ("Yes, and run without sandbox restrictions") for trusted, heavy command calls.
  2. Sandbox Disabled: The prompt includes a safety option ("Yes, and run in sandbox") to execute unverified, risky scripts in containment.

Sandbox troubleshooting

IssueWhat to check
Commands hang in sandboxNetwork allowlist; try proceed-in-sandbox vs full bypass
Writes fail outside project rootExpected—scope agent with /add-dir
macOS denies sandbox-execSIP/profile permissions; update Antigravity build
CI/CD headless runsSandbox 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:

snippet
~/.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

json
{
  "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:

  1. Spawn a Testing Subagent to locate, edit, and verify the build error in an isolated Git worktree.
  2. Spawn a Documentation Subagent to search files and draft matching guides in the background.

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 /agents Panel: Type /agents in 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+J to instantly teleport to the detail panel of the next subagent waiting for review.
    • Press Ctrl+K to grant permission from the fast-path alert bar directly above your active prompt, without switching windows.

Subagent workflow patterns

PatternMain agentSubagentOutcome
Fix + documentPlans approachWorker fixes build in worktreeGreen CI + draft docs
Research + implementHolds user threadResearcher gathers API docsMain agent implements
Test matrixUser-facing chatMultiple testers on packagesParallel 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:

CommandCategoryPurposeExample
/add-dirWorkspaceAdds a folder path to the active agent workspace./add-dir ./libs
/agentsSubagentsOpens the interactive background subagent dashboard./agents
/artifactArtifactsOpens the TUI viewer for previewing staged files./artifact
/btwUtilityAsks a quick question without initiating a coding run./btw what is port?
/changelogUtilityDisplays release notes and product changelogs./changelog
/configConfigurationOpens the interactive settings configuration menu./config
/contextContextVisualizes currently loaded files and context usage./context
/diffUtilityDisplays a git-style diff of files edited by the agent./diff
/forkSessionsBranches the active conversation into a new session./fork
/keybindingsConfigurationOpens the interactive shortcut remapping editor./keybindings
/logoutAccountLogs out of the current Google session and clears cache./logout
/mcpToolsLists active MCP hosts and details exposed tools./mcp
/modelConfigurationChanges the default Gemini model used for reasoning./model gemini-3.5-ultra
/permissionsConfigurationAdjusts allowed and denied commands list./permissions
/resumeSessionsOpens the conversation list to switch sessions./resume
/rewindSessionsRolls back conversation turns to a previous checkpoint./rewind 3
/skillsSkillsLists all active local and global agent skills./skills
/statuslineConfigurationToggles the terminal status bar visibility./statusline
/tasksTasksDisplays active background runs and progress bars./tasks
/usageUtilityShows 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:

json
{
  "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.

SurfaceCommandUse
MCP hosts/mcpInspect connected tools and auth
Skills index/skillsList staged markdown workflows
Context audit/contextSee 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

ShortcutAction
Ctrl+JJump to next subagent awaiting approval
Ctrl+KApprove pending tool request from prompt bar
/keybindingsOpen remapping UI for custom layouts

Remap cautiously on remote SSH sessions—terminal multiplexers may intercept the same chords.


Security model vs legacy Gemini CLI

RiskGemini CLI (legacy)Antigravity CLI
Destructive rm -rfRan on host if approvedSandbox blocks writes outside root
Exfiltration curlUnrestricted by defaultNetwork policy in sandbox profile
Secret leakage in logsSame riskSame risk—redact before sharing traces
Plugin supply chainExtensions less structuredAudit plugin.json + staged folders

Pair CLI permissions with agent skills security review when importing third-party plugin bundles.


Example settings.json starter profile

json
{
  "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)

ToolVendorSandboxPlugin model
Antigravity CLIGoogleNative OSStaged plugins
Claude CodeAnthropicPolicy + hooksSkills + CLAUDE.md
Codex CLIOpenAIVaries by hostPlugins repo
Cursor CLICursorIDE-integratedRules + 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

DayFocusCommands
1Install + migrateagy, agy inspect, agy plugin import gemini
2Sandbox + permissions/permissions, /config, test allow/deny
3Context hygiene/add-dir, /context, /rewind
4Subagents/agents, Ctrl+J, Ctrl+K
5Plugins + 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.ai 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.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jun 27, 2026

Claude Code Subagents and Multi-Agent Workflows (2026)

Subagents let Claude Code parallelize work across isolated contexts — one researches while another implements, or ten agents each tackle a different module. Here is how the system works and how to design workflows that use it.

Jun 19, 2026

Gemini CLI Deprecated: How to Migrate to Google Antigravity CLI

As of June 18, 2026, Google has deprecated the Gemini CLI for all consumer accounts. Learn how to perform the mandatory migration to the sandbox-contained, multi-agent Antigravity CLI.

Aug 2, 2026

Cursor Gave FFmpeg Developers Free Credits — Why It Matters

FFmpeg's official account thanked Cursor for providing free AI coding credits to several of its developers. The gesture drew mostly praise from a community that depends on FFmpeg as invisible infrastructure — plus a few jokes about AI companies eyeing critical open-source projects.