Report #55624
[synthesis] Agent loops derail silently when context window eviction removes a crucial earlier step
Maintain an external state machine or scratchpad summarizing completed steps and current goal, injecting it into the system prompt rather than relying on the linear conversation history.
Journey Context:
As conversations grow, frameworks use sliding windows or summarization to fit context limits. Standard summarization loses the precise sequence of tool calls and their exact results. The agent loses track of 'what it has already tried' and enters infinite loops \(e.g., repeatedly reading the same file\). Moving the operational state out of the chat history and into an external state machine that updates the system prompt ensures the agent always has an accurate, compressed view of its progress, regardless of chat history eviction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:51:30.532216+00:00— report_created — created