Skip to content

piecucci/Antigravity-Shit-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antigravity Shit-Chat Mobile Monitor

Need to go to the bathroom? But Opus 4.5 might be done with that big task soon? Want to eat lunch? But there's more tokens left before they reset right after lunch?

screenshot

A real-time mobile interface for monitoring and interacting with Antigravity chat sessions.

How It Works

It's a simple system, but pretty hacky.

The mobile monitor operates through three main components:

1. Reading (Snapshot Capture)

The server connects to Antigravity via Chrome DevTools Protocol (CDP) and periodically captures snapshots of the chat interface:

  • Captures all CSS styles to preserve formatting
  • Captures the HTML of the chat interface
  • Buttons and everything that you wont be able to click
  • Polls every 3 seconds and only updates when content changes

2. Injecting (Message Sending)

Antigravity must be run in chrome with remote debugging enabled. Messages typed in the mobile interface are injected directly into Antigravity:

  • Locates the Antigravity chat input editor
  • Inserts the message text and triggers submission
  • Handles the input safely without interfering with ongoing operations

3. Serving (Web Interface)

A lightweight web server provides the mobile UI:

  • WebSocket connection for real-time updates
  • Auto-refresh when new content appears
  • Clean, responsive interface optimized for mobile devices
  • Send messages directly from your phone

Setup

1. Start Antigravity with CDP

Start Antigravity with Chrome DevTools Protocol enabled:

antigravity --remote-debugging-port=9000

Important: You must open a project/chat window in Antigravity (not just stay on the Launchpad). The server looks for workbench.html which is the main editor window, not workbench-jetski-agent.html (the Launchpad).

2. Install Dependencies

npm install

3. Start the Monitor

# Default port 3000
node server.js

# Or specify a custom port (useful if 3000 is in use)
PORT=3001 node server.js

4. Access from Mobile

Open your browser in the bathroom and navigate to:

http://<your-local-ip>:3001

This is over local network, so it will not work if you are on a different network, unless you use a VPN or something.

The interface will automatically connect and display your Antigravity conversation in almost real-time.

Troubleshooting

"CDP not found" error

  • Make sure Antigravity is running with --remote-debugging-port=9000
  • Make sure you have a project open (not just the Launchpad window)
  • Check that port 9000 is responding: curl http://127.0.0.1:9000/json/list

Port already in use

Use a different port: PORT=3001 node server.js

No snapshots appearing

  • The server looks for workbench.html (main window), not workbench-jetski-agent.html (Launchpad)
  • Verify targets: curl -s http://127.0.0.1:9000/json/list | jq '.[].title'
  • You should see something like "furniture-assembly-manager - Antigravity" (your project name)

About

Mobile monitor for Antigravity chat sessions via CDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors