{"version":"2.1.337","anchor":"plugin-hooks-now-run-from-an-installed-copy","canonical_anchor":"plugin-hooks-now-run-from-an-installed-copy","heading":"Some plugin hooks now run from an installed copy of the plugin","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/plugin-hooks-now-run-from-an-installed-copy","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Some plugin hooks now run from an installed copy of the plugin\n\nFor some plugins, hook commands now run from an installed copy, and `CLAUDE_PLUGIN_ROOT` points at that copy instead of the original folder\n\n**Unclear.** Which kinds of plugins have their hooks run from the installed copy is not stated.\n\n**What**\n\nPlugins are add-on packages for Claude Code. Some come with hooks, which are commands that run automatically at certain points. For some kinds of plugins, those hook commands now run from an installed copy of the plugin rather than from the plugin's original folder.\n\nFor those hooks, the environment variable `CLAUDE_PLUGIN_ROOT` now points at the installed copy. An environment variable is a named value that commands can read. Before, it pointed at the original plugin folder.\n\nA bug is also fixed: when the plugin path had to be filled in more than once in a hook command, the result went into the wrong place.\n\n**Why**\n\nHooks can keep working while a plugin is being updated or replaced. If your own hook scripts rely on `CLAUDE_PLUGIN_ROOT`, they may now see the installed copy's location.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}