{
  "token-optimizer": {
    "enabled": true,
    "SessionStart": [
      {
        "type": "command",
        "command": "python3 hooks/session_start.py",
        "timeout": 10
      }
    ],
    "PreInvocation": [
      {
        "type": "command",
        "command": "python3 hooks/pre_invocation.py",
        "timeout": 10
      }
    ],
    "PreToolUse": [
      {
        "matcher": "read_file|view_file|run_command|write_file|edit_file",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/pre_tool_use.py",
            "timeout": 10
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/post_tool_use.py",
            "timeout": 10
          }
        ]
      }
    ],
    "Stop": [
      {
        "type": "command",
        "command": "python3 hooks/stop_hook.py",
        "timeout": 10
      }
    ]
  }
}
