Two env vars let background dispatchers inherit your plan and rate tier without an API call.
What's wrong with this entry?
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.
- 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.
CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE
Strings lifted out of the shipped bundle, so the claim above can be checked against them.