Incorrectly labels custom slash command in ~/.claude directory as '(project, gitignored)' instead of '(user)'

Resolved 💬 8 comments Opened Aug 14, 2025 by YishenTu Closed Jan 10, 2026

Bug Description

The slash command in ~/.claude directory (user settings folder) is incorrectly labeled as "(project, gitignored)" instead of "(user)".

Expected Behavior

When in the ~/.claude directory, slash commands like /audit should show "(user)" to indicate this is the global user settings directory.

Actual Behavior

Slash commands show "(project, gitignored)" even though this is the user configuration directory.

Steps to Reproduce

  1. Version control ~/.claude
  2. Navigate to ~/.claude directory
  3. Type /command or other custom slash commands
  4. Observe the label shows "(project, gitignored)" instead of "(user)"

What I've Tried

  • Removed .git directory (was using git for backup/version control)
  • Removed .gitignore file
  • Restarted Claude Code session

None of these steps fixed the incorrect labeling.

Environment

  • OS: macOS Darwin 25.0.0
  • Claude Code global settings directory: ~/.claude

Impact

This is confusing because the same commands appear in actual project directories with the same label, making it hard to distinguish between the user settings folder and actual projects.

View original on GitHub ↗

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