- Claude Code Subagents SubagentStop: Runs when subagent tasks complete
- PreToolUse: Runs before tool calls (can block them)
- PermissionRequest: Runs when a permission dialog is shown (can allow or deny)
- PostToolUse: Runs after tool calls complete
- UserPromptSubmit: Runs when the user submits a prompt, before Claude processes it
- Notification: Runs when Claude Code sends notifications
- Stop: Runs when Claude Code finishes responding
- PreCompact: Runs before Claude Code is about to run a compact operation
- recommendation: hook before summarization, update memory, state
- SessionStart: Runs when Claude Code starts a new session or resumes an existing session
- SessionEnd: Runs when Claude Code session ends
Hook
- Notifications
- Formatting
- Logging
- Feedback
Get started with Claude Code hooks - Claude Code Docs
Learn how to customize and extend Claude Code's behavior by registering shell commands
https://code.claude.com/docs/en/hooks-guide
json config
Hooks reference - Claude Code Docs
This page provides reference documentation for implementing hooks in Claude Code.
https://code.claude.com/docs/en/hooks

Seonglae Cho