How-to Guides
Loop control
Step and tool-call limits for agent runs.
Cap how long an agent may loop so a bad tool call cannot spin forever.
Typical knobs (Worker / agent config):
maxSteps— model turns in one runmaxToolCalls— tools the model may invoke
See Prune messages and Subagents.