crewship hooks
Manage the lifecycle-hook registry — scripts or webhooks that fire on platform events (pre_agent_start, post_agent_stop, on_approval_requested, …). See the Hooks guide for the full 15-event catalog and the three handler kinds (shell, http, subagent).
There is no
register subcommand by design. Hook registration is a
config-time operation (seeded at provision or written directly via
hooks.Register). The CLI and API are strictly read + enable/disable.Subcommands
| Command | Description |
|---|---|
list | List registered hooks. |
enable <id> | Enable a registered hook (OWNER/ADMIN). |
disable <id> | Disable a registered hook (OWNER/ADMIN). |
crewship hooks list
| Flag | Type | Description |
|---|---|---|
--crew | string | Filter by crew slug or ID. Cross-tenant IDs return 404. |
crewship hooks enable <id>
OWNER or ADMIN (403 otherwise). Emits system.hook_toggled into the Crew Journal with the actor’s user ID.
crewship hooks disable <id>
Errors
| Exit | Meaning |
|---|---|
| 401 | Not authenticated. |
| 403 | Logged in but not OWNER / ADMIN. |
| 404 | Hook ID not found in your workspace (also returned for cross-tenant IDs). |
Currently-dispatched events
Which events actually fire (as of PR #210)
Which events actually fire (as of PR #210)
Dispatched:
pre_agent_start,post_agent_stopon_approval_requested