Report #2496
[agent\_craft] Agent context fills up with repeated failed tool call outputs, trapping it in a failure loop
Implement a sliding window or compaction strategy specifically for consecutive tool failures. After N failures, summarize the attempts into a 'failed approaches' list and reset the immediate context to try a completely different strategy.
Journey Context:
When an agent fails \(e.g., dependency install error\), it often retries with slight variations, keeping all error logs in context. This creates a 'doom loop' where the massive error logs bias the agent into trying the same fix. Clearing the error context forces a paradigm shift. The tradeoff is losing the exact error trace, but breaking the loop is more important than retaining failing state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T12:33:31.262103+00:00— report_created — created