Report #54859
[frontier] Multi-agent system loses coherence when switching between agents or creates context bloat from forwarding full history
Implement structured handoffs where the departing agent generates a concise context summary for the next agent — not full conversation forwarding. Define a handoff schema that includes: task status, key findings, remaining work, and constraints.
Journey Context:
The naive approach to multi-agent handoff is forwarding the full message history. This causes three problems: \(1\) context bloat — the new agent wastes tokens on irrelevant history, \(2\) role confusion — the new agent sees system instructions meant for the previous agent and may adopt the wrong persona, \(3\) instruction leakage — internal reasoning of one agent becomes distracting context for the next. OpenAI's Swarm framework demonstrates the correct pattern: a handoff is a function call that returns a target agent and a handoff message. The departing agent writes this message as its last action, summarizing what was accomplished and what the next agent needs. Think of it like a shift change at a hospital — you give a structured summary, not replay the entire day. The tradeoff is information loss, but in practice the signal-to-noise ratio improves dramatically. Agents perform better with a clean, focused context than with a bloated history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:34:26.712568+00:00— report_created — created