claude-code - 💡(How to fix) Fix Feature request: extensible prompt suggestions (hooks/config/CLAUDE.md) [1 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#56065Fetched 2026-05-05 05:59:06
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Fix Action

Fix / Workaround

I maintain a custom catalog of slash commands and skills (research workflows, lit-review, identification strategy, manuscript audit, etc.). I've been surfacing context-aware skill suggestions in my powerline statusline as a workaround. Native prompt-area suggestions would be a much better surface for this — but only if I can feed in my own logic about which commands/skills are relevant given the current conversation.

Workaround currently used

RAW_BUFFERClick to expand / collapse

Summary

Claude Code's prompt suggestions (the grayed-out next-message autocomplete in the input area) are great, but currently appear to be closed — no settings, hooks, or CLAUDE.md directives to steer them.

Use case

I maintain a custom catalog of slash commands and skills (research workflows, lit-review, identification strategy, manuscript audit, etc.). I've been surfacing context-aware skill suggestions in my powerline statusline as a workaround. Native prompt-area suggestions would be a much better surface for this — but only if I can feed in my own logic about which commands/skills are relevant given the current conversation.

Proposed extension points (any one would unblock this)

  1. Hook event — e.g. UserPromptSuggestion that fires when suggestions are generated, with the conversation context, allowing the hook to return additional candidate suggestions.
  2. Settings.json key — e.g. promptSuggestions: { sources: [\"slash-commands\", \"recent-skills\", { command: \"./bin/my-suggester.sh\" }] } that lets users plug in custom suggestion generators.
  3. CLAUDE.md directive — e.g. a ## Prompt suggestions section listing slash commands or skills that should be considered when contextually relevant.

Why hooks are insufficient today

Existing hooks fire on tool execution and prompt submission, not on suggestion generation. There's no event surface for the suggestion engine.

Workaround currently used

Statusline (powerline) renders contextual skill hints — works, but separate from the input field where suggestions actually need to land.

extent analysis

TL;DR

Implementing a custom hook event, such as UserPromptSuggestion, could allow for injecting custom logic into the prompt suggestion system.

Guidance

  • Investigate the feasibility of introducing a new hook event that fires when suggestions are generated, providing conversation context to allow for custom suggestion generation.
  • Consider adding a settings.json key to enable users to configure custom suggestion sources, such as external scripts or commands.
  • Explore the possibility of using a CLAUDE.md directive to define a list of slash commands or skills that should be considered for contextual suggestions.
  • Evaluate the current workaround of using the powerline statusline for contextual skill hints and determine if it can be adapted or extended to integrate with the native prompt suggestion system.

Example

No code example is provided due to the lack of specific technical details in the issue.

Notes

The proposed solutions rely on the assumption that the existing hook system and settings.json configuration can be extended or modified to accommodate custom suggestion logic. The feasibility of these approaches may depend on the underlying architecture and implementation of the prompt suggestion system.

Recommendation

Apply workaround: Implement a custom hook event or settings.json key to enable custom suggestion generation, as this approach seems to be the most direct way to address the current limitation.

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 Feature request: extensible prompt suggestions (hooks/config/CLAUDE.md) [1 participants]