Under the hood
API requests now carry two new headers identifying the request's class and the calling agent type
What
Requests the CLI sends to Anthropic's API now include two additional headers: x-claude-code-request-class and x-claude-code-agent-type. Both are computed by helper functions that classify the request, for example as compaction, workflow, teammate, or custom, and are added to the default headers sent with every model call.
Why
This lets requests be tagged with what kind of request they are and what kind of agent made them, which is metadata rather than something that changes what a user sees.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added x-claude-code-request-class, x-claude-code-agent-type, x-claude-code-prev-tool-durations, x-claude-code-compaction and…