Prompt cache boundary playground

Move the cache boundary and the changing value through an agent's prompt, and watch reads, writes and cost. A companion to my notes on Lumer et al., "Don't Break the Cache" (arXiv:2601.06007v2).

1. Pick one of the paper's four cache modes, or move things yourself

2. One request, front to back

read from cache written to cache plain input (computed, not stored) ▼ cache boundary ▲ changing value

Drag along the strip to put the boundary at the end of a segment. S = tools + system prompt, Q = question, C = assistant message with tool call, R = tool result.

3. Whole run: input cost only

read from cache
written to cache
plain input
input cost
same tokens, no caching
saving (negative = costs more)

The four modes with your current sizes, prices, sessions and machines:

ModeReadWrittenPlainCostSaving

4. The task, the prices, and where requests go

5. Requests

RequestMachineLengthReadWrittenPlainCost

Click a row to show it in the strip. With several sessions, the table lists all of them in order.

Assumptions