Skip to content
← Back to Diagrams

Hooks Lifecycle

Agent Decides to call a tool PreToolUse Annotate · Block · Validate block allow + context pass Blocked Wrong command denied Annotated Context injected Tool still runs Tool call Bash · Write · Read · MCP result PostToolUse Observe · Log · Update UI Side effect Update terminal · Log event