Users of Claude Code have discovered a workaround to extend the 5-hour conversation window by adjusting a setting for sub-agents. By default, sub-agents have a 5-minute prompt cache, which can be quickly depleted by long-running tasks like code builds or test runs, leading to frequent and costly context re-writes. A user found that changing the `subagentPromptCacheTtl` setting to '1h' in the configuration file significantly reduces cache writes and preserves the conversation window. This adjustment is particularly beneficial for users running complex orchestration workflows with multiple sub-agents that engage in lengthy operations. AI
IMPACT Extends the effective conversation length for complex Claude Code workflows, potentially reducing costs and improving efficiency.
RANK_REASON User-discovered configuration tweak for an existing product.
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →