Skip to main content
A hook interrupts a turn to approve, deny, or rewrite what happens next: ask a person before a payment, have a model check a call, or redact a result before the model reads it. Hooks live on a profile, and every agent using that profile runs them.
Here a model scores every write- or admin-level call from 0 to 1 against your 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 | defer

Rules

  • Approving a hook grants nothing. See Rules.
  • allow doesn’t skip later hooks; one deny wins.
  • client and model hooks work only at before_tool_call.
  • A failing processor follows onFailure: fail_closed denies, fail_open passes, and ask (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=waiting lists parked work; POST /v1/threads/{threadId}/waits/{waitId}/resolve clears one.