The plugin automatically upgrades an existing global XP-Gate CLI on first use, with opt-out rather than opt-in control. The target is related to the plugin and the update comes from npm, so this is a notable automatic capability, not clear malicious behavior.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event, when a global XP-Gate install exists and its version is older than npm's latest version.
Impact
Replaces the user's globally installed CLI with downloaded package code; this update behavior is an avoidable supply-chain and environment-change risk.
Mechanism
Checks the npm dist-tags endpoint and, unless autoUpgrade is set to false, runs npm install -g for the newer CLI version.
Evidence
index.tspackage.json~/.xp-gate/config.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json