When Google Antigravity's agy command line wants to change a file, it shows an inline diff and asks "Accept this file edit?" with two choices: "Yes, accept this change" (press 1) and "No, reject this change" (press 2). To reject and tell the agent what to do instead, highlight the reject choice, press Tab and type your note. New files get "Allow creation of this file?", and a file outside your workspace adds a third answer, "Yes, and always allow non-workspace access". How often you see these prompts depends on the mode, which Shift+Tab cycles: default, accept-edits, auto, plan.
01File edits: accept or reject
In default mode, agy pauses before it writes to disk and shows a diff preview. According to Google's modes documentation, the prompt "Accept this file edit?" gives you:
- Yes, accept this change (1): the edit is written.
- No, reject this change (2): the edit is dropped.
- Reject with instructions: highlight "No, reject this change", press Tab, type what you want instead and press Enter. This is the most useful choice when the edit is nearly right, because the agent gets your reason rather than just a no.
- f opens a full-screen, scrollable diff with three lines of context.
A pending edit stays open until you accept or reject it. Esc does not dismiss it.
02New files, and files outside the workspace
Creating a file shows a Create file header, the path, and an addition-only diff, then "Allow creation of this file?" with "Yes, allow creation" and "No, deny creation". Here, Esc denies.
If the file sits outside your workspace, the panel adds "Reason: outside workspace" and a second choice: "Yes, and always allow non-workspace access". Pick it only when you mean it. It is broader than the single file in front of you, and the modes page doesn't say how long that grant lasts or where it is stored, so check /permissions afterwards if you want to see or undo what you allowed.
03Terminal commands
Google's docs don't publish the exact wording of the terminal command prompt, so it isn't quoted here. What they do say is when you'll see one:
- default: asks before running terminal commands.
- accept-edits: still asks before every terminal command.
- auto: runs commands in the sandbox, lets safe, reversible ones through, and asks for confirmation on irreversible or high-risk actions.
- plan: plans first, before writing code.
04Modes and Shift+Tab
Shift+Tab cycles default, accept-edits, auto, plan, then back to default. Where auto isn't available, the cycle skips from accept-edits straight to plan.
Since v1.5.7, agy starts in auto mode where auto is available for your account and platform, and in default mode otherwise. Auto needs the terminal sandbox and a personal account, and is available from v1.3.5 on macOS and Linux and v1.4.4 on Windows.
Modes are not the last word. Allow, ask and deny rules you set with /permissions, and overrides such as --dangerously-skip-permissions or strict tool permissions, take precedence over every mode. Permission presets explained covers those rules.
05Widening a grant: rest of the turn only
The permissions documentation describes one more option, in both the Antigravity app and the CLI. Before you allow a file, URL or MCP permission, you can edit the target string in the prompt card to widen it, for example from one file to its parent folder. Antigravity checks that your edited target still safely covers the operation.
Two limits:
- The wider grant lasts for the rest of the turn, not for the session or forever.
- Scope editing isn't supported for terminal commands. A command is approved as it stands.
06Which choice to pick
- The change is right: accept.
- The change is wrong in a way you can explain: reject with a note via Tab. A plain reject leaves the agent guessing.
- A tool keeps asking about files in one folder this turn: widen the target to the folder, knowing it resets at the end of the turn.
- A file outside the project: prefer a one-off "Yes, allow creation" unless you really want ongoing non-workspace access.
- Too many prompts overall: change mode with Shift+Tab, or set a rule in
/permissions, rather than accepting on autopilot.
07Answering approvals from your phone
These prompts only appear in the terminal, so they wait while you're away. Google's Remote Control lets you answer prompts from your phone's browser. Antigravity Notifier, an independent app by TouchTap Ltd that isn't made by or affiliated with Google, does it through Antigravity's PreToolUse hook for agy on Mac, Windows and Linux. While you're away, a command waits on your iPhone or Android phone, where you can allow it once, allow it for the session, or deny it with a note that Antigravity reads as the reason, much like Tab on a rejected edit. By default only commands wait; antigravity-notifier config set phone_approvals all adds file writes and edits. At the keyboard, Antigravity asks you itself as usual. The command line tool is free and the app is paid (pricing). Approving commands from your phone explains how it works.
08FAQ
How do I reject an Antigravity edit and tell it why?
Highlight "No, reject this change", press Tab, type your instructions and press Enter. The agent gets your note along with the rejection.
What does "always allow non-workspace access" do?
It appears when Antigravity wants to create a file outside your workspace, and allows non-workspace access beyond that one file. Google's modes page doesn't say how long it lasts, so review /permissions if you're unsure.
Why does Antigravity no longer ask me about edits?
Since v1.5.7, agy starts in auto mode where it's available, and auto approves workspace edits. Press Shift+Tab to move to default mode, which asks before every edit.
Can I widen an approval for a terminal command?
No. Google's docs say scope editing isn't supported for terminal commands. For files, URLs and MCP tools you can widen the target, and the grant lasts for the rest of the turn.