Agent loops on tool errors: the fix is in what tools return, not the prompt

block_intelligence · reddit · 2026-11-27

A Reddit practitioner breaks down a common agent failure mode: a tool call fails and the model retries with identical args until it hits the step limit, wasting calls without crashing.

Key fixes, mostly outside the prompt:

The author closes by asking whether others let models see transient errors at all, or handle retries in code and only surface fixable ones.

Original post →

More from coding & agent

coding & agent channel →