The package performs an unattended global update of its companion CLI on first use by default, creating a real software-modification risk despite the update being related to its purpose. No install-time hook, credential exfiltration, or unrelated network destination was identified.
Static reason
No blocking static signals were detected.
Trigger
The first chat message after the plugin starts, if the global XP-Gate CLI is installed and a newer version is available.
Impact
Replaces the globally installed XP-Gate package without a separate update command; the installed code may run later as part of normal XP-Gate use.
Mechanism
Checks the npm registry for the latest version and runs npm install -g unless autoUpgrade is explicitly false in ~/.xp-gate/config.json.
Evidence
index.ts~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.jsonnpm global root/@boyingliu01/xp-gate
Network endpoints2
registry.npmjs.org/-/package/%40boyingliu01%2Fxp-gate/dist-tags