Explicit setup installs package-owned hooks that influence agent behavior, which leaves a concrete agent-extension risk. The inspected install hook does not perform that setup automatically, and the setup code refuses malformed existing MCP configuration.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
A user runs the package's init-agent or sync-rules command; the global guard requires the additional init-agent --user option.
Impact
The configuration can route agent UI work through the package's catalog and audit rules. The inspected setup path showed no network transfer or remote payload execution.
Mechanism
The commands write package-owned MCP and workflow configuration and register local scripts as agent hooks. The optional global hook checks UI edits in repositories configured with this package's MCP.
Evidence
package.jsonscripts/postinstall.mjsscripts/cli.mjsscripts/_agent-setup.mjsscripts/init-agent-kit.mjsscripts/user-guard.mjsscripts/agent-guard.mjs.mcp.json.claude/settings.json