The postinstall hook automatically schedules changes to the user’s OpenCode configuration, creating a concrete agent extension lifecycle risk. The inspected evidence does not establish a block-level attack, so this warrants a warning.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Installing the package through npm runs its postinstall hook.
Impact
The package’s plugin and agent become part of the user’s OpenCode configuration without an interactive choice during installation.
Mechanism
The hook starts core setup with automatic confirmation and defers OpenCode configuration changes to a detached process that resumes after npm exits.
Evidence
package.jsoninstall/install.mjsinstall/lib.mjsadapters/opencode/novahiz-plugin.ts