claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

"Claude Code: Commands Not Detected in .claude/commands Directory"

Open JordanDalton opened this issue 6 months ago • 7 comments

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"}]

JordanDalton avatar Jun 01 '25 16:06 JordanDalton

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?

davidbarker avatar Jun 02 '25 13:06 davidbarker

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.

amcharles91 avatar Jun 03 '25 16:06 amcharles91

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 avatar Jun 03 '25 17:06 igorkofman

@igorkofman

Image

I run claude in the terminal.

/project and /user don't return any commands

Here's a short video demonstrating this:

https://github.com/user-attachments/assets/823f0910-89b5-4fcb-95a6-a83f123b8edd

JordanDalton avatar Jun 03 '25 21:06 JordanDalton

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.

NeillAlexander avatar Jun 04 '25 16:06 NeillAlexander

A work around is to remove or rename your projects directory in ~/.claude/projects/

I believe there are multiple reports of this issue.

gburch avatar Jun 05 '25 13:06 gburch

This appears to be working for me now. (I didn't manually change anything.)

davidbarker avatar Jun 10 '25 22:06 davidbarker

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.

github-actions[bot] avatar Aug 14 '25 14:08 github-actions[bot]