Files
hermes-agent/website/docs/developer-guide/plugins
Teknium f476899bbd fix(plugins): a plugin slash command can opt in to run mid-turn
A plugin's side-thread command (/btw --explore as a plugin) is only useful
while the main turn runs, but the classic CLI queued every plugin command in
_pending_input until the turn ended, and a messaging chat read it as a
follow-up (interrupt or queue). The TUI and Desktop already ran it at once.

register_command(busy_policy="dispatch") is the opt-in, mirroring the
CommandDef vocabulary; the default is unchanged.

- hermes_cli/plugins.py::plugin_command_runs_mid_turn is the one lookup.
- Messaging: the busy fast path (_hm_busy_slash_or_photo ->
  _hm_busy_plugin_command) dispatches it under the slash access gate, and
  should_bypass_active_session lets it through the base adapter's own busy
  guard.
- Classic CLI: commands.catalog carries plugin_busy_commands (the CLI's
  plugin commands run in the gateway), and a busy Enter dispatches the
  command on its own thread so the clarify panel stays answerable.
2026-11-29 14:14:47 -08:00
..