← ClaudeAtlas

ai-rotary-shield-skilllisted

Reverse proxy gateway and multi-account token pooling architecture for AI agent CLIs: automated HTTP 429 and quota exhaustion detection, zero-buffer SSE streaming pass-through, and instantaneous rotary failover.
4ntiDandruff/zero-bloat-skills · ★ 1 · AI & Automation · score 74
Install: claude install-skill 4ntiDandruff/zero-bloat-skills
# AI Rotary Shield Pool Skill Intelligent reverse proxy gateway architecture engineered to preserve execution continuity for autonomous AI coding agents (Claude Code, Google Antigravity CLI, Oh My Pi, OpenCode) when upstream API quotas are exhausted (HTTP 429 Too Many Requests / Resource Exhausted). --- ## 1. The Autonomous Coding Quota Challenge - Agentic coding loops consume tens of thousands of tokens per minute during multi-file refactoring and AST inspections. - When an account hits minute rate limits or daily usage caps, the agent session terminates immediately, discarding intermediate working state. - **Server-Sent Events (SSE)**: Modern AI tools require `stream: true`. Buffering the whole response body in memory will freeze the agent terminal and delay typing output. --- ## 2. Rotary Shield Circuit Topology ``` [ AI Agent Terminal (Claude / Antigravity / OMP) ] ↓ (HTTP POST /v1/chat/completions) [ Local Reverse Proxy Gateway (FastAPI / Uvicorn) ] ↓ [ Token Rotary Circuit Pool ] ├── Pool Account 1 (Active - Primary) ├── Pool Account 2 (Standby - Warm) └── Pool Account 3 (Standby) ↓ (Persistent HTTP/2 Client) [ Upstream Provider API (Google / Anthropic / OpenRouter) ] ``` ### Fail-Safe Relay Logic: 1. Incoming agent payloads route to `Pool Account 1`. 2. If the upstream provider returns status **429**, **403 Quota**, or `RESOURCE_EXHAUSTED`: - Intercept the error response; do no