Unclear Which commands get the plugin-name prefix on their output is not stated.
What
A mod is a plugin's own code, and command.run is the hook that runs when you type one of its slash commands. Three things are now different when such a command runs:
- Changed arguments: Claude Code now tracks whether a hook altered the arguments you typed.
- Owner dialog: Claude Code can now show a dialog for the plugin that owns the command.
- Plugin name prefix: Claude Code now decides whether to put the plugin's name in front of the text the command prints.
Why
The output of some mod commands may now start with the name of the plugin they come from.
Names in the bundlecommand.run
Documented inclaude-code/plugins/mods/api
command.run
Create a mod modified, high confidence
* **[`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command)** runs when you type `/tally`. It returns the text to print.see the edit
command.run
Test a mod modified, high confidence
Each `$.tool.call` went through the mod's [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) hook, which added one to its count and passed the call on to the stub. No `ls` ran and no file was rea…see the edit
command.run
Mods reference modified, low confidence
| [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) | A command is about to run | `{ text }`, `{}`, or `next(e)` |see the edit
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up command.run, on Use the mods API.
To set the exit code when you run `claude -p "/standup"` in your shell, return an `exitCode` field from the `command.run` hook, as an integer from 0 to 255. Make the command the whole prompt, and return from the hook without calling [`next…plugins/mods/api see the edit
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
Which commands get the plugin-name prefix on their output is not stated.
Anthropic's documentation agrees
command.run on Create a mod