Gemini CLI is Google's open source terminal agent, and Antigravity is Google's agent-first app and CLI, which replaced Gemini CLI for unpaid tier and Google One users in June 2026. Both rely on permission rules, trusted folders or presets, and an OS-level or container sandbox. Researchers have shown prompt injection paths around their command approvals.
Read in this order
- OfficialSandboxing in Gemini CLIStart here: how Gemini CLI isolates commands with an OS-level or container sandbox.
- OfficialPermissions (Google Antigravity Docs)How Antigravity gates actions with permission settings and presets.
- ArticleCode Execution Through Deception: Gemini AI CLI Hijack (Tracebit)A real bypass of command approval, showing what the controls miss.