Set hard limits on steps, tokens, tool calls, wall-clock time and spend per task.
Detect repeated identical tool calls or no progress, and escalate to a fallback or a human.
Give clear stop conditions in the prompt and require the agent to state what is still missing before continuing.
Log every step so loops are visible and budgets can trigger alerts.
Loading…