HooksAutomate checks and other actions around the agent lifecycle.In this sectionHooks ReferenceUse AFK hooks to run shell commands before and after tool use, approvals, compaction, session lifecycle events, sub-agent events, notifications, and MCP elicitation.