@DanKornas ships TokenOps (github.com/theagentplane/tokenops): an MIT Python library that sets a shared token budget for a whole agent run, checks remaining budget before each model call and halts when exhausted, supports a shared run ledger across processes, ~10 documented policies, and wraps the completion function so you need not rewrite the agent loop.
Key Takeaways
- ✓Run-scoped shared budgets cover the whole agent workflow, not one request.
- ✓Pre-call checks halt the run when the budget is exhausted.
- ✓Wrap the completion function to integrate; ~10 documented policies included.
Discussion & Comments
0Sign in to join the discussion
Connect with AI developers to exchange benchmark insights.