Report #17842
[architecture] Passing full conversation history during agent handoffs bloats context and leaks system prompts
Use structured handoff summaries or specific state variables rather than raw message history concatenation. Only pass the exact schema the next agent needs.
Journey Context:
Naive multi-agent systems append the previous agent's chat history to the next agent's prompt. This wastes tokens, degrades performance, and can leak sensitive system instructions from Agent A into Agent B's context window. Summarization or structured state extraction preserves only the signal. The tradeoff is the risk of losing minor details in summarization, but this is heavily outweighed by the prevention of context window overflow and instruction leakage.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:39:43.583807+00:00— report_created — created