Antigravity Workers
Production multi-agent system where Claude Code plans, routes, and synthesizes while four specialized Antigravity (AGY) CLI workers do the heavy reading — research, architecture review, code review, and whole-codebase analysis — each returning a hard-capped, structured report. Migrated from Gemini CLI to the AGY invoker.
// Context
Claude Code's context window is the scarce resource in agentic coding sessions. Whole-repository analysis, large documentation synthesis, and second-opinion reviews burn tokens that the orchestrating agent needs for planning and synthesis. The worker pool started on Gemini CLI, then migrated to the Antigravity (AGY) CLI — a local, API-key-free binary with its own large context window and cross-session memory. The missing piece was a disciplined delegation layer that keeps Claude in charge and keeps worker output cheap.
// What I Built
// Architecture
// Key Engineering Decisions
// War Story
During end-to-end validation, the review worker kept timing out while other workers succeeded. Root cause was two layers deep: a broken global Gemini CLI BeforeTool hook (calling python on a macOS system that only ships python3) was silently blocking every file read in headless mode — workers degraded to guessing from file names instead of failing loudly. Fixing the hook and adding the model fallback chain took the suite from intermittent failures to 54/54. The later migration from Gemini CLI to the AGY invoker reused the same wrapper contract, so the worker pool swapped engines without touching the routing or observability layers.