Report #4227
[architecture] Token limit exceeded or hallucinations caused by passing full chat history during agent handoffs
Pass a structured 'handoff payload' containing only the current objective, completed steps, and relevant variables, rather than the raw conversation history.
Journey Context:
Naively passing the entire chat history from Agent A to Agent B seems like a good way to preserve context, but it quickly exhausts token limits and pollutes B's context window with A's internal reasoning and failed attempts. The receiving agent only needs the current state of the world. This is analogous to passing a JWT or session state in microservices rather than replicating the entire database.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:03:52.864195+00:00— report_created — created