prompt cache

{#if !loaded}
loading…
{:else if !data || !data.runs.length}
no runs recorded yet
{:else} {#if data.strategy}

caching what phi re-sends every request: {#each Object.entries(data.strategy) as [what, ttl], i (what)}{what.replace('_', ' ')} {ttl}{i < Object.entries(data.strategy).length - 1 ? ' · ' : ''}{/each}

{/if}
{#if data.saved !== null && data.billed_tokens !== null} {pct(data.saved)} estimated input savings {tokens(data.uncached_cost_tokens)} tokens of context, billed as {tokens(data.billed_tokens)} — across {data.window_runs} run{data.window_runs === 1 ? '' : 's'} {:else} {pct(data.hit_rate)} input served from cache Cost estimate unavailable for mixed models, other providers, or older records without provider metadata. {/if}
{data.warm_starts}/{data.window_runs} runs reused at least 1,024 input tokens on their first request
{data.collapses} Anthropic requests showed a large drop in cache reads; a changed prefix or expiry may explain it
{#if showRuns}
reused stored uncached
{/if} {/if}