hooks(options?: HookOptions): Promise<void>
Configure and manage Claude Code hooks for Aichaku automation
Hooks allow you to run custom scripts at various points in Claude Code's lifecycle, such as before tool use, after tool use, or when a conversation ends. This command helps you install, uninstall, list, and validate hooks.
Example 1
Example 1
// List all available hooks await hooks({ list: true }); // Install essential hooks globally await hooks({ install: ["essential"], global: true }); // Install specific hooks locally await hooks({ install: ["path-validator", "commit-validator"] }); // Show installed hooks await hooks({ show: true }); // Uninstall a hook await hooks({ uninstall: ["status-updater"], global: true });