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
HooksDeclarative event handlers that fire at specific points in an agent's lifecycle (turn_start, tool_end, etc).Read-before-editA safety guard that refuses to edit any file the agent has not first read, preventing hallucinated overwrites.Turn capA runtime ceiling on how many loop iterations an agent can take before the runtime forces it to stop.
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.