{"version":"2.1.265","anchor":"new-commandrun-hook-pipeline-for-slash-command-dispatch","canonical_anchor":"new-commandrun-hook-pipeline-for-slash-command-dispatch","heading":"New 'command.run' hook pipeline for slash-command dispatch","tier":"use","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/new-commandrun-hook-pipeline-for-slash-command-dispatch","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### New 'command.run' hook pipeline for slash-command dispatch\n\nSlash commands can now be intercepted and their output overridden by a new 'command.run' hook\n\n**What**\n\nRunning 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:\n\n- A hook can intercept a slash command before it runs\n\n- A hook's own output text can \"retell\" (override) the text the command would otherwise have produced\n\n**Why**\n\nThis lets hook authors customize or replace what happens when a slash command runs, rather than only reacting to it afterward.\n\n- Area: Hooks\n- Names: `command.run`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}