Permissions & YOLO Mode
By default, Antigravity protects your system by pausing and prompting for confirmation before running bash commands or modifying files.
“YOLO” Mode: Auto-Approve Everything
Section titled ““YOLO” Mode: Auto-Approve Everything”To run without any interactive confirmation prompts:
agy --dangerously-skip-permissionsConvenient Shell Aliases
Section titled “Convenient Shell Aliases”Add to your ~/.bashrc or ~/.zshrc:
# Shortcut for full auto-approvalalias yolo="agy --dangerously-skip-permissions"
# Or if you want agy to always auto-approve:# alias agy="agy --dangerously-skip-permissions"Reload your shell with source ~/.bashrc.
Granular Whitelisting in settings.json
Section titled “Granular Whitelisting in settings.json”If you want to auto-approve safe operations while preserving prompts for sensitive actions, define rules in ~/.gemini/antigravity-cli/settings.json:
{ "permissions": { "allow": [ "command(git status)", "command(git diff)", "command(npm test)", "read_file(*)" ], "deny": [ "command(rm -rf *)", "command(drop database*)" ] }}allow: Runs matching commands immediately without prompting.deny: Hard-blocks matching commands from running.