swarm: set the fresh-session threshold per agent
This commit is contained in:
parent
49ee678117
commit
5175d3663e
1 changed files with 154 additions and 32 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue