sushichan044/cc-hooks-ts

Define Claude Code hooks with full type safety.

39Stars on the repository
37Mods indexed here, across every type
todayLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

PreToolUse

01

sushichan044/cc-hooks-ts

Hook Claude Code

Runs before the agent uses a tool, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured original MIT

PostToolUse

02

sushichan044/cc-hooks-ts

Hook Claude Code

Runs after a tool call finishes, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

PostToolUseFailure

03

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a tool call fails, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 83% MIT

PostToolBatch

04

sushichan044/cc-hooks-ts

Hook Claude Code

Runs after a batch of tool calls, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 86% MIT

Notification

05

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when the agent sends a notification, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

UserPromptSubmit

06

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

UserPromptExpansion

07

sushichan044/cc-hooks-ts

Hook Claude Code

Runs to expand your prompt before the agent sees it, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 81% MIT

SessionStart

08

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a session starts, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 89% MIT

SessionEnd

09

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a session ends, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

Stop

10

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when the agent finishes a response, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 83% MIT

StopFailure

11

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the StopFailure event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 86% MIT

SubagentStart

12

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a subagent starts, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 83% MIT

SubagentStop

13

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a subagent finishes, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 70% MIT

PreCompact

14

sushichan044/cc-hooks-ts

Hook Claude Code

Runs before the context is compacted, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 81% MIT

PostCompact

15

sushichan044/cc-hooks-ts

Hook Claude Code

Runs after the context is compacted, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 84% MIT

PreModelSwitch

16

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the PreModelSwitch event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 77% MIT

PostModelSwitch

17

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the PostModelSwitch event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 89% MIT

PermissionRequest

18

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when the agent asks permission for an action, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

PermissionDenied

19

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the PermissionDenied event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 77% MIT

Setup

20

sushichan044/cc-hooks-ts

Hook Claude Code

Runs once when the project is set up, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

TeammateIdle

21

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the TeammateIdle event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

TaskCreated

22

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the TaskCreated event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 89% MIT

TaskCompleted

23

sushichan044/cc-hooks-ts

Hook Claude Code

Runs when a task is marked completed, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 80% MIT

ConfigChange

24

sushichan044/cc-hooks-ts

Hook Claude Code

Runs on the ConfigChange event, executing log-hook-event.ts via node. From sushichan044/cc-hooks-ts.

39 today A tokens not measured copy · 83% MIT