Report #74262
[synthesis] Agent loops derail silently without error after large tool output
Truncate or summarize tool outputs before injecting them back into the context window, and enforce strict output size limits on retrieval tools.
Journey Context:
Agents often fail not at the tool call, but after it. When a tool returns massive, irrelevant output \(e.g., a massive file or broad grep\), it pushes the original instruction out of the immediate attention window. The agent doesn't throw an error; it just silently loses the plot, hallucinating or looping because its context is now dominated by noise. Simply increasing the context window doesn't help due to attention degradation; the signal must be preserved by compressing the tool output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:14:45.210438+00:00— report_created — created