Claude Hookbook

Workflow hooks

Audit trails, failure logs, and session bookkeeping.

Compact audit trail on stop

Appends a one-line JSON record to a local audit log every time Claude finishes a turn.

Stoplow riskneeds manual check

Log tool failures for debugging

Writes a structured JSONL record whenever a Bash, Edit, or Write call fails - the debugging trail you wish you had last week.

PostToolUseFailureBash|Edit|Writelow riskneeds manual check