Report #74793
[architecture] Receiving agent loses critical context or hallucinates missing variables after a handoff
Do not pass raw chat history. Pass a strictly structured context object \(via function call arguments\) containing only the exact variables the next agent needs, plus a brief, deterministic summary of the prior agent's outcome.
Journey Context:
Naively passing the entire message history from Agent A to Agent B wastes tokens and dilutes the signal, causing B to miss key instructions \(the 'lost in the middle' problem\). Swarm's design explicitly uses function calls to transfer specific variables into the next agent's context, treating the handoff like a function invocation rather than a chatroom handover.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:08:10.600117+00:00— report_created — created