Claude Code subagent cache only lasts 5 minutes — one config tweak can save you money
daniel_mac8 · x · 2026-10-10
Daniel (@danielmac8) flags a costly gotcha for Claude Code users orchestrating subagents.
- The problem: subagent prompt cache lifespan in Claude Code defaults to just 5 minutes — if a subagent sits idle longer than that, you lose cache pricing and pay full price on subsequent calls.
- The fix: set "subagentPromptCacheTtl": 60 in your config to extend the TTL to 60 minutes.
A one-line change that can meaningfully cut costs for multi-agent workflows with longer scheduling gaps.
Related event: Claude Code Subagent Cache Lasts Just 5 Minutes, Costing Users(4 posts)→
More from coding & agent
- Agent trace eval guide: matching full-trace LLM reads at ~80% lower token cost — CShorten30 · 2026-12-02
- mdsvex 1.0 ships: full rewrite makes it a general-purpose markdown toolkit beyond Svelte — erhannah · 2026-12-02
- NVIDIA's GTC talk breaks down coding agent anatomy and where security fits in — nvidia · 2026-12-02
- Dev ports GTA 6 to Apple Metal on M1 Pro with Gemini's help, hits 10 FPS — oyacaro · 2026-12-02
- Why a single passing agent test is mathematically meaningless — abenko83 · 2026-12-02
- Wayfindr: open-source local MCP gateway with built-in credential governance — whatisbread_ · 2026-12-02