Digitorn
Digitorn
All terms
Runtime

Behaviour rules

Focused guards that protect against common agent failure modes (runaway loops, repeated tool calls, drift).

also known as: loop guards, agent rules
In depth

Behaviour rules are the loop-control subset of hooks, with a narrower API. Common rules: gate after N tool calls, stop if the same file is edited three times in a row, inject a 'did you read it?' reminder before edits. The coding profile ships sensible defaults, you tune the specific thresholds per app. Under the hood they compile to hooks, the API is just nicer for the common cases.

Related concepts
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 Runtime

Cron trigger/glossary/cron-triggerFilesystem module/glossary/filesystem-moduleHooks/glossary/hooksHot reload/glossary/hot-reloadModule/glossary/moduleTriggers/glossary/triggers