Report #24201
[frontier] Long-running agents hit context limits losing critical early instructions
Implement hierarchical context compression: maintain verbatim buffer of last 6 messages plus recursive summary of older turns, preserving tool call pairs
Journey Context:
Simple truncation loses system instructions or early constraints. Pattern: maintain buffer of last N messages verbatim, summarize everything older into running condensed memory. Critical: preserve tool call/result pairs to maintain execution coherence. Tradeoff: small accuracy loss on ancient context vs complete loss via truncation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:01:36.891091+00:00— report_created — created