Hooks
Hooks
.fabro/project.toml
Vendor docs
config
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| allowed_env_vars | string |
Allowlist of environment variable names a header may read via `{{ env.NAME }}`. Empty (the default) means no env vars may be interpolated into headers.
|
docs ↗ | ||
| blocking | string |
Whether the hook must complete before execution continues. Defaults vary by event.
|
docs ↗ | ||
| command | string |
Shell command shorthand — implies `type = "command"`.
|
docs ↗ | ||
| event | string |
The lifecycle event to listen for (required).
|
docs ↗ | ||
| headers | string |
Optional HTTP headers. Values support `{{ env.NAME }}` interpolation, scoped to the names in `allowed_env_vars`. A token for any other env var fails to resolve and the hook blocks (fail-closed).
|
docs ↗ | ||
| matcher | string |
Regex pattern to filter which stages trigger this hook.
|
docs ↗ | ||
| max_tool_rounds | string |
Maximum tool call rounds before the agent gives up. Default: `50`.
|
docs ↗ | ||
| model | string |
Model alias or ID. Defaults to `haiku`.
|
docs ↗ | ||
| name | string |
Optional display name. Auto-generated from event and type if omitted.
|
docs ↗ | ||
| prompt | string |
Instructions for the LLM evaluator.
|
docs ↗ | ||
| sandbox | string |
Run inside the sandbox (`true`, default) or on the host (`false`).
|
docs ↗ | ||
| timeout_ms | string |
Hook timeout in milliseconds. Default: `60000` (60s) for most types, `30000` (30s) for prompt hooks.
|
docs ↗ | ||
| tls | string |
TLS mode: `"verify"` (default), `"no_verify"`, or `"off"`.
|
docs ↗ | ||
| type | string |
Explicit hook type: `"command"`, `"http"`, `"prompt"`, or `"agent"`.
|
docs ↗ | ||
| url | string |
The endpoint to POST to. Must use `https://` unless `tls = "off"`. Supports `{{ env.NAME }}` interpolation.
|
docs ↗ |
event
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| checkpoint_saved | event | docs ↗ | |||
| edge_selected | event | docs ↗ | |||
| parallel_complete | event | docs ↗ | |||
| parallel_start | event | docs ↗ | |||
| post_tool_use | event | docs ↗ | |||
| post_tool_use_failure | event | docs ↗ | |||
| pre_tool_use | event | docs ↗ | |||
| run_complete | event | docs ↗ | |||
| run_failed | event | docs ↗ | |||
| run_start | event | docs ↗ | |||
| sandbox_cleanup | event | docs ↗ | |||
| sandbox_ready | event | docs ↗ | |||
| stage_complete | event | docs ↗ | |||
| stage_failed | event | docs ↗ | |||
| stage_retrying | event | docs ↗ | |||
| stage_start | event | docs ↗ |