instructions. At or above allow it passes, below deny the call is
blocked, and in between a person decides. A client hook skips the model
and always asks.
There are four points: before_turn_start, before_tool_call,
after_tool_result (before the model sees the result), and
after_model_response (before the reply is saved).
Every matching hook must pass. Before a tool call they answer in one round:
any deny blocks the call, and every hook that asks goes to a person as one wait
that one answer settles. Hooks can only tighten, since role checks run first.
Belongs to a profile (≤ 16, in order) · Runs at one of four points ·
Processed by
client | url | agent | model · Decides allow
| deny | ask | deferRules
- Approving a hook grants nothing. See Rules.
allowdoesn’t skip later hooks; onedenywins.clientandmodelhooks work only atbefore_tool_call.- A failing processor follows
onFailure:fail_closeddenies,fail_openpasses, andask(model hooks only, their default) asks a person. - New profiles get 13 removable approvals;
hooks: []means none.
API
- Matching, processors, defaults: Hooks.
GET /v1/threads?state=waitinglists parked work;POST /v1/threads/{threadId}/waits/{waitId}/resolveclears one.