The package’s background update flow can silently replace a globally installed companion CLI on first use, with opt-out as the only consent control. This is a warning-level risk; the inspected flow targets the package’s own tool and does not show data exfiltration.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event after the plugin is initialized.
Impact
Updates and executes a newer CLI package and any install scripts it contains, changing the user’s global installation.
Mechanism
Checks npm for a newer @boyingliu01/xp-gate version and runs npm install -g by default; auto-upgrade can be disabled with autoUpgrade:false in ~/.xp-gate/config.json.
Evidence
index.ts~/.xp-gate/config.json~/.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 endpoints2
registry.npmjs.org/-/package/@boyingliu01%2Fxp-gate/dist-tags