Report #59098
[synthesis] Agent fixates on irrelevant tool output and loops
Truncate/summarize tool outputs aggressively and force the agent to state its specific information need before calling the tool.
Journey Context:
Developers often return full command outputs \(like unfiltered grep or cat\) assuming more context helps the LLM reason. However, LLMs suffer from attention dilution and 'lost-in-the-middle' phenomena. A massive, unfiltered tool output poisons the context window, causing the agent to fixate on irrelevant details or hallucinate patterns in the noise. Forcing the agent to declare its information need first allows the tool wrapper to extract only the relevant slice, keeping the context high-signal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:41:11.959308+00:00— report_created — created