# eliasemon/antigravity-auto-accepts-bypass-permission architecture

> Architecture diagram of the GitHub repository eliasemon/antigravity-auto-accepts-bypass-permission, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eliasemon/antigravity-auto-accepts-bypass-permission
- Repository: https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission

## Overview

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: [`src/daemon.js`](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/daemon.js) (Acceptance Daemon), [`src/cli.js`](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cli.js) (CLI Commands), [`src/core-patcher.js`](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/core-patcher.js) (Core Patcher), [`src/cdp.js`](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cdp.js) (CDP Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["CLI and Control"]
  node_cli["CLI Commands<br/>[cli.js]"]
  node_config["Configuration<br/>[config.js]"]
  node_ipc["Daemon IPC<br/>[ipc.js]"]
  node_process["Process Discovery"]
end

subgraph group_daemon["CDP Daemon"]
  node_daemon["Acceptance Daemon<br/>[daemon.js]"]
  node_cdp["CDP Client<br/>[cdp.js]"]
  node_detector["Prompt Detection<br/>[detector.js]"]
  node_safety["Safety Guardrails<br/>[safety.js]"]
  node_notifier["Block Notifications<br/>[notifier.js]"]
end

subgraph group_patch["Native Integration"]
  node_patcher["Core Patcher<br/>[core-patcher.js]"]
  node_watcher["Update Watcher<br/>[watcher.js]"]
  node_extension["IDE Status Toggle<br/>[extension.js]"]
end

subgraph group_target["Antigravity UI"]
  node_runtime["Antigravity App and IDE"]
  node_ui["Prompt and Approval UI"]
end

node_user(("Operator"))

node_user -->|"runs commands"| node_cli
node_cli -->|"loads settings"| node_config
node_cli -->|"starts or runs"| node_daemon
node_cli -->|"sends controls"| node_ipc
node_cli -->|"checks or launches"| node_process
node_daemon -->|"uses settings"| node_config
node_daemon -->|"requests target actions"| node_cdp
node_cdp -->|"connects by CDP"| node_runtime
node_cdp -->|"evaluates scan and click scripts"| node_detector
node_detector -.->|"candidate checked by daemon"| node_safety
node_daemon -->|"checks candidate text"| node_safety
node_daemon -->|"reports blocked prompts"| node_notifier
node_daemon -->|"serves control requests"| node_ipc
node_user -->|"requests native patch"| node_patcher
node_patcher -->|"patches app and IDE"| node_runtime
node_patcher -->|"installs extension"| node_extension
node_watcher -->|"repatches after updates"| node_patcher
node_extension -->|"shows toggle status"| node_user
node_runtime -->|"hosts prompts"| node_ui

click node_cli "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cli.js"
click node_config "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/config.js"
click node_ipc "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/ipc.js"
click node_daemon "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/daemon.js"
click node_cdp "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cdp.js"
click node_detector "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/detector.js"
click node_safety "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/safety.js"
click node_notifier "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/notifier.js"
click node_process "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/process-detector.js"
click node_patcher "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/core-patcher.js"
click node_watcher "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/watcher.js"
click node_extension "https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/ide-extension/extension.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_config,node_ipc,node_process toneBlue
class node_daemon,node_cdp,node_detector,node_safety,node_notifier toneAmber
class node_patcher,node_watcher,node_extension toneMint
class node_runtime,node_ui toneRose
class node_user toneIndigo
```

## Components

### CLI and Control

- [CLI Commands](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cli.js): `src/cli.js`
- [Configuration](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/config.js): `src/config.js`
- [Daemon IPC](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/ipc.js): `src/ipc.js`
- [Process Discovery](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/process-detector.js): `src/process-detector.js`

### CDP Daemon

- [Acceptance Daemon](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/daemon.js): `src/daemon.js`
- [CDP Client](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/cdp.js): `src/cdp.js`
- [Prompt Detection](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/detector.js): `src/detector.js`
- [Safety Guardrails](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/safety.js): `src/safety.js`
- [Block Notifications](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/notifier.js): `src/notifier.js`

### Native Integration

- [Core Patcher](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/core-patcher.js): `src/core-patcher.js`
- [Update Watcher](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/src/watcher.js): `src/watcher.js`
- [IDE Status Toggle](https://github.com/eliasemon/antigravity-auto-accepts-bypass-permission/blob/main/ide-extension/extension.js): `ide-extension/extension.js`

### Antigravity UI

- **Antigravity App and IDE**
- **Prompt and Approval UI**

### Other components

- **Operator**

## Connections

- 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
