The global-install hook automatically runs setup that the package describes as wiring AI-agent hooks, skills, and MCP, including user-scope registration. Under the review rules, install-time changes to agent configuration outside the package without a separate request are malicious, even though the behavior is documented and can be skipped.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
npm postinstall during a global install.
Impact
Agent runtime configuration is changed automatically as a side effect of installing the CLI.
Mechanism
The hook invokes the bundled agit binary's setup command, which the package describes as wiring skills, hooks, and MCP, including user-scope MCP registration.
Policy narrative
A global npm install automatically runs `agit setup`, which configures agent skills, hooks, and MCP at user scope. This changes AI-agent integration settings without a separate setup request; `AGIT_SKIP_SETUP` is an opt-out, and the native binary's implementation was not available in the inspected JavaScript source.
Evidence
package.jsonnpm/postinstall.jsnpm/README.mdCHANGELOG.md