Ember: keep-warm sessions
Keep an idle Claude session’s prompt cache warm while you’re away, so returning can reuse the cache instead of rewriting it.
Claude keeps a conversation’s prompt in a cache that expires when you stop. Coming back after it expires means paying to write the whole prompt again. Ember sends a tiny request now and then to keep the cache alive while you’re away, and stops when it’s no longer worth it.
Choose a mode
- Open Settings › Performance › Ember. Smart is on by default when you haven’t saved a choice. Saved Off and Chosen tabs remain as you set them.
- Use Ember in a tab’s menu for Off or +1 hour. Smart shows its reason on each tab.
- A small flame shows ping progress. The default is three pings per away period, subject to the daily cap.
What it costs
- A daily list-price-equivalent cap, $2 by default (you can set $0.50 to $10), and at most 12 pings per session per day. Ember checks the estimated next-ping cost before sending; an unexpected cache miss can exceed the estimate. This is not a provider billing cap.
- It pings only when the saving you can expect from coming back beats the cost of the ping.
- It never pings after the cache has already expired, because that would only pay for the rewrite.
- Only idle or finished Claude sessions with at least 30k cached tokens qualify. A sleeping session is pinged only if you chose it.
How each ping works
A ping is a one-turn request forked from your session. It’s never saved to the conversation and it uses no tools. It runs in the session’s own folder at background priority, with your own Claude sign-in, and replays the session’s own launch settings.
How savings are measured
- Saved counts only realized savings. It goes up when your next real message arrives after the cache would have expired and still reads at least 90% of the pinged prompt.
- Every ping checks itself. If the cache wasn’t read, that counts as a miss. After two misses in a row, XAgents stops warming that session; choosing Ember starts a fresh attempt.
- Spend is the list-price estimate for the pings; it is shown separately from avoided rewrites.
- Dollar figures are API list-price equivalents. On a subscription they measure value, not a bill.
The Ember studies and limits separate the 11 October background-session and 15 October interactive-TUI studies, both forced to a five-minute cache lifetime, from the estimated 200k-token example. The interactive return read 75,057 cached tokens; its unpinged control rewrote 64,325. Neither study proves the normal one-hour scheduler ping-and-return outcome. Ember’s experimental return model can learn from eligible local timing and cache outcomes. Learning is currently limited to XAgents project sessions on this Mac; other projects do not contribute training examples. With too little evidence, it keeps the existing model or timing rule. How it’s doing in Settings separates observed outcomes, costs and unknown measurements.