axm hooks new
Create an inactive hook extension with example fixtures in the project-workspace
Usage
Section titled Usageaxm hooks new <name> [flags]Arguments
Section titled Arguments| Name | Type | Required | Default | Description |
|---|---|---|---|---|
<name> | string | Yes | Name of the hook extension to create, without owner |
Flags
Section titled Flags| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--owner | @handle | No | Owner to create under, such as @acme; else the workspace owner, which this sets if unset | |
--description | string | No | Short registry-facing summary shown in listings and search results | |
--preview | boolean | No | false | Show what would change without applying it |
--runtime | choice (bash, node, python) | No | node | Interpreter family for the entrypoint |
--protocol | choice (augment, claude-code, codebuddy, codex, cursor, devin, gemini-cli, qoder, qwen-code) | No | claude-code | Native host protocol implemented by this example |
--event | string | No | SessionStart | Exact native event name, such as SessionStart or sessionStart |
--matcher | string | No | Native matcher supported by the selected protocol and event |
Examples
Section titled ExamplesScaffold a new hook extension
axm hooks new workspace-baselineCreate under a specific owner
axm hooks new workspace-baseline --owner @acmeBind to a specific event and tool matcher
axm hooks new workspace-baseline --protocol claude-code --event PostToolUse --matcher BashCreate with a Python entrypoint
axm hooks new workspace-baseline --runtime python