Auto-clicks Yes, Run, Retry, Accept, Approve, and Confirm buttons so your AI agent can work fully autonomously — no human babysitting required.
💡 Zero Setup Required: This extension uses a lightweight native macro approach. It does not use complex Chrome DevTools Protocol (CDP) solutions, so you do not need to create custom launchers or pass special
--remote-debugging-portflags to the IDE!
- Open Antigravity IDE (or VS Code)
- Go to Extensions sidebar (
Ctrl+Shift+X) - Search "Antigravity Always Run" and click Install
Or install from Open VSX or GitHub Releases.
- 🎯 Activity bar icon — click to open the side panel
▶️ One-click toggle — Start / Stop with a single button- 🔄 Per-button controls — individually enable/disable Yes, Run, Retry, Accept
- 🔍 Deep scan — searches main window, iframes, shadow DOM, and webviews
⚠️ Risk warning — collapsible safety banner (auto-detects English/Vietnamese)- 📋 Activity log — tracks every click with timestamps (last 50 entries)
- 🔢 Click counter — shows total auto-clicked buttons in real time
- Click the 🎯 Always Run icon in the activity bar (left sidebar)
- The side panel opens with controls and a risk warning
- Click
▶️ Start Auto — the extension handles everything automatically - Toggle individual buttons (Yes / Run / Retry / Accept) as needed
- Click 🛑 Stop to pause — click
▶️ Start again to resume instantly
When you click Start Auto for the first time, the extension briefly opens DevTools, injects a small JavaScript scanner, and closes DevTools. This is the only way to make it work:
- VS Code extensions run in a sandbox — they cannot access the editor's own UI buttons (like "Yes", "Run", "Retry" dialogs). The extension API does not expose these elements.
- Chrome DevTools Protocol (CDP) would be an alternative, but requires special launcher arguments (
--remote-debugging-port) not available by default. - The injected script is a lightweight DOM scanner. It communicates with the extension via a local HTTP server (
127.0.0.1, random port) to receive config updates in real time.
After the first injection, all subsequent Start / Stop actions only toggle config — no DevTools interaction is needed again.
On some platforms (especially macOS), the automatic injection may fail due to OS permission restrictions. You can manually inject the script:
- Open the side panel → click
▶️ Start Auto (this generates the script) - Expand the 🔧 Manual Setup section in the panel
- Click 🔧 Open DevTools button
- Click the Console tab in DevTools
- Click 📋 Copy to copy the injection script
- Paste into the Console:
- Windows / Linux:
Ctrl+V - macOS:
⌘+V - Or right-click → Paste
- Windows / Linux:
- If you see "type allow pasting" warning, type
allow pasting, press Enter, then paste again - Press Enter — you should see
[AlwaysRun] Injected.in the console - DevTools will close automatically once confirmed
We understand that "opening DevTools and pasting a script" may raise concerns. We want to be fully transparent:
- 📖 100% Open Source — Every line of code is public. You can inspect the injected script in
AutoAcceptPanel.ts(search for_buildInjectScript). - 🔒 No external network calls — The scanner only communicates with
127.0.0.1(your own machine). Zero data is sent to any external server. - 👀 Verify anytime — Open DevTools (
Help > Toggle Developer Tools) and check the console. You'll see[AlwaysRun] Scanning...logs for every cycle and[AlwaysRun] Clicked: ...for every action taken. - 🧹 Nothing persists — Reload the window and the script is gone. Nothing is installed or saved outside of the extension's normal operation.
Source Code: github.com/billythekidz/AntigravityAlwaysRun
You are fully responsible when running the agent autonomously. Risks include:
- 🔥 Your project may be destroyed or modified unexpectedly
- 💾 Other drives or projects on your machine may be affected
- 💸 AI model quota will be consumed very quickly
Recommended: Use the Google AI Ultra plan and set up proper rules for the agent before enabling auto mode.
npm install
npm run compile
npx -y @vscode/vsce package --no-dependenciesBased on the original gist by @cotamatcotam:
https://gist.github.com/cotamatcotam/2b080b7c34a5d07c314a4c2978d7f0cd
- Repository: github.com/billythekidz/AntigravityAlwaysRun
- Issues & Requests: GitHub Issues
- License: MIT
Keywords: auto click, auto accept, always run, autonomous agent, antigravity ide, vscode, ai coding assistant, auto approve