Skip to content

[BUG] Built-in slash commands hidden from autocomplete when too many skills are installed #22020

@zhaozuowu1

Description

@zhaozuowu1

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Built-in slash commands (like /model, /help, /doctor, /cost) do not appear in the autocomplete dropdown when typing /. Only custom skills from the ~/.claude/skills/ directory are shown.

  The commands still work when typed manually (e.g., typing /model and pressing Enter executes correctly), but they are completely hidden from the autocomplete list.

What Should Happen?

Built-in commands should always appear in the autocomplete list, ideally with higher priority than custom skills.

Error Messages/Logs

<img width="3834" height="372" alt="Image" src="https://github.com/user-attachments/assets/22533f94-1190-4ff3-8cb7-38c9f70704e7" />

Steps to Reproduce

  1. Install multiple skills in ~/.claude/skills/ directory (I had ~50 skills)
      2. Start Claude Code in interactive mode
      3. Type / to trigger autocomplete
      4. Observe that only custom skills appear, built-in commands like /model, /help are missing

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.23

Claude Code Version

2.1.25

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Bug Report: Built-in slash commands hidden from autocomplete when too many skills are installed

  Environment
  - Claude Code version: 2.1.25
  - Install method: native
  - OS: macOS Darwin 23.4.0

  Description
  Built-in slash commands (like /model, /help, /doctor, /cost) do not appear in the autocomplete dropdown when typing /. Only custom skills from the ~/.claude/skills/ directory are shown.

  The commands still work when typed manually (e.g., typing /model and pressing Enter executes correctly), but they are completely hidden from the autocomplete list.

  Steps to Reproduce
  1. Install multiple skills in ~/.claude/skills/ directory (I had ~50 skills)
  2. Start Claude Code in interactive mode
  3. Type / to trigger autocomplete
  4. Observe that only custom skills appear, built-in commands like /model, /help are missing

  Expected Behavior
  Built-in commands should always appear in the autocomplete list, ideally with higher priority than custom skills.

  Actual Behavior
  Autocomplete list only shows custom skills. Built-in commands are completely hidden from the dropdown.

  Workaround
  Temporarily moving/removing the ~/.claude/skills/ directory restores built-in commands in autocomplete:
  mv ~/.claude/skills ~/.claude/skills.backup

  Diagnostic Output
  /doctor shows no errors related to this issue:
  - Search: OK (bundled)
  - All other diagnostics pass

  Suggested Fix
  - Increase the autocomplete dropdown limit
  - Or prioritize built-in commands to always appear first
  - Or add a separate section for built-in commands vs custom skills

  ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSregression

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions