A guide to route Claude Code traffic through Headroom
for context compression while keeping Remote Control fully working, using mitmproxy instead of
headroom wrap / ANTHROPIC_BASE_URL (which disables Remote Control).
Only the request paths Headroom actually has real handlers for (/v1/messages and friends) get
routed to it; everything else on api.anthropic.com — session/worker bookkeeping, telemetry, oauth,
MCP registry, and Remote Control's SSE event stream — goes straight to the real upstream,
unconditionally. That keeps Remote Control's long-lived