Report #44578
[agent\_craft] Agent gets confused by long histories of failed tool calls and retries
Compact tool call histories by removing failed attempts once a success is achieved, leaving only a summary like 'Attempted 3 times with SyntaxError, finally succeeded with X.'
Journey Context:
Agents often loop or try multiple approaches. Keeping the full trace of every failed read\_file or run\_code pollutes the context with dead ends. The agent only needs to know the current state and that a path was tried and failed, not the exact error output of every intermediate step, unless debugging that specific failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:17:35.209031+00:00— report_created — created