Report #37750
[synthesis] Agent loops derail silently due to noisy tool outputs polluting the context window
Truncate, summarize, or structurally filter tool outputs \*before\* injecting them back into the agent's context. Never pass raw stdout directly.
Journey Context:
Developers often think giving the agent 'all the info' helps it make better decisions. In reality, LLMs suffer from lost-in-the-middle and attention dilution. The tradeoff is between losing specific details \(by summarizing\) and losing the plot entirely \(by keeping raw output\). The right call is aggressive structural extraction \(e.g., extracting only error lines from logs\) over generic summarization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T17:50:40.560767+00:00— report_created — created