The plugin performs a global package upgrade automatically on the first chat message when an update is available, with opt-out configuration rather than an explicit upgrade request. This is a meaningful unrequested system change, but the reviewed code targets its related package through the npm registry and does not establish malicious intent.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event after the plugin is initialized.
Impact
A chat session can cause a global package installation without a separate user request, changing the user's global Node.js environment.
Mechanism
It checks the globally installed XP-Gate version against npm, then runs npm install -g for a newer version unless auto-upgrade is disabled 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.jsonGlobal npm installation of @boyingliu01/xp-gate
Network endpoints1
registry.npmjs.org/-/package/%40boyingliu01%2Fxp-gate/dist-tags