Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.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

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaHookswhat it touches
KindNew Featuresin v2.1.265,
Use it now Notable No documentation found

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

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

See this entry in the whole of v2.1.265 →

Feedback