The default first-message behavior can install a new version of the companion CLI globally without an explicit update request, so users should be warned. The update targets the package's stated product and the reviewed flow shows no credential or project-data collection, so the evidence does not support a malicious verdict.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event after plugin startup.
Impact
This changes the user's global npm installation and installs code from the registry without a separate confirmation.
Mechanism
It checks npm for the latest XP-Gate version and, unless the user has set autoUpgrade to false, runs npm install -g for that version when an update is available.
Evidence
index.tspackage.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.jsonglobal npm installation of @boyingliu01/xp-gate
Network endpoints2
registry.npmjs.org/-/package/@boyingliu01/xp-gate/dist-tags