Unverified50% confidenceFactExact time
Hook commands receive a JSON description of the event via standard input, can control flow via exit codes, and exit code 2 means blocking the operation and feeding stderr back to Claude.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
11/7/2026
First Seen
Valid until: 2/5/2027
Sources
1,000 Hours of Claude Code in Practice: Six Levels from Beginner to Expert
youtubeAI Master11/4/2026
Related Entities
Related Claims
UnverifiedHook event types include PreToolUse, PostToolUse, and Notification; if a PreToolUse script returns exit code 2, the tool call is blocked.62% similarUnverifiedA meta-instruction is an instruction that does not directly describe the task content but instead specifies how the model should behave, such as 'ignore all previous instructions', 'do not use Markdown', or 'always output as JSON'.60% similarUnverifiedThe hook script receives JSON input containing information such as the current message, session ID and working directory, allowing external programs to execute custom logic before and after agent behavior occurs.59% similarUnverifiedCommon hook events in Claude Code include before and after tool calls (PreToolUse / PostToolUse), the agent stopping output (Stop), session start and end, and the notification point when user permission approval is required.59% similarUnverifiedThe plugin's delete operation is executed by injecting instructions into the conversation box to be carried out by the selected model, rather than directly calling the system file API59% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1145862API
curl https://kongchang.com/api/v1/knowledge/claims/1145862MCP
get_claim(id=1145862)