Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.251 Home All releases olderv2.1.250
Claude Code v2.1.251

Background sessions can inherit plan and rate-limit tier from the environment

Use it now
Useful2 Signal3
Sessions Notable

Two env vars let background dispatchers inherit your plan and rate tier without an API call.

CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPECLAUDE_BG_DISPATCHER_RATE_LIMIT_TIERCLAUDE_CODE_SESSION_KINDCLAUDE_CODE_SESSION_
What

Two environment variables, CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE and CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIER, now let a background dispatcher process learn its parent session's plan and rate tier without an API call. Both are read only when CLAUDE_CODE_SESSION_KIND is set to bg; in any other session kind they come back undefined and tier lookup falls back to the normal path.

Details
  • The values feed the subscription-tier resolution used for max/pro/team/enterprise gating elsewhere in the CLI.
  • This is live plumbing, not dead code: the reader has callers at the subscription and rate-tier resolution functions.
Evidence

CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE

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.251 →