[BUG] Custom slash commands not recognized / WSL2 Ubuntu 24.04
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: Anthropic max plan
- Claude CLI version: 1.0.51
- Operating System: Windows 11 WSL2 with Ubuntu 24.04
- Terminal: Wezterm
Bug Description
as you seem to work on slashcommands: https://github.com/anthropics/claude-code/issues/3294#issuecomment-3058225686 and have a deeper understanding @dicksontsai although it says in the changelog, that the user custom prompts got fixed in 1.0.51 for me it still consists.
I am on wsl2 on ubuntu.
``` /doctor
Claude CLI Diagnostic
Currently running: native (1.0.51)
Path: /home/lightningralf/.local/bin/claude
Invoked: /$bunfs/root/claude
Config install method: native
Auto-updates enabled: true
Apparrently the rg 'issue' it is not:
> file /usr/bin/rg
/usr/bin/rg: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=726466e6ea4f4b70dbe80e7dcf117527a2118387, for GNU/Linux 3.2.0, stripped
> rg --version
ripgrep 14.1.0
features:-simd-accel,+pcre2
simd(compile):+SSE2,-SSSE3,-AVX2
simd(runtime):+SSE2,+SSSE3,+AVX2
PCRE2 10.42 is available (JIT is available)
---
I just want custom slash commands :/
## Steps to Reproduce
Install claude-code via bun.
or
install it via npm. (i tried both) didnt work either way.
## Expected Behavior
create new custom slash commands, via claude-code.
see those commands inside claude code.
## Actual Behavior
the commands get created in ~/.claude/commands/tmq.md (for example)
/tmq - Three Magic Questions
Generate the three essential learning questions for any topic:
- Wie kann ich es nutzen? (How can I use it?)
- Warum muss ich es nutzen? (Why must I use it?)
- Wann werde ich es nutzen? (When will I use it?)
Usage
/tmq [topic]
Example
/tmq Bruchrechnung
This will generate a structured worksheet with the three magic questions tailored to the specific topic, helping students reflect on the practical relevance of what they're learning.
But the commands do not show up in the system nor with /help
## Additional Context
https://github.com/anthropics/claude-code/issues/1416#issuecomment-3071057605
7 Comments
What does the output of
/helplook like? Where else do you expect to see /tmq?I would imagine seeing this command when starting to type: /tmq
Like in this short video from Alex Albert: https://x.com/alexalbert__/status/1940082948445020508
Same issue here, on pop-os
Linux pop-os 6.12.10-76061203-generic #202412060638~1751390742~22.04~79b9668 SMP PREEMPT_DYNAMIC Tue J x86_64
Problem was solved for me after upgrading rg to 14.1.1
tried it with 14.1.1 / didn't help. I think there is a different issue at hand.
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.