Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Some plugin hooks now run from an installed copy of the plugin

For some plugins, hook commands now run from an installed copy, and CLAUDE_PLUGIN_ROOT points at that copy instead of the original folder

You'll notice Improvements
JSON All of v2.1.337
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PluginsArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release

Unclear Which kinds of plugins have their hooks run from the installed copy is not stated.

What

Plugins 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.

For 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.

A 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.

Why

Hooks 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.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich kinds of plugins have their hooks run from the installed copy is not stated.

See this entry in the whole of v2.1.337 →

Feedback