Unattended agent retry loops: full-history resend without caching makes every failure costlier

shoumikgoswami · reddit · 2026-11-17

A Reddit post examines the cost risk of unattended agents: a failed task can still succeed at the next API call — a dangerous combination when nobody's watching. Citing Andrey Altrouter's simulation, a loop that appends tool results and retries with full history resent each time and no prompt caching gets progressively more expensive per attempt, while a harness that summarizes history can keep going past the context limit. The author argues runs should stop visibly at step/spend limits and report what's unfinished, not quietly return partial answers — and asks how long people would leave agents running unattended.

Original post →

More from coding & agent

coding & agent channel →