前言¶
在 DeepSeek Harness(DSH)裏給 agent 接「記憶」,常見做法是本地插件或會話內上下文。若你已經在用 ExoMind 知識飛輪——服務端維護實體關係圖譜、經驗沉澱和 FSRS 複習,且同一套數據還能給 Claude Code(MCP/CLI)、小程序、瀏覽器插件用——換 harness 時不希望記憶斷層。社區插件 dsh-exomind(維護者 helloworldtang,目錄分類:記憶)做的事,就是把 ExoMind 的檢索與問答能力以三個 Cordis 工具形式掛進 DSH,並儘量複用 exomind login 已有憑據,少寫配置。
這是什麼¶
dsh-exomind 是 DSH 的 bundle 插件:bundle id 爲 exomind-flywheel,當前版本 0.1.0(MIT)。它不往本地落業務數據,調用時連 ExoMind 服務端 API;與「只在當前機器記筆記」的本地記憶插件相比,定位是服務端知識飛輪接入,強調跨客戶端共享同一份知識庫。
核心功能:三個工具¶
README 中列出的能力如下,agent 通過 DSH 工具面調用。
| 工具 | 用途 | 速度 |
|---|---|---|
exomind_search |
全文/語義檢索(BM25,可選 hybrid 向量混合、rerank 精排) | 秒級,優先使用 |
exomind_entity |
查實體詳情:定義、別名、關聯實體 | 秒級 |
exomind_query |
跨多頁知識的 LLM 深度問答 | 慢(約 1–2 分鐘),僅深問題 |
路線圖(資料原文):Phase 1 爲當前三個只讀工具;Phase 2 計劃自動召回(agent/pre-step 注入亞秒級 search);Phase 3 計劃會話結束異步寫入飛輪。下文安裝與配置以當前 Phase 1 爲準。
安裝與啓用¶
前置條件(README 原文):
- DSH 0.1.0-rc.5 及以上(preview 階段 API 會變;插件按 0.2.1-rc 系列驗證)
- Node 22+
- 已通過
exomind login登錄 ExoMind(見下節憑據)
官方安裝命令(請鎖定 tag,勿用滾動分支):
dsh plugin --profile <你的profile> add github:helloworldtang/dsh-exomind#v0.1.0
dsh --profile <你的profile> --dump-config # 應看到 id: exomind-flywheel 的 bundle 行
# 重啓該 profile 後生效
卸載:
dsh plugin --profile <你的profile> remove dsh-exomind
資料說明:卸載後無本地業務殘留(憑據在 exomind-cli 共享路徑)。
憑據:零配置繼承¶
每次工具調用時解析憑據,優先級(高 → 低):
- DSH 行配置裏的
baseUrl/apiKey - 環境變量
EXOMIND_BASE_URL/EXOMIND_API_KEY ~/.exomind/config.json(與 exomind-cli 共享,由exomind login寫入)
裝好 exomind-cli 並完成 exomind login 後,可不填插件專屬 key;換 key 時只需再次 exomind login,無需重啓 DSH。
可選配置¶
在 $DSH_HOME/profiles/<profile>/cordis.patch.yml 用同 id 整行覆蓋(DSH patch 爲整行替換,須保留全部字段):
- id: exomind-flywheel
config:
baseUrl: "" # 留空繼承共享憑據
apiKey: ""
searchTimeoutMs: 15000
queryTimeoutMs: 180000
maxResultChars: 6000
典型用法(從 agent 視角)¶
資料未給出獨立 shell 示例腳本,用法體現在工具分工上,可復現的策略是:
- 先調
exomind_search做秒級檢索,縮小相關頁面或片段。 - 對命中的概念調
exomind_entity看定義、別名與關聯實體,避免幻覺式複述。 - 僅當問題需要跨多頁推理時再調
exomind_query,並接受 1–2 分鐘級延遲與queryTimeoutMs(默認 180000 ms)約束。
本地開發自測時,README 允許用絕對路徑安裝:
dsh plugin --profile <profile> add /absolute/path/to/dsh-exomind
適用場景與注意¶
適合誰:已在 ExoMind 沉澱知識、並在 DSH 上跑 agent 的開發者;希望 harness 側直接讀飛輪,而不是再造一套本地向量庫。
運行權限:插件隨當前 DSH profile 進程執行,網絡請求會訪問你配置的 ExoMind 端點;安裝前宜閱讀倉庫源碼與 MIT 許可證,確認 apiKey 來源符合團隊規範。
生態說明:DSH 社區插件目錄在 SkillHub,與 DeepSeek / 幻方無官方從屬關係;引插件請顯式改版本號(#v0.1.0),避免靜默漂移。
鏈接¶
- 目錄頁:https://www.skillhub.cn/plugins/helloworldtang/dsh-exomind
- 倉庫:https://github.com/helloworldtang/dsh-exomind