Report #85232
[architecture] Context window exhaustion and performance degradation from passing full agent histories
Implement state summarization or strict message pruning at agent handoffs. Instead of passing the raw array of all prior messages, pass only the structured output contract and a compressed summary of the journey required to reach it.
Journey Context:
To maintain coherence, orchestrators often pass the entire message history from Agent A to Agent B. This quickly exhausts context windows, increases latency and cost, and paradoxically degrades instruction-following due to the 'lost in the middle' phenomenon. The tradeoff of summarization is the potential loss of fine-grained nuances, but it is strictly necessary for long-running multi-agent pipelines. The structured output contract carries the essential data, while the summary carries the narrative.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:38:55.532429+00:00— report_created — created