Built-inarchitecture

Agent Hooks

Agent Hooks

Deterministic shell commands that execute at key lifecycle points during agent sessions. Unlike instructions, hooks run code with guaranteed outcomes for security policies, quality checks, or audit trails. Supports PreToolUse, PostToolUse, SessionStart, SessionStop, SubagentStart, and SubagentStop events.

hooksagentslifecycledeterministic

Related Articles