Expired50% confidenceFactExact time
Claude Code provides a Hook system that allows callback scripts to be registered at key nodes such as PreToolUse, PostToolUse, and Stop; hooks are executed as subprocesses and receive a JSON context.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
7/12/2026
First Seen
Valid until: 10/10/2026(expired)
Sources
给Claude Code配物理状态灯:用ESP32告别盯终端等待
bilibili鲤航JI7/9/2026
Related Claims
UnverifiedClaude Code supports the Hooks feature, providing five trigger timings: PreToolUse, PostToolUse, OnToolError, Notification, and OnPrompt.79% similarUnverifiedPost-tool-use hooks are an event hook mechanism in the Claude Code plugin system that automatically trigger after each tool call by the Agent is completed, allowing developers to inject custom validation logic77% similarVerifiedThe PostToolUse Hook triggers after a tool operation is completed, and can be used for automatic code formatting, automatically running tests, and automatically reloading services.73% similarUnverifiedThe essence of Hook technology is inserting custom logic into a program's execution flow to intercept or modify its original behavior68% similarVerifiedThe OnPrompt Hook triggers each time a user submits a question to Claude, and can be used to automatically supplement contextual information or perform environment checks.68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/489851API
curl https://kongchang.com/api/v1/knowledge/claims/489851MCP
get_claim(id=489851)