[BUG] Custom slash commands not working despite correct setup
Resolved 💬 29 comments Opened Jun 19, 2025 by pjgoodall Closed Aug 22, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Description:
## Bug Report
### Issue
Custom slash commands are not being recognized or executed despite following the official documentation exactly.
### Setup
- Created
.claude/commands/chkpt.mdin project root - File contains valid command content
- Should be accessible as
/<username>:chkptbased on documentation - Claude confirmed setup was correct in previous session
~/.claude
### Expected Behavior
/<username>chkpt should execute the command content from the markdown file
### Actual Behavior
Claude does not recognize the custom command and fails to execute it
### Impact
- Wasting user money on repeated documentation reads
- Breaking promised functionality
- Inconsistent behavior between sessions
### Documentation Reference
https://docs.anthropic.com/en/docs/claude-code/common-workflows#create-project-specific-commands
This is a critical usability issue that makes the custom command feature unreliable.
example
``` markdown
❯ cat ~/.claude/commands/chkpt.md
Create a git checkpoint by:
- Run git status to show current changes
- Add all modified and new files to git staging
- Create a commit with an appropriate message
- Push the commit to the remote repository
Show me what changes will be committed before proceeding.
29 Comments
Does
/chkptwork?I'm running into the same issue, commands are not being registered and autocompleted by the UI even though they are placed in
~/.claude/commands. However, as suggested by @bcherny, running the command name manually (e.g,/my-commandeven with no autocomplete indicating it's been found) seems to be working.I've tried the steps outlined in this thread but it didn't not fix the discovery issue in the UI
EDIT: I'm wrong, it doesn't work 😅
I'm facing the same problem. Yesterday everything was working well. There was a claude code update this morning and since then all the custom slash commands are gone. I'm working on MacOS 15.5 and using claude code (1.0.29 since this morning).
I tried rolling back to a version of claude I knew was working like this:
It failed. No matter what version I try to rollback to, I always end up with the
1.0.29installed.This problem is very disabling since I rely a lot on custom slash commands for my daily dev task.
Same issue here, all the user based commands stopped showing up. The project commands also started ignoring the folder hierarchy and are showing up as flat list.
I am not having the same issue on Ubuntu 22.04
Just updated claude to
1.0.30. The problem is not fixed.Possibly related: #2277
yes it is. The problem was that the expected path for claude configuration was changed but the documentation was not updated : https://github.com/anthropics/claude-code/issues/2277#issuecomment-2989701170
i just tried
/chkpton my system, hoping i had been tired and misunderstood something, and had this colourful exchange with Claude-code :-)I feel sorry for the poor creature
I did feel the documentation was fragile...
Can confirm that moving Slash Commands to ~/.config/claude/commands works to fix it.
!Image
It seems bizarre that Anthropic would push such a breaking change and not update their official docs, but seems to be the case.
@zazer0 thx :) This way they're working again 👍
this documentation is incorrect: https://docs.anthropic.com/en/docs/claude-code/slash-commands
I am on version
1.0.34but I can't find any of my custom commands (nor running them manually).I have the same test command:
in
ciao.mdfile inbut claude ignore them. I am on mac os.
Any news?
I experienced a custom slash command issue related to my
rgcommand setup.In my case, I have
rg(ripgrep) installed via the CLI tool manager (aqua), and it createsrgcommand as a symbolic link.In this configuration, custom slash commands fail to work, and I found that when I deleted the
rgsymbolic link manually, custom slash commands started working correctly.Finally, setting
"USE_BUILTIN_RIPGREP": 1in ~/.claude/settings.json resolved the issue.Claude Code appears to rely on the global
rgcommand to find custom commands if installed on $PATH.Non-standard installation of the
rgcommand may break custom slash commands functionality.Possibly related (my comment): https://github.com/anthropics/claude-code/issues/1843#issuecomment-3033093193
Having the issue on v1.0.43. None of the fixes proposed work.
Also encountering this issue. Tried removing everything and restarting installation process multiple times.
Npm global install and local install via migrate-installer has the same result where custom commands placed in a project either
.claude/commands/,~/.claude/commands/,~/.config/claude/commandsdo not display these commands in claude when typing/.macOS Monterey 12.7.6
Claude Code: v1.0.43
If you don't have a claude folder inside your .config folder (my case), just put your markdown files in
~/.claude/commandsinstead of~/.config/claude/commandsor in your project directory. This will only work if you're on the latest version of CC.I can confirm @pinelibg 's statement that we rely on the built-in ripgrep to do the command discovery.
~/.claude/commandsis the one mentioned in the docs actually: https://docs.anthropic.com/en/docs/claude-code/slash-commands@dicksontsai I'm also in macOS Monterey; could this hint at the root cause?
I had rg installed via npm. Deleting it and reinstalling it with homebrew fixed the issue for me.
I have the same issue with windows and wsl2. #3507
What happens when you run
!rg --debug test?How does your .ripgreprc file look like?
Are there any flags you are not allowed to add? @dicksontsai
Installing ripgrep via brew works for me (macOS Monterey 12.2.1; Claude Code 1.0.67).
I have the same issue with window. I have tried to use ~/.claude/commands/ and ~/.config/claude/commands.
.claude/commands/ worked for me (user scope and project scrope) when I exited Claude and reopened it.
my version: v1.0.67
which version of ripgrep do you have installed? anything in your bash_aliases / bashrc or similar?
The same problem happened to me as well. The custom slash command not showing up and not working
Ok I figured it out! I documented the solution here: https://github.com/anthropics/claude-code/issues/4741#issuecomment-3177976916
I do not want to re-spam / copy the entire solution / details in several gh issues so I am linking back to my detailed solution and write-up. Hope this helps others!!
We shipped some changes for this recently. Next steps:
claude /doctorshould tell you if Search (which includes @ file mentions and custom agents / slash commands) is workingThis 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.