dsh-plugin-market-intelligence:DeepSeek Harness 市場情報專家插件

前言

DeepSeek Harness(DSH)提倡「一切皆插件」的理念,通過 bundle 包將能力注入到 profile 中。在構建市場、銷售或戰略類 agent 時,開發者通常需要自行對接 HTTP、做字段映射、去重、統計與緩存,再自造報告樣式,每增加一個信源或產品都要重新實現一遍。dsh-plugin-market-intelligence 把 CaSee 的市場情報能力變成可安裝、可配置、可復現的 DSH 能力,並內置報告規範。

這是什麼

dsh-plugin-market-intelligence 是面向 DeepSeek Harness 的市場情報分析專家插件(一個 dsh.bundle 包)。由 CaSee 平臺驅動,提供原生工具、專家人格與內置技能,把 500+ 可信信源轉化爲模型可調用的能力。

核心功能

插件裝入後向當前 profile 貢獻三件東西:

  • 6 個模型可調用工具:find_trusted_sources、search_intelligence、analyze_trend、aggregate_by_source、search_with_cvc、semantic_search。
  • 專家人格段落:註冊爲 system prompt 的 market-intelligence:expert 段(order 5),定義分析師角色、三條鐵律、T-Score/ABCD 分級、檢索方法與雙格式輸出契約。
  • 內置技能:market-intelligence 技能(ctx.skills 運行時註冊),包含核心流程、檢索策略、市場工作流、報告模板與 HTML 報告樣式規範。

取數通道說明:插件直連 CaSee REST 接口(/v1/sources/search、/v1/searchx、/v1/semantic-search),與 MCP 端點 causalai.me:8100 是兩條獨立通道,互不依賴。

安裝與啓用

前置條件

  • Node.js ≥ 22.19(DSH 運行時要求)。
  • DeepSeek Harness dsh ≥ 0.1.0-rc.6(dsh --version 可查)。
  • CaSee API 密鑰:到 https://casee.me 註冊並獲取。

安裝

# npm(推薦,包名即身份)
dsh plugin --profile web add dsh-plugin-market-intelligence

# GitHub 倉庫
dsh plugin --profile web add github:xcasee/dsh-plugin-market-intelligence

# tarball(離線 / 評審分發)
dsh plugin --profile web add ./dsh-plugin-market-intelligence-1.0.0.tgz

重啓 dsh web。

確認插件層已生效

dsh --profile web --dump-config | grep -A6 market-intelligence

應能看到類似:

# == dsh-plugin-market-intelligence
- id: market-intelligence
  name: dsh-plugin-market-intelligence
  config:
    apiBaseUrl: http://121.43.113.132:8000
    ...

配置 API 密鑰

密鑰只從環境變量讀取,絕不寫入配置文件:

export CASEE_API_KEY=<你的密鑰>

新開一個對話(工具綁定發生在會話創建時)。

配置

在 profile 的 cordis.patch.yml($DSH_HOME/profiles/<name>/cordis.patch.yml)按 id 覆蓋。補丁整塊替換 config,需重述全部要保留的鍵:

- id: market-intelligence
  config:
    apiBaseUrl: 'http://121.43.113.132:8000'
    apiKeyEnv: CASEE_API_KEY
    defaultDays: 30
    defaultMinTscore: 0.6
    maxLimit: 200
    timeoutMs: 30000
    requestIntervalMs: 200
    registerSkill: true
    registerPrompt: true
    platformUrl: 'https://casee.me'
    outputLanguage: auto
鍵 默認 說明
apiBaseUrl http://121.43.113.132:8000 CaSee REST 基地址(非 8100 MCP 端口)
apiKeyEnv CASEE_API_KEY 讀取密鑰的環境變量名
defaultDays 30 默認時間窗口(天)
defaultMinTscore 0.6 默認可信度門檻
maxLimit 200 單次請求條數上限
timeoutMs 30000 單請求超時(毫秒)
requestIntervalMs 200 出站請求最小間隔(毫秒),0 關閉限速
registerSkill true 是否註冊內置技能
registerPrompt true 是否註冊專家人格段落
platformUrl https://casee.me 報告 CTA 與取密鑰引導鏈接
outputLanguage auto 報告語言:auto(跟隨用戶)/zh/en

典型用法

六個情報工具

工具 用途 關鍵參數
find_trusted_sources 按類別/地區/語言/可信度發現可信信源 category、min_tscore、limit
search_intelligence 在可信信源子集內做類 Google 語法檢索(主力) q、source_ids、days、min_tscore
analyze_trend 按日/月聚合聲量,找峯值與催化點 q、days
aggregate_by_source 按信源統計報道量、平均可信度與樣例標題 q、days
search_with_cvc 檢索並把命中歸集到 CVC 向量模型 q、cvc_model_id
semantic_search CVC 語義檢索(BM25 + 向量 + RRF,跨語種) cvc_model_id、q、mode

查詢語法(q)

運算符 含義 示例
+word AND +AI +芯片
-word NOT +電動車 -自行車
a\|b 同義 OR 電動車\|EV\|NEV
"phrase" 精確短語 "market share"
(...) 分組 +(特斯拉\|Tesla) +(交付\|銷量)

中文關鍵詞由平臺自動翻譯爲英文檢索,返回 translated_keywords 供覈對。

輸出契約

每次分析同時產出兩部分:

  1. 對話內 Markdown 摘要:一句話結論 + 3–5 條關鍵發現(每條附 T-Score + 信源名 + 日期 + 可點鏈接)。
  2. 完整 HTML 報告文件:CaSee 深色看板規範,包含 appbar → 封面(4 指標卡)→ 吸頂目錄 → 00 結論先行 → 編號章節(含 ECharts 圖表 / SWOT / 時間線 / 矩陣)→ 來源附錄(編號來源 + T-Score 徽章)。

T-Score 可信度體系

T-Score 等級 標識 使用紀律
≥ 0.8 A 🟢 可直接作爲決策依據
0.6–0.8 B 🟡 結合上下文使用
0.4–0.6 C 🔴 信號參考,必須交叉驗證
< 0.4 D ⚪ 視爲傳言,不作事實陳述

ABCD 信源分級:A=通訊社/官方;B=主流權威;C=垂直媒體/博客;D=UGC/論壇。

適用場景與注意

  • 適合需要從 500+ 可信信源中抽取情報、做競爭分析、趨勢研判與策略評估的市場、銷售、產品與戰略團隊。
  • 插件以當前 dsh 進程權限運行,安裝前應檢查源碼與許可證(MIT)。

結尾

把市場情報能力變成可安裝、可配置、可復現的 Harness 能力,並內置與 CaSee 官方同款的報告規範。安裝與使用見 GitHub 倉庫:https://github.com/xcasee/dsh-plugin-market-intelligence

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

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

小夜