{ "hooks": { "PreToolUse": [ { "matcher": "Edit|Write|apply_patch", "hooks": [ { "type": "command", "command": "python3 \"$(git rev-parse --show-toplevel)/.codex/hooks/generated_files.py\"", "statusMessage": "Checking generated-file policy" } ] } ], "PostToolUse": [ { "matcher": "Edit|Write|apply_patch", "hooks": [ { "type": "command", "command": "python3 \"$(git rev-parse --show-toplevel)/.codex/hooks/generated_files.py\"", "statusMessage": "Checking docs regeneration" } ] } ] } }