CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE
Updated by Alex Sorokoletov
CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE is a Claude Code environment variable. Added between v2.1.321 and v2.1.323 and still present in v2.1.324. It is not in the official reference.
| Status | Present in v2.1.324 |
|---|---|
| Added | Added between v2.1.321 and v2.1.323 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE": "<value>"
}
}Related variables
CLAUDE_CODE_GROWTHBOOK_KICK_ON_WARM_CACHE: When set, triggers an early GrowthBook feature-flag fetch even when the cache is already warm.CLAUDE_CODE_FEATURE_FLAGS_KICK_FROM_INITCLAUDE_CODE_FEATURE_FLAGS_REFRESH_INTERVAL_MSCLAUDE_CODE_FEDERATION_CACHE_DIR: Points at the directory holding the exchanged workload-identity-federation credential (default <config>/credentials/federation).CLAUDE_CODE_GROWTHBOOK_KICK_FROM_INIT: When set, starts the GrowthBook feature-flag fetch during initialization.CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL: Set to 5m to force the messages prompt cache to a five-minute lifetime.CLAUDE_CODE_NORMALIZE_PREFIX_CACHE: Set to false to disable prefix-cache normalization, or true to enable it at a 0.02 share when no server-side share is set; a server-side share between 0 and 1 takes precedence.CLAUDE_CODE_PROMPT_CACHE_TTL: Sets the prompt cache TTL for the main conversation (interactive, -p, and SDK turns) to "5m" or "1h".
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE?
Added between v2.1.321 and v2.1.323 and still present in v2.1.324.
How do I set CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE?
Export it before starting Claude Code (export CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.