AG Auto Retry is a focused Windows watcher for Antigravity.
It is also a local, no-patch alternative for people who found this problem through patch-based approaches such as BigInt.
It automatically clicks Retry when Antigravity shows the exact failure popup that contains all of these markers:
Agent terminated due to errorCopy debug infoRetry
The goal is simple: remove the need for someone to sit in front of the screen waiting to manually click Retry or Keep Waiting when these known dialogs appear.
It also clicks Keep Waiting when Windows shows the Antigravity hang dialog with the exact signature:
- window title containing
Antigravity - text
The window is not responding - buttons
Reopen,Close, andKeep Waiting
If you found this repository by searching for any of the terms below, you are in the right place:
Agent terminated due to error + Retry - errors 500, 503, 429 e 504Agent terminated due to error Retry 500Agent terminated due to error Retry 503Agent terminated due to error Retry 429Agent terminated due to error Retry 504error antigravity 503antigravity error 503antigravity 503 errorerror antigravity 500antigravity error 500error antigravity 429antigravity error 429error antigravity 504antigravity error 504agent terminated due to error antigravityBigInt AntigravityBigInt Antigravity patchBigInt alternative AntigravityBigInt Retry AntigravityAgent terminated due to error BigIntantigravity keep waitingantigravity the window is not respondingthe window is not responding keep waiting antigravity
Some Antigravity workflows can stall on a recoverable error dialog that still requires a manual retry click.
This project packages a narrow, local-only automation that:
- runs in the interactive Windows session
- starts at user logon
- stays hidden
- writes local logs
- only clicks
RetryorKeep Waitingwhen the popup signature matches exactly
If the popup does not match, it does nothing.
Some people arrive here after finding patch-based fixes such as BigInt.
AG Auto Retry is a different approach:
- it does not patch Antigravity
- it stays local to the Windows user session
- it is reversible and easy to uninstall
- it is intentionally limited to the known
RetryandKeep Waitingpopup signatures
If you want a narrower workaround that avoids modifying Antigravity itself, this repository is meant for that use case.
- Windows-native implementation
- PowerShell + .NET UI Automation
- Hidden runtime
- Scheduled Task startup at logon
- Keepalive trigger for self-recovery
- Single-instance protection
- Best-effort focus return to the previous app after
Retry - Best-effort focus return to the previous app after
Keep Waiting - Preserves maximized windows when returning focus
- Does not jump away when the user is already working inside Antigravity
- Cooldown between retry attempts
- Safety cap on retries per execution
- Controlled local test harness
- Status and diagnostics script
- Clean uninstall script
- No third-party clicker tools required
AG Auto Retry is intentionally strict.
It will not:
- patch Antigravity
- inject into Antigravity internals
- click
Dismiss - click
Copy debug info - click
Run - click
Accept - click
Always Allow - use OCR
- use coordinate-based clicking
- depend on a terminal staying open
It only acts when it sees one of the full intended popup signatures in an Antigravity context.
The solution uses:
- a PowerShell watcher
- .NET UI Automation via
System.Windows.Automation - a hidden
wscript.exelauncher - a Windows Scheduled Task named
AG Auto Retry - the interactive user session at logon
Runtime deployment target:
C:\ProgramData\AGAutoRetry
The watcher scans Antigravity UI descendants and only proceeds when it can find the exact Retry signature:
- the text
Agent terminated due to error - a visible
Copy debug infobutton - a visible
Retrybutton
Only then does it invoke Retry.
It also watches for the Windows hang dialog and only proceeds when it can find:
- a window title containing
Antigravity - the text
The window is not responding - a visible
Reopenbutton - a visible
Closebutton - a visible
Keep Waitingbutton
Only then does it invoke Keep Waiting.
ag-auto-retry.ps1- main watcherlaunch-ag-auto-retry.vbs- hidden launcher for the Scheduled Taskinstall-ag-auto-retry.ps1- installs the package intoC:\ProgramData\AGAutoRetryuninstall-ag-auto-retry.ps1- stops and removes the taskstatus-ag-auto-retry.ps1- prints current task/process/log statustest-harness-ag-retry.ps1- local popup simulator for validationconfig.json- cooldown, polling, retry cap, and target settingsVERSION- current release versionCHANGELOG.md- versioned release historyREADME.md- project overview
This repository uses semantic version tags and GitHub Releases.
VERSIONtracks the current packaged release versionCHANGELOG.mdsummarizes what changed between published versions- GitHub Releases provide a downloadable zip for each versioned update
Clone or download this repository anywhere on the machine, then run:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\install-ag-auto-retry.ps1The installer will:
- create
C:\ProgramData\AGAutoRetry - copy the package files there
- register or update the Scheduled Task
- start the watcher
- verify that the watcher is active
- run a controlled local validation unless
-SkipTestis used
If elevation is needed to write under ProgramData, the installer attempts one self-elevation.
Once installed:
- the watcher starts at logon
- it stays hidden
- it writes logs to
C:\ProgramData\AGAutoRetry\ag-auto-retry.log - after clicking
RetryorKeep Waiting, it can attempt to restore focus only when the popup itself pulled Antigravity to the foreground - if the process is closed by mistake, the keepalive trigger relaunches it automatically
Run:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\AGAutoRetry\status-ag-auto-retry.ps1The status script reports:
- whether the Scheduled Task exists
- whether it is registered
- whether the watcher process is running
- the last task result
- the log path
- recent log lines
The repository ships with a local validation harness that simulates both target popups:
Agent terminated due to errorDismissCopy debug infoRetryThe window is not respondingReopenCloseKeep Waiting
This allows reproducible testing without waiting for the real Antigravity failure dialog.
Remove the Scheduled Task and stop the watcher:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\AGAutoRetry\uninstall-ag-auto-retry.ps1Remove the deployed files too:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\AGAutoRetry\uninstall-ag-auto-retry.ps1 -RemoveFilesRemove everything including logs:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\AGAutoRetry\uninstall-ag-auto-retry.ps1 -RemoveFiles -RemoveLogs- Windows only
- intentionally specific to Antigravity
- intentionally limited to two popup signatures
- depends on Antigravity exposing the popup via UI Automation in the user session
This is an independent community utility and is not an official Antigravity project.
Contributions are welcome, especially around:
- making detection more robust without widening scope unsafely
- documentation improvements
- safer validation patterns
- Windows tasking and recovery hardening
See CONTRIBUTING.md for a lightweight contribution guide.