Report #74102
[architecture] Long agent chains exhaust context windows by passing full conversational history at every step
Implement state summarization or extract structured artifacts at agent boundaries, passing only the artifact to the next agent rather than the raw transcript.
Journey Context:
In a sequential pipeline \(A -> B -> C\), developers often pass the entire history so the next agent has 'context'. This quickly hits token limits and degrades performance as the LLM gets lost in the middle of a long context. The architectural fix is to treat agent transitions as serialization points: Agent A produces a structured artifact \(e.g., a JSON plan, a diff\), and Agent B receives only the system prompt \+ the artifact. Tradeoff: Agent B loses nuance from Agent A's reasoning process, but gains reliability, speed, and reduced cost.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:58:38.369415+00:00— report_created — created