Mrlilili/dsh-plugin-model-switcher1

dsh-plugin-model-switcher

DSH plugin: keyboard shortcuts to switch models and reasoning effort levels

AI 分析

核心用途是提升模型切换和推理级别调整的效率。适合重度键盘依赖者,通过 Ctrl+Shift+M/R 即可快速循环切换,无需频繁点击鼠标。

パッケージ
dsh-plugin-model-switcher
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/21

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Mrlilili/dsh-plugin-model-switcher

ドキュメント

README 全文を読む ↗

dsh-plugin-model-switcher

English | 中文

DSH plugin for switching models and reasoning effort levels via keyboard shortcuts.

Shortcuts

ShortcutAction
Ctrl+Shift+M / Cmd+Shift+MCycle through models in the current provider
Ctrl+Shift+R / Cmd+Shift+RCycle through reasoning efforts (off → low → high → max → off)

A toast notification confirms each switch in the bottom-right corner.

How it works

Host (src/index.ts):

  • Reads the current model selection from agentDefaultModel
  • Cycles through models via llm.listModels() or reasoning efforts via llm.resolveModelInfo()
  • Persists the new selection via agentDefaultModel.saveSelection()

Client (src/client/index.ts):

  • Registers a toast overlay in the shell.overlay slot
  • Listens for Ctrl/Cmd+Shift+M and Ctrl/Cmd+Shift+R on the document (capture phase)
  • Calls the Host handlers via host.call() and updates the model selector UI via modelDirectories.directoryFor(sessionId).select()

Installation

dsh plugin --profile web add https://github.com/Mrlilili/dsh-plugin-model-switcher.git

Then restart DSH.

License

MIT