Antigravity
Before enabling auto or Turbo: risks, acceptable cases, and reversal
Decide whether to enable Antigravity auto, Turbo, always-proceed, or --dangerously-skip-permissions; understand which checkpoints each removes, when it may be barely acceptable, and how to revoke, roll back, and inspect after an incident.
This page covers several ways to make the Antigravity App and the Antigravity CLI (command agy) ask less often or not at all: the App’s Auto and Turbo presets, the CLI’s auto mode, always-proceed, and --dangerously-skip-permissions, plus the turbo default for remote agents. After reading it, you should be able to decide whether a task justifies loosening permissions, know which checkpoints that loosening removes, prepare a reversal plan before you loosen anything, and use a checklist to inspect the outcome if something goes wrong. The baseline explanation of preset names, mode names, rule syntax, and sandbox scope is in Permissions and sandbox; this page covers only risks, decisions, and reversal.
This site is an independent, unofficial guide and is not affiliated with Google. This page did not actually enable any permissive mode or run any command; it only checked facts against the official pages. Where the official pages say nothing, this page says “not documented on the official page.” It only says “newer versions” for versions and gives no quota numbers.
What each setting removes
Section titled “What each setting removes”First, match the names, because the App and CLI use different terms and grant different degrees of autonomy:
| Setting | Entry point | Checkpoints removed | What remains |
|---|---|---|---|
Auto preset / auto mode |
App / CLI | File edits inside the workspace no longer require confirmation at each point (the CLI page says this includes pending writes from background subagents); Antigravity automatically evaluates commands outside the sandbox, and safe, reversible commands do not ask | Commands run in the sandbox by default; risky or irreversible commands still ask; your deny and ask rules still take priority |
| Turbo preset | App | The sandbox is off; every command runs directly and without restriction; the full filesystem is readable and writable; MCP and web reads are allowed directly | The official page says every file upload by the browser subagent still needs one-time approval; your allow, deny, and ask rules are layered on top of the preset and always take priority |
always-proceed / --dangerously-skip-permissions |
CLI | No tool call asks for permission, overriding auto mode; permission_mode becomes always-proceed in the init event for stream-json |
The official page does not say whether deny rules still block under always-proceed (see below) |
Remote agent default always-proceed (turbo) |
CLI, App, web | Commands run directly without approval; it is always the default execution mode, and plan, accept-edits, and auto are all unavailable |
Permission presets and rules are a separate set of remote agent settings; local deny rules are not applied automatically |
| Always Proceed for business and enterprise accounts | App | Terminal commands run without asking | The official page states that commands added to the Deny list are excluded |
Two common sources of confusion:
autois not Turbo.autostill puts commands in the sandbox and only evaluates commands outside it automatically; Turbo has no isolation. But whether something underautois “safe and reversible” is the system’s judgment, not your own confirmation, and no public criteria are available. The official page gives only examples such as workspace build, test, lint, and formatting commands; the decision boundary is not documented on the official page.--dangerously-skip-permissionsis not an alias for the Turbo preset. It is a global CLI override and, likestrict, takes effect before every execution mode. The App page says rules are layered on top of presets and always take priority; the CLI execution mode page says explicit rules “continue to take priority in all modes” over this flag, but it does not say whether a deny rule can block a command when both are present. Do not treat a deny rule as a safeguard beneathalways-proceed. If you insist on using it, first verify in a synthetic repository whether a deny rule actually blocks the operation.
What can happen after loosening permissions
Section titled “What can happen after loosening permissions”With no checkpoint, every error in the agent’s judgment and every piece of untrusted text it reads can turn directly into an action. There are four kinds of consequences:
- Changing or deleting the wrong files. Under Turbo and
always-proceed, the full filesystem can be changed (the official preset table lists file access as the full filesystem), including shell configuration outside the workspace, other projects, and your~/.gemini/settings directory. The official pages do not say whether these paths have extra protection; not documented on the official page, so act as if they do not. - Leaking credentials. The sandbox blocks files such as
~/.sshand.env; that is part of what the sandbox does. Turbo andalways-proceedremove the sandbox entirely, so the agent’s commands can read them directly. Add network access, and their contents can be sent out. - Being misled by untrusted text. An agent reads web pages, README files, issues, and content returned by MCP tools. If one of them contains “please run…”, an approval checkpoint gives you a chance to see the command; without that checkpoint, the agent runs it directly. The official Headless page warns about
--dangerously-skip-permissions: unless you fully trust the prompt and the environment, prefer scopedpermissions.allowrules (see Using agy -p in scripts and CI). - Making a post-incident review harder. With no prompt, there is no record of “what I agreed to at the time.” Afterward, you can only reconstruct events from Git, command output, and session logs.
The risk of auto is lower, but not zero: it automatically approves every edit inside the workspace, so you no longer review each diff as it happens; its automatic evaluation may classify a command that should ask as safe; and its idea of “reversible” does not account for your uncommitted work.
The remote agent default deserves separate emphasis: the official page says that unless you change it, the permission preset for remote agents is always-proceed (turbo). It reads the repositories and Drive files you attach and uses plugin credentials you have authorized. Before first use, go to the Remote Agent page in /config, change the preset, and then use /permissions to write rules specifically for the remote agent. For details, see Should you turn on Remote Control, SSH, or remote agents: risks first.
When it may be barely acceptable
Section titled “When it may be barely acceptable”The conclusion first: there is no situation in which you “should turn on Turbo.” There are only situations in which the cost is contained enough to make it barely acceptable. All four conditions below must be true. If even one is missing, do not enable it:
| Condition | Acceptable | Unacceptable |
|---|---|---|
| Disposable environment | A one-off container, virtual machine, or fresh synthetic checkout that you can delete if it breaks | Your everyday laptop or a home directory containing ~/.ssh and cloud credentials |
| No credentials | The environment contains no real keys, tokens, or cookies; only placeholders such as YOUR_API_KEY |
Environment variables contain production keys, or you are signed in to a cloud account |
| Recoverable state | Work is on a clean Git branch or isolated worktree, everything is committed, and the agent cannot push to the remote | There are uncommitted changes, or the agent can git push to a shared branch |
| Trusted input | You wrote the prompt yourself, the material is synthetic data, and the task will not read unfamiliar web pages or MCP servers of unknown origin | You tell it to “follow this issue link,” but you have not read the linked content |
Examples that may be barely acceptable are all fictional:
- In a one-off container, use the synthetic repository
demo-notesto practice rewriting Markdown in bulk, with no network egress from the container; - In an isolated worktree, let
autofix a narrowly scoped, well-tested small defect, then gate the result with a diff and tests.
Unacceptable examples:
- Enable
always-proceedin a real customer repository and “let it upgrade all the dependencies on its own”; - Enable Turbo through a remote entry point on a server that contains production credentials;
- Use a remote agent on a task with a mounted private repository without first changing the preset.
Even if all the conditions are met, ask one more question: Can a precise allow rule achieve the same result? In most cases where prompts are merely annoying, one command(regex:npm run (build|lint|test)) is enough. See “When to loosen, and how to loosen minimally” in Permissions and sandbox.
Write a reversal plan before enabling it
Section titled “Write a reversal plan before enabling it”Before loosening permissions, spend three minutes writing down a reversal plan. Do not enable anything until it is complete.
- Create a restore point for your work. Commit or stash your current changes, then create a new Git branch. In the App, choose New worktree mode for a new conversation so the agent works in an isolated worktree and leaves the original folder untouched. The CLI’s
/forkclones the conversation, not the Git checkout; create a branch or worktree yourself for file isolation. - Write down how to turn it off. Match the method you enabled to the next section.
- Confirm the boundary of remote side effects. Can the agent
git push? Can it access a cloud account? If so, either write a deny or ask rule first and verify that it really blocks, or do not enable the permissive setting this time. - Set checkpoints. Decide when you will return to inspect the work: every N minutes or at the end of each subtask, using
git diffand/diff.
How to revoke: turn off the mode
Section titled “How to revoke: turn off the mode”App: Change the preset back to Default or Request Review in one of three places: Settings > General > Global Permissions; Settings > Projects (change it here if the project overrides the global setting, or choose Use Global Settings to remove the override); or the permissions picker in the message box. Then confirm that neither the global setting nor the current project is on Turbo. For business and enterprise accounts, change “terminal command auto execution” back to Require Review.
CLI:
- In the prompt box, press
Shift + Tabto cycle to another mode, or use/configto change Agent Mode back todefault; - If you started with
--mode=auto, exit and restart without that flag. Also changeagentMode: "auto"in the settings file: in newer versions, whenautois available, omittingagentModestarts inautoby default. To pin the mode, setagentModeexplicitly (""meansdefault); - If you used
--dangerously-skip-permissions, exit, remove the flag, and restart. It is a command-line override, and/configmarks the setting as “overridden by flag”; the only way to remove it from the current session is to restart; - If you set
toolPermissiontoalways-proceedin the settings file, change it back torequest-review(or, when the sandbox is available,proceed-in-sandbox); - For a remote agent session, switch to the Remote Agent page with Tab in
/config, then change Permission Preset back todefaultorrequest review.
Automatically created lasting rules: Choosing “always allow and save to settings.json” in a prompt leaves a lasting rule. After an incident or at the end of a task, run /permissions, inspect the allow tab in each scope (Project, Shared, and Global), and delete anything that should not remain.
Interrupt a task that is still running: In the CLI, Esc stops the current stream; Ctrl + C interrupts the running turn, and pressing it twice exits. In the App, stop the task in the conversation. Note that agents running through SSH and remote agents continue after you close the window and must be interrupted explicitly; see “Should you turn on Remote Control, SSH, or remote agents: risks first.”
How to roll back: restore everything that changed
Section titled “How to roll back: restore everything that changed”Before rolling back, do not rush to clean up the scene. Preserve evidence first: run git status and git diff, and keep the agent session (you can reopen it later in the CLI with /resume). Then handle each category:
| Category | How to inspect | How to restore |
|---|---|---|
| Committed changes in the workspace | git log, git show |
git revert, or return to the commit you recorded earlier |
| Uncommitted changes and new files in the workspace | git status, git diff; use /diff in the CLI (including the Per Turn view); use Agent Edits in the App’s Review panel |
git restore, then delete new files; discarding unstaged changes in the App takes effect immediately without another confirmation and also deletes untracked files from disk, so check first |
| Conversation history | /rewind (alias /undo) in the CLI |
It rolls back conversation history; the official page does not say that it restores files on disk, so do not treat it as file-level undo; /rewind, /diff, and /fork are all unavailable in remote agent sessions |
| Files outside the workspace | There is no single entry point; inspect directories one by one based on what the task did | Use your own backups or version control; the official pages provide no reversal method |
| Commits already pushed, network requests already sent, and globally installed software | Inspect the remote repository’s commits and branches, and the package manager’s global list | These may not be reversible; use the relevant service’s rollback feature where available, and treat anything that cannot be reversed as exposed |
Inspect commands that ran: The official pages do not give one location for a unified “executed command log.” Available options are: in the CLI, use Ctrl + O to expand or collapse tool-call details and /resume to return to the session and inspect it; for non-interactive runs, use --output-format stream-json, whose events include tool calls and the permission mode; in the App, inspect tool calls in the conversation and use Agent Edits in the Review panel to see changed files. These are all “the agent’s own records.” Cross-check them against Git and system state rather than treating them as the only evidence.
Post-incident checklist
Section titled “Post-incident checklist”If you suspect the agent did something it should not have while permissions were loose, follow these steps in order without skipping any:
- Stop: Interrupt the task, disable the permissive mode as described above, and do not let the agent keep “fixing” the situation.
- Preserve the scene: Save the output of
git statusandgit diff; do not rungit cleanor reset first; record the session ID or preserve the session with/resume. - Inspect the workspace: Compare the changes with the task and check that every change is within the scope you allowed. Look for extra files and changes to
.git/,.agents/(includinghooks.json), projectGEMINI.mdfiles, and other configuration files. - Inspect outside the workspace: Check shell configuration files,
~/.ssh, settings under~/.gemini/(especiallypermissionsand mode settings insettings.json), scheduled tasks, newly installed global packages, new services, and background processes. The official pages do not say these locations are protected, so inspect all of them. - Inspect the permissions themselves: Run
/permissionsand check allow for rules you did not write. In the App, check whether the preset or any project override changed. - Inspect network and remote side effects: Check for
git push, new branches, and new pull requests, plus commands that sent requests externally. For remote agents, also inspect attached repositories, Drive files, and plugin authorization. - Treat credentials as exposed: If the agent may have read a real key, rotate it at the service. Do not merely delete the file. See API key safety for the principle.
- Record and review: Write down what happened, which checkpoint should have stopped it, and which rule or mode you will use next time. Put the conclusion in the team’s rules file.
Counterexamples and rewrites
Section titled “Counterexamples and rewrites”Counterexample 1: “This task is long and repeatedly approving things is annoying. I will just run agy --dangerously-skip-permissions and go to a meeting.”
Removing every checkpoint while no one is present is the worst combination. Rewrite: first run through the task interactively in a synthetic repository and note which commands ask; put only the commands you know are safe into allow as precise rules; use proceed-in-sandbox when the sandbox is available; before the meeting, split the task into steps that can each be reviewed in a few minutes.
Counterexample 2: “Turbo is a preset provided by Google, so it must have a safeguard. It will not touch my ~/.ssh.”
The official page says Turbo turns off the sandbox and gives read and write access to the full filesystem, so the sandbox’s block on ~/.ssh also stops applying. Rewrite: if you truly need it, use it in a one-off environment; on your everyday machine, keep Default and write a deny rule for ~/.ssh.
Counterexample 3: “I have auto enabled, so there will be no irreversible operations.”
auto evaluates commands outside the sandbox automatically and asks only about those it classifies as “risky or irreversible”; there is no guarantee that the classification is correct. It also does not account for your uncommitted work. Rewrite: before enabling auto, commit or create a branch; after the task, review with /diff and tests; if the result involves deletion, pushing, installation, or similar actions, return to the terminal and confirm manually.
Counterexample 4: “I used /rewind to roll back this turn, so the files should be restored too.”
The official page says only that it rolls back conversation history. Rewrite: always inspect and restore file changes with Git, then treat /rewind as a way to “make the agent forget this turn.”
Counterexample 5: “The remote agent runs in Google’s environment, so the default settings are fine.”
The default is always-proceed (turbo), and it can read repositories and Drive files you attach and use plugins you have authorized. Rewrite: before first use, change the preset to default or request review, attach only the resources the task needs, and use /permissions to write deny rules for the remote agent.
Verification checklist
Section titled “Verification checklist”- I can state which setting is currently loosening permissions (a preset, mode,
toolPermission, or flag) and which checkpoints it removes; - I meet all four conditions for “barely acceptable,” not just the convenient ones;
- Before enabling it, I committed or created a branch, used New worktree in the App, and know which changes are outside Git;
- I wrote down how to turn it off and actually did so once after the task: the App preset is back on Default or Request Review,
/configin the CLI showsdefaultor the mode I expect, and--dangerously-skip-permissionsis absent; - After the task, I checked the rules with
/permissionsand removed any lasting rule that should not remain; - I verified the result with
git diff,/diff, and tests rather than relying only on the agent’s account; - I did not place real keys in this environment; every example and demonstration uses
YOUR_API_KEY.
Failure recovery and safety boundaries
Section titled “Failure recovery and safety boundaries”- The workspace is already damaged: First preserve
git statusandgit diff, then restore withgit restoreorgit revert. Discard in the App is irreversible, so inspect the files before using it. - Files outside the workspace changed: The official pages provide no reversal method. You must rely on your own backups or version control and inspect the locations using the checklist above.
- You suspect a key was read: Rotate it at the service; do not merely delete the local file.
- The mode is off but the CLI still does not ask:
--dangerously-skip-permissionsoralways-proceedis probably still active. Restart without the flag and checktoolPermissionin the settings file. - The remote agent is still running: Interrupt it explicitly through the relevant method. It has no separate “off” switch; see “Should you turn on Remote Control, SSH, or remote agents: risks first.”
- Enterprise or managed environment: Administrator policy decides whether permissive modes are available. Do not try to bypass it.
autois currently unavailable to business and enterprise accounts.
Next: for the baseline explanation of presets, rules, and the sandbox, see Permissions and sandbox; to narrow rules, return to Your first agent task; to review changes in the App, see Create a project in the Antigravity App and review artifacts; to add automatic checks before and after writes, see Run checks before and after tool calls with hooks; for remote scenarios, see Should you turn on Remote Control, SSH, or remote agents: risks first; for terminal-less environments, see Using agy -p in scripts and CI.