{
  "version": 1,
  "hooks": {
    "sessionStart": [
      {
        "command": "straion automode register session-start --agent cursor"
      }
    ],
    "beforeShellExecution": [
      {
        "type": "command",
        "command": "straion audit decide-shell --agent cursor",
        "timeout": 30
      }
    ],
    "preToolUse": [
      {
        "type": "command",
        "command": "straion audit decide-write --agent cursor",
        "matcher": "Write",
        "timeout": 30
      },
      {
        "type": "command",
        "command": "straion audit decide-tool --agent cursor",
        "matcher": "MCP:record_verdict",
        "timeout": 30
      }
    ],
    "stop": [
      {
        "type": "command",
        "command": "straion audit checkpoint --agent cursor",
        "timeout": 30,
        "loop_limit": 1
      }
    ],
    "sessionEnd": [
      {
        "type": "command",
        "command": "straion trajectory collect --agent cursor"
      }
    ]
  }
}
