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.
- 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.
- Ensure you have VSCode installed.
- Obtain the
antigravity-antigravity-auto-accept.vsixfile (generated viavsce package). - Open the Extensions view (
Ctrl+Shift+X). - Click the three‑dot menu ► Install from VSIX... and select the
.vsixfile. - Alternatively, install via command line:
antigravity --install-extension antigravity-auto-accept-0.0.1.vsix
- Clone the repository:
git clone https://github.com/Yajusta/antigravity-auto-accept.git cd antigravity-auto-accept - Install dependencies:
npm install
- Build the extension:
npm run compile
- Package the VSIX (optional, for distribution):
This creates
npm install -g @vscode/vsce vsce package
antigravity-auto-accept-0.0.1.vsixwhich you can install as described above.
- Launch VSCode with the extension installed.
- Look at the Status Bar (bottom right) for the item:
🚫 Antigravity Auto‑Accept: OFF. - Click the item to toggle mode. It will change to
✅ Antigravity Auto‑Accept: ON. - While ON, any "Run Command?" or similar request from Antgravity will be automatically accepted within ~1 second.
- Click again to disable at any time.
- Run the extension in a development host:
- Press
F5in VSCode. This launches an Extension Development Host where you can test the functionality. - Open the Debug Console to see log messages from the extension.
- Press
- Watch for changes:
This recompiles the TypeScript sources on each change.
npm run watch
- Run tests (if any are added later):
npm test
- 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.