{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "hooks": {
    "SessionStart": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/integrations/claude/install.cjs\"",
            "async": false
          }
        ],
        "description": "Install alcove binary if missing (cross-platform), register MCP server"
      }
    ],
    "SessionEnd": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "TOOL=$(command -v alcove 2>/dev/null); test -n \"$TOOL\" && \"$TOOL\" reap || echo '[alcove] not found, skipping'",
            "async": true
          }
        ],
        "description": "Reap orphaned alcove stdio proxy processes"
      }
    ]
  }
}
