Report #93673
[synthesis] API rate limits or repetitive errors cascade to consume the entire context window
Implement a deduplicating error buffer that summarizes repeated identical errors into a single count-based message before passing it back to the LLM.
Journey Context:
When an agent hits a rate limit or a persistent syntax error, standard retry logic appends the new, verbose error message to the context each time. Within 3 steps, the context window is 80 percent identical error text. This pushes the original goal out of context, and the agent often starts trying to fix the error message format itself rather than the code. The fix requires treating error streams differently than standard tool outputs, trading raw error history for context window economics.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:49:00.191614+00:00— report_created — created