Claude Fleet Traffic Shaper

Priority-aware traffic shaping for a fleet of concurrent Claude Code sessions — spec and prior-art research

About This Project

Claude Fleet Traffic Shaper is a specification and research repository for a local traffic-shaping process that sits in front of a fleet of concurrent Claude Code sessions sharing one account. The project addresses a scheduling problem: when several sessions issue requests independently, aggregate load can exceed the account ceiling, causing 429 or 529 errors that strike whichever session happens to be mid-request rather than the lower-priority work the operator would prefer to slow down. The proposed design assigns each session a priority, either manually or derived automatically from the repository and opening prompt, and degrades lower-priority sessions in stages through added latency rather than failures. The repository is explicitly marked as having no implementation yet. It contains a design document, a prior-art survey covering routing proxies, payload compression tools, batch task queues, general LLM gateways, and the closest match, HiveMind, and a reference document of environment variables and headers extracted from the Claude Code 2.1.226 binary, including per-session concurrency caps.

The work is relevant to developers who run multiple Claude Code agents in parallel and to those designing admission control or priority scheduling for LLM API clients. Its main contribution is the analysis: it identifies that no existing project binds a priority to an interactive Claude Code session and schedules between sessions on that basis. It also notes a simpler mitigation, capping subagent fan-out per session, that can be applied without a proxy. The project is licensed under MIT.

Project Details

Tags

idea-documentation

Explore More Projects