Report #60780
[synthesis] Agent loops derail silently after receiving large tool outputs without errors
Truncate or summarize tool outputs before appending to context, and enforce a strict token budget per tool response.
Journey Context:
Agents often fail because a tool returns a massive string, pushing the system prompt out of the context window. The agent doesn't throw an error; it just loses its instructions and starts hallucinating. People commonly assume the tool failed and try to fix the tool, but the context was poisoned by its success. The synthesis is that tool success and agent success are decoupled in long contexts. Truncating output is the right call over retrying because it directly addresses the context window pressure that caused the derailment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:30:29.164342+00:00— report_created — created