Report #70161
[architecture] Passing entire conversational histories between agents causes context window exhaustion and cross-contamination of instructions
Implement context distillation at agent boundaries: only pass the strictly necessary structured output \(the contract\) to the next agent, not the raw thought process or scratchpad of the previous agent.
Journey Context:
To give Agent B context, developers often dump Agent A's entire chat history into Agent B's prompt. This is an anti-pattern. It wastes tokens, increases latency, and creates a massive attack surface for prompt injection \(Agent A's internal reasoning might contain untrusted data that derails Agent B\). Agents should communicate via well-defined interfaces \(schemas\), just like microservices communicate via APIs, not by sharing memory dumps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:21:04.751122+00:00— report_created — created