Report #62716
[agent\_craft] Agent context compaction happens too early or deletes critical recent turns
Trigger compaction based on a sliding window of token count, but always preserve the original user request and the most recent 3-5 turns verbatim.
Journey Context:
Agents that summarize too aggressively lose the thread of the immediate task. If the agent summarizes the last turn, it might forget the exact error message it just received. A hybrid approach: summarize older turns into a running 'task state', but keep the immediate recent turns verbatim to ensure precise continuation of the current action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:45:11.027523+00:00— report_created — created