[BUG] Custom commands duplicated and non-functional when running Claude Code from home directory

Resolved 💬 4 comments Opened Jun 19, 2025 by Systemic-Void Closed Jul 28, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.29 (Claude Code)
  • Operating System: Ubuntu 22.04 LTS (Pop!_OS)
  • Terminal: Alacritty and Warp Terminal

Bug Description

When running Claude Code from the home directory, custom user commands from ~/.claude/commands/ are duplicated in the slash command list and become non-functional. Each scroll cycle adds more non-functional duplicate entries at the top of the command list.

!Image

Steps to Reproduce

  1. Create custom commands in ~/.claude/commands/
  2. Run claude from home directory (cd ~ && claude)
  3. Type / to open command list
  4. Scroll through the entire command list to the end or move between first and last entry.
  5. Observe additional duplicate lines appear

Expected Behavior

Each custom command should appear once in the list in alphabetical order.

Actual Behavior

  • Custom commands are duplicated multiple times throughout the command list
  • Each time you scroll to the end and back to top, another non-functional duplicate line is added at the top
  • The duplicated commands at the top cannot be executed
  • Command list becomes increasingly cluttered and difficult to navigate

Additional Context

  • Issue only occurs when running Claude Code from the home directory (~)
  • Commands work normally when running Claude Code from any other directory
  • Personal commands are stored in ~/.claude/commands/ as documented
  • Bug makes the command interface unusable when working from home directory

View original on GitHub ↗

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