dsh-cc/dsh-cc--packages-interaction-command-plugin ↗★ 1

@dsh-cc/command-plugin

面向用户的斜杠命令,列出并重载已挂载的Claude Code插件。 适合查看已挂载插件组件数量或热重载插件的用户。

套件
@dsh-cc/command-plugin
相容性
待驗證
Harness 依賴範圍
>=0.1.5-rc.1
Cordis 依賴範圍
>=0.1.5-rc.1
版本
0.7.1
授權
Apache-2.0
最近更新
2026年9月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@dsh-cc/command-plugin

English | 中文

Human-facing /plugin and /reload-plugins commands: list the mounted Claude Code plugins (name, root, and per-component load counts) and rescan the on-disk discovery roots to remount them live. The plugin registers two global commands through ctx.commands, so every composed command adapter finds and executes them without a model turn.

Command contract

InputResult
/pluginList each mounted plugin's manifest name, plugin root, and per-component counts (commands: N, agents: N, skills: N, …), annotating non-zero skipped/failed components.
/reload-pluginsDispose all tracked mounts in reverse mount order, re-run discovery, and remount; report the fresh mount list plus any per-root failures.

Both read the optional ccPlugins service that cc-shell-glue mounts. A composition without the glue reports the seam gracefully instead of failing. Neither command consumes model tokens.

Composition

The producer injects commands. A custom app mounts the glue plus this plugin:

- id: cc-shell-glue
  name: '@dsh-cc/bundle-shell'
- id: command-plugin
  name: '@dsh-cc/command-plugin'

The ccPlugins seam is discovered via ctx at run time; it is not injected, so the command loads even when glue is absent (and then reports the missing seam).

Model Experience

The slash input and the direct outputs are absent from model requests and consume no model tokens. Outputs are pure reads of the mounted-plugin registry; presentation text is never logged.

Known Limitations and Deferred Work

  • Plugin mount internals are glue-owned — the command only enumerates/rescans what ccPlugins already tracks; it cannot mount a plugin root that discovery skipped.
  • No per-component detail — the report is counts plus reasons where the loader supplies them; verbatim component bodies are out of scope.