Why AI agents need a cost layer
Autonomous agents make decisions continuously — calling models, running searches, invoking tools — each with a real dollar cost. Without guardrails, a single runaway loop or an unnecessarily expensive model call can burn through budget in seconds. Most agent frameworks focus on what to do next, not whether doing it is economically justified.
ShouldSpend adds a cost-awareness checkpoint before any expensive action executes. Pass what the action costs, what you expect to gain, how confident you are, and — optionally — how risk-averse the agent is and how much budget remains. The API returns a binary verdict, a risk level, and a cheaper alternative when one exists.