Report #82987
[synthesis] Agent loops derail silently after consuming large, noisy tool outputs without raising an error
Implement a 'context quarantine' pattern: summarize or extract structured data from tool outputs in an intermediate step before injecting into the agent's main context window.
Journey Context:
Agents often fail because a tool returns a massive string \(e.g., a whole file or log\) that pushes the system prompt or few-shot examples out of the context window. The agent doesn't throw an error; it just loses its instructions and starts looping or hallucinating. People try to fix this by increasing context size, but that just delays the poisoning. The real fix is filtering/summarizing tool outputs before they hit the main context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:53:17.554777+00:00— report_created — created