Report #55628
[synthesis] Agent loses the plot and fails to extract necessary information from a tool return
Tools must return structured, truncated data with explicit 'next action' hints, rather than raw stdout or massive JSON blobs.
Journey Context:
The ReAct pattern relies on the LLM reading the observation and reasoning about it. When a tool \(like a search or file read\) returns thousands of lines, the LLM's attention mechanism dilutes, and it misses the one line it needed, leading to a wrong conclusion or a redundant tool call. Developers often just pass raw API responses. The fix is to shift the burden of summarization to the tool layer: tools should perform extraction/compression before returning to the agent, or use structured outputs that the agent can parse reliably.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:52:04.553827+00:00— report_created — created