claude-code - 💡(How to fix) Fix Support slash command autocomplete when '/' is typed mid-prompt [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55173Fetched 2026-05-01 05:44:21
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1

Claude Code only shows slash command suggestions when / is the first character in the input box.

If / is typed in the middle of an otherwise normal prompt, it is treated as plain text and no slash command menu appears.

Root Cause

I found earlier related requests such as #13073 and #29752, but the capability still does not appear to exist today. Reopening the request here because this workflow remains useful and matches how some users expect command discovery to work.

Code Example

Please help review this change /review

---

/review
RAW_BUFFERClick to expand / collapse

Summary

Claude Code only shows slash command suggestions when / is the first character in the input box.

If / is typed in the middle of an otherwise normal prompt, it is treated as plain text and no slash command menu appears.

Why this is useful

Other tools such as Cursor support inline / command discovery while writing a prompt, which makes command usage feel more natural and reduces context switching.

For example, this currently does not trigger suggestions:

Please help review this change /review

Only this does:

/review

Expected behavior

If / is typed in the middle of the input, Claude Code should optionally surface slash command suggestions there as well, or provide a configurable setting to enable inline slash command autocomplete.

Actual behavior

Slash command suggestions only appear when the input starts with /.

Additional context

I found earlier related requests such as #13073 and #29752, but the capability still does not appear to exist today. Reopening the request here because this workflow remains useful and matches how some users expect command discovery to work.

extent analysis

TL;DR

Implementing inline slash command discovery would allow Claude Code to surface suggestions when / is typed anywhere in the input box, not just at the beginning.

Guidance

  • Review the code responsible for handling slash command suggestions to identify why it only triggers when / is the first character.
  • Investigate how other tools like Cursor implement inline command discovery to inform the design of a similar feature in Claude Code.
  • Consider adding a configurable setting to enable or disable inline slash command autocomplete to accommodate different user preferences.
  • Examine related requests #13073 and #29752 to understand previous attempts to implement this feature and potential challenges that were encountered.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The implementation of inline slash command discovery may require significant changes to the existing codebase, and careful consideration should be given to user experience and potential performance impacts.

Recommendation

Apply a workaround by modifying the code to trigger slash command suggestions when / is typed anywhere in the input box, as this would provide the desired functionality and improve user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

If / is typed in the middle of the input, Claude Code should optionally surface slash command suggestions there as well, or provide a configurable setting to enable inline slash command autocomplete.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Support slash command autocomplete when '/' is typed mid-prompt [1 comments, 2 participants]