タグ

codexとrulesに関するmkusakaのブックマーク (1)

  • Rules

    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",

    Rules
    mkusaka
    mkusaka 2026/02/03
    Codexのサンドボックス外コマンド制御を解説し、prefix_ruleのdecision(allow/prompt/forbidden)やcodex execpolicy check例を示します。
  • 1