← Notes from production
AgentsCost controlRAG
Agentic RAG without the runaway costs
Agents are loops, and loops cost money. The difference between a useful agent and a runaway bill is the guardrails on every hop.
Guard every tool call
Cap iterations, validate tool inputs and outputs, and make the model justify each step. Log token cost per run so the price of a task is never a surprise.
Keep a human on the exceptions. Autonomy is earned by the cases that pass the gate, not granted up front.