🌐
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
Discussions

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
🌐 github.com
20
February 28, 2025
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
🌐 r/ClaudeCode
12
14
July 24, 2025
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
🌐 r/ClaudeAI
152
481
July 1, 2025
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
🌐 r/ClaudeAI
29
65
July 3, 2025
🌐
Reddit
reddit.com › r/claudeai › claude code now supports hooks
r/ClaudeAI on Reddit: Claude Code now supports hooks
July 1, 2025 - How do you enable this? I had a look here but couldn’t find it (unless I missed it) https://docs.anthropic.com/en/docs/claude-code/settings ... I changed my whole workflow to spec-driven using UserPromptSubmit Event and Stop hooks.
🌐
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.
🌐
Medium
medium.com › @joe.njenga › use-claude-code-hooks-newest-feature-to-fully-automate-your-workflow-341b9400cfbe
How I’m Using Claude Code Hooks (Newest Feature) To Fully Automate My Workflow
July 8, 2025 - Claude Code has introduced hooks that now automate your workflow in a way similar to triggers — executing automatically at specific points
🌐
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.
Find elsewhere
🌐
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
🌐
Suite Insider
suiteinsider.com › home › complete guide: creating claude code hooks
Complete Guide: Creating Claude Code Hooks - Suite Insider
October 7, 2025 - What are Claude Code Hooks? Claude Code hooks are automated scripts that run at specific points in Claude Code’s lifecycle. They allow you to: Hook...
🌐
StackToHeap
stacktoheap.com › blog › 2025 › 08 › 03 › having-fun-with-claude-code-hooks
Having Fun with Claude Code Hooks - Make Your AI Coding Assistant Talk!
August 3, 2025 - Think of hooks as little event listeners that let you run custom scripts when specific things happen in Claude Code.
🌐
Medium
alirezarezvani.medium.com › the-production-ready-claude-code-hooks-guide-7-hooks-that-actually-matter-823587f9fc61
The Production-Ready Claude Code Hooks Guide: 7 Hooks That Actually Matter
1 month ago - You’ve configured your PostToolUse hook to auto-format on every file write. It worked… once. Now Claude Code ignores it completely, and you’re back to manually running Prettier.
🌐
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.