How ahmeddmakyy/antigravity-chrome-extension works
MyChrome connects a Chrome side panel to the user’s Antigravity agent through a local bridge. A typical task starts in the panel, reaches Antigravity as MCP tools, and returns as browser commands that the extension applies to the open tab; users can watch progress and approve sensitive actions. The README also documents attachments, page debugging, conversation linking, and agent wake-up support. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; some extension and lifecycle details are documented rather than sampled directly.
Main entry points: background.js Extension coordinator · sidepanel.js Chat and settings panel · ws-server.ts Local WebSocket bridge · mcp-server.ts MCP tools
Components 19
Panel and turns
- Chat and settings panel
extension/sidepanel.js - Turn history model
extension/shared/turn-model.js
Chrome extension
- Extension coordinator
extension/background.js - Page inspection and actions
extension/bg/page-scripts.js - Action safety policy
extension/shared/policy.js - Pairing-key reader
extension/shared/pairing.js - Page content script
extension/content.js
Local bridge
- MCP tools
bridge/src/mcp-server.ts - Local WebSocket bridge
bridge/src/ws-server.ts - Helper forwarding client
bridge/src/remote-bridge.ts - Long-lived helper
bridge/src/daemon.ts - Pairing token
bridge/src/token.ts - Attachment storage and validation
bridge/src/upload-manager.ts
Agent integration
- Plugin setup
bridge/src/setup.ts - Conversation wake-up
bridge/src/waker.ts - Stop hook
bridge/src/stop-hook.ts
Other components
- User
- Chrome tab
- Antigravity agent
Connections 31
- User → Chat and settings panel: starts task
README.md - Chat and settings panel → Extension coordinator: sends panel messages
README.md - Extension coordinator → Chat and settings panel: streams progress
README.md - Extension coordinator → Turn history model: updates turns
extension/background.js - Chat and settings panel → Turn history model: renders turns
extension/sidepanel.js - Extension coordinator → Pairing-key reader: reads key
extension/background.js - Extension coordinator → Local WebSocket bridge: connects locally
extension/background.js - Extension coordinator → Action safety policy: checks actions
extension/background.js - Extension coordinator → Page inspection and actions: injects page actions
extension/background.js - Extension coordinator → Page content script: injects script
extension/background.js - Chrome tab → Extension coordinator: hosts extension
README.md - Extension coordinator → Chrome tab: controls tab
README.md - Extension coordinator → Local WebSocket bridge: sends chat and commands
README.md - Local WebSocket bridge → Extension coordinator: returns events
README.md - Antigravity agent → MCP tools: starts MCP server
- MCP tools → Antigravity agent: provides tools
bridge/src/mcp-server.ts - MCP tools → Local WebSocket bridge: dispatches tool calls
bridge/src/mcp-server.ts - Local WebSocket bridge → Attachment storage and validation: saves attachments
bridge/src/ws-server.ts - MCP tools → Attachment storage and validation: validates upload paths
bridge/src/mcp-server.ts - MCP tools → Helper forwarding client: forwards calls
bridge/src/index.ts - Helper forwarding client → Local WebSocket bridge: calls helper
bridge/src/remote-bridge.ts - Long-lived helper → Local WebSocket bridge: starts server
bridge/src/daemon.ts - Antigravity agent → Plugin setup: installs plugin
README.md - Plugin setup → Conversation wake-up: registers sidecar
README.md - Antigravity agent → Conversation wake-up: wakes on panel message
README.md - Antigravity agent → Stop hook: uses stop hook
README.md - MCP tools → Pairing token: creates and writes key
bridge/src/index.ts - User → Chat and settings panel: attaches files
README.md - Chat and settings panel → Antigravity agent: sends attachments
README.md - Chrome tab → Antigravity agent: provides page data
README.md - User → Chat and settings panel: approves actions
README.md