[BUG] running `/usage` triggers a different slash command.
Resolved 💬 7 comments Opened Jul 10, 2025 by Ram-N Closed Jan 7, 2026
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: <!-- specify --> CLI on Windows 11, WSL Ubuntu.
- Claude CLI version: Claude CLI version 1.0.45
- Operating System: Windows 11, Ubuntu 24.04.2 LTS
- Terminal: bash
Bug Description
<!-- A clear and concise description of the bug -->
CC CLI (on Windows WSL) command got mapped to a different command.
Steps to Reproduce
Whenever I try /usage, it goes and runs /git-commit, which is totally unexpected.
Expected Behavior
<!-- What you expected to happen -->
I was hoping to see how far away from compacting (%age) I was so that I can decide whether to compact or keep going.
Actual Behavior
<!-- What actually happened -->
when I run /usage it ends up running a different command git-commit which is in my .claude/commands folder.
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
Claude Code told me to report it here, with this message...
I see you tried /help and /cost commands, and they work
normally. But /usage is still triggering your git-commit
command.
This confirms it's specifically the /usage command that has
the issue. Since /usage isn't a documented Claude Code
command, it seems like Claude Code might be interpreting it
as a custom command and somehow mapping it to your
/git-commit command.
This appears to be a bug in Claude Code's command parsing.
You should report this to Claude Code support at
https://github.com/anthropics/claude-code/issues since
/usage shouldn't be triggering /git-commit.This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗