[BUG] Custom slash commands no longer working

Status Fixed / completed
Maintainer reply None cached
Activity 14 comments · opened Sep 7, 2025 · closed Dec 9, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Custom slash commands are no longer available on Windows.

I use custom slash commands frequently; they were very recently (9/5 I think), not today (9/7). They do not show on auto-fill and if I type in the command exactly I get "Unknown slash command: {rule-name}".

I have my commands in the .claude\commands folder of the repo.

I verified I opened Claude Code in the correct directory, and I tried with several projects. I tried also tried clearing the Users\{user}\.claude\projects folder, that also did not resolve.

May be related to https://github.com/anthropics/claude-code/issues/7271

What Should Happen?

I should be able to use custom slash commands.

Error Messages/Logs

Custom slash commands do not auto-fill when typing and if typed in fully Claude Code responds with "Unknown slash command: {rule-name}".

Steps to Reproduce

  • Have a custom slash command in the .claude/commands folder of your project.
  • Attempt to use the custom slash command

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.108

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Cursor

Additional Information

_No response_

View original on GitHub ↗

14 Comments

jesse-windebank · 11 months ago

I have been experiencing slash commands disappearing and then reappearing... for example, here is my current state with two sessions open within Warp Terminal on Mac.

Visible in this worktree:
<img width="1668" height="588" alt="Image" src="https://github.com/user-attachments/assets/ba8a0489-43b0-4c58-9462-f3353d5bdfbc" />

Try in a different worktree the 'start' slash commands do not appear:
<img width="1676" height="702" alt="Image" src="https://github.com/user-attachments/assets/6a87079d-422f-4db2-93b6-6a5f00035b28" />

khromov · 11 months ago
cbidwill · 11 months ago

Helpful work around for others who are experiencing this issue: Just ask claude code to use the intended command

Example: Use the @.claude\commands\launch-local.md command.

mg-dev25 · 11 months ago

Had the same problem - custom commands AND agents not showing up in /help even though search was working.

Found the culprit was my ripgrep config. I had --color=always in my ~/.ripgreprc which was embedding ANSI color codes in file paths during Claude Code's
discovery process. It was trying to read files like [0m[1m[32m/path/to/command.md[0m instead of the actual path.

Fixed it by changing --color=always to --color=auto in my ripgrep config. Still get colors in terminal but Claude Code gets clean paths for file
discovery.

Worth checking if you have custom ripgrep settings - might be the same issue.

AmirL · 11 months ago

My slash commands have disappeared today. After Claude was restarted, they started to work normally again. Didn't change anything.

cbidwill · 11 months ago

This is resolved for me with v2.0.1 🥳

AndyWendt · 10 months ago

They're not showing up for me at all now. Tried restarting claude. Multiple terminals. What a pain.

drod3763 · 10 months ago
Had the same problem - custom commands AND agents not showing up in /help even though search was working. Found the culprit was my ripgrep config. I had --color=always in my ~/.ripgreprc which was embedding ANSI color codes in file paths during Claude Code's discovery process. It was trying to read files like [0m[1m[32m/path/to/command.md[0m instead of the actual path. Fixed it by changing --color=always to --color=auto in my ripgrep config. Still get colors in terminal but Claude Code gets clean paths for file discovery. Worth checking if you have custom ripgrep settings - might be the same issue.

This was it for me. In my case it was --pretty in my ripgrep config.

AmirL · 10 months ago
My slash commands have disappeared today. After Claude was restarted, they started to work normally again. Didn't change anything.

It happens sometimes even in v2, but restarting the app usually helps.

jvortmann · 10 months ago

It is finally working for me after setting USE_BUILTIN_RIPGREP=0

pvico · 10 months ago

On Raspberry Pi 5 with Debian 12 (Raspberry Pi OS Lite) and Claude Code v2.0.24: same problem.
Solved by installing ripgrep:
sudo apt install ripgrep
And adding in ~/.bashrc:
export USE_BUILTIN_RIPGREP=0
then
source ~/.bashrc

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

cbidwill · 8 months ago

I am no longer experiencing this issue and haven't for at least month. closing. thank you!

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.