[BUG] Custom slash commands not recognized / WSL2 Ubuntu 24.04

Resolved 💬 7 comments Opened Jul 14, 2025 by lightningRalf Closed Aug 22, 2025

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:

  1. Wie kann ich es nutzen? (How can I use it?)
  2. Warum muss ich es nutzen? (Why must I use it?)
  3. 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

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗