Command Discovery Failure: Custom Commands and Autocomplete Not Working

Status Fixed / completed
Maintainer reply ✓ Yes — igorkofman
Activity 7 comments · opened Mar 20, 2025 · closed Aug 22, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
I am on 0.2.52 and both auto-complete and custom commands don't appear to work. But other new features do (e.g /vim and auto-accept). I've followed the instructions on creating a .claude/commands directory in my project and in my ~/ (for user scoped commands) but the commands I added as markdown files aren't available as custom commands. Typing /project: or /user: doesn't show any commands. Similarly, when I type a path into claude and press tab I do not get any autocomplete functionality.

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 0.2.50
  • Feedback ID: d4d059d8-3a24-4932-9545-cf4a42eedab0

Errors

[{"error":"Error: spawn /Users/mikeoliver/Library/Application%20Support/Herd/config/nvm/versions/node/v23.1.0/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-03-20T17:06:05.327Z"}]

View original on GitHub ↗

7 Comments

igorkofman collaborator · 1 year ago

The commands need to have a ".md" extension to show up - any chance thats missing?
For the path autocomplete, you shouldn't have to type in a whole path to autocomplete, just the beginning of the name of any file in the repo. In particular auto-complete will not work with global absolute paths or paths outside of your projects.

highlighter-mike · 1 year ago

Hi, @igorkofman thanks for the quick folllow up.

  1. The commands have a ".md" extension (e.g. .claude/commands/fix-issue.md)
  2. For auto-complete I am in my project root and type app/ (a folder in my project root) followed by tab and do not get any auto-complete options.

Thanks!

igorkofman collaborator · 1 year ago

Strange - I cannot repro either of those. Any chance you can make a video of the repro? Make sure to include claude --version just to make sure there's not two versions of clause or something. Thanks for the report!

highlighter-mike · 1 year ago

Here you go. gif of slash command issue below. Let me know if you need anything else. Thanks!

!Image

igorkofman collaborator · 1 year ago

Auto-complete should be fixed now. Let us know if it's working better for you. cc @ashwin-ant for /commands

ant-kurt collaborator · 1 year ago

We shipped some changes for this recently. Next steps:

github-actions[bot] · 1 year ago

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.