Antigravity CLI has a dangerously skip permissions flag. Gemini CLI uses yolo mode.

Start Antigravity CLI with agy --dangerously-skip-permissions to skip most native tool permission prompts for one session. Protected commands and administrator-required reviews still apply. For fewer prompts without approving everything, use scoped allow rules in /permissions or agy --mode auto. Gemini CLI uses a different command: gemini --approval-mode=yolo.

If you step away while AGY runs, you can still review a file write from your phone. The approval guide shows what happens to the file when you approve, deny, or leave the request unanswered.

The flag

agy --dangerously-skip-permissions

Skips most native tool prompts for the session. Protected commands and administrator-required reviews still apply. Gemini CLI's equivalent is gemini --approval-mode=yolo.

Updated

  • Hacker NewsFeatured on Hacker News
  • #2 Product of the Day on Product Hunt
  • Available on iOS, Android and Desktop
  • Your code never leaves your machine

Three ways to run an agent

Full bypass keeps the agent moving but drops the gate. Babysitting keeps the gate but pins you to the keyboard. A phone gate keeps both.

Scroll across to compare all features.
ApproachAgent keeps movingDestructive actions gatedAway from the keyboardAudit trail
Full bypass (Antigravity CLI)
Babysit the terminal
Pushary phone gate

What the flag actually does

In agy, --dangerously-skip-permissions is a launch-time override. It skips most native prompts until you restart the session. Protected commands still go through normal checks and organization-required reviews still apply. The lasting version is the toolPermission preset, which you change with /config (alias /settings) or in ~/.gemini/antigravity-cli/settings.json. request-review asks before write, shell, web and MCP tools; strict asks before every tool action, file reads included; proceed-in-sandbox runs sandboxed commands without asking; always-proceed runs commands, web requests and MCP tools without asking unless one of your own ask or deny rules matches. /permissions is a different control: it manages allow, ask and deny rules. agy has no --yolo flag, and --mode=accept-edits auto-approves file edits only.

In Gemini CLI, --approval-mode=yolo approves every tool call, and Ctrl+Y toggles it mid-session. Its four modes run from plan, which is read-only, through default and auto_edit to yolo. Gemini turns its sandbox on in yolo mode by default, but a sandbox only isolates.

It does not bring back the approval you removed.

Auto mode, and how to allow all commands in agy

agy 1.3.5, released on 14 October 2026, added Auto mode. It approves file edits and safe commands without asking and still asks before irreversible actions. A command that would leave the terminal sandbox is reviewed by a separate agent first. Start it with agy --mode auto, choose Agent Mode in /config, or press Shift+Tab to cycle modes. Auto mode requires the terminal sandbox and is available on macOS and Linux from v1.3.5, and on Windows from v1.4.4. From 1.5.7, eligible sessions with no saved mode start in Auto, including agy -p. To restore Default, choose it under Agent Mode in /config. The strict Tool Permission preset still wins over Auto and accept-edits.

To skip most native prompts, run agy --dangerously-skip-permissions for one session or set Tool Permission to always-proceed under /config. Google still requires normal checks for protected commands and preserves administrator-required review. --mode accept-edits is the narrower choice: it accepts edits and new files automatically, and shell commands still follow your permission rules.

Since agy 1.3.2, released on 8 October 2026, --dangerously-skip-permissions only skips tool permission prompts. In /plan mode the implementation plan waits for your review again. If you want plans and other artifacts to go ahead on their own as well, set Artifact Review in /config.

agy has no yolo mode under that name. agy --yolo stops with "flags provided but not defined: -yolo", and passing Gemini CLI's --approval-mode to agy stops with "flags provided but not defined: -approval-mode". Use --mode auto when you want fewer prompts, or --dangerously-skip-permissions to skip most native prompts.

Why people use it, and the real risk

With ordinary tool prompts skipped, shell commands and file changes can run without a person reviewing them. Prompt injection is the sharp edge: a repo file, an issue or a fetched page can carry instructions that become auto-approved tool calls, and nobody is asked. agy's own docs warn that the flag approves file writes and command execution, and suggest scoped allow rules instead.

When a command runs without prompting, there is no human approval to point to after an incident. A sandbox narrows what the agent can reach, but tokens and workspace data inside it are still fair game.

The safer alternative

Keep a gate on the risky calls and move it to your phone. For agy, Pushary installs a PreToolUse hook that gates supported tool calls. agy still enforces its protected commands and any organization-required review. In the request-review Tool Permission preset, agy can still ask for its own approval after the hook allows a call.

Connecting sets toolPermission to always-proceed if you never chose a preset, and disconnecting puts it back. A call nobody answers is blocked, unless your rule approves on timeout. For Gemini CLI, stay in default or auto_edit mode and let the hook push the risky calls.

The safe calls run unattended, and each risky one waits for a yes or no from your lock screen, with the answer recorded.

Does your team run AI agents? With AI agent approvals for teams, each question goes to whoever’s agent asked, or to a lead you choose, and you see who said yes.

Antigravity CLI skip permissions questions

Does Antigravity CLI (agy) have --dangerously-skip-permissions?

Yes. agy accepts --dangerously-skip-permissions at launch, which skips most native tool permission prompts for that session. Protected commands and organization-required reviews still apply. Without the flag, the toolPermission setting decides: request-review asks before write, shell, web and MCP tools; strict asks before every tool action, file reads included; proceed-in-sandbox runs sandboxed commands without asking; always-proceed runs commands, web requests and MCP tools without asking unless one of your own ask or deny rules matches. Change it with /config inside agy. /permissions manages the allow, ask and deny rules instead. Pushary installs hooks for agy, and the always-proceed preset lets it handle supported calls. A call nobody answers is blocked unless your Pushary rule approves on timeout.

Does agy have a --yolo flag?

No. agy's unattended switch is --dangerously-skip-permissions. To skip most native prompts across sessions, set Tool Permission to always-proceed. --mode=accept-edits is the narrower option: it auto-approves file edits and creations, and shell commands still follow your permission rules.

How do I stop agy asking for permission on every command?

Add allow rules with /permissions for the commands you trust, such as command(git). In request-review mode, commands without an applicable allow rule can still ask. Auto mode in agy 1.5.7 can also let routine commands run. Rules are checked deny first, then ask, then allow, so a broad ask rule such as command(*) would override your allows. To skip most native prompts, set toolPermission to always-proceed in /config or launch with --dangerously-skip-permissions. With Pushary connected, its policy can still send supported tool calls to your phone for approval.

Does agy have an auto mode?

Yes. Since agy 1.3.5, released on 14 October 2026, agy --mode auto approves file edits and safe commands without asking and still asks before irreversible actions. You can also choose it from Agent Mode in /config or by pressing Shift+Tab. It requires the terminal sandbox: macOS and Linux support it from v1.3.5, and Windows from v1.4.4. From 1.5.7 it is the default for eligible sessions with no saved mode, including agy -p. Strict still takes precedence.

How do I make agy allow all commands?

Start agy with --dangerously-skip-permissions for one session, or choose always-proceed under Tool Permission in /config for a saved preset. Protected commands, ask or deny rules where applicable, and administrator-required reviews can still stop a call. If you only want routine commands to stop asking, add allow rules with /permissions or use --mode auto. With Pushary connected and Tool Permission set to always-proceed, Pushary gates supported tools and sends you the calls your policy requires you to review.

Does Gemini CLI have --dangerously-skip-permissions?

No. Claude Code and Antigravity CLI have it; Gemini CLI does not. The Gemini equivalent is --approval-mode=yolo, or the deprecated --yolo (short form -y), which auto-approves every tool call for the session; Ctrl+Y toggles it while a session is running. Gemini has four approval modes where Claude Code has a single on-off flag: default prompts on every tool call, auto_edit auto-approves edit tools but still prompts for the rest, yolo approves everything, and plan is read-only. auto_edit is usually the mode people reach for yolo to get.

How do I enable YOLO mode in Gemini CLI?

Start it with gemini --approval-mode=yolo to auto-approve all tool calls. The older --yolo flag still works but is deprecated. Inside a running session you can toggle yolo with Ctrl+Y. This removes every confirmation, so it belongs only in disposable or sandboxed environments. If you want automation without giving up the human check, keep default or auto_edit mode and route risky calls to your phone with Pushary.

How do I make Gemini CLI auto-approve all commands?

The auto-approve setting is yolo, reached with --approval-mode=yolo or the deprecated --yolo flag, which approves file edits and shell commands with no prompt. A middle option is auto_edit, which auto-approves edits but still asks before other tools run. Better yet, keep approvals on for anything destructive and have Pushary deliver those approvals to your phone, blocking until you answer and logging the result.

Can I still use Gemini CLI?

Through a Gemini Code Assist Standard or Enterprise licence, or a paid Gemini API key, yes. On 18 June 2026 Google stopped serving Gemini CLI and the Code Assist IDE extensions to Google AI Pro, Ultra and free accounts and moved those users to Antigravity CLI. If you still run Gemini CLI, yolo and the other approval modes on this page apply, and Pushary's hooks gate its shell commands, writes and edits.

Is Gemini CLI --yolo safe to run unattended?

Only in an isolated or throwaway environment like a CI container or VM, never on a system with sensitive data or live credentials, because yolo mode executes injected or destructive commands with no human able to intervene. For everyday unattended runs, keep default or auto_edit approval and add a Pushary policy that pushes the risky decisions to your phone and keeps an audit trail of what was approved.

Run Antigravity CLI unattended without skipping every permission.

Keep the agent moving, gate the risky calls, approve from your phone. Set up in two minutes.

Start your trial

$9.99/mo after a 3-day free trial. Cancel anytime.