[BUG] Add-dir doesn't load .claude if it exists

Resolved 💬 8 comments Opened Aug 12, 2025 by choxnox Closed Jan 28, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.73
  • Operating System: macOS 15.5
  • Terminal: Terminal

Bug Description

When adding additional directories via --add-dir parameter, if dir(s) have their own .claude folders, they're not taken into consideration.

For example, if I run claude --add-dir /some/dir and there is /some/dir/.claude/commands/abc.md, then if I try to do /abc, it won't be recognized unless I explicitly tell the AI to take all the working directories into consideration.

However, even if explicitly mentioning the AI to take all the working directories into consideration, from the Claude Code UI if I type /abc, it's not recognized and is not showing in the autocomplete list.

Steps to Reproduce

  1. Run Claude Code with claude --add-dir /some/dir (make sure /some/dir/.claude/commands/abc.md exists with its content)
  2. Type in /abc (it's not recognized in the autocomplete) and hit enter (the AI responds that such command is not available

Expected Behavior

Claude Code to parse .claude directories across all the working directories and make all the custom commands available without explicitly mentioning to the AI that it needs to consider all the working directories.

Actual Behavior

Claude Code doesn't recognize custom commands in the other working directories besides the default one.

Additional Context

N/A

View original on GitHub ↗

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