karanb192/claude-code-hooks
A collection of JavaScript hooks that customize Claude Code's behavior for security, automation, and notifications.

Not currently ranked — collecting fresh signals.
star history
This repository offers ready-to-use hooks for Claude Code that run before and after tool execution. Pre-tool-use hooks can block dangerous operations like secret exfiltration or risky shell commands, while post-tool-use hooks automate tasks like git staging. The hooks support configurable safety levels and include a test suite of 262 passing tests.
Frequently asked
- What is karanb192/claude-code-hooks?
- A collection of JavaScript hooks that customize Claude Code's behavior for security, automation, and notifications.
- Is claude-code-hooks open source?
- Yes — karanb192/claude-code-hooks is open source, released under the MIT license.
- What language is claude-code-hooks written in?
- karanb192/claude-code-hooks is primarily written in JavaScript.
- How popular is claude-code-hooks?
- karanb192/claude-code-hooks has 432 stars on GitHub.
- Where can I find claude-code-hooks?
- karanb192/claude-code-hooks is on GitHub at https://github.com/karanb192/claude-code-hooks.