Tool Budget Guard
HarnessFreeCap an agent's tool calls, tokens, and wall-clock time, with a defined escalation path when a budget runs out
v1.0.0MIT1 download
npx openagents-cli add openagents/tool-budget-guard --runtime claude-code| schema | 1 |
| name | tool-budget-guard |
| owner | openagents |
| version | 1.0.0 |
| kind | harness |
| license | MIT |
| entry | HARNESS.md |
| runtimes | claude-code, codex, openai-agents, langgraph, generic |
| tags | harness, guardrails, cost, reliability, loops |
| capabilities | — |
| pricing | free |
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| max_tool_calls | number | No | Hard ceiling on tool calls for one task |
| max_wall_clock_s | number | No | Hard ceiling in seconds for one task |
| on_exhausted | string | No | report | ask | abort - what to do when a budget is spent |