{"version":"2.1.337","anchor":"plugin-hook-packages-installed-into-a-private-copy","canonical_anchor":"plugin-hook-packages-installed-into-a-private-copy","heading":"Plugins with hooks can get their packages installed into a private copy","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/plugin-hook-packages-installed-into-a-private-copy","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Plugins with hooks can get their packages installed into a private copy\n\nBehind a server switch, Claude Code can copy a plugin with hooks and install its npm packages there, falling back to the original folder\n\n**Unclear.** Whether this switch is on for any account is not known.\n\n**What**\n\nHooks are commands a plugin sets to run automatically at certain points. Claude Code can now copy a plugin that has hooks into a folder under `plugins\/packages` and install the npm packages (code libraries) the plugin depends on into that copy.\n\n- The copy is checked against the plugin's lockfile, the file listing the exact package versions.\n\n- A plugin with install scripts is left alone.\n\n- If installing fails, the hooks run from the plugin's original folder, and Claude Code retries later with growing gaps between attempts.\n\nThis sits behind a switch controlled from Anthropic's servers.\n\n**Why**\n\nIt changes where plugin hooks run from and means their dependencies can be installed automatically.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}