Claude
docs.claude.com › en › docs › claude-code › hooks-guide
Get started with Claude Code hooks - Claude Docs
Claude Code hooks are user-defined shell commands that execute at various points in Claude Code’s lifecycle. Hooks provide deterministic control over Claude Code’s behavior, ensuring certain actions always happen rather than relying on the LLM to choose to run them. For reference documentation on hooks, see Hooks reference.
GitHub
github.com › disler › claude-code-hooks-mastery
GitHub - disler/claude-code-hooks-mastery
Hooks communicate status and control flow through exit codes: ... Hook executed successfully. stdout shown to user in transcript mode (Ctrl-R) ... Critical: stderr is fed back to Claude automatically.
Starred by 2K users
Forked by 430 users
Languages Python
Feature request: Hooks
Let me hook into the lifecycle of the agent(s) execution. As an MVP, when CC completes a task. I'm aware that this might be counter intuitive with agentic behaviors and the developer goals. But the... More on github.com
Claude code favorite hooks
Nice sound (chime) whenever a tool run is done and when the response is stop (ting), so that I can go back and CC again 😂 More on reddit.com
Claude Code now supports hooks
Game changer. Must have seen all my slash command usage to remind it to always follow its CLAUDE.md rules. CLAUDE.md is about to get smaller. More on reddit.com
Found this wild livestream about Claude Code's brand new Hooks feature - anyone tried this yet?
I really like my hooks, which you can find here: https://github.com/Veraticus/nix-config/tree/main/home-manager/claude-code/hooks They help keep Claude on-track and not stopping prematurely. I use mine to notify me via ntfy.sh when Claude finishes, and have it run linters constantly. I think it is addressing a real need in agents. More on reddit.com
Videos
11:53
Claude Code - Getting Started with Hooks - YouTube
08:11
Claude Code Hooks: MUST KNOW to Keep Claude Agent in Control! - ...
02:44
How Claude Code Hooks Save Me HOURS Daily - YouTube
01:34:18
New "Hooks" feature in Claude Code: Live Coding with Cursor - YouTube
30:51
I’m HOOKED on Claude Code Hooks: Advanced Agentic Coding - YouTube
08:38
Claude Code Hooks in 7 Minutes - A Game Changer for Developers ...
GitHub
github.com › disler › claude-code-hooks-multi-agent-observability
GitHub - disler/claude-code-hooks-multi-agent-observability: Real-time monitoring for Claude Code agents through simple hook event tracking.
Real-time monitoring and visualization for Claude Code agents through comprehensive hook event tracking.
Starred by 858 users
Forked by 267 users
Languages Python 36.4% | Vue 30.4% | TypeScript 26.4% | CSS 4.2% | Shell 1.6% | JavaScript 0.9% | HTML 0.1%
Apidog
apidog.com › blog › claude-code-hooks
What is Claude Code Hooks and How to Use It
July 2, 2025 - This article serves as a comprehensive guide to understanding, configuring, and leveraging Claude Code Hooks to create a fully automated and streamlined development workflow. At their core, Claude Code Hooks are user-defined shell commands that execute automatically at specific points in Claude Code’s lifecycle.
HexDocs
hexdocs.pm › claude
claude v0.5.3 — Documentation
We cannot provide a description for this page right now
Matthew Sanabria
matthewsanabria.dev › matthew sanabria › posts › running jujutsu with claude code hooks
Running Jujutsu with Claude Code Hooks · Matthew Sanabria
July 1, 2025 - That means I can write a custom hook that’s more dynamic than just running jj commit. After about 5-10 minutes of using my human brain, here’s what I wrote. Take a moment to use your human brain to read and understand the code. It’s quite trivial since I was in discovery mode here to see how this all works. package main import ( "bufio" "encoding/json" "fmt" "os" "os/exec" ) // StopHookInput is the input that Claude Code sends during a Stop hook event.
HexDocs
hexdocs.pm › claude_agent_sdk › hooks_guide.html
Claude Code Hooks Guide — claude_agent_sdk v0.6.8
Claude Code Hooks are callback functions that execute at specific lifecycle events during Claude's agent loop.
GitButler Docs
docs.gitbutler.com › features › ai-integration › claude-code-hooks
Claude Code Hooks | GitButler Docs
November 4, 2025 - { "hooks": { "PreToolUse": [ { "matcher": "Edit|MultiEdit|Write", "hooks": [ { "type": "command", "command": "but claude pre-tool" } ] } ], "PostToolUse": [ { "matcher": "Edit|MultiEdit|Write", "hooks": [ { "type": "command", "command": "but claude post-tool" } ] } ], "Stop": [ { "matcher": "", "hooks": [ { "type": "command", "command": "but claude stop" } ] } ] } } Essentially, you want to run the but claude pre-tool command before any code generation or editing, and the but claude post-tool command after it.
Eesel AI
eesel.ai › blog › hooks-in-claude-code
A complete guide to hooks in Claude Code: Automating your development workflow - eesel AI
September 30, 2025 - Explore our complete guide to hooks in Claude Code. Learn what they are, how they work, and their limitations for true business workflow automation.
GitHub
github.com › anthropics › claude-code › issues › 712
Feature request: Hooks · Issue #712 · anthropics/claude-code
February 28, 2025 - Let me hook into the lifecycle of the agent(s) execution. As an MVP, when CC completes a task. I'm aware that this might be counter intuitive with agentic behaviors and the developer goals. But there are simple and high value efficiencie...
Published Apr 05, 2025
Reddit
reddit.com › r/claudecode › claude code favorite hooks
r/ClaudeCode on Reddit: Claude code favorite hooks
July 24, 2025 -
I’m sure there are other posts and I’m reading some of them, but what’s your favorite hooks. I’ve been happy so far with just using some custom commands and Claude.md files but I want to try hooks and looking for ideas to try
Claude
docs.claude.com › en › docs › claude-code › hooks
Hooks reference - Claude Docs
This page provides reference documentation for implementing hooks in Claude Code.