Antigravity AutoPilot
Automatically execute all tool calls, terminal commands, browser actions, and file permissions in Antigravity — no manual confirmation needed.

What it does
Antigravity has an "Always Proceed" terminal execution policy, but due to missing useEffect hooks in its bundled JS, several actions still wait for manual approval.
Antigravity AutoPilot patches the runtime JS bundle to inject auto-accept logic for three permission types:
| Patch |
What it does |
Marker |
| Terminal |
Auto-executes terminal commands when EAGER policy is active |
_aep= |
| Browser |
Auto-confirms browser action requests |
_abp= |
| File |
Auto-allows file permission requests (conversation scope) |
_afp= |
- ✅ Regex-based matching — works across Antigravity versions
- ✅ Non-destructive — creates
.bak backup before patching
- ✅ Reversible — restore originals anytime with
--revert
- ✅ Idempotent — safely skips already-patched files (no errors)
- ✅ Selective — patch all or choose individual types with
--only
- ✅ Available as VS Code Extension and CLI (
npx)
- 🛡️ 54+ built-in dangerous command presets (Linux/macOS/Windows)
- 🔘 On/Off toggle for Command Blocking directly from sidebar
- ⚙️ Fully customizable preset management with Reset Defaults
Installation
Option 1 — npx (recommended): No install needed. Always runs the latest version:
npx antigravity-autopilot
Option 2 — Global install: Installs permanently, runs offline. Remember to update manually:
npm i -g antigravity-autopilot
antigravity-autopilot
Which to choose? Use npx unless you need offline access or run the tool frequently. npx always fetches the latest version automatically, while npm i -g keeps the installed version until you run npm update -g.
CLI Usage
# Apply all patches (terminal + browser + file)
npx antigravity-autopilot
# Apply only a specific patch type
npx antigravity-autopilot --only terminal
npx antigravity-autopilot --only browser
npx antigravity-autopilot --only file
# Check current patch status (per-type detail)
npx antigravity-autopilot --check
# Revert to original files
npx antigravity-autopilot --revert
# Show help
npx antigravity-autopilot --help
--check Output Example
✔ [workbench] terminal PATCHED · backup exists
✔ [workbench] browser PATCHED · backup exists
✔ [workbench] file PATCHED · backup exists
✔ [jetskiAgent] terminal PATCHED · backup exists
⊘ [jetskiAgent] browser NOT PATCHED · pattern not found
⊘ [jetskiAgent] file NOT PATCHED · pattern not found
Workflow
1. npx antigravity-autopilot → patch applied
2. Restart Antigravity → AutoPilot active 🚀
3. npx antigravity-autopilot --revert → undo anytime
Note: Re-run after every Antigravity update, as the patched files are replaced during updates.
VS Code Extension
Install the extension directly into Antigravity for a UI-based experience (sidebar panel, status bar, apply/revert commands):
# Download .vsix from GitHub Releases, then:
antigravity --install-extension antigravity-autopilot-1.4.8.vsix
Extension features:
- ⚡ Sidebar panel with one-click Apply / Revert
- 📊 Status bar showing current patch state
- ⌨️ Keyboard shortcut:
Ctrl+Shift+F12
- ⚙️
applyOnStartup setting for fully automatic operation
- 🔘
enabledOnStartup — toggle AutoPilot active/suspended on launch
- 🛡️ Command Blocking On/Off — toggle dangerous command blocking directly from the sidebar UI
- 📋 Preset Management — view, remove, and reset 54+ built-in dangerous command presets
🛡️ Dangerous Command Blocking
Built-in protection against destructive commands. 54+ preset patterns covering all major platforms:
| Platform |
Examples |
| Linux/macOS |
rm -rf /, dd of=/dev/sda, mkfs, fork bombs, curl \| sh, chmod 777 -R / |
| macOS |
diskutil eraseDisk, csrutil disable |
| Windows |
format C:, Remove-Item -Recurse C:\, bcdedit /deletevalue, IEX download-and-exec |
- 🔘 On/Off Toggle — enable or disable command blocking with a single switch
- 📋 View all presets — full list of blocked commands with OS badges (LNX/MAC/WIN)
- ✕ Remove individual presets — click the ✕ button to exclude a preset
- 🔄 Reset Defaults — restore all removed presets with one click
- 📊 Active count — always see how many presets are active
- 🔅 Visual feedback — presets section dims when blocking is disabled
Custom Patterns
Add your own patterns via Settings:
"antigravityAutoPilot.dangerousCommandBlocking.customPatterns": [
"^my-dangerous-script",
"DROP TABLE"
]
Action Modes
| Mode |
Behavior |
block |
Block command + show error notification (default) |
warn |
Show warning but allow command to proceed |
log |
Silently log to Output channel |
How it works
Antigravity bundles its UI as minified JavaScript. The patch locates key handler patterns and injects useEffect hooks that auto-fire the approval functions:
// Terminal: auto-confirm when policy is EAGER
_aep = useEffect(() => {
if (policyVar === ENUM.EAGER && !secureMode) confirmFn(true);
}, []);
// Browser: auto-confirm browser action requests
_abp = useEffect(() => { confirmFn() }, [confirmFn]);
// File: auto-allow file permission requests (conversation scope)
_afp = useEffect(() => { senderFn(true, Scope.CONVERSATION) }, [senderFn]);
Variable names are resolved via regex at runtime, making the patch resilient to minification changes between versions.
Requirements
Repository
github.com/nguyenhx2/Antigravity-AutoPilot
License
MIT — Copyright (c) 2026 Nguyen Hoang (nguyenhx2 or Brian)