{"version":"2.1.273","anchor":"new-per-request-headers-naming-the-callers-agent-type-and-r","canonical_anchor":"new-per-request-headers-naming-the-callers-agent-type-and-r","heading":"New per-request headers naming the caller's agent type and request class","tier":"internal","area":"Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273\/e\/new-per-request-headers-naming-the-callers-agent-type-and-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273","markdown":"### New per-request headers naming the caller's agent type and request class\n\nAPI requests now carry two new headers identifying the request's class and the calling agent type\n\n**What**\n\nRequests 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.\n\n**Why**\n\nThis 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.\n\n- Area: Internals\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5"}