"Claude Code: Commands Not Detected in .claude/commands Directory"
Status Fixed / completed
Maintainer reply ✓ Yes — igorkofman
Workaround ✓ Mentioned in thread ↓
Activity 8 comments · opened Jun 1, 2025 · closed Jul 7, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
When I launch claude code it doesn't offer the commands within .claude/commands
Environment Info
- Platform: macos
- Terminal: windsurf
- Version: 1.0.6
- Feedback ID: edbcfd84-8361-408a-9c60-424ca3e50980
Errors
[{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:716:27)\n at onAbortListener (node:child_process:786:7)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)","timestamp":"2025-06-01T16:16:03.184Z"},{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at tG (file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:3921)\n at file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:6758\n at Q (file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:16886)\n at oR1 (file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:5777)\n at GG (file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:5406)\n at PU2 (file:///Users/jordandalton/Library/Application%20Support/Herd/config/nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1976:21167)","timestamp":"2025-06-01T16:16:03.284Z"}]
8 Comments
I've just started having the same issue (#1504), and I notice that we're both using nvm/node via Herd. I wonder if that's related?
I have the same issue. I tried it in the project folder at .cluade/commands and at the ~/.cluade/commands level. I am on ubuntu with wsl from windows. This was working previously.
Thanks for the report. Do the commands not show up in the initial list (potentially a sorting issue) or do they not show up even if you type the command name?
@igorkofman
!Image
I run
claudein the terminal./projectand/userdon't return any commandsHere's a short video demonstrating this:
https://github.com/user-attachments/assets/823f0910-89b5-4fcb-95a6-a83f123b8edd
This is also happening for me. Sometimes it detects commands, mostly it doesn't. I can't work out why. Using VSCode on Windows, connecting to WSL2. Claude 1.0.10.
A work around is to remove or rename your projects directory in ~/.claude/projects/
I believe there are multiple reports of this issue.
This appears to be working for me now. (I didn't manually change anything.)
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.