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

antigravity-autopilot

v1.4.8

Published

Enables autopilot mode for Antigravity: automatically executes all tool calls and terminal commands without manual confirmation. Patches the runtime JS bundle to inject auto-accept logic whenever the 'Always Proceed' policy is active — regex-based and ver

Readme

Antigravity AutoPilot

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

npm GitHub License: MIT


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 |

Sidebar Controls

  • 🔘 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)