claude-code - 💡(How to fix) Fix Dynamic autosuggestions for slash command arguments

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…
RAW_BUFFERClick to expand / collapse

Problem

The argument-hint frontmatter for slash commands renders a static label after the command name. Useful for documentation, not interactive — no way to surface live, contextual values (ticket IDs, file paths, recent symbols, MCP-driven completions).

For users with custom workflow commands tied to issue trackers (Linear, GitHub Issues, Jira), this means typing the ticket ID by hand every time, or building a two-step "picker" command that breaks the input flow.

Proposal

Inline autosuggestions in the prompt area, fish/zsh-autosuggestions style:

  1. History-based — as the user types, ghost-text completes from prompt history.

  2. Dynamic via callback — slash-command frontmatter declares a completions field:

    • Shell command (completions: !./scripts/list-tickets.sh) returning newline-separated suggestions, OR
    • MCP tool reference (completions: mcp__linear__list_issues) the runtime calls with current input as filter.

    Returned strings render as a navigable dropdown.

  3. Keyboard nav — accept with → or Tab, cycle with ↑/↓.

Concrete use case

Custom /build command. After typing /build , surface live Linear tickets inline (filtered as you type), pick with arrows, Enter. Today this requires either a two-step picker command or knowing the ticket ID by heart.

Why

The MCP ecosystem is the right home for live data (tickets, files, symbols), but there's no UX bridge between MCP and the prompt input. A completions callback closes the gap.

Acceptable simpler version

History-only ghost text (no MCP callback) would already be valuable on its own.

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…

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 Dynamic autosuggestions for slash command arguments