npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

better-antigravity

v0.1.1

Published

Community-driven fixes and improvements for Antigravity IDE

Downloads

268

Readme

Better Antigravity

Community-driven fixes and improvements for Antigravity IDE

npm License: AGPL-3.0 PRs Welcome Antigravity

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-run

That'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 original

Custom 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 --path only if auto-detection fails.

Via clone:

git clone https://github.com/Kanezal/better-antigravity.git
cd better-antigravity
node fixes/auto-run-fix/patch.js

Example 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 .bak before patching
  • One-command revert — run with --revert to 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 script

Contributing

Found another Antigravity bug? Have a fix? PRs are welcome!

Adding a new fix:

  1. Create a folder under fixes/ with a descriptive name
  2. Include a patch.js that supports --check and --revert flags
  3. Add a README.md with root cause analysis
  4. Update the main README's fix table

Guidelines:

  • Always create backups before patching
  • Use structural pattern matching, not hardcoded variable names
  • Support --check and --revert flags
  • 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.


License

AGPL-3.0-or-later