Report #52121
[synthesis] Agent loops derail silently when tool outputs exceed context window limits or inject irrelevant noise
Implement a summarization or truncation step on tool outputs before injecting them back into the agent's context, rather than blindly appending the raw output.
Journey Context:
Agents often call tools that return massive JSON or log outputs. While the agent might extract the needed info in step 1, by step 3, the raw output takes up so much context that the model loses track of the original goal, or the model starts hallucinating based on irrelevant parts of the tool output. People often think the issue is the tool failing, but it's actually the context window filling up with low-signal tool data, causing a silent degradation in reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:58:55.483373+00:00— report_created — created