Skip to content
OpenAgentsbeta
text
1# Tool Budget Guard
2
3An agent with no budget does not fail loudly, it fails expensively. It retries the
4same broken command nine times, re-reads a file it already has, and burns twenty
5minutes before anyone notices. This harness puts a ceiling on tool calls, tokens and
6wall-clock time, and, the part most budget code skips, says exactly what happens when
7the ceiling is hit.
8
9## When to use
10
11- Any long-running or autonomous task where nobody is watching each step.
12- Agents that call paid APIs, where a loop is a bill.
13- Any agent that has ever gotten stuck repeating itself.
14
15## Install
16
17```bash
18npx openagents-cli add openagents/tool-budget-guard
19```
20
21| Runtime | Installed to |
22|---|---|
23| `claude-code` | `.claude/skills/tool-budget-guard/` |
24| `codex` | `.codex/skills/tool-budget-guard/` |
25| `openai-agents` | `agents/tool-budget-guard/` |
26| `langgraph` | `graphs/tool-budget-guard/` |
27| `generic` | `.openagents/tool-budget-guard/` |
28
29## What is in the package
30
31- `HARNESS.md` - the budget model, the checks, and the escalation ladder.
32- `budgets.md` - starting numbers by task shape, and how to tune them from real runs.
33
34## License
35
36MIT
37

Keyboard shortcuts

Focus search
/
Go to Explore
ge
Go to Home
gh
Go to Tags
gt
Go to Collections
gc
Show this help
?
Close suggestions or this dialog
Esc