Acerca de
The Claude Hooks SDK provides a robust, type-safe framework for developers to create custom lifecycle extensions for the Claude Code CLI. It simplifies the process of intercepting events like tool execution, prompt submissions, and session starts or stops through a centralized HookManager. With built-in support for context tracking, Git metadata, file change monitoring, and command-blocking guardrails, this SDK allows you to implement sophisticated automation and observability patterns while ensuring your hooks remain reliable with integrated failure queues and retry logic.