The plugin silently performs a global update of its related CLI on first chat activity, with opt-out configuration but no per-update request. The target and registry match the package's purpose, so this is a warning-level concern rather than evidence of malicious code.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message after plugin setup, if XP-Gate is globally installed, outdated, and autoUpgrade is not false.
Impact
An unrequested background update can replace the user's globally installed CLI with a remote release.
Mechanism
Checks npm registry version metadata, then runs npm install -g for the newer @boyingliu01/xp-gate version.
Evidence
index.tspackage.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json
Network endpoints2
registry.npmjs.org/-/package/@boyingliu01/xp-gate/dist-tagsregistry.npmjs.org/-/package/@boyingliu01%2Fopencode-plugin/dist-tags