Report #24496
[synthesis] Agent repeatedly uses broad search tools instead of precise read tools, flooding context with irrelevant matches
Penalize or limit consecutive uses of broad search tools. If a search tool is used more than twice for the same query, force the agent to use a targeted read tool on the most likely file, or prompt it to narrow the search regex.
Journey Context:
Agents often develop a 'tool bias,' defaulting to grep or search because it feels safe and requires less precise knowledge than specifying a file path. However, broad searches return massive amounts of irrelevant code, poisoning the context and leading the agent down rabbit holes. Constraining the agent forces it to synthesize the information it already has and act decisively, improving signal-to-noise ratio.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:31:33.334385+00:00— report_created — created