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

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

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

Xiaoye