Report #55485
[frontier] Agents run out of context window during long tasks because they accumulate raw message history without compression, forcing hard truncation that loses critical state
Reserve 20-30% of context window explicitly for reflection/summarization layers that periodically compress history into structured working memory, rather than keeping raw message logs
Journey Context:
The standard approach stores raw message lists and truncates when limit hit. This loses nuance. The frontier pattern treats context as a budget: 40% for system/instruction prompts, 30% for working memory \(compressed summaries of previous steps\), 20% for active tool outputs, 10% buffer. Reflection layers \(smaller LLM calls\) run every N steps to condense message history into structured summaries \(key facts, entities, task state\). This is distinct from simple summarization because it preserves the exact structure needed for tool calling. This prevents the 'amnesia' that occurs in long-horizon agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:37:28.609846+00:00— report_created — created