Unverified80% confidenceFactTime unknown
Claude Code的Hooks系统定义了一组生命周期事件,包括session start、pre-tool-use、post-tool-use、pre-send等
1
Sources
80%
Confidence
Long-term
Relevance
6/1/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedClaude Code supports lifecycle hooks, which trigger corresponding hook events at nodes such as tool calls, task completion, and session end.73% similarUnverifiedClaude Code's Hooks mechanism supports trigger scenarios including PRE-TOOL USE, POST-TOOL USE, SESSION START, and SESSION END73% similarUnverifiedThe engineering system is configured with four lifecycle hooks: a Start Hook, a Skill Evaluation Hook (user_prompt_submit), a PreToolUse Hook, and a Stop Hook.66% similarUnverifiedThe lifecycle hooks design pattern was first widely adopted in frontend frameworks such as React's componentDidMount and Vue's mounted.66% similarUnverifiedCodex currently provides six lifecycle hooks in total: Session Start, triggered on user prompt, triggered before tool call, triggered on permission request, triggered after tool execution, and Session Stop.62% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/33346API
curl https://kongchang.com/api/v1/knowledge/claims/33346MCP
get_claim(id=33346)