Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.165 ·

Subagent Sessions Identified in Billing Attribution Header

Entry
JSON All of v2.1.165
EntryKind: in v2.1.165,
ChangesSection of the release

The x-anthropic-billing-header sent with every API request now includes cc_is_subagent=true; when the request originates from a subagent session rather than the top-level interactive session. The main CLI session is tagged isMainSession: true internally; any agent that lacks that flag gets the subagent marker appended.

This is an internal attribution change with no user-visible behavior. It helps Anthropic distinguish API usage generated directly by the user from usage generated by orchestrated subagents, which improves billing analytics and usage reporting.

Evidence

Attribution header builder now appends cc_is_subagent=true; for non-main-session callers (search for "cc_is_subagent=true;" in the source); main session agent config now sets isMainSession: !0.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.165 →

Feedback