The automatic global agent setup creates a lifecycle risk, but the inspected code deploys package-owned assets and scoped configuration. It does not establish a concrete attack, so warn rather than block.
Static reason
One or more suspicious static signals were detected.
Trigger
Installing the package through npm, which runs its postinstall hook.
Impact
The package’s agent extensions and configured permissions become available globally without a separate setup command.
Mechanism
The hook launches audit and remediation installers that copy package assets into user-level host directories and merge package-specific command and permission entries into global OpenCode configuration.
Evidence
package.jsonscripts/postinstall.mjsscripts/shared/host-asset-plan.mjsscripts/shared/install-host-assets.mjsscripts/audit/postinstall.mjs