Prompt-Cache Affinity & Dynamic Quota Pacing
Routes sessions deterministically to preserve hot KV prompt caches while smoothing consumption across rate-limit and quota windows instead of draining one account dry.
The substation control plane for parallel AI coding agents.
Industrial load routing, quota pacing, prompt-cache affinity, and HA failover for engineers running parallel coding agents across workstations and overnight swarms.
$ brew install beckhq/tap/switchgear In electrical power distribution, switchgear is the substation apparatus (busbars, disconnect switches, meters, and breakers) that routes load cleanly, trips before an overload does damage, and transfers to standby power without dropping the building.
Switchgear applies that exact discipline to LLM traffic across Claude Code, Codex, Antigravity, T3 Code, and Cursor. Compiled into a single Rust binary with an embedded zero-CDN Obsidian Studio Instrument console and an MCP capacity oracle, it protects 95%+ prompt caches, paces quota windows evenly, guards against surprise overages, and survives single-node crashes cleanly.
Routes sessions deterministically to preserve hot KV prompt caches while smoothing consumption across rate-limit and quota windows instead of draining one account dry.
Run a single local hub or a multi-machine Tailscale cluster where overnight agent swarms fail over cleanly instead of dying mid-run on a proxy hiccup.
Ships directly inside the Rust binary via rust-embed with self-hosted fonts: 270-degree Pool Fuel Gauge, live Prompt-Cache Hit sparklines, TTFT histograms, and real-time SSE signal flow.
Agents can query remaining pool headroom directly via MCP or inspect exact routing decisions with switchgear route explain --json.