前言¶
DSH 的理念是「一切皆插件」。dsh-expert-mode 是一個 DSH agent preset,面向需要在 DSH workspace 中啓用「chief coordinator + 17 domain-expert subagents」工作方式的場景。下面從定位、能力、安裝啓用、典型用法和注意事項幾個方面介紹。
這是什麼¶
dsh-expert-mode 由 Asher-2000 維護,許可證爲 MIT。
按已覈實描述,它是一個 agent-preset plugin,不是 Cordis service plugin。項目定位爲:
- chief coordinator
- 17 domain-expert subagents
- taskboard scheduling
- quality gates
- real inter-expert communication bus
中文名稱爲「專家模式」。
核心功能¶
任務路由¶
- Smart Delegation:自動識別任務領域,並路由給最合適的 expert。
- Fast Track:簡單任務直接處理,不做強制 delegation。
質量與風險控制¶
- Five-Anchor Constraint:每輪 self-check,用於防止 topic drift。
- Cross Review:高風險任務獲得 multi-expert independent review。
- Quality Gates:高風險任務經過 5-stage pipeline。
- Fault Recovery:timeout 時自動 retry;failure 時進行 strategy switch。
調度與協作¶
- Taskboard:文件系統任務調度器,包含
pending/ready/running/done/failed狀態機、dependency DAG、retry、crash recovery。 - Inter-Expert Bus:基於文件的消息總線,用於 expert 之間直接通信。
- Experience Pool:保存 lessons learned,並在下次注入。
- Progressive Disclosure:按需注入 methodology,降低 token 消耗。
- Bilingual EN/ZH documentation。
安裝與啓用¶
使用 DSH 插件管理器¶
在 DSH workspace 中執行:
dsh plugin add dsh-expert-mode
隨後在 workspace preset selector 中選擇 “Expert Mode” 或 “專家模式”。
通過 npm 安裝並掛載 preset¶
先安裝 npm 包:
npm install dsh-expert-mode
npm 安裝會把包文件拉到 node_modules。preset 需要在掛載到 DSH 的 preset discovery directory 後才激活。
掛載目錄爲:
~/.dsh/.agent-presets/expert-mode
preset 名稱來自 preset.yml 的 name 字段。
隨後運行:
dsh web
在 workspace preset selector 中選擇 “Expert Mode” 或 “專家模式”。
典型用法¶
- 啓用 preset:在 DSH workspace 選擇 “Expert Mode” 或 “專家模式”。
- 簡單任務:由 Fast Track 直接處理,不經過強制 delegation。
- 需要領域處理的任務:由 Smart Delegation 識別領域並路由給對應 expert。
- 高風險任務:進入 Cross Review 和 Quality Gates 流程。
- 多 expert 協作:通過 Inter-Expert Bus 進行直接通信;任務狀態由 Taskboard 管理。
適用場景與注意¶
適合:
- 在 DSH 中使用 preset 化多 agent 工作流。
- 需要 chief coordinator 與 domain-expert subagents 的分發機制。
- 需要查看 EN/ZH 文檔。
注意:
- 插件以當前 dsh 進程權限運行。安裝前檢查源碼與 MIT 許可證。
- 它是 agent-preset plugin,不是 Cordis service plugin。
- npm 安裝不等於 preset 激活;需要把 preset 文件掛載到 DSH 的 preset discovery directory。
結尾¶
dsh-expert-mode 的價值是把 chief coordinator、17 domain-expert subagents、taskboard scheduling、quality gates 和 inter-expert communication bus 放進同一個 DSH preset。
源碼與文檔:
- GitHub:https://github.com/Asher-2000/dsh-expert-mode
- 獨立站點目錄頁線索:https://www.skillhub.cn/plugins/Asher-2000/dsh-expert-mode