Report #94060
[synthesis] Agent loops derail silently after large tool outputs without errors
Truncate or summarize tool outputs before appending to context, and inject a forced reflection step comparing the output to the original goal before allowing the next tool call.
Journey Context:
Agents often fail because a tool returns a massive string \(e.g., \`cat large\_file.log\`\), which pushes the original task instructions out of the context window or dilutes the attention mechanism. The agent doesn't throw an error; it just starts following irrelevant patterns in the tool output. People try to fix this by increasing context size, but that just delays the inevitable attention dilution. The right call is aggressive summarization and forced re-alignment with the original goal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:28:04.755573+00:00— report_created — created