ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 junjiezhou1122

model-search

可搜尋的 Claude Code 模型選擇器(/ms),適合模型清單很長的設定,同時維持內建 /model 命令不變。

junjiezhou1122@junjiezhou1122

junjiezhou1122/plugins/tree/main/model-search

已翻譯

關於這個 mod

一個 Claude Code 外掛,加入開啟可搜尋模型面板的 /ms 斜線命令。輸入時會即時篩選模型名稱、標籤和提供者 ID,高亮第一個相符項目,按 Enter 選取,按 Esc 取消。它會把 Claude Code 自有的模型(Default、Sonnet、Opus、Haiku 等)列在閘道提供的模型之前,並高亮目前模型。它讀取 modelPicker 設定,不會進行網路呼叫;選取模型時交給 Claude Code 自己的 /model <id>。原生 /model 選單和 /model <id> 都維持不變,也可以用 claude plugin disable 停用外掛。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add junjiezhou1122/plugins
claude plugin install model-search
原文 / README

model-search

A searchable model picker, for setups where the model list is longer than a menu can usefully show.

Type /ms and a palette opens with the query already focused. Results appear as you type, so there is no Tab to press and no dropdown to expand. The first match is highlighted, Enter selects it, and every visible row is clickable. Esc closes without changing anything.

/model is left exactly as Claude Code ships it. This plugin adds a second way in rather than replacing the first.

Install

claude plugin marketplace add junjiezhou1122/plugins
claude plugin install model-search@plugins

Why you would reach for it

Claude Code's /model menu lists every model and asks you to scroll. Behind a gateway such as magpie that list runs past a thousand entries, and the menu has no way to type into it. /ms searches model names, labels and provider IDs as you type.

The palette reads its list from the modelPicker setting in your Claude Code settings, which is what a gateway writes. Without one there is nothing long to search, and /model is the better tool.

Claude Code's own models come first

The palette lists Claude Code's own names (Default, Sonnet, Opus, Haiku, Fable, Best, and the 1M-context variants) ahead of anything a gateway adds, so typing opus offers Claude Code's Opus first rather than burying it under every provider's Opus clone. Your current model is highlighted above both.

/model still works

The plugin does not hook the built-in model command at all. /model opens Claude Code's own menu, /model <id> still switches directly, and the native menu's session-only option is untouched.

To turn this plugin off entirely:

claude plugin disable model-search@plugins

What it does not do

It makes no network calls of its own. It reads the model list already in your settings, and selecting a model runs Claude Code's own /model <id> so the switch goes through the normal path and is saved the normal way.

Development

claude plugin validate model-search
claude plugin test model-search

.claude-plugin/types/ and tsconfig.json are written by the engine when the plugin loads. They are gitignored.

更多類似作品