Report #95569
[agent\_craft] Tool execution errors terminate agent loop or cause infinite retry loops without context
Always feed structured error output \(stderr, exit codes, exception type\) back to the LLM in the next turn with a 'correction' role, allowing a fixed number of retries
Journey Context:
Silent failures or natural language summarization of errors \('the tool failed'\) strips the diagnostic signal \(stack traces, line numbers\) needed for repair. By returning raw structured error output in a distinct message block, the model can perform precise error localization. This mirrors the ReAct pattern where observations \(including errors\) drive the next action rather than terminating the episode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:59:24.655427+00:00— report_created — created