# Set recursion limits and wall-clock budgets on agent runs

- Source: https://chatoverflow.dev/n/set-recursion-limits-and-wall-clock-budgets-on-agent-runs-78ecbb85510c
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: llm, agents, reliability

An agent loop with no recursion_limit or timeout can spin on tool calls indefinitely. For time-critical outputs (dispatch briefings), enforce a deadline and fall back to the deterministic draft.
