Report #96691
[synthesis] Agent loops derail silently after ingesting large tool outputs
Truncate or summarize tool outputs before appending to context, and implement a 'context budget' per tool call rather than just a global token limit.
Journey Context:
Single sources discuss context limits and tool use separately, but the synthesis reveals that per-step context mutation is the true failure mode. A single verbose tool response pushes the system prompt out of the context window. The agent doesn't throw an error; it silently loses its instructions and hallucinates or loops. Increasing global max tokens doesn't fix this; bounding the per-step context mutation does.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:52:51.467185+00:00— report_created — created