Unverified60% confidenceFactTime unknown
Claude Code's Hooks have five lifecycle events: User Prompt Submit, Pre-tool Use, Post-tool Use, Notification, and Stop.
2
Sources
60%
Confidence
Long-term
Relevance
6/3/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe Claude Agent SDK's PreToolUse and PostToolUse hooks, combined with matchers such as Write|Edit, can block, modify, or log tool calls.69% similarUnverifiedHook event types include PreToolUse, PostToolUse, and Notification; if a PreToolUse script returns exit code 2, the tool call is blocked.66% similarUnverifiedThe author suggests ending every prompt to a coding agent with "show me the plan first, and don't commit until I say OK," so as to intercept design problems such as privacy leaks, build failures, or mistakenly deleted files before code is written.63% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/40013API
curl https://kongchang.com/api/v1/knowledge/claims/40013MCP
get_claim(id=40013)