You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Simple CLI to initialize Claude Code hooks in your project
6
+
> TypeScript-powered hook system for Claude Code - write hooks with full type safety and auto-completion
7
7
8
8
## Overview
9
9
10
-
`claude-hooks`is a straightforward CLI tool that sets up Claude Code hooks in your project. It creates the necessary files and configuration to intercept and log Claude's tool usage, with basic security protection against dangerous commands.
10
+
`claude-hooks`gives you a powerful, TypeScript-based way to customize Claude Code's behavior. Write hooks with full type safety, auto-completion, and access to strongly-typed payloads - all in familiar TypeScript syntax. No more guessing payload structures or dealing with untyped data!
11
11
12
12
## Quick Start
13
13
@@ -17,9 +17,9 @@ npx claude-hooks
17
17
18
18
This will:
19
19
- Create `.claude/settings.json` with hook configuration
20
-
- Generate `.claude/hooks/index.ts` with default handlers
21
-
- Set up session logging in system temp directory
22
-
- Create supporting files (lib.ts and session.ts)
20
+
- Generate `.claude/hooks/index.ts` with TypeScript handlers
21
+
- Set up typed payload interfaces for all hook types
22
+
- Create utilities for easy hook development
23
23
24
24
## Installation
25
25
@@ -38,15 +38,16 @@ claude-hooks
38
38
39
39
## What It Does
40
40
41
-
The CLI generates a basic hook setup that:
41
+
The CLI sets up a complete TypeScript development environment for Claude hooks:
42
42
43
-
1.**Logs all Claude interactions** - Saves session data for all hook types (PreToolUse, PostToolUse, Notification, Stop) to the system temp directory
0 commit comments