claude-code - 💡(How to fix) Fix Feature request: Shell mode (!) should support system-level tab completion beyond history [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#60545Fetched 2026-05-20 03:55:49
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

Is your feature request related to a problem?

Currently, Claude Code's shell mode (! prefix) only provides history-based tab completion — it suggests commands that have previously been executed in the current project. It does not support system-level completion for arbitrary commands available in the system PATH, file paths, or shell builtins that haven't been executed before.

This means if I type ! git chec and press Tab, it won't autocomplete to git checkout unless I've already run that exact command in this project's history.

Describe the solution you'd like

Integrate system-level shell completion into the ! shell mode, so that pressing Tab would invoke the host shell's completion system (e.g. zsh-completions, bash-completions) to suggest:

  • System commands available in PATH
  • Subcommands and flags for known CLIs
  • File paths and arguments
  • Shell builtins and aliases

This would make the ! shell mode feel more like a native terminal experience.

Describe alternatives you've considered

  • Copy-pasting commands from a system terminal into Claude Code's ! mode works but is tedious.
  • Using !<command> with a partial command and letting Claude fill it in works but requires AI round-trip latency for something that should be instant.

Additional context

The built-in history completion is useful but insufficient for users who frequently run varied shell commands (system administration, one-off scripts, unfamiliar tools) where there is no prior history to complete from.

Many CLI tools provide native completion via command completion <shell>. A possible approach would be to bridge the host shell's completion context into Claude Code's ! mode input handler.

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: Shell mode (!) should support system-level tab completion beyond history [1 comments, 2 participants]