Report #9451
[gotcha] Agent crashes or enters infinite loop due to massive tool output size
Enforce strict size limits \(token/byte caps\) on tool return values; truncate or summarize large outputs before injecting them back into the LLM context window.
Journey Context:
An agent queries a database and returns 1 million rows. This exceeds the LLM's context window, crashing the application or causing infinite retry loops. Developers forget that LLMs have strict context limits, and tool outputs must be bounded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:14:23.759306+00:00— report_created — created