Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

New CLAUDE_CODE_SPEND_TAGS variable for tagging hosted sessions

A new CLAUDE_CODE_SPEND_TAGS variable can be set through a set_spend_tags request and is passed on next to CLAUDE_CODE_SPEND_PROJECT

Group of 3 Use it now Notable New Features
JSON All of v2.1.336
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Environment VariablesArea: what it touches
New FeaturesKind: in v2.1.336,
What probably matters to youSection of the release

Unclear What each of these variables does when set is not shown.

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_tags is a new control request, a message a program hosting Claude Code can send to it. It accepts spend_tags as either null or up to five lowercase key_uuid:value_uuid pairs joined by commas, and then sets or clears CLAUDE_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 to CLAUDE_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_TAGS is on lists of variable names Claude Code handles, alongside CLAUDE_CODE_SPEND_PROJECT and CLAUDE_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.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat each of these variables does when set is not shown.

See this entry in the whole of v2.1.336 →

Feedback