What
Plugins can add their own slash commands, the commands you type starting with /, through $.command.register. Registration now accepts more options:
aliases: other names the command also answers to.isHidden,isTerminalOnlyandisWorkspaceFree, alongside the existingname,description,argumentHintandimmediate. The error text lists them.
It also checks more:
- A name or alias already held by another plugin or by an existing command is refused, with a specific reason. Before, only the name was checked, and only against one other holder or a built-in command.
immediate,isHidden,isTerminalOnlyandisWorkspaceFreemust be true or false. Other values are rejected with " is true or false". Before, onlyimmediatewas checked.
Plugin validation now warns about command names that Claude Code itself ships. In a terminal, the first plugin to register such a name holds it, while headless sessions (runs with no interactive screen) and cloud sessions refuse it. Validation also flags hooks that name an alias.
Why
Plugin authors can give commands short alternative names and control where they appear. Clashing names are caught with a clear reason, and a shipped command name behaves differently depending on where Claude Code runs.