Remove shorthand commands and improve command suggestions#178
Merged
Conversation
… commands Remove the shorthand aliases `tools`, `resources`, and `prompts` that previously mapped to their `-list` counterparts. Bare prefix commands now produce a helpful error suggesting the primary action command (e.g., `tools` → `tools-call`, `resources` → `resources-read`, `prompts` → `prompts-get`). https://claude.ai/code/session_01CtojWxD6727Ba3vERgXxyk
tools → tools-list, resources → resources-list, prompts → prompts-list https://claude.ai/code/session_01CtojWxD6727Ba3vERgXxyk
jancurn
pushed a commit
that referenced
this pull request
Apr 16, 2026
Add Unreleased entry for the removal of `tools`, `resources`, and `prompts` shorthand commands in favor of their full names. https://claude.ai/code/session_01BiVsijKpsF5PPCf8zbTY9Y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes the shorthand
tools,resources, andpromptscommands and improves the command suggestion system to guide users to the full command names when they use the bare prefixes.Key Changes
tools,resources, andpromptscommands from the CLI, keeping only their full variants (tools-list,resources-list,prompts-list)KNOWN_SESSION_COMMANDSin the parsersuggestCommand()that suggests the appropriate-listvariant when users type bare prefixes (e.g.,tools→tools-list)Implementation Details
The command suggestion system now includes a new prefix-matching step that checks if an unknown command matches one of the known bare prefixes (
tools,resources,prompts) and suggests the corresponding-listcommand. This provides a better user experience by guiding users to the correct command without requiring them to remember the full naming convention.The prefix matching is case-insensitive and runs before the Levenshtein distance fallback, ensuring that exact prefix matches are prioritized over fuzzy matching.
https://claude.ai/code/session_01CtojWxD6727Ba3vERgXxyk