antigravity-auto-submit
v1.9.8
Published
Production-grade autonomous confirmation daemon for Antigravity IDE
Maintainers
Readme
🧠 Using Claude Code CLI? Check out
claude-auto-accept/: a nativePreToolUsehook (no daemon) that auto-approves safe tools, blocks destructive commands, and pauses on sensitive actions. One-command setup:claude-auto-accept setup.🤖 Using Kiro IDE? Check out the dedicated companion edition:
kiro-auto-accept/(operating autonomously on dedicated Port 9222 with zero port conflicts).⚡ Multi-Model Swarms & Parallel Delegation? Check out
kiro-agent/- Autonomous 20-account proxy integration, V2.1 8-Dim Semantic Router, Dual-Gated Verification (DeepSeek Blind Critic + Syntax Self-Healing), Context Budget Guard, 14 native MCP tools, and 5-layer Anti-Ban Armor.
🌟 Overview
When working with Google Antigravity IDE on long-running AI workflows (like /goal, full-stack generation, refactors, or test suites), the agent frequently pauses for manual permissions:
- "Allow running this command?"
- "Allow reading / editing this file?"
- "Proceed with implementation plan?"
Antigravity Auto-Submitter CLI connects directly to Antigravity's local Chrome DevTools Protocol (CDP) port. It automatically detects, verifies, and clicks approval dialogs instantly without hijacking your physical mouse or keyboard.
⚡ Antigravity Auto-Submitter vs. Built-in "Turbo Mode"
Antigravity IDE includes a built-in Turbo Mode, but developers quickly realize it has critical limitations during real-world AI coding sessions:
| Capability | Built-in Turbo Mode | Antigravity Auto-Submitter |
| :--- | :---: | :---: |
| Primary Chat Tool Calls | ✅ Auto-runs | ✅ Auto-approves |
| Child Subagents & Background Workers | ❌ Still pauses & blocks | ✅ 100% Hands-Free (Auto-selects Option 1 & clicks Submit) |
| Implementation Plans (Proceed Cards) | ❌ Pauses workflow | ✅ Auto-approved in Autopilot Mode |
| Safety Guardrails (rm -rf, drop table) | ❌ Blind execution (Zero defense) | ✅ Regex & keyword guardrails (Skip & Ask rules) |
| Multi-Window & Multi-Workspace Coordination | ❌ Single window only | ✅ Synchronized concurrent daemon across all windows |
| Cross-Tool Companion Support | ❌ None | ✅ Includes Kiro IDE & Claude Code CLI companions |
| Session Analytics & Audit Trail | ❌ None | ✅ Lifetime approvals, session count & live activity feed |
[!IMPORTANT] The Subagent Problem: Even with Turbo Mode turned ON, child subagents (e.g.,
Subagent: Task 1 Implementer, parallel background tasks, and secondary workspace panes) are treated with higher isolation by Antigravity and still require manual confirmation (Allow run ...? [Submit ↵]). Antigravity Auto-Submit detects these prompts across all connected panels, automatically selects Option 1 ("Yes, allow this time"), dispatches the confirmation keystroke, and clicks Submit without human intervention.
🪟 Multi-Window & Multi-Port Engine (Zero Conflicts)
The daemon provides first-class concurrent multi-window support:
- Accurate Window & Target Telemetry: Accurately distinguishes physical IDE windows from internal Chromium DevTools targets (e.g.
2 window(s) (7 targets) connected (Port 9333)). Each IDE window contains multiple rendering surfaces (editor shell, webview host, AI chat iframe) — the daemon monitors all surfaces simultaneously to catch approval cards wherever they appear. - Concurrent Window Monitoring: If you have multiple Antigravity IDE workspaces open (e.g.,
Clipandantigravity-auto-submit),auto-acceptmonitors ALL windows simultaneously without race conditions, cross-talk, or click collisions. - Dedicated Isolated Sessions: Each window connects via its own
WindowSessionwith an isolated WebSocket connection, dedicated CDP request tracking (reqId), and distinct keyword block state. - Dynamic Auto-Attach & Detach: When you open a new Antigravity window, the daemon auto-attaches to it within 2 seconds. When you close a window, it cleanly detaches without restarting or affecting your other open windows.
- Subagent Dialog Auto-Approval: Subagent prompts and interaction cards inside nested iframes are automatically handled by choosing Option 1 and clicking
Submit. - Flexible Port Architecture:
- Auto-Discovery (Default): Automatically detects Antigravity across common ports (
9333,9334,9335, etc.) and system listening ports. - Explicit Single Port:
auto-accept -p 9334locks onto and manages only port 9334. - Multiple Explicit Ports:
auto-accept --ports 9333,9334monitors specific ports concurrently.
- Auto-Discovery (Default): Automatically detects Antigravity across common ports (
- Per-Port Lockfiles: Lockfiles are scoped per port (
daemon_<port>.pid). Multiple daemons can manage separate ports in parallel without blocking each other.
⚡ Quick Setup: The Bulletproof 3-Step Setup (Works Every Time)
Following these 3 simple steps guarantees Antigravity Auto-Submit works reliably on any machine without depending on brittle automation scripts or losing browser tabs.
[!TIP] Why the Manual Shortcut Target is the Gold Standard:
- Deterministic Initialization: The
--remote-debugging-port=9333flag is bound right at process creation. Zero chance of race conditions or port-binding failures.- No Flaky Scripts or Broken Permissions: Avoids Windows COM script permissions, background task schedulers, and registry hooks.
- Zero Lost Tabs or Crashed Sessions: Autosetup scripts frequently run blind
taskkillcommands that nuke your open personal browser windows and trigger crash recovery prompts. The shortcut approach preserves all existing work.- Officially Documented Standard: Referenced in system guidelines: "If automated port setup fails, append
--remote-debugging-port=9333manually to shortcut / launcher."
🎯 Step 1: Install the CLI Globally
Install from the npm registry (works on any Windows, macOS, or Linux machine with Node.js 22+):
npm install -g antigravity-auto-submit(Prefer the latest unreleased code? Use npm install -g WillyEverGreen/Antigravity-Auto-Submitter. If you cloned this repository locally, run npm install -g . inside the folder).
[!NOTE] Compatibility: Supports Antigravity IDE 2.6.0+ (VS Code 1.107+) and Antigravity App 2.23+. The scanner traverses nested webview/iframe documents, so approval prompts rendered inside modern webviews are detected.
🎯 Step 2: Add --remote-debugging-port=9333 to Your Antigravity Shortcut Target
Configure your Antigravity launcher once so it always opens with remote debugging enabled:
🪟 Windows Setup (Desktop & Taskbar)
- Close Antigravity IDE completely first (Chromium singletons ignore flags if an active instance is running).
- Desktop or Start Menu Shortcut:
- Right-click your Antigravity IDE shortcut icon → Click Properties.
- In the Shortcut tab, locate the Target field.
- At the very end of the text, append a space followed by:
Example Target:--remote-debugging-port=9333"C:\Users\<Username>\AppData\Local\Programs\Antigravity\Antigravity.exe" --remote-debugging-port=9333 - Click Apply, then click OK.
- Taskbar Pinned Shortcut:
- Right-click the pinned Antigravity IDE icon on your Windows Taskbar.
- In the popup jump list, right-click Antigravity IDE → select Properties.
- In the Target field, append a space and
--remote-debugging-port=9333. - Click Apply → OK.
🍏 macOS Setup
Add a permanent alias to your shell profile (~/.zshrc or ~/.bash_profile):
alias antigravity='open -a "Antigravity" --args --remote-debugging-port=9333'Reload with source ~/.zshrc, then launch Antigravity with antigravity.
🐧 Linux Setup
Edit your desktop entry (~/.local/share/applications/antigravity.desktop):
Exec=antigravity --remote-debugging-port=9333 %UUpdate desktop database: update-desktop-database ~/.local/share/applications/.
🎯 Step 3: Launch Antigravity from That Shortcut & Start Daemon!
- Open Antigravity IDE using your configured shortcut.
- Open your terminal in any workspace and run:
auto-accept - That's it! The daemon connects instantly to port
9333and starts handling tool approvals automatically.
👻 Ghost Process & Singleton Troubleshooting (Safe & Non-Destructive)
If you launched Antigravity from your shortcut but auto-accept reports:
CDP Port Status: No active port detected ⚠️
Process Status: Antigravity IDE is RUNNING (without debug port) ⚠️Why does this happen? (The Singleton Problem)
Chromium / Electron enforces a single parent process model. If an older Antigravity.exe process was already running in the background (hidden in system tray, suspended, or an orphaned helper process), clicking your shortcut merely activated the existing process, and Chromium silently dropped the --remote-debugging-port flag.
🛡️ Safe PID Resolution (Never use blind taskkill):
Do NOT run blind commands like taskkill /F /IM chrome.exe or blanket kills. That will destroy your open browser tabs, discard unsaved form data, and trigger recovery dialogs.
Follow these safe, PID-targeted steps instead:
- Save your work in Antigravity and close the window normally.
- Find the exact lingering PID:
- Windows CLI:
Or check who is holding the port:tasklist /FI "IMAGENAME eq Antigravity.exe"netstat -ano | findstr :9333 - Windows GUI (Recommended):
- Press
Ctrl + Shift + Escto open Task Manager. - Switch to the Details tab (which shows exact PIDs and process names).
- Find any lingering
Antigravity.exeprocesses.
- Press
- macOS / Linux:
pgrep -l Antigravity lsof -i :9333
- Windows CLI:
- End ONLY that specific lingering PID:
- In Task Manager: Right-click the specific
Antigravity.exePID → End Process Tree. - In PowerShell:
Stop-Process -Id <PID> -Force - In macOS/Linux:
kill <PID>
- In Task Manager: Right-click the specific
- Relaunch Antigravity from your configured shortcut. The debugging port is now cleanly bound!
🛠️ Optional Convenience CLI Launchers
While the manual shortcut target above is the bulletproof foundation, you can also use these built-in convenience shortcuts:
| Command | Capability |
| :--- | :--- |
| auto-accept start | Easy Start: Checks if IDE is running with port; if not, automatically launches/restarts IDE with port 9333 and starts the daemon in one step. |
| auto-accept restart | 1-Command Restart: Gracefully closes existing Antigravity process and relaunches fresh with port 9333 enabled. |
| auto-accept launch | Spawns Antigravity IDE with remote debugging port enabled without starting the approval daemon. |
| auto-accept setup | Attempts automated Windows Desktop/Taskbar or Linux .desktop shortcut patching. |
| auto-accept doctor | Diagnostic probe verifying Node.js, Python, IDE executable, and CDP port status. |
🩺 Step 3: Verify & Start Daemon
1. Verify Connection Status
auto-accept doctorChecks your Node.js version, Python runtime, Antigravity IDE binary path, CDP port availability, and target Antigravity IDE workbench windows.
2. Start Approval Daemon
# Start default Autonomous daemon (auto-approves safe tools, pauses for plan review)
auto-accept🔄 Updating to the Latest Version
To update Antigravity Auto-Submitter to the newest release with the latest commands and bugfixes (see CHANGELOG.md):
Option A: 1-Command CLI Update (Recommended)
auto-accept update
# or
agy-update(Automatically pulls and installs the latest version globally).
Option B: Via npm Global Command
npm install -g antigravity-auto-submit@latestOption C: If You Cloned the Repository Locally (Active Development)
cd antigravity-auto-submit
git pull origin main
npm run sync[!TIP] Running
npm run syncsynchronizes all global.cmdCLI launchers directly intoC:\tools(global system PATH) and your local npm module. New commands likeclean-ag,clean-ides, andclean-allbecome instantly available across any terminal without restarting your session.
🪟 Platform Support: Windows-First Architecture
[!NOTE] Windows (Windows 10 / 11) is the primary first-class platform for this project.
- Native Shortcut COM Patching: Automates Taskbar, Start Menu, and Desktop
.lnktargets viaWScript.Shell.- Direct
%APPDATA%/%LOCALAPPDATA%Path Resolution: Pre-configured for Windows Electron app architectures (Antigravity, Kiro, Zed, Code, Cursor, Windsurf, Trae, Qoder).- C:\tools Global System PATH Integration: All tools (
agy-*,auto-accept,clean-*) are globally indexed.- Cross-platform compatibility (macOS/Linux) is maintained as secondary fallback launchers.
After updating, restart Antigravity with the debug port enabled:
auto-accept restart
auto-accept🗑️ Uninstalling & Removing the Project
If you ever need to completely uninstall the tool, delete the project, revert shortcuts back to standard, or clear cached configs:
Option A: 1-Command Automatic Uninstall (Fastest)
auto-accept uninstallThis automatically:
- Removes local project config (
.auto-accept.json) - Removes global user directory (
~/.antigravity-auto-submit) - Reverts Windows shortcuts (removes
--remote-debugging-portfrom Desktop, Taskbar & Start Menu) - Uninstalls global npm CLI binaries
Option B: Manual Step-by-Step Removal
1. Uninstall the Global npm Package
npm uninstall -g antigravity-auto-submit WillyEverGreen/Antigravity-Auto-Submitter2. Remove Configuration Files
- Local Project Config (
.auto-accept.json):- Windows (PowerShell):
Remove-Item -Force .auto-accept.json - Windows (CMD):
del .auto-accept.json - macOS / Linux:
rm -f .auto-accept.json
- Windows (PowerShell):
- Global User Config (
~/.antigravity-auto-submit):- Windows (PowerShell):
Remove-Item -Recurse -Force "$env:USERPROFILE\.antigravity-auto-submit" - Windows (CMD):
rmdir /s /q "%USERPROFILE%\.antigravity-auto-submit" - macOS / Linux:
rm -rf ~/.antigravity-auto-submit
- Windows (PowerShell):
3. Delete Cloned Repository Folder (If you cloned from Git)
- Windows (PowerShell):
Remove-Item -Recurse -Force .\antigravity-auto-submit - Windows (CMD):
rmdir /s /q antigravity-auto-submit - macOS / Linux:
rm -rf antigravity-auto-submit
4. Revert Antigravity Shortcut Flags (Optional)
If you want to manually remove the debugging port flag:
- Right-click your Antigravity IDE Desktop or Taskbar shortcut → Properties.
- In the Target field, remove
--remote-debugging-port=9333from the end and click OK.
🚀 Quick Start
Run directly from any terminal:
# Autonomous Mode (Default - reviews plans, auto-approves safe tools)
auto-accept
# Autopilot Mode (100% hands-free - auto-approves plans + tools)
auto-accept --mode autopilot
# Background Daemon Mode (Non-interactive)
auto-accept --daemon⚡ Instant Hotkeys (Vite-Style)
No need to press Enter! Simply press any of these keys while the daemon is running in your terminal:
| Key | Action | Description |
| :---: | :--- | :--- |
| p | Pause / Resume | Instantly toggles auto-approvals on or off without restarting. |
| m | Toggle Mode | Cycles between Autonomous (reviews plans) and Autopilot (100% hands-free). |
| a | Add Rule | Interactively add a keyword rule to Ask or Skip list without restarting. |
| r | Remove Rule | Interactively remove a keyword rule from Ask or Skip list. |
| s | Live Stats | Displays live session approvals, lifetime approvals, blocks, and target window. |
| c | Show Config | Prints active configuration source, ports, and guardrail lists. |
| d | Doctor Diagnostic | Runs immediate connection, runtime & workbench diagnostic check. |
| h / ? | Help Banner | Redisplays the dashboard banner and hotkeys. |
| q | Quit | Cleanly disconnects from Antigravity and exits (Ctrl + C also works). |
🔌 Plugin to Any Project Folder
You can drop custom safety rules into any repository or folder:
# Inside any project folder:
auto-accept initThis generates .auto-accept.json in that directory:
{
"mode": "autonomous",
"safetyDelayMs": 200,
"askKeywords": [
"git push",
"git reset --hard"
],
"skipKeywords": [
"rm -rf",
"drop table",
"git push --force",
"format c:",
"del /f /s /q c:"
]
}Whenever you run auto-accept inside that folder, it automatically loads that project's custom rules!
🎯 Operating Modes
1. Autonomous (Recommended Default)
- Tool Confirmations: Automatically confirmed via Option 1 ("Allow this time"), preserving per-command keyword gating.
- Implementation Plans: Pauses for your review. Perfect for general coding where you want to inspect implementation plans before execution.
auto-accept --mode autonomous
# or configure persistent mode:
auto-accept mode autonomous2. Autopilot (100% Hands-Free)
- Tool Confirmations: Automatically confirmed.
- Implementation Plans: Automatically approved (Proceed / Proceed with implementation plan).
- Ideal for unattended overnight runs, automated migration scripts, or
/goalsessions.
auto-accept --mode autopilot
# or configure persistent mode:
auto-accept mode autopilot3. Quick Mode Toggle
# Instantly toggles between Autonomous and Autopilot
auto-accept m🛡️ Safety Keyword Guardrails
Easily manage two independent safety lists with dedicated subcommands or interactive hotkeys:
Add Rules Instantly
# Add commands that must pause for manual permission in chat:
auto-accept add-ask "npm publish"
auto-accept add-ask "git push,git reset --hard,deploy"
# Add commands that are directly skipped from auto-submission:
auto-accept add-skip "terraform destroy"
# Target global user config (~/.antigravity-auto-submit/config.json):
auto-accept add-ask "docker system prune" --globalRemove Rules Instantly
# Remove from whichever list contains it:
auto-accept rm "npm publish"
# Remove specifically from Ask or Skip list:
auto-accept rm-ask "git reset --hard"
auto-accept rm-skip "terraform destroy"
# Interactive numbered picker (no arguments):
auto-accept rmLive Interactive Hotkeys
While the daemon is running in your terminal, press:
a: Interactively adds a keyword rule to Ask or Skip list on-the-fly (saves to active config).r: Displays numbered list of active rules to pick and remove instantly.
View Active Rules
auto-accept list📋 CLI Commands & Flags
Subcommands
| Command | Action |
| :--- | :--- |
| auto-accept | Start auto-submit confirmation daemon (default) |
| auto-accept launch | 🚀 Auto-launch Antigravity IDE with remote debugging port enabled |
| auto-accept restart | 🔄 Gracefully close running Antigravity instances & relaunch with debug port |
| auto-accept setup | ⚡ 1-Click auto-patch Desktop, Taskbar & Start Menu shortcuts with --remote-debugging-port=9333 |
| auto-accept update | 🔄 Update CLI globally to latest release from GitHub |
| auto-accept uninstall | 🗑️ Fully uninstall CLI, restore shortcuts & remove configs |
| auto-accept kill | 🛑 Terminate all running Antigravity IDE processes |
| auto-accept doctor | 🩺 System diagnostic & connection verification (Node, Python, CDP, windows) |
| auto-accept init | Create .auto-accept.json in the current folder |
| auto-accept mode [mode] | Inspect or switch operating mode (autonomous or autopilot) |
| auto-accept m | ⚡ Quick-toggle between Autonomous and Autopilot mode |
| auto-accept pause | Pause auto-approvals without stopping daemon |
| auto-accept resume | Resume active auto-approvals |
| auto-accept list | Display active Ask and Skip guardrail rules |
| auto-accept config | Display active configuration JSON |
| auto-accept status | Query connection and approval statistics as JSON |
| auto-accept add-ask <kw> | Add keyword(s) requiring manual permission |
| auto-accept add-skip <kw> | Add keyword(s) to directly skip |
| auto-accept rm <kw> | Remove keyword(s) from any active list |
| auto-accept rm-ask <kw> | Remove keyword(s) from Ask list |
| auto-accept rm-skip <kw> | Remove keyword(s) from Skip list |
| antigravity-check / auto-accept check | 🔍 Run 3-tier deletion audit scan (Safe / Review / Do Not Delete) |
| antigravity-find-temp / auto-accept find-temp | 🔎 Preview individual candidate temporary files before deletion (dry-run) |
| antigravity-clean / auto-accept clean | 🧹 Purge safe temporary scratch scripts, browser recordings, and caches |
| antigravity-brain / auto-accept brain | 🧠 Inspect session brain disk distribution and delete specific sessions |
[!TIP] Universal Command Aliases: All subcommands support direct standalone binary aliases. You can run any of these identically from any terminal on your PC:
auto-accept setup⬌antigravity-setup⬌agy-setupauto-accept restart⬌antigravity-restart⬌agy-restartauto-accept update⬌antigravity-update⬌agy-updateauto-accept uninstall⬌antigravity-uninstall⬌agy-uninstallauto-accept launch⬌antigravity-launch⬌agy-launchauto-accept doctor⬌antigravity-doctor⬌agy-doctorauto-accept check⬌antigravity-check⬌agy-checkauto-accept clean⬌antigravity-clean⬌agy-cleanauto-accept brain⬌antigravity-brain⬌agy-brainauto-accept start⬌antigravity-start⬌agy-startcheck-ag⬌agy-check-ag,check-ides⬌ides-check⬌agy-check-ideskiro-auto-accept⬌kiro-accept(Kiro IDE daemon)claude-auto-accept⬌claude-accept(Claude Code hook)
Flags
OPTIONS:
-m, --mode <mode> Operating mode: autonomous or autopilot
-p, --port <port> CDP port (default: auto-detect 9333 / 9000-9400)
--ports <ports> Comma-separated candidate CDP ports (e.g. 9333,9334)
-d, --delay <ms> Safety delay in ms before clicking (default: 200)
--poll <ms> DOM scanner frequency in ms (default: 250)
--ask <patterns> Comma-separated commands requiring permission
--skip <patterns> Comma-separated commands to directly skip
--add-ask <pattern> Append a keyword to the Ask list
--add-skip <pattern> Append a keyword to the Skip list
--daemon Run non-interactively in background (no stdin TUI)
--quiet Suppress non-essential output
-c, --config <file> Path to custom configuration JSON
--save Persist active CLI options to current config file
-v, --version Show version
-h, --help Show help🧹 Workstation Audit & Temp Cleanup Suite
The Antigravity Auto-Submitter suite provides unified CLI tools (antigravity-check, antigravity-find-temp, antigravity-clean, antigravity-brain, and auto-accept <cmd>) to audit and safely purge temporary files, caches, recordings, conversation databases, and orphan sandboxes across the entire workstation.
[!IMPORTANT] Multi-Root Architecture: The cleaner scans and manages both Antigravity data environments simultaneously:
~/.gemini/antigravity-ide/(Antigravity IDE app data & brain storage)~/.gemini/antigravity/(Antigravity CLI / AGY core engine data & brain storage)~/.gemini/antigravity-browser-profile/(Headless Chromium profile caches)~/.gemini/tmp/&~/.gemini/history/(Cloned repo workspaces & file history)- System
%TEMP%& Package Manager Caches (uv,npm-cache,pip/Cache,ms-playwright)
🛡️ Complete 3-Tier Safety Topology
| Tier | Category / Storage Path | Description & Behavior |
| :--- | :--- | :--- |
| 🟢 Tier 1: SAFE TO DELETE(No review required) | • scratch/ (Global across roots)• browser_recordings/ (WebP videos)• brain/<id>/scratch/• brain/<id>/.system_generated/ (Logs)• annotations/ (Cached AST indices)• crashes/ (Crash dump logs)• implicit/ (Implicit context caches)• context_state/ (Context caches)• html_artifacts/ (HTML previews)• prompting/ (Browser step caches)• antigravity-browser-profile/ (Web caches)• %APPDATA%\Antigravity IDE and %APPDATA%\Antigravity (Electron caches for the IDE and the App)• ~/.claude telemetry, cache, shell-snapshots, logs• JetBrains caches/index/log/tmp, Android Studio, Sublime Text, Visual Studio component cache, VSCodium caches• %TEMP% (Agent temporary scripts)• npm, pnpm, yarn, bun, uv, pip, cargo, Gradle, Maven, NuGet, Go and Composer caches | Disposable cache files, video recordings, scratch scripts, and logs that can be purged at any time without data loss. Reclaimed via antigravity-clean --all. Run agy-coverage to see every category detected on your machine. |
| 🟡 Tier 2: REVIEW CANDIDATES(Age-gated analysis) | • brain/<id> (Inactive sessions > 7d)• conversations/*.db (Databases > 7d)• ~/.gemini/tmp/ (Cloned workspaces)• ~/.gemini/history/ (File history)• ~/tools/**/node_modules, .venv (> 14d)• %LOCALAPPDATA%/ms-playwright | Historical artifacts and past conversation databases. Advisable to delete when stale, but guarded against active conversations. Reclaimed via --stale or --deep. |
| 🔴 Tier 3: DO NOT DELETE(Strictly Protected) | • ~/.gemini/config/ (User rules & skills)• antigravity-ide/builtin/ (Core skills)• mcp_config.json & mcp/ folders• user_settings.pb & settings.json• installation_id• google_accounts.json & OAuth tokens• Active Conversation Session | Core configuration, custom skills, user settings, auth credentials, and active session files are permanently shielded from deletion. |
⚡ Recommended Step-by-Step Cleanup Sequence
To safely audit and reclaim workstation disk space without risking active projects, settings, or credentials, execute commands in this exact sequence:
Step 1: Audit (Inspect) ──► Step 2: Preview (Dry-Run) ──► Step 3: Safe Purge ──► Step 4: Brain Management ──► Step 5: Verify Delta
agy-check agy-find-temp agy-clean agy-brain agy-check| Step | Command | Action | Risk Level |
| :---: | :--- | :--- | :---: |
| 1 | agy-check (or antigravity-check) | Audit disk space across 3 safety tiers | 🟢 Zero (Read-only) |
| 2 | agy-find-temp (or antigravity-find-temp) | Preview top candidate files ranked by size | 🟢 Zero (Dry-run preview) |
| 3 | agy-clean --all (or --stale / --deep) | Purge safe caches, recordings & scratch scripts | 🟢 Safe (Tier 1 safe purge) |
| 4 | agy-brain (or antigravity-brain) | Inspect session footprint & delete inactive sessions | 🟡 Review (Session management) |
| 5 | agy-check (or antigravity-check) | Verify freed space and confirm clean state | 🟢 Zero (Read-only verification) |
1️⃣ Step 1: Run Comprehensive Audit (agy-check)
Inspect total disk space categorized into the 3 safety tiers:
agy-check
# or: antigravity-check
# or: auto-accept checkCategorizes findings into 🟢 Safe Tier 1, 🟡 Stale Review Tier 2, and 🔴 Protected Tier 3, reporting total reclaimable bytes.
2️⃣ Step 2: Preview Candidates in Dry-Run Mode (agy-find-temp)
Inspect individual candidate files ranked by disk size before deleting anything:
agy-find-temp
# or: antigravity-find-temp --limit 50Lists largest candidate files, file age, and category with zero disk modifications.
3️⃣ Step 3: Execute Safe Cleanup (agy-clean)
Choose your cleanup level based on your audit results:
# Standard Routine (Purges all Tier 1 safe items: scratch, recordings, logs, caches: ~1.09 GB)
agy-clean --all
# Recommended (Tier 1 safe + stale brain sessions & SQLite DBs older than 7 days)
agy-clean --stale
# Deep Clean (Tier 1 safe + stale brain + ~/.gemini/tmp repos + ~/.gemini/history snapshots: ~4.96 GB)
agy-clean --deep
# Custom Age Threshold (e.g. purge stale items older than 3 days)
agy-clean --stale --days 3
# Non-interactive / CI automation (skips confirmation prompt)
agy-clean --all --force4️⃣ Step 4: Manage & Reclaim Brain Session Space (agy-brain)
Inspect disk distribution per session, identify heavy sessions with extracted project topics, and prune specific or old sessions:
# List all conversation sessions ranked by disk size with project topics
agy-brain
# Delete a specific session by Table # Number:
agy-brain --delete 2
# Delete a specific session by UUID prefix:
agy-brain --delete 9178f300
# Delete all sessions older than N days (automatically purges companion .db/.pb files):
agy-brain --delete-older-than 7
# Clean empty / zero-file brain directories:
agy-brain --clean-empty
# Interactive numbered session picker:
agy-brain --interactive5️⃣ Step 5: Verify Reclaimed Space (agy-check)
Re-run the audit to verify space reclaimed and confirm all protected items remain intact:
agy-check🔍 Workstation Audit Reference (agy-check, check-ides, check-ag)
Run at any time in any terminal to inspect system temporary space categorized into safety tiers:
# 1. Full Workstation Audit (Antigravity + All Other IDEs + Package Caches)
agy-check
# or: antigravity-check / auto-accept check
# 2. Check All Other External IDEs Specifically (Kiro, Zed, Code, Cursor, Windsurf, Trae, Qoder, Claude)
check-ides
# or: ides-check / agy-check-ides / antigravity-check --ides
# 3. Check Antigravity Only (Scratch, Recordings, Logs, Electron Caches)
check-ag
# or: agy-check-ag / antigravity-check --ag
# JSON Output Mode:
antigravity-check --json
check-ides --json🔎 Temporary File Discovery Scanner (antigravity-find-temp / agy-find-temp)
Preview individual candidate files eligible for cleanup before executing deletions (dry-run mode):
# Preview top 35 candidate files ranked by size
antigravity-find-temp
# Preview top 50 files
antigravity-find-temp --limit 50
# Output candidate files as JSON
antigravity-find-temp --json🧹 Fast One-Command Cleaners (clean-ag, clean-ides, clean-all)
Three dedicated commands make safe workstation cleanup effortless:
| Command | Scope | What Gets Purged | What is Strictly Protected |
| :--- | :--- | :--- | :--- |
| clean-agagy-clean-ag | Antigravity Only | Global & session scratch scripts, browser recordings (.webp), session transcripts & logs, AST annotations, Electron runtime caches | Active sessions (< 2h / .db-wal locks), user_settings.pb, memory_graph, MCP tokens, credentials |
| clean-idesagy-clean-ides | All Other IDEs | Kiro, Zed, VS Code/CodeX, VS Code Insiders, VSCodium, Cursor, Windsurf, Trae, Qoder, JetBrains (IntelliJ/PyCharm/WebStorm…), Claude Desktop, Claude Code (caches, crash dumps, hang traces, logs, indexes) | All extensions, settings.json, keybindings, language server runtimes (Zed node/languages), JetBrains settings, user threads |
| clean-allagy-clean-all | Full Workstation Sweep | All Tier 1 safe categories: Antigravity + All Other IDEs + Package Caches (UV, NPM, PNPM, Pip, Yarn) | All active projects, credentials, language servers, and settings |
# 1. Clean Antigravity Only (Scratch scripts, WebP recordings, Electron caches)
clean-ag
# or: agy-clean-ag / antigravity-clean --ag
# 2. Clean All Other External IDEs Combined (Kiro, Zed, Code, Cursor, Windsurf, Trae, Qoder, Claude)
clean-ides
# or: agy-clean-ides / antigravity-clean --ides
# 3. Clean Everything Across Workstation (Antigravity + All IDEs + Package Caches)
clean-all
# or: agy-clean-all / antigravity-clean --all
# See exactly what is supported, detected, and protected (deletes nothing):
coverage
# or: agy-coverage / antigravity-clean --coverage [--json]
# Granular single-IDE cleanups:
antigravity-clean --kiro # Kiro IDE crashpad dumps & web caches
antigravity-clean --zed # Zed editor logs & hang traces
antigravity-clean --code # VS Code / CodeX & Insiders runtime caches
antigravity-clean --cursor # Cursor AI editor caches & crashpad dumps
antigravity-clean --windsurf # Windsurf (Codeium) caches & crashpad
antigravity-clean --trae # Trae (ByteDance) AI IDE caches & logs
antigravity-clean --qoder # Qoder caches & logs
antigravity-clean --claude # Claude Desktop logs + Claude Code caches (~/.claude)
# Granular Antigravity cleanups:
antigravity-clean --browser-cache # Chromium browser profile web caches
antigravity-clean --conversations # Stale conversation SQLite databases (> 7 days)
antigravity-clean --tmp # Cloned temporary workspaces in ~/.gemini/tmp
antigravity-clean --history # Workspace file history snapshots
antigravity-clean --scratch # Global and session scratch scripts
antigravity-clean --recordings # Browser WebP video recordings
antigravity-clean --caches # Package manager caches (UV, NPM, PNPM, Pip, Yarn)
# Deep & Stale cleanups:
antigravity-clean --stale # Tier 1 safe + stale brain & DBs (> 7 days)
antigravity-clean --deep # Complete purge (safe + stale + temp repos)
antigravity-clean --stale --days 3 # Custom age threshold (e.g. > 3 days old)
antigravity-clean --all -f # Non-interactive force mode (skips confirmation)🧠 Brain Session Manager (antigravity-brain / agy-brain)
Inspect disk space distribution across all active conversation sessions, extract project topics, and perform targeted session cleanup with automatic companion database purging:
# Display brain sessions ranked by disk size with project topics
antigravity-brain
# or short alias: agy-brain
# or via daemon: auto-accept brain
# Delete a specific session by Table # Number (e.g. session #2 in the list)
antigravity-brain --delete 2
# Delete a specific session by ID or prefix (supports pasting "9178f300-5..")
antigravity-brain --delete 9178f300
# Delete all sessions older than N days (automatically purges matching .db/.pb files)
antigravity-brain --delete-older-than 7
# Delete empty / zero-file brain directories
antigravity-brain --clean-empty
# Display full 36-character UUIDs
antigravity-brain --full-id
# Run interactive session delete picker
antigravity-brain --interactive🔍 Frequently Asked Questions (FAQ & Search Index)
Q: How do I automatically approve tool permissions in Google Antigravity IDE?
Run
npm install -g antigravity-auto-submitand launch your IDE withauto-accept setuporauto-accept launch. The background daemon automatically approves terminal execution and file modification prompts in real time.
Q: How do I run Antigravity IDE on 100% hands-free autopilot overnight?
Run
auto-accept --mode autopilot. In Autopilot mode, the daemon auto-approves both tool execution prompts AND implementation plan dialogs (Proceed / Proceed with plan).
Q: What does --remote-debugging-port=9333 do in Antigravity IDE?
Google Antigravity IDE is built on Electron/VSCode architecture. Passing
--remote-debugging-port=9333enables Chrome DevTools Protocol (CDP), allowingauto-acceptto inspect DOM approval cards safely without taking control of your physical mouse or keyboard.
Q: How do I prevent risky commands (like git push or rm -rf) from auto-executing?
auto-acceptincludes built-in keyword guardrails. Useauto-accept add-ask "git push"to enforce manual confirmation for sensitive commands, orauto-accept add-skip "rm -rf"to skip destructive operations completely.
🧩 VS Code Extension (vscode-extension)
Prefer a status bar toggle over the terminal? vscode-extension/ packages the daemon as a VS Code / Antigravity IDE extension with Start/Stop, mode switching, connection status, and keyword settings. It includes a first-run walkthrough, an environment check, and a daemonSource setting to run the daemon from your global npm install (npm install -g antigravity-auto-submit). Build it with cd vscode-extension && npm run package, then install the .vsix via Extensions: Install from VSIX....
🧠 Claude Code Auto-Accept (claude-auto-accept)
This package also ships a native PreToolUse hook for Claude Code CLI. Unlike the CDP daemon it needs no background process: Claude Code runs the hook on demand for each tool call.
- Auto-approves safe commands (
npm test,git status,ls,grep), builds, and edits. - Blocks destructive commands (
rm -rf,drop table,format c:). - Pauses for review on
git push,git reset --hard, and edits to.envor credentials.
claude-auto-accept setup # register in this project (.claude/settings.json)
claude-auto-accept setup --global # register for all projects (~/.claude/settings.json)
claude-auto-accept status # check registration
claude-auto-accept doctor # diagnoseShort alias: claude-accept. From a clone, use npm run claude:setup, claude:status, or claude:doctor. Full docs: claude-auto-accept/README.md.
⚡ Kiro Agent & MCP Subsystem (Multi-Model Swarm & Parallel Delegation)
In addition to the CDP auto-submit daemon, this repository includes kiro-agent/, a multi-model swarm execution engine and Model Context Protocol (MCP) server that connects to your local Kiro IDE Proxy (http://127.0.0.1:5580):
- Model Consensus Swarms: Dispatches hard problems concurrently across Claude Sonnet 4.5, DeepSeek 3.2, Qwen3 Coder Next, and MiniMax M2.5, then synthesizes a single consensus master plan.
- Concurrent Task Delegation: Splits complex multi-file refactors or test generation tasks across worker threads in parallel (
kiro parallel -f tasks.json -c 8). - 4-Way Code Review: Performs parallel audits across Security, Correctness, Performance, and Architecture.
- 5-Layer Anti-Ban Armor: Protects your accounts via unique 64-hex hardware machine IDs per account, OIDC token refresh rate-limiting, circuit breaker backoffs, and quota cliff failover.
- 14 Native MCP Tools: Fully callable by Google Antigravity IDE via stdio JSON-RPC.
- Zero Credential Leaks: Never stores plaintext tokens or logs sensitive session data.
CLI Quick Reference
# Verify connection health & account status
kiro status
# Apply 5-layer Anti-Ban Armor & hardware fingerprint isolation
kiro armor
# Run a task on a specific model & persona
kiro run "Refactor auth pipeline to OAuth2 PKCE" -m claude-sonnet-4.5 -r architect
# Run multi-model consensus swarm
kiro swarm "Design a high-throughput rate limiter in Node.js"
# 4-dimension parallel code review
kiro review ./src/auth.ts
# Batch parallel tasks across accounts
kiro parallel -f tasks.json -c 8For complete documentation, tool input schemas, and configuration variables, read the kiro-agent/README.md.
🧪 Automated Testing
npm test # all suites
npm run verify # static invariants (dependencies, versions, manifests, forbidden patterns)Runs all test suites: the Antigravity CLI (scanner script compilation, configuration parsing, target filtering, stats persistence), Kiro agent, Kiro auto-accept, and Claude auto-accept hook tests.
npm run verify enforces the maintenance rules in AGENTS.md: zero runtime
dependencies, all four version sites in sync, every bin target present, the published file
whitelist covering the runtime, the extension manifest matching its registered commands,
the bundled daemon matching source, and no forbidden patterns.
⚠️ Known Limitations & Open Risks
These are known, documented and deliberately not "fixed blind". Each is tracked here so it can be addressed with the right test (live IDE or a product decision), not by guesswork.
| Area | Risk | Status |
|---|---|---|
| Kiro auto-accept | If Kiro's DOM does not match the four guessed panel classes, the keyword gate degrades to the button's parent element. There is no fail-closed branch, so a card whose command text sits outside that parent could be approved. | Open — needs a live Kiro window to fix safely |
| Kiro auto-accept | Approval matching is document-wide and label-generic (allow, keep, continue, apply, run). Merge-editor "Keep…" or a sign-in "Continue" button can be clicked. | Open — needs live DOM validation |
| Kiro auto-accept | Any VS Code-family workbench on ports 9220–9230 (Cursor, Windsurf, VSCodium) matches the Kiro workbench URL pattern. | Open — narrowing it may break real Kiro detection |
| Claude hook | Unknown tool payloads (mcp__*, schema drift) fall through to allow rather than ask. | Open — changing it adds prompts for every MCP tool |
| Cleaner --all | Tier 1 removes transcripts/scratch of sessions its heuristic does not classify as "active" (env var, recent DB write, WAL file). An open-but-idle session may not be detected. | Open — needs an archive/retention policy decision |
| Cleaner %TEMP% | Deletion is a name-prefix heuristic with no age or ownership check, and is part of --all. | Mitigated by --check / --dry-run |
Safety posture: the cleanup tools support --check (cleaner) and --dry-run (brain), the
Protected tier is enforced at delete time in purge_files(), and Windows junctions are
skipped. Run a dry-run before every destructive command.
📄 License
MIT License. Copyright (c) 2026 WillyEverGreen.
