claude-code - 💡(How to fix) Fix [Feature Request] Add `disabledSlashCommands` setting to selectively suppress built-in slash commands

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Today there's no way to hide or disable individual built-in slash commands (e.g. /stickers). The only option, --disable-slash-commands, is all-or-nothing and kills custom commands too. permissions.deny targets tools, not commands, and hooks don't intercept slash-command dispatch.

Code Example

{
  "disabledSlashCommands": ["stickers"]
}
RAW_BUFFERClick to expand / collapse

Feature request: disabledSlashCommands setting to suppress specific built-in slash commands

Today there's no way to hide or disable individual built-in slash commands (e.g. /stickers). The only option, --disable-slash-commands, is all-or-nothing and kills custom commands too. permissions.deny targets tools, not commands, and hooks don't intercept slash-command dispatch.

Please add a disabledSlashCommands array to settings.json, e.g.:

{
  "disabledSlashCommands": ["stickers"]
}

Listed commands would be hidden from the menu and rejected if invoked. Honoring it at user / project / managed-settings levels would also let orgs enforce a curated command set.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.158
  • Feedback ID: d0a3c669-5338-4e99-b50e-36e68cd8f170

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] Add `disabledSlashCommands` setting to selectively suppress built-in slash commands