Should an agent keep tool-call state in the model or the app?

Reddit r/AI_Agents News

Summary

A developer discussion of the tradeoffs between keeping tool-call working state in the LLM (simpler prompts but messy retries) versus owning it in the application (cleaner control flow but less agentic), highlighting duplicated or stale tool calls after timeouts as a key failure mode.

I keep running into this in a small app. If the model owns the working state, the prompts stay simpler, but retries and partial failures get weird fast. If the app owns state, the control flow is cleaner, yet the agent starts feeling more like a scripted workflow than an agent. The failure mode I keep seeing is duplicated or stale tool calls after a timeout, especially when one tool mutates state and the next one assumes it did not.
Original Article

Similar Articles

Your agent's retry logic dies when the agent does

Reddit r/AI_Agents

The author shares lessons from putting an AI agent with write access into production, explaining that retry logic inside the agent loop fails when the process dies. They advocate for treating side-effectful tool calls as durable background jobs with idempotency keys.