Files
hermes-agent/website/docs/developer-guide
Teknium d8315dec32 feat(agent): cache warming is always on during long tool runs; idle mode and config knob removed
Streaming warming (a keep-alive while a tool call is still running) has no
real tradeoff: the next request is certain, one keep-alive is a cache read
(~1/12 of the write it prevents), and the economics gate already refuses
cheap, unpriced and subscription-included routes. So it is always on and
prompt_caching.cache_warming is gone: warming follows prompt caching itself
(no cache_control markers -> nothing to warm).

Idle warming (keep-alives after the turn settled, betting p=0.15 that the
user replies within the TTL) was speculative spend, so the mode is deleted
rather than kept behind a knob: every turn exit now cancels the warmer.

One guard is new: a run's refreshes together may never cost more than the
single cache miss they prevent. On a 5-minute gateway route a one-hour tool
call would otherwise pay ~13 reads (> one 1.25x write); the run now stops
at floor(miss / warm) refreshes. Cache-parity forks opt out through
_skip_prompt_cache_warming instead of the removed mode.
2026-11-18 03:40:34 -08:00
..