Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: let an agent compact from 40% context usage instead of 66%

This commit is contained in:
damocles 2026-11-14 12:35:27 +01:00
commit 183e55dd80

View file

@ -412,7 +412,7 @@ impl AgentServer {
#[tool(
description = "Compact the current session's context, mirroring the operator's \
dashboard `/compact` button. Gated: only honoured when this agent's last \
completed turn used more than 66% of the effective context window — below \
completed turn used more than 40% of the effective context window — below \
that the call is refused with an explanation and has no effect. On a pass, \
queues compaction for the end of the current turn (same deferred mechanism \
the dashboard button uses, so it never races a live claude process); the \