Agent Limits
Limits cap how much one background agent can do in a period of time. They protect against an agent that gets triggered far more than expected, for example a busy Slack channel or a webhook stuck in a retry loop, and against an agent that calls an expensive or sensitive tool too often.
Each agent has its own limits, separate from the organization's rate-limit policies:
| Limit | Counts | Set it in |
|---|---|---|
| New sessions | Conversations the agent starts. | The agent's Settings tab, Limits section. |
| Messages | Every message the agent receives, including the one that starts a session. | The agent's Settings tab, Limits section. |
| Tool rate limit | Calls the agent makes to one tool. | The menu on the tool's row in the Tools tab. |
Every limit is a number per minute, hour, or day. You can set several, for example 100 messages per hour and 500 per day. The first one reached stops the agent.
Limit sessions and messages
- Open the agent and select the Settings tab.
- Open the Limits section.
- Under New sessions or Messages, select Add limit, set
AllowNperminute, hour, or day, and choose for everyone or per person. - Select Save.
A session starts with the first message for a new session key: a new Slack thread, a new webhook or API conversation, or a new test in the Test Agent panel. Every later message in that conversation counts as a message, not a session.
Both limits count everything that reaches the agent: Slack messages and workflow steps, API and webhook triggers, scheduled triggers, the invoke API, and the Test Agent panel. Follow-ups you send from the Sessions tab don't count.
Per-person limits
A per-person limit gives each sender their own count, so one busy user doesn't block everyone else. Willow knows the sender for Slack messages and for API and webhook triggers that name the user (x-user-email or x-user-id). Messages with no known sender count only against limits for everyone.
Webhook callers choose who they name, so keep a limit for everyone alongside per-person ones.
Limit a tool
- Open the agent and select the Tools tab.
- On the tool's row, open the menu (the three dots) and select Add rate limit.
- Set
AllowNcalls perminute, hour, or day. Select Add limit to add another, then Save.
The row shows the limits as a badge, for example 10/minute, 200/day. Select the badge, or Edit rate limits in the menu, to change them. Remove rate limits takes them all off.
A tool limit counts every call this agent makes to the tool, whoever triggered the run. It is checked together with the organization's rate-limit policies, and a call has to pass both.
See how much is used
The agent's Overview tab has a Limits card listing every limit the agent has, with how much of it the current period has used, for example 3 / 20 per hour. A limit that has been reached turns red. Hover a row to see the exact count and when the period resets. Per-person limits aren't listed, since each person has their own count. Manage opens the Limits section of the Settings tab.
Choose built-in tools
Agents on Willow Agents and Claude Managed Agents also get Claude's built-in tools, which run in the agent's own sandbox rather than through Willow: Bash, Read, Write, Edit, Glob, Grep, Web fetch, and Web search. All eight are on by default. To take one away, for example Bash from an agent that only answers questions:
- Open the agent and select the Settings tab.
- Open the Platform Configuration section. In the Agent Configuration card, Built-in tools shows which tools are off. Select the sliders icon next to it to see a switch for each tool. The switches show from the start once any tool is off.
- Turn off the tools the agent should not have, and select Save Changes.
- Deploy the agent. The change reaches the agent's platform only then.
On Claude Managed Agents, this list replaces the single Agent toolset switch. Turning every tool off is the same as turning that switch off.
Git Proxy runs in Bash, so an agent with Git Proxy repos can't use git while Bash is off. The card and the agent's Git settings both show a warning when that happens.
Limit web domains
By default, Web search and Web fetch can reach any website. To limit them on a Willow Agents or Claude Managed Agents agent, open the agent's Settings tab → Platform Configuration, select the sliders icon next to Built-in tools, and under Allowed web domains enter one domain per line (up to 64), select Save Changes, and deploy the agent. Leave the list empty for no limit.
- Enter plain domains like
docs.example.com, with nohttps://, path, port, or*. - A domain covers its subdomains:
example.comcoversdocs.example.com, but not the other way around. - Fetching a page outside the list fails, and search leaves out results from other sites.
- With a list set, Built-in tools shows how many domains the web is limited to. The field is hidden while both web tools are off.
Web fetch can only open a link that already appeared in the conversation, such as in the first message or an earlier search or fetch result. This is a rule of Claude's web fetch tool, not a Willow setting. See Restrict web search and web fetch domains.
When a limit is reached
The count starts with the first message (or call) and resets when the period ends. Once the count goes past the limit, Willow stops until then:
| What was blocked | What happens |
|---|---|
| A Slack message | The agent's bot replies in the thread with the reason, when to try again, and who can raise the limit. |
| An API, webhook, or invoke call | The call fails with status 429 and a Retry-After header holding the seconds to wait. |
| A test in the Test Agent panel | The panel shows the same message. |
| A scheduled trigger | The run is skipped. The trigger fires again at its next scheduled time. |
| A tool call | The call fails, and the agent is told the limit and when to try again. The call shows in the logs as rate limited. |
The message for a session or message limit reads like this:
This agent has reached its limit of 20 new sessions per hour. Try again in 12 minutes, or ask the agent's owner (Dana Levi) or a Willow admin to raise the limit.
For a per-person limit it starts with "You've reached your limit of…" instead.
A blocked message is not queued and doesn't count. Send it again once the period ends.
Get past a limit
| Way | Who can do it |
|---|---|
| Wait until the period ends. The message says how long. | Anyone. |
| Raise or remove the limit. A higher limit applies right away to the current period. Changing the period starts a new count. | The agent's owners, and admins who can edit background agents. |
Related
- Rate Limits: per-user caps on tool calls across the organization
- Assign Tools to an Agent
- Background Agents reference