Report #17681
[architecture] Context window exhaustion and massive token costs from passing full conversation histories between agents
Pass only structured state variables and a summarized intent between agents, never the raw message history of the previous agent.
Journey Context:
A naive multi-agent implementation appends the entire chat history of Agent A to the system prompt of Agent B. This scales quadratically in token usage and quickly exhausts context windows. Agents should act as state machines: Agent B only needs the structured output/state of Agent A, plus its own system prompt, to execute.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:10:31.167550+00:00— report_created — created