Skip to content

Yajusta/antigravity-auto-accept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antigravity Auto Accept

auto-accept VSCode extension designed to streamline interactions with the Antigravity agent by automatically validating pending agent actions (e.g., "Run Command?").

Note: Due to current API limitations, this extension operates in a "Blind Auto‑Accept" mode. It cannot filter by command content (e.g., regex) because the pending command text is not exposed by Antigravity. It validates all pending steps when enabled.

Features

  • Status Bar Toggle: Easily enable/disable auto‑acceptance from the Status Bar.
  • Blind Polling: When enabled, checks for pending agent steps every 1 second and automatically accepts them.
  • Visual Feedback:
    • 🚫 Antigravity Auto‑Accept: OFF: Required manual confirmation.
    • ✅ Antigravity Auto‑Accept: ON: Automating all steps.

Installation & Setup

1. Install from VSIX (pre‑built package)

  1. Ensure you have VSCode installed.
  2. Obtain the antigravity-antigravity-auto-accept.vsix file (generated via vsce package).
  3. Open the Extensions view (Ctrl+Shift+X).
  4. Click the three‑dot menu ► Install from VSIX... and select the .vsix file.
  5. Alternatively, install via command line:
    antigravity --install-extension antigravity-auto-accept-0.0.1.vsix

2. Clone, compile, and build from source

  1. Clone the repository:
    git clone https://github.com/Yajusta/antigravity-auto-accept.git
    cd antigravity-auto-accept
  2. Install dependencies:
    npm install
  3. Build the extension:
    npm run compile
  4. Package the VSIX (optional, for distribution):
    npm install -g @vscode/vsce
    vsce package
    This creates antigravity-auto-accept-0.0.1.vsix which you can install as described above.

Usage

  1. Launch VSCode with the extension installed.
  2. Look at the Status Bar (bottom right) for the item: 🚫 Antigravity Auto‑Accept: OFF.
  3. Click the item to toggle mode. It will change to ✅ Antigravity Auto‑Accept: ON.
  4. While ON, any "Run Command?" or similar request from Antgravity will be automatically accepted within ~1 second.
  5. Click again to disable at any time.

Development (Build & Debug)

  • Run the extension in a development host:
    1. Press F5 in VSCode. This launches an Extension Development Host where you can test the functionality.
    2. Open the Debug Console to see log messages from the extension.
  • Watch for changes:
    npm run watch
    This recompiles the TypeScript sources on each change.
  • Run tests (if any are added later):
    npm test

Limitations

  • No Filtering: This mode accepts everything (blind mode). Use with caution if the agent might run dangerous commands (e.g., deletions).
  • Configuration UI Disabled: The previous configuration UI (regex lists) is currently disabled as it relies on reading command text, which is not available.

About

VSCode extension designed to streamline interactions with the Antigravity agent by automating the choice to accept CLI command execution requests

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors