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.
Names in the bundlecommand.run