Report #53075
[synthesis] Agent loops derail silently without error after large tool outputs
Implement strict output truncation and summarization in tool responses, and inject a 'context health check' step before planning the next action.
Journey Context:
Agents often fail because a large tool output \(e.g., cat large\_file\) pushes the system prompt or few-shot examples out of the context window. The model doesn't throw an error; it just loses its instructions and starts hallucinating or looping. People often blame the model's reasoning, but the root cause is context window eviction of the task prompt. Truncating tool outputs and explicitly re-injecting the primary objective at each step prevents this eviction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:34:47.949086+00:00— report_created — created