How eliasemon/antigravity-auto-accepts-bypass-permission works
Antigravity Auto-Accept is a Node.js utility that accepts supported Antigravity prompts through either an external CDP daemon or a native application patch. In the daemon workflow, the CLI starts and controls the daemon; it discovers page targets, scans for candidate prompts, applies safety checks, and clicks only permitted candidates. The alternate patch workflow injects an in-app engine and installs an IDE status-bar toggle. The README documents desktop and IDE integrations, while sampled source confirms daemon detection and patching mechanisms; unsampled wiring is omitted.
Main entry points: daemon.js Acceptance Daemon · cli.js CLI Commands · core-patcher.js Core Patcher · cdp.js CDP Client
Components 15
CLI and Control
- CLI Commands
src/cli.js - Configuration
src/config.js - Daemon IPC
src/ipc.js - Process Discovery
src/process-detector.js
CDP Daemon
- Acceptance Daemon
src/daemon.js - CDP Client
src/cdp.js - Prompt Detection
src/detector.js - Safety Guardrails
src/safety.js - Block Notifications
src/notifier.js
Native Integration
- Core Patcher
src/core-patcher.js - Update Watcher
src/watcher.js - IDE Status Toggle
ide-extension/extension.js
Antigravity UI
- Antigravity App and IDE
- Prompt and Approval UI
Other components
- Operator
Connections 19
- Operator → CLI Commands: runs commands
- CLI Commands → Configuration: loads settings
- CLI Commands → Acceptance Daemon: starts or runs
- CLI Commands → Daemon IPC: sends controls
- CLI Commands → Process Discovery: checks or launches
- Acceptance Daemon → Configuration: uses settings
- Acceptance Daemon → CDP Client: requests target actions
- CDP Client → Antigravity App and IDE: connects by CDP
- CDP Client → Prompt Detection: evaluates scan and click scripts
- Prompt Detection → Safety Guardrails: candidate checked by daemon
- Acceptance Daemon → Safety Guardrails: checks candidate text
- Acceptance Daemon → Block Notifications: reports blocked prompts
- Acceptance Daemon → Daemon IPC: serves control requests
- Operator → Core Patcher: requests native patch
- Core Patcher → Antigravity App and IDE: patches app and IDE
- Core Patcher → IDE Status Toggle: installs extension
- Update Watcher → Core Patcher: repatches after updates
- IDE Status Toggle → Operator: shows toggle status
- Antigravity App and IDE → Prompt and Approval UI: hosts prompts