Skip to content

Control your Antigravity instance from your Mobile

Notifications You must be signed in to change notification settings

mml555/ag_bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AG Bridge (Antigravity Bridge)

A lightweight Mobile Interface for the Antigravity Agent. Chat with your AI agent from your couch, verify tasks, and "poke" it to wake up—all from your phone.

Features

  • 📱 Mobile Chat UI - Full chat interface with message history
  • 🩸 The Poke - Remotely wakes up the Agent in Antigravity
  • 💬 Direct Message Injection - Messages inject directly into IDE chat
  • 📡 Response Streaming - Agent responses stream back in real-time via CDP polling
  • 🔍 Live Window Selector - Shows open Antigravity windows for workspace selection
  • 📊 Agent Status Banner - Pulsing indicator showing agent state
  • 🔒 LAN Only - Your data stays on your network
  • 🔌 MCP Integration - Agent reads messages and reports status directly

Architecture

Phone ←→ Bridge Server ←→ Antigravity (Agent)
              ↓ CDP (port 9223)
         Live Windows + Streaming

Requirements

  • Node.js: v18+
  • Antigravity: Launched with --remote-debugging-port=9223
  • Network: Same Wi-Fi or Tailscale for remote access

Quick Start

1. Start Antigravity with CDP

# macOS
open -a Antigravity --args --remote-debugging-port=9223

# Windows  
antigravity.exe . --remote-debugging-port=9223

2. Install & Start Bridge

npm install
npm start

3. Open on Phone

  1. Go to http://<YOUR_IP>:8787
  2. Enter the Pairing Code from console
  3. Select workspace from live windows
  4. Chat and see responses stream in real-time!

How Streaming Works

  1. Message sent from Bridge UI
  2. Bridge injects message into IDE via CDP
  3. Bridge polls cascade.textContent every 300ms
  4. New text chunks broadcast to UI via WebSocket
  5. UI displays streaming response with indicator

Remote Access

  • Recommended: Use Tailscale for secure remote access
  • Warning: Do NOT forward port 8787 to the internet

Testing

npm test           # Run tests
npm run check:bidi # Scan for hidden Unicode

License

MIT

About

Control your Antigravity instance from your Mobile

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.4%
  • HTML 32.0%
  • Shell 9.6%