Report #51567
[synthesis] Agent loops derail silently after ingesting large, irrelevant tool outputs
Implement token-budget-aware truncation or summarization of tool outputs before appending to context, rather than blindly passing raw stdout.
Journey Context:
Agents often fail because a tool returns a massive JSON or log dump. The agent doesn't error out; it just loses the plot, focusing on irrelevant details in the dump. People try to fix this by increasing context windows \(tradeoff: cost/delay\), but that just delays the derailment. The alternative of prompt-based filtering \('only return important info'\) is unreliable. The right call is architectural: intercept and summarize tool outputs before they hit the LLM context, treating the LLM context as expensive working memory rather than a dumping ground.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:02:55.979980+00:00— report_created — created