displayName
amux hooks <agent> add
kind
cli-subcommand
surface
cli
parentBin
amux
subcommandVerb
hooks add
flags
- --handler:1:builtin|command|script (default builtin)
- --target:1:hook target (default log)
- --id:1:explicit hook id
- --priority:1:sort order (lower = earlier; default 100)
- --global:0:write to global scope (default project)
subcommandExitCodes
- 0:success:hook added
- 2:usage-error:missing hookType
description
Register a hook entry (project or global) for an agent. Source:
packages/agent-mux/cli/src/commands/hooks.ts:131-162.