Author bridges Gemini web chat into a native Linux executor, cutting Antigravity CLI turns from 400+ to 0
Icy-Management-5843 · reddit · 2026-10-13
To stop Antigravity burning prompt quota and context on exploratory shell commands before writing any code, the author built a browser bridge: a local Python daemon (127.0.0.1:9765) plus a userscript hooking Google Gemini (also AI Studio and DeepSeek), using local WebSocket/HTTP loopback (Firefox's network.websocket.allowInsecureFromHTTPS) so the web chat can run bash, inspect the filesystem, execute tests, and stream unclipped terminal output from the workstation.
3-phase workflow enforced via custom skills:
- OnlyRecon: pure planning — file mutations and terminal execution fully locked;
- Pseudo-Recon: still zero writes/shell; compile environment prerequisites into a checklist;
- Pseudo-Build: code authoring unlocked but local terminal stays locked; the agent pauses at build/migration/test checkpoints.
Single-turn handoff loop: at checkpoints Antigravity emits a ready-to-paste first-person prompt with an unclipped command block; the author pastes it to Gemini, which executes via the bridge, then pastes the full output back into Antigravity in one turn for surgical diffs.
Result: internal shell-execution turns dropped from a real measured 400+ to exactly 0, keeping the context window free of megabytes of terminal logs.
More from coding & agent
- Senior Engineer Benchmark: Muse Wonder scores 52%, well behind Claude and GPT coding models — danshipper · 2026-10-13
- Audit: CodeRabbit cost 174 engineers $41,760/yr to cut PR merge time by 6 minutes — Exciting_Item_2732 · 2026-10-13
- 'World's first autonomous digital organism' lives on a knockoff Roku with 4GB RAM — Kyrannio · 2026-10-13
- TBD Labs launches Muse Wonder agents for delegating real work — EdwardSun0909 · 2026-10-13
- Claude Code hand-builds a 16-frame Scratch Cat walk cycle — yoobinray · 2026-10-13
- Animating a cheetah via physics simulation reveals the limits of rigid-body skeletons — Kyrannio · 2026-10-13