Claude
code.claude.com โบ docs โบ en โบ hooks
Hooks reference - Claude Code Docs
This page provides reference documentation for implementing hooks in Claude Code.
Claude
docs.claude.com โบ en โบ docs โบ claude-code โบ hooks
Hooks reference - Claude Docs
This page provides reference documentation for implementing hooks in Claude Code.
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 ...
GitButler Docs
docs.gitbutler.com โบ features โบ ai-integration โบ claude-code-hooks
Claude Code Hooks | GitButler Docs
{ "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.
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 431 users
Languages ย Python
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.
Eesel AI
eesel.ai โบ blog โบ hooks-in-claude-code
A complete guide to hooks in Claude Code: Automating your development workflow - eesel AI
Explore our complete guide to hooks in Claude Code. Learn what they are, how they work, and their limitations for true business workflow automation.
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.
Claude
claude.com โบ blog โบ how-to-configure-hooks
Claude Code power user customization: How to configure hooks | Claude
2 weeks ago - Hooks are configured in your settings files using a JSON structure with event names, matchers (to filter which tools trigger the hook), and the commands to run. They execute in your local environment with your user permissions, receiving information about the triggering event via stdin and communicating back through exit codes and stdout.
HexDocs
hexdocs.pm โบ claude โบ guide-hooks.html
Hooks Guide โ claude v0.5.3
%{ hooks: %{ stop: [:compile, :format], subagent_stop: [:compile, :format], post_tool_use: [:compile, :format], # These only run on git commit commands pre_tool_use: [:compile, :format, :unused_deps] } } ... The default blocking?: false setting keeps you informed about issues without causing ...
GitHub
github.com โบ hesreallyhim โบ awesome-claude-code
GitHub - hesreallyhim/awesome-claude-code: A curated list of awesome commands, files, and workflows for Claude Code
Numerous specialized agents, slash-commands, and strong documentation. All parts of Claude Code's system prompt, including builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, Bash cmd, security review, agent creation, etc.). Updated for each Claude Code version. Professional development environment for Claude Code with spec-driven workflow, TDD enforcement, cross-session memory, semantic search, quality hooks, and modular rules integration.
Starred by 18.5K users
Forked by 1.1K users
Languages ย Python 98.9% | Makefile 1.1%
GitButler
blog.gitbutler.com โบ automate-your-ai-workflows-with-claude-code-hooks
Automate Your AI Workflows with Claude Code Hooks | Butler's Log
July 24, 2025 - Since we want to know when something is completed, we'll use the Stop hook, which fires when everything in a session is done. ... .claude/settings.json - Project settings, only runs on that project and should be committed (for the rest of your team) .claude/settings.local.json - Local project settings, meant to not be committed, just for you. Claude Code should look for all of these files, and fire every hook that matches in any of them.