better-antigravity
v0.1.1
Published
Community-driven fixes and improvements for Antigravity IDE
Downloads
268
Maintainers
Readme
Better Antigravity
Community-driven fixes and improvements for Antigravity IDE
Antigravity is great. We just make it a little better.
What is this?
A collection of hotfixes and patches for bugs in Antigravity IDE that haven't been officially resolved yet. Each fix is a standalone script you can apply and revert safely.
Note: These are unofficial community patches. Use at your own risk. All fixes create automatic backups and can be reverted with a single command.
Quick Start
npx better-antigravity auto-runThat's it. Restart Antigravity and your "Always Proceed" setting actually works now.
Available Fixes
| Fix | Description | Status | |-----|-------------|--------| | auto-run-fix | "Always Proceed" terminal policy doesn't auto-execute commands | ✅ Working |
Auto-Run Fix
The Problem
You set Settings → Agent → Terminal Execution → "Always Proceed", but Antigravity still asks you to click "Run" on every single terminal command. Every. Single. Time.
The setting saves correctly, Strict Mode is off — it just doesn't work.
Root Cause
Found in the source code: the run_command step renderer component has an onChange handler that auto-confirms commands when you switch the dropdown to "Always run" on a specific step. But there's no useEffect hook that checks the saved policy at mount time and auto-confirms new steps.
In other words: the UI reads your setting, displays the correct dropdown value, but never actually acts on it automatically.
// What exists (only fires on dropdown CHANGE):
y = Mt(_ => {
setTerminalAutoExecutionPolicy(_),
_ === EAGER && confirm(true) // ← only when you manually switch
}, [])
// What's MISSING (should fire on component mount):
useEffect(() => {
if (policy === EAGER && !secureMode) confirm(true) // ← auto-confirm new steps
}, [])The Fix
Our patcher adds the missing useEffect. It uses regex pattern matching to find code by structure — not by minified variable names — so it works across Antigravity versions.
Usage
Via npx (recommended):
npx better-antigravity auto-run # apply fix
npx better-antigravity auto-run --check # check status
npx better-antigravity auto-run --revert # revert to originalCustom install path (if Antigravity is not in the default location):
# Option A: run from the Antigravity directory
cd "D:\Antigravity" && npx better-antigravity auto-run
# Option B: use --path flag
npx better-antigravity auto-run --path "D:\Antigravity"The tool auto-detects Antigravity by scanning: current directory, PATH, Windows Registry, and default install locations. Use
--pathonly if auto-detection fails.
Via clone:
git clone https://github.com/Kanezal/better-antigravity.git
cd better-antigravity
node fixes/auto-run-fix/patch.jsExample Output
╔══════════════════════════════════════════════════╗
║ Antigravity "Always Proceed" Auto-Run Fix ║
╚══════════════════════════════════════════════════╝
📍 C:\Users\user\AppData\Local\Programs\Antigravity
📦 Version: 1.107.0 (IDE 1.19.5)
📋 [workbench] Found onChange at offset 12362782
callback=Mt, enum=Dhe, confirm=b
policyVar=u
secureVar=d
useEffect=mn (confidence: 30 hits)
✅ [workbench] Patched (+43 bytes)
📋 [jetskiAgent] Found onChange at offset 8388797
callback=ve, enum=rx, confirm=F
policyVar=d
secureVar=f
useEffect=At (confidence: 55 hits)
✅ [jetskiAgent] Patched (+42 bytes)
✨ Done! Restart Antigravity.Compatibility
| Antigravity Version | Status | |---------------------|--------| | 1.107.0 | ✅ Tested | | Other versions | Should work (dynamic pattern matching) |
Safety
- Automatic backups — original files are saved as
.bakbefore patching - One-command revert — run with
--revertto restore originals instantly - Non-destructive — patches only add code, never remove existing logic
- Version-resilient — uses structural regex matching, not hardcoded variable names
- Syntax validation — verifies code structure before writing
Project Structure
better-antigravity/
├── cli.js # npx entry point
├── package.json # npm package config
├── README.md
├── LICENSE
└── fixes/
└── auto-run-fix/
└── patch.js # The patcher scriptContributing
Found another Antigravity bug? Have a fix? PRs are welcome!
Adding a new fix:
- Create a folder under
fixes/with a descriptive name - Include a
patch.jsthat supports--checkand--revertflags - Add a
README.mdwith root cause analysis - Update the main README's fix table
Guidelines:
- Always create backups before patching
- Use structural pattern matching, not hardcoded variable names
- Support
--checkand--revertflags - Test on a clean Antigravity installation
Disclaimer
[!WARNING] This project is not affiliated with Google or the Antigravity team. These are community patches for known bugs. If Antigravity updates and the patches break, simply revert and re-apply (or wait for an updated patch).
Always report bugs officially at antigravity.google/support — community patches are temporary solutions, not replacements for official fixes.
