Tool Limits

Configurable iteration cap (default 40) prevents runaway tool loops.

Chapeta Tool Limits safety settings
Chapeta Tool Limits safety settings - expanded view

Chapeta enforces a configurable iteration limit on tool execution. Each tool-use round in a conversation turn counts as one iteration. The default cap is 40 iterations per turn, adjustable from 1 to 9,999 in Settings. When the limit is reached, the AI is asked to summarize its progress rather than continuing to execute tools. This prevents runaway loops and accidental API cost spikes.

How It Works

  1. Each round of tool execution within a single AI turn increments the iteration counter.
  2. When the counter reaches the configured limit (default 40), the AI is instructed to stop and summarize.
  3. The counter resets when a new conversation turn begins (you send a new message).
  4. You can adjust the limit in Settings under Tool Iterations (range: 1–9,999).
  5. Blocked command patterns and path restrictions are enforced independently of the iteration limit.

Benefits

  • Prevents the AI from entering infinite loops that consume API credits.
  • Configurable: raise the limit for complex multi-step workflows, lower it for tighter control.
  • Provides a natural pause point for you to review what happened.
  • Works in all approval modes, including Autopilot.

Tradeoffs

  • Complex agentic workflows may need a higher iteration limit than the default.
  • If you hit the limit, you need to send a new message to continue.

FAQ

Security you can verify