The postinstall hook automatically installs the package's own agent workflow files into the consuming project. This matches Mandrel's stated purpose, but automatic install-time agent setup carries lifecycle risk, so the package warrants a warning rather than a block.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
The npm postinstall hook runs during package installation.
Impact
Agent instructions and workflow files become active in the consuming project without a separate setup command.
Mechanism
The hook calls sync, which copies the package's .agents payload to the project's .agents directory and prunes stale managed files. It can also set a repo-local merge-driver config when .gitattributes already declares that driver.
Evidence
package.jsonbin/postinstall.jslib/cli/sync.js.agents/scripts/lib/bootstrap/baseline-merge-driver.js./.agents/**.git/config