Unverified50% confidenceFactExact time
Claude Code's Hook mechanism allows user-defined scripts to run automatically at specific lifecycle points (such as before a tool call, after a tool call, or at session start); configuration goes in the hooks field of settings.json, and scripts go in the agreed directory.
1
Sources
50%
Confidence
Long-term
Relevance
11/7/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe Hooks mechanism allows developers to insert custom logic at lifecycle nodes of tool calls, and is the key means of intercepting and transforming raw output.76% similarUnverifiedThe hook system allows custom scripts to be triggered on specific events, such as before and after tool calls or at the start and end of a session.72% similarUnverifiedClaude Code's Hooks are event-driven automation triggers; the PostToolUse hook can execute shell commands after every Write/Edit to enforce validation.71% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1145838API
curl https://kongchang.com/api/v1/knowledge/claims/1145838MCP
get_claim(id=1145838)