All work

Tools · 2026

Antigravity Switcher

Desktop app with automated quota failover, session continuity, real-time context telemetry, and chat health recovery for Google Antigravity.

Timeline
Sep 2026
Stack
TypeScript, Electron, React, Fastify, SQLite, Drizzle ORM
Links
Website , GitHub
Accounts dashboard with three Google accounts and per-model quota bars
Accounts and per-model quota
Chat Hub context telemetry showing token breakdowns across active sessions and subagents
Chat Hub: Context telemetry
Chat Hub health and recovery cockpit with hierarchical subagent trees and session healing
Chat Hub: Health and recovery
Remote control page with the relay server, Cloudflare tunnel, pairing QR code and connected phones
Remote control and phone pairing

Why

Google Antigravity runs on a Google account's AI quota, and heavy use runs out of it mid-task. Switching accounts by hand means signing out, signing in and pasting the prompt back in. Antigravity Switcher automates rotation, protects session continuity, and provides deep observability and recovery across Antigravity App, IDE and CLI.

What it does

  • Multi-target quota failover. Pools Google accounts and rotates to the next one when quota runs out or a 429 rate limit hits, across the Antigravity desktop app, IDE and CLI, together or per target independently. Accounts authenticate through a local OAuth 2.0 loopback with zero credential exposure, and each card shows real-time quota fractions, per-model limits (Gemini 2.5 Flash, Gemini 2.5 Pro, Claude 3.7 Sonnet) and active reset countdowns.
  • Active chat auto-resume. Before a switch restarts Antigravity, it captures the prompt in flight and checkpoints the SQLite session database, then re-dispatches the prompt once the language server is ready. Strict model fidelity prevents silent fallback to weaker models: if the next account is out of quota too, the prompt waits safely in a draft buffer.
  • Chat Hub: Context telemetry & compaction monitoring. Reads each session's context headroom directly from Antigravity protobufs and breaks token use down into cached, fresh input, thinking and output, per session and subagent, with risk badges (Normal, High Pressure, Critical Risk) warning before automated compaction evicts context.
  • Chat Hub: Health, auto-backup & recovery cockpit. Comprehensive session integrity auditing across all runtime targets. Nests subagents in hierarchical trees under intact parents or deleted-session containers with live search and filtering. Automated non-blocking SQLite snapshots run before switches and cleaning with FIFO retention. Features granular 1-click restore, safe in-place healing of broken references without data loss, and schema-drift protection with fallback column synthesis and protobuf mirror cache invalidation.
  • Broken chat cleaner. Finds conversations whose history Antigravity has already evicted, the cause of "Conversation unavailable" errors, and purges them safely while preserving restorable backup snapshots.
  • Remote control relay. An embedded Fastify relay serves a phone companion over local Wi-Fi or an encrypted Cloudflare Tunnel, paired with a single-use QR key and revocable per device.
  • Tray switcher in the macOS menu bar and the Windows system tray for quick account rotation and status monitoring with zero idle CPU overhead.

How it's built

Electron 37 with a React 19 renderer on Vite 6, Tailwind CSS 4, Radix UI, TanStack Router and Query, oRPC for IPC, and SQLite (better-sqlite3) via Drizzle ORM with AES-256-GCM authenticated encryption. Electron Forge packages native artifacts for macOS, Windows and Linux on x64 and ARM.

Shipping

A solo project: first commit on 8 September 2026, shipping 24 releases in six weeks, the latest v0.5.1 on 19 October 2026, with its own landing page and download center at antigravity-switcher.hizari.my.id.