The first chat message triggers a background check that can replace the global XP-Gate CLI with a registry-fetched version by default. This is an unexpected automatic update path, though it targets a related package and the source shows no unrelated data collection or malicious payload behavior, so a warning is appropriate.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message after the plugin starts.
Impact
This replaces the user's global CLI with newly fetched code without asking first; the update is related to the plugin's purpose, so the concern is unexpected automatic code execution rather than demonstrated malicious behavior.
Mechanism
It checks the npm registry and, unless ~/.xp-gate/config.json sets autoUpgrade:false, runs npm install -g for the newer @boyingliu01/xp-gate version.
Evidence
index.tsGlobal npm installation of @boyingliu01/xp-gate~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json