dsh-plugin-omoslim:爲 DSH 提供 Orchestrator preset 與模型 profile 管理

前言

DSH 的理念是「一切皆插件」。如果你希望主 agent 只做規劃與派發,把具體任務交給 specialist subagents,同時還能切換不同的模型組合,dsh-plugin-omoslim 是一個可以直接安裝的 DSH bundle。

它安裝一個 orchestrator agent preset,把模型選擇、persona 組合和插件更新分開處理。主 agent 負責 plan 和 dispatch,model-pinned specialist subagents 負責具體工作。

這是什麼

dsh-plugin-omoslim 是一個 MIT 許可的 DSH bundle,倉庫地址爲:

https://github.com/tevenfeng/dsh-plugin-omoslim

它會安裝一個名爲 orchestrator 的 agent preset,並提供 11 個 subagent tools。已覈實的描述中,這些 specialist subagents 包括 explorer、oracle、librarian、designer、fixer、council 等角色。

DSH 插件生態是社區插件/目錄生態,不是 DeepSeek 或幻方的官方應用商店。

核心能力

安裝一個 Orchestrator preset

安裝後,你可以使用 orchestrator preset。主 agent 負責規劃和派發,subagent tools 承擔具體任務。

這個 preset 的價值在於把“誰來規劃”和“誰來執行”分開,而不是讓一個 agent 同時承擔所有步驟。

模型定義和 persona 組合分開

插件把模型/provider 放在獨立的 profile 中,目錄爲:

~/.dsh/.agent-presets/orchestrator/models.d/

這樣做的目標是:更新插件時,不應直接覆蓋用戶已經調整過的模型選擇。

如果某個 subagent 的 provider 爲 null,表示它繼承主 agent 的 provider。

管理多個模型 profile

你可以在同一個 preset 下維護多個命名 profile,並通過 omoslim CLI 查詢和切換。

已覈實的命令包括:

omoslim list
omoslim current
omoslim switch economy

其中 omoslim switch economy 表示切換到名爲 economy 的 profile。

在 Web UI 查看當前 subagent 模型

插件提供 web UI subagent model inspector,用於查看 active profile 下每個 subagent 的 provider/model。

該 inspector 面向 active orchestrator session。它的只讀接口爲:

GET /dsh-plugin-omoslim/subagent-models

安裝與啓用

下面是已覈實的安裝方式。安裝命令假設使用 web profile 目錄,web 是默認 profile。

dsh plugin --profile web add dsh-plugin-omoslim

安裝後,重啓 web 服務或 dsh web 進程:

systemctl --user restart dsh-web

如果你的 dsh web 是通過其他方式啓動的,也可以直接重啓該進程。

本地開發場景下,可以先用本地目錄安裝:

pnpm add file:/home/<you>/Coding/dsh-plugin-omoslim

然後把包名 dsh-plugin-omoslim 加入 dsh.profile.bundles 數組。

典型用法

1、安裝插件:

dsh plugin --profile web add dsh-plugin-omoslim

2、重啓:

systemctl --user restart dsh-web

3、打開 web UI,開始一個 new session,並在 Settings → General 中選擇 orchestrator preset。

4、查看當前 profile:

omoslim current

5、列出可用 profile:

omoslim list

6、切換 profile:

omoslim switch economy

7、如需修改某個 slot 的模型或 provider,編輯對應 profile 文件:

~/.dsh/.agent-presets/orchestrator/models.d/<name>.json

修改後切換到該 profile,再重啓 dsh 或 dsh-web,並創建新 session。

卸載與回滾

卸載 bundle:

dsh plugin --profile web remove dsh-plugin-omoslim

preset 文件仍可能保留在:

~/.dsh/.agent-presets/orchestrator/

如果確認不再使用這個 preset,可以刪除該目錄。如果只是想移除插件但繼續使用已安裝的 preset,也可以保留這個目錄。

注意事項

  • 一個 profile 必須命名模板引用的每個 slot。缺少 slot 時,插件會 fail closed,而不是渲染一個半填充的 composition。
  • 如果你手工編輯 agent.cordis.yml,插件檢測到 hash 差異後會保留你的文件。此時這個文件由你負責;如果希望接受插件更新,需要刪除 preset 目錄。
  • 切換 active profile 後,需要重啓 dsh 或 dsh-web,並創建新 session,新模型纔會加載。
  • 更新插件後,需要重啓 web app,新的 route 和按鈕纔會生效。
  • 文檔中的模型和 provider 名稱可能來自示例環境,實際使用時必須存在於你選擇的 provider catalog。
  • 插件會以當前 dsh 進程權限運行。安裝前建議檢查源碼與 MIT 許可證。

相關鏈接

GitHub:

https://github.com/tevenfeng/dsh-plugin-omoslim

目錄頁:已覈實資料中未提供具體 URL。如果你使用 DSH 社區目錄,可按插件名 dsh-plugin-omoslim 查找。

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜