{
  "_comment": "Manual-copy reference for Codex (requires a global `npm i -g rpgdev`). Prefer `rpgdev setup --codex`, which writes an absolute-path config that needs no global install. On native Windows, if the plain form doesn't spawn, use codex-hooks.windows.json (cmd /c) or `rpgdev setup --codex --codex-cmd-wrap`. See docs/install-hooks.md.",
  "hooks": {
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex UserPromptSubmit",
            "timeout": 5,
            "statusMessage": "冒険の小窓を開いています"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex PreToolUse",
            "timeout": 3,
            "statusMessage": "小窓の冒険が進んでいます"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex PostToolUse",
            "timeout": 3,
            "statusMessage": "戦況を更新しています"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex Stop",
            "timeout": 3,
            "statusMessage": "冒険を記録しています"
          }
        ]
      }
    ],
    "SubagentStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex SubagentStart",
            "timeout": 3,
            "statusMessage": "仲間が駆けつけています"
          }
        ]
      }
    ],
    "SubagentStop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "rpgdev-hook codex SubagentStop",
            "timeout": 3,
            "statusMessage": "仲間が去っていきます"
          }
        ]
      }
    ]
  }
}
