AnswerQA

Hooks

Run code on tool calls, prompt submit, and stop events.

Hooks let the harness execute commands around Claude's tool calls. Use them for guardrails, automatic formatting, notifications, and policy enforcement.