[BUG] Custom commands are being duplicated e.g create 2 custom command files, 4 new commands appear in Claude Code
Environment
- Claude CLI version: 1.0.55 (Claude Code)
- Operating System: MacOS 15.5 (Silicon)
- Terminal: Warp (but happens in every other terminal on my machine)
Bug Description
I have created a custom command that I have placed inside the /commands directory, for some reason it is appearing twice when I log into Claude within the terminal (see screenshots)
Steps to Reproduce
- Create any new custom command in the ./claude/commands directory (Ensure Claude Code is not active) e.g 'feature.md'
- Launch Claude Code from any terminal
- Press the forward slash / to see all commands
- The newly added command appears twice in the listing at the very top
Expected Behavior
I have only created one command so would only expect to see one command in the Claude Code terminal
Actual Behavior
I always see the number of custom commands duplicated in the Claude Code terminal, so if I create 5 custom command files, this appears as 10 commands in the terminal
Additional Context
Screenshots below
I have created a new 'load' custom command markdown file, but it appears twice in the listing in the screenshot
<img width="993" height="283" alt="Image" src="https://github.com/user-attachments/assets/5da54bcf-3e97-4161-9301-796ee3c7bb4c" />
My commands directory with one custom command 'load'
<img width="716" height="174" alt="Image" src="https://github.com/user-attachments/assets/8f72a9dd-79fc-4a83-b3f9-f6651009e5de" />
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗