Install a global Codex PreToolUse hook that prevents dangerous deletion of critical directories. Follow the current official documentation at https://learn.chatgpt.com/docs/hooks.
Make the implementation appropriate for the operating system and tools available on this computer. Choose the hook language, runtime, paths, and configuration format yourself. Do not assume Python, Node.js, Bash, Unix paths, or a particular home-directory location without checking the system first.
Ask the user this question and wait for their answer: