What
An environment variable is a named setting a program receives when it starts. Claude Code has a new one, CLAUDE_CODE_SPEND_TAGS, which sits beside the existing CLAUDE_CODE_SPEND_PROJECT (the variable that tags remote work with a billing project). It did not exist in the previous build.
set_spend_tagsis a new control request, a message a program hosting Claude Code can send to it. It acceptsspend_tagsas either null or up to five lowercasekey_uuid:value_uuidpairs joined by commas, and then sets or clearsCLAUDE_CODE_SPEND_TAGS. It is refused when the session has no connection to the hosting service.- A line
CLAUDE_CODE_SPEND_TAGS=is now added to the environment of sessions Claude Code starts, next toCLAUDE_CODE_SPEND_PROJECT, carrying the value through, or an empty value if it is unset. This happens only under a condition involving the iTerm2 terminal backend that could not be fully read. CLAUDE_CODE_SPEND_TAGSis on lists of variable names Claude Code handles, alongsideCLAUDE_CODE_SPEND_PROJECTandCLAUDE_CODE_AWAIT_FIRST_MESSAGE.
Three other new variable names were added to the same kinds of lists in this release: CLAUDE_CODE_OWNER_TYPING_WAKE_AT, CLAUDE_CODE_KEEP_AGENT_MEMORY, and CLAUDE_CODE_FLAG_SURFACE (placed next to CLAUDE_CODE_CCR_SURFACE). What reads them was not traced from these lists.
Why
A hosted session can now carry a set of spend tags in addition to a spend project, a host can change them while the session runs, and the tags can reach sessions that one starts in turn.