Digitorn
Digitorn
All terms
Cost & ops

Cost cap

A hook that stops the agent when its session has exceeded a configured cost ceiling.

also known as: budget cap, spend limit
In depth

Cost caps are the runtime's defence against the horror story of an unattended agent burning hundreds of dollars overnight. A turn_end hook checks session.cost_cents against your ceiling and gates further turns when it crosses. Pairs naturally with a notify hook to your ops channel so you know it fired.

Related concepts
Read the deep dive

Hooks: 4 production patterns we ship today on Digitorn

Read article
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Cost & ops

Audit log/glossary/audit-logBrain fallback/glossary/brain-fallbackModel routing/glossary/model-routingPII redaction/glossary/pii-redactionRate limiting/glossary/rate-limitingTurn cap/glossary/turn-cap