{
  "description": "Hooks for Straion",
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup|clear|compact",
        "hooks": [
          {
            "type": "command",
            "command": "straion automode register session-start --agent claude-code",
            "timeout": 10
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "straion trajectory collect --agent claude-code",
            "async": true
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "straion audit decide-shell --agent claude-code"
          }
        ]
      },
      {
        "matcher": "Write|Edit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "straion audit decide-write --agent claude-code"
          }
        ]
      },
      {
        "matcher": "mcp__plugin_straion_straion__.*",
        "hooks": [
          {
            "type": "command",
            "command": "straion audit decide-tool --agent claude-code"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "straion audit checkpoint --agent claude-code"
          }
        ]
      }
    ]
  }
}
