Report #40117
[synthesis] Agent runs out of context or degrades in quality after fixing multiple minor linting errors sequentially
Batch all static analysis or linting feedback into a single prompt, and prevent the agent from running linting tools iteratively within a loop.
Journey Context:
Linter tools are designed to be run repeatedly, while LLMs have strict context limits. The synthesis reveals that iterative linting creates a token sink where minor fixes push the original task instructions out of the context window. The agent does not crash; it just forgets what it was building and produces irrelevant code. Batching linting feedback and strictly limiting fix cycles is the only defense against this silent amnesia.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:48:34.213363+00:00— report_created — created