{
  "version": 1,
  "hooks": {
    "sessionStart": [
      {
        "type": "command",
        "bash": "straion automode register session-start --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 15
      }
    ],
    "preToolUse": [
      {
        "type": "command",
        "bash": "straion audit decide-shell --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 30,
        "matcher": "bash|powershell"
      },
      {
        "type": "command",
        "bash": "straion audit decide-write --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 30,
        "matcher": "create|edit|str_replace_editor|apply_patch"
      },
      {
        "type": "command",
        "bash": "straion audit decide-tool --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 30,
        "matcher": "straion-record_verdict"
      }
    ],
    "agentStop": [
      {
        "type": "command",
        "bash": "straion audit checkpoint --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 30
      }
    ],
    "sessionEnd": [
      {
        "type": "command",
        "bash": "straion trajectory collect --agent github-copilot",
        "cwd": ".",
        "timeoutSec": 30
      }
    ]
  }
}
