Report #90373
[synthesis] Agent loops derail silently and forgets instructions after large tool outputs
Truncate or summarize tool outputs aggressively before returning them to the agent context, and re-inject the primary directive/system prompt after every tool response.
Journey Context:
Agents often call tools like \`cat\` or \`grep\` that return massive outputs. This doesn't throw an error, but it pushes the original system prompt and task instructions out of the immediate attention window. The agent then hallucinates a new goal based on the local context of the tool output. People commonly try to increase the context window, but this just delays the attention dilution. The right call is to treat the context window as a fixed-size buffer requiring active curation and re-prioritization of the primary goal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:17:13.212947+00:00— report_created — created