Vibe Coding
Claude Code 2.1.273 adds opt-in gateway hint headers that expose request class, agent type and compaction state
Released 2026-09-15T20:22Z, 2.1.273 adds `x-claude-code-request-class`, `x-claude-code-agent-type`, `x-claude-code-prev-tool-durations`, `x-claude-code-compaction` and `x-claude-code-context-compacted` request headers for LLM gateways, opt-in via `CLAUDE_CODE_GATEWAY_HINT_HEADERS=1`. For anyone running a router or proxy in front of Claude Code, this is the first time the CLI tells the gateway whether a call is a subagent turn, a compaction pass, or a main-loop request. That is enough to route subagent traffic to a cheaper model or bill agent types separately without parsing the prompt.
↳ Follow the thread