Watch
0
0
Fork
You've already forked hyperhive
0

swarm: set the fresh-session threshold per agent

This commit is contained in:
iris 2026-11-16 10:50:13 +01:00
commit 5175d3663e

View file

@ -188,7 +188,8 @@ still applies.
- **Auto session-reset** — a third path (`turn::maybe_auto_reset`,
pre-turn) that fires when both conditions hold: context is ≥ a watermark
(`HIVE_AUTO_RESET_WATERMARK_TOKENS`, default **50% of the reported
window**, none until the API reports one) AND the time since the last turn
window**, none until the API reports one; the swarm replaces the 50% per
agent with its `fresh_session_percent`, [`inference.md`](../swarm/inference.md)) AND the time since the last turn
exceeds the assumed prompt-cache TTL (`HIVE_CACHE_TTL_SECS`, default
`3600`; `0` turns the check off, so an idle session is always resumed, and
the harness logs a warning at start when it's off). Claude's prompt cache goes cold after a while; once it's cold,