Skip to main content

axm hooks new

Create an inactive hook extension with example fixtures in the project-workspace

axm hooks new <name> [flags]
NameTypeRequiredDefaultDescription
<name>stringYesName of the hook extension to create, without owner
NameTypeRequiredDefaultDescription
--owner@handleNoOwner to create under, such as @acme; else the workspace owner, which this sets if unset
--descriptionstringNoShort registry-facing summary shown in listings and search results
--previewbooleanNofalseShow what would change without applying it
--runtimechoice (bash, node, python)NonodeInterpreter family for the entrypoint
--protocolchoice (augment, claude-code, codebuddy, codex, cursor, devin, gemini-cli, qoder, qwen-code)Noclaude-codeNative host protocol implemented by this example
--eventstringNoSessionStartExact native event name, such as SessionStart or sessionStart
--matcherstringNoNative matcher supported by the selected protocol and event

Scaffold a new hook extension

axm hooks new workspace-baseline

Create under a specific owner

axm hooks new workspace-baseline --owner @acme

Bind to a specific event and tool matcher

axm hooks new workspace-baseline --protocol claude-code --event PostToolUse --matcher Bash

Create with a Python entrypoint

axm hooks new workspace-baseline --runtime python