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

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 7 comments · opened Jul 14, 2025 · closed Aug 22, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

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 ↗

7 Comments

dicksontsai collaborator · 1 year ago

What does the output of /help look like? Where else do you expect to see /tmq?

lightningRalf · 1 year ago
/help
Common Tasks:
 • Ask questions about your codebase > How does foo.py work?
 • Edit files > Update bar.ts to...
 • Fix errors > cargo build
 • Run commands > /help
 • Run bash commands > !ls

 Interactive Mode Commands:
  /add-dir - Add a new working directory
  /clear - Clear conversation history and free up context
  /compact - Clear conversation history but keep a summary in context. Optional: /compact [instructions for
  summarization]
  /config - Open config panel
  /cost - Show the total cost and duration of the current session
  /doctor - Diagnose and verify your Claude Code installation and settings
  /exit - Exit the REPL
  /export - Export the current conversation to a file or clipboard
  /help - Show help and available commands
  /hooks - Manage hook configurations for tool events
  /ide - Manage IDE integrations and show status
  /init - Initialize a new CLAUDE.md file with codebase documentation
  /install-github-app - Set up Claude GitHub Actions for a repository
  /login - Sign in with your Anthropic account
  /logout - Sign out from your Anthropic account
  /mcp - Manage MCP servers
  /memory - Edit Claude memory files
  /migrate-installer - Migrate from global npm installation to local installation
  /model - Set the AI model for Claude Code
  /permissions - Manage allow & deny tool permission rules
  /pr-comments - Get comments from a GitHub pull request
  /release-notes - View release notes
  /resume - Resume a conversation
  /review - Review a pull request
  /status - Show Claude Code status including version, model, account, API connectivity, and tool statuses
  /upgrade - Upgrade to Max for higher rate limits and more Opus
  /vim - Toggle between Vim and Normal editing modes

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

muriloime · 1 year ago

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

muriloime · 1 year ago

Problem was solved for me after upgrading rg to 14.1.1

lightningRalf · 1 year ago

tried it with 14.1.1 / didn't help. I think there is a different issue at hand.

ant-kurt collaborator · 1 year ago

We shipped some changes for this recently. Next steps:

github-actions[bot] · 1 year 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.