Claude Code emits a <total_tokens>N tokens left</total_tokens> block in the system prompt and after each tool result, counting down from the configured budget. This used to be off unless enabled; the built-in fallback is now padded-countdown. The companion behaviour of re-anchoring the countdown on each regular user prompt also flipped to on by default. Both can still be set explicitly, and remote config can override either.
- Resolution order: env var
CLAUDE_CODE_TOTAL_TOKENS_REMINDER, then thetotalTokensRemindersetting, then the server-side value whose in-source fallback moved from "off" to "padded-countdown". - The budget comes from
totalTokensReminderBudget. - Re-anchoring uses
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_AFTER_USER_TURN, thentotalTokensReminderAfterUserTurn, then the server value whose fallback flipped from false to true. - Suppressed entirely by
CLAUDE_CODE_DISABLE_ATTACHMENTSorCLAUDE_CODE_SIMPLE. - The source only fixes the fallback; a server-side value still wins.
is on \u2014 task-budget semantics). Defaults to padded-countdown. , "@internal Emit a <total_tokens>N tokens left</total_tokens> block in the system prompt, after each tool result, tengu_lapis_anchor_user_turn
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
tengu_lapis_anchor_user_turn On for this account, and not off by defaultThe flag server returned on for the one account this site reads, and nothing in this release compiles it off by default. The compiled default is shown below, and says which it is when we cannot read one: a fifth of gates compile in a string or a number rather than on or off, and most published releases have no gate table behind them at all. No client can see what the server returns for your account.
This account: on · anonymous baseline: on · compiled default in v2.1.233: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.233. It isn't a statement about your account. What a flag value here can and cannot tell you
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.