Choose
Hooks
Deterministic handlers that run at defined points in an agent lifecycle to validate, block, transform, log, or trigger work.
- A command must run before or after a tool call or file change.
- Policy enforcement cannot depend on model attention.
- A deterministic result, exit code, or audit record is required.