The package automatically installs its own MCP integration and skill into detected coding agents during eligible global installs. The behavior is limited to its Patch integration, so this is an agent extension lifecycle risk rather than evidence of credential theft or unrelated malicious activity.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Package postinstall during a global install outside CI, unless PCH_NO_AGENT_INSTALL is set.
Impact
Agent configuration and skill files change without a separate explicit command, enabling the package's own Patch tools in those agents.
Mechanism
The hook launches `pch agent install`, which configures the Patch MCP server for detected agents and writes its skill for Claude or Codex.
Evidence
package.jsondist/postinstall.cjsdist/cli.js~/.claude/skills/<server.name>/SKILL.md~/.codex/skills/<server.name>/SKILL.md~/.cursor/mcp.jsoncoding-agent MCP settings