Rules Control which commands Codex can run outside the sandbox Create a rules file Create a .rules file under ./codex/rules/ (for example, ~/.codex/rules/default.rules). Add a rule. This example prompts before allowing gh pr view to run outside the sandbox. # Prompt before running commands with the prefix `gh pr view` outside the sandbox. prefix_rule( # The prefix to match. pattern = ["gh", "pr",

