Report #22984
[architecture] Passing full conversation history between agents causes context window overflow and cost explosion
Use structured state objects or summarization for handoffs instead of raw conversation history concatenation.
Journey Context:
When Agent A hands off to Agent B, developers often pass the entire chat history. This quickly exceeds context limits and degrades the LLM's attention \(lost in the middle\). Instead, Agent A should output a structured handoff packet \(a JSON object summarizing findings, current state, and next steps\) which becomes the initial context for Agent B.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:59:12.792183+00:00— report_created — created