When an AI agent goes wrong, start here
Each guide starts from a problem you can see in your logs or your bill, explains why it happens, and gives code you can use today.
How to Stop an AI Agent Stuck in an Infinite Loop (with code)
The agent calls the same tool again and again. Why it happens and a check that stops it.
How to Cap What an AI Agent Can Spend Per Run (with code)
One run, one budget. Why agent cost grows and how to stop a run before it goes over.
Why Your AI Agent Sent the Same Email Twice, and How to Stop It
Retries and restarts repeat emails and refunds. Idempotency keys and a ledger stop it.
Your AI Agent Ran All Night: How to Put a Time Limit on It
An agent left running all night. How to add a time limit that really ends the run.
How to Stop an AI Agent from Deleting Data (Deny Lists, Approval)
A prompt is not a boundary. Allow lists, deny lists and approval for risky tool calls.
How to Set a Cost Limit on a LangChain or LangGraph Agent
LangChain counts calls, not dollars. How to add a spend limit per run to a LangChain agent.
How to Limit What a CrewAI Crew Can Spend
CrewAI limits iterations and time, not money. How to put a spend limit on a whole crew.
How to Put a Budget on an OpenAI Agents SDK Agent
max_turns caps turns, not money. How to add a spend limit to an OpenAI Agents SDK run.
Shipping agents? Let's talk.
Our first 10 design partners get every paid feature free, plus direct help setting up.