Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.265 ·

New 'command.run' hook pipeline for slash-command dispatch

Slash commands can now be intercepted and their output overridden by a new 'command.run' hook

Use it now Notable New Features
JSON All of v2.1.265
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.265,
What probably matters to youSection of the release
What

Running a slash command (like /compact) can now be routed through a new command.run hook chain before it executes. Hooks are user- or project-defined scripts that run at specific points in Claude Code's workflow. With this change:

  • A hook can intercept a slash command before it runs
  • A hook's own output text can "retell" (override) the text the command would otherwise have produced
Why

This lets hook authors customize or replace what happens when a slash command runs, rather than only reacting to it afterward.

Read from
Names in the bundlecommand.run
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up command.run, on Troubleshoot a mod. ### `no command.run hook answered it` plugins/mods/troubleshoot see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up command.run, on Troubleshoot a mod.

See this entry in the whole of v2.1.265 →

Feedback