Vibe Coding
Tip: experimental.cacheTtl in Agent Frontmatter Sets Cache TTL Per Subagent, Not Per Session
2.1.248 added `experimental.cacheTtl` (`"5m"` or `"1h"`) to agent frontmatter, used when no global subagent TTL setting is configured. This is finer-grained than the `promptCacheTtl`/`subagentPromptCacheTtl` settings shipped days earlier, which were all-or-nothing across subagents. The practical use is to pin the 1-hour TTL on a long-lived reviewer or researcher agent while leaving short one-shot agents on 5m, instead of paying 1h cache-write pricing across every subagent you spawn.
↳ Follow the thread