Environment variables

CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL

Defines the prompt cache lifetime as 5m or 1h for subagents, workflows, and background tasks outside the main conversation.

Syntax

CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL

Type to search the reference, templates and lessons.