Report #26318
[synthesis] Context window poisoned by large tool outputs \(wall of text cascade\)
Implement a 'summarize-then-respond' boundary at tool outputs. Never dump raw stdout into the agent's main context; instead, use a secondary extraction step to pull only the relevant slice or summary before appending to the primary prompt.
Journey Context:
Agents often read large files or logs to find a single error. Dumping the raw output works for small files but silently derails the agent on large repos. The LLM's attention mechanism gets overwhelmed by irrelevant boilerplate, leading to hallucinations based on noise. Increasing context window size is expensive and still degrades attention. The right call is structured extraction at the tool boundary, trading a slight delay for high-fidelity context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:34:44.990153+00:00— report_created — created