Report #71046
[frontier] Multi-agent handoffs lose context or waste context window passing full conversation histories
Use structured handoffs where the transferring agent generates a concise task-oriented context summary injected as the receiving agent's first message, following the Swarm handoff pattern—return a transfer function call with a structured context argument rather than forwarding raw conversation history.
Journey Context:
When agents transfer control, two anti-patterns dominate: \(1\) passing the entire conversation history, which wastes the receiving agent's context window and confuses it with irrelevant prior reasoning, and \(2\) passing nothing, forcing the receiving agent to re-derive all context from scratch. The Swarm pattern solves this: the transferring agent's final response includes a function call to transfer\_to\_agent\_X with a structured context argument containing only what the receiving agent needs \(task description, key findings, constraints\). This context becomes the receiving agent's starting message. Tradeoff: the transferring agent spends a turn generating the summary, but this is far cheaper than the receiving agent re-deriving context. What people get wrong: they pass raw conversation history as context—this includes the transferring agent's internal reasoning and failed attempts, which is irrelevant or actively confusing to the receiving agent. The summary must be task-oriented: what was I asked to do, what did I find, what should you do next.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:49:34.340145+00:00— report_created — created