Hercules-debug/huixuan-assistant

Plugin插件 Native原生 ⭐ 2 MIT Dev Workflow开发与代码工作流

面向消费者的商品选购辅助工具 · DeepSeek Harness 插件

Project Overview项目介绍

HuiXuan Assistant (huixuan-assistant) is a native plugin purpose-built for the DeepSeek Harness (DSH) chat environment, installed exclusively through the DSH runtime via dsh plugin --profile web add github:Hercules-debug/huixuan-assistant followed by a dsh web restart. It wraps Pinduoduo's official open-platform alliance API into a tool quartet that the DSH model can call on its own: shop_search for keyword and price-range queries, shop_detail for one SKU at a time, shop_compare for side-by-side scoring across several SKUs, and shop_promote_url for generating the affiliate jump link. Main product images are registered through the DSH attachment service and rendered inline inside the tool result card; for text-only models the runtime projects them into an [image omitted because this model accepts text only; …] placeholder so no tokens are wasted on a model that cannot consume them.

The intended workflow is a free-form prompt such as "find me a 100 RMB power bank allowed on planes" or "calculate the per-100-tissue cost for these tissue packs". The plugin calls the Pinduoduo alliance API, sorts candidates by price, sales volume, and service tags, lets the LLM extract specifications directly from each title to build a comparison table, then invokes detail and compare on the two-to-four shortlisted SKUs and finally surfaces a recommendation with an affiliate URL that jumps to the original listing. It is aimed at content creators, private-domain operators, and individual buyers who want conversational comparison shopping, as well as small merchants turning AI chat into a monetised recommendation surface.

Dependencies are limited to Pinduoduo's official open-platform API and the DSH runtime itself: no web scraping, no third-party database, and no transaction or payment integration. The repository is released under the MIT license and currently sits at v0.1.0 in active development, with the graphical settings panel still pending. The bundled shared test credentials run at roughly ten requests per minute shared across all users and bill every call against the developer's real-name Pinduoduo account, so production users are expected to enter their own Client ID, Client Secret and promotion PID in Settings → Plugins to unlock an independent quota, with the secret written only into ~/.dsh/.credentials.yaml and never echoed in chat logs. Because the Pinduoduo API does not return a dedicated productParams field, specifications are parsed from titles by the LLM, and items sold by weight or roll or missing title-level specs are explicitly marked "cannot compute" rather than guessed.

慧选助手(huixuan-assistant)是面向 DeepSeek Harness(DSH)对话场景的原生插件,绑定到 DSH 的 dsh plugin --profile web add github:Hercules-debug/huixuan-assistant 安装入口。插件把拼多多开放平台官方 API 封装成 DSH 工具卡内的四件套:shop_search、shop_detail、shop_compare、shop_promote_url。商品主图通过 DSH 附件服务登记后,自动以图块方式渲染,纯文本模型投影为占位符而不浪费 token。

典型工作流是用户在对话里用自然语言提出购买需求,例如"100 元以内、能上飞机的充电宝"或"算抽纸每百抽单价"。插件调用拼多多联盟 API 搜索并按价格、销量、服务标签排序,由 LLM 从标题抽取规格生成对比表,对 2~4 件候选商品调用详情与对比,最终给出推荐和推广跳转链接。它适合有导购、比价、长尾选品需求的内容创作者、私域运营与个人买家,以及想把 AI 对话转成可挂车导购频道的小型商家。

依赖仅限拼多多开放平台官方 API 与 DSH 运行时,无外部数据库或爬虫组件;license 为 MIT,当前版本 v0.1.0 处于开发中,UI 设置面板待补。零配置内置共享测试凭证约 10 次/分钟,所有用户共用且所有调用计入开发者实名账号,长期使用需在 设置 → 插件 → 插件配置 填入 Client ID、Client Secret 与推广位 PID 切换到独立配额,密钥仅写入 ~/.dsh/.credentials.yaml。商品规格无法从接口直接获取,由 LLM 从标题解析,缺失或非按件销售的条目会被明确标注"不可算"。插件不做下单、不碰交易链路,亦不抓取网页。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Hercules-debug/huixuan-assistant

把 Hercules-debug/huixuan-assistant 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

慧选助手 (huixuan-assistant)

在 DeepSeek Harness 对话里用 AI 帮你挑商品的插件 —— 搜索、对比、给建议。

它能做什么

你直接说需求:

我想买个充电宝,100 块以内,要能上飞机

插件会:

  1. 调用拼多多开放平台官方 API 搜索商品
  2. 按价格、销量、服务标签筛选排序
  3. 用 LLM 从标题提取特征,生成对比表
  4. 给出推荐 + 推广链接(跳转购买)

实测例子:算单价、挑最划算的

你:帮我看看抽纸,算一下每百抽多少钱

插件(搜索 → 逐件对比 → 换算单价 → 展示商品图):

# 商品 价格 销量 规格(从标题读) 每百抽
7 心相印 茶语丝享 110抽×20包 ¥7.38 200万+ 110抽×20包 ¥0.336
8 心相印 山茶花 XS码 80抽×30包 ¥4.06 13.7万+ 80抽×30包 ¥0.169 🏆
… (其余 8 件因「按克/按卷卖」或「标题未给规格」无法换算,模型逐条标注了原因)

🏆 每抽最便宜:心相印山茶花 3层XS码 80抽×30包

项目 值
价格 ¥4.06(原价 ¥23.5,省 83%)
规格 80抽 × 30包 = 2400 抽
每百抽 ¥0.169 —— 比第二名便宜 50%
销量 13.7万+
服务 正品险 / 七天退换 / 假一赔十 / 48小时内发货 / 未发货可秒退
购买链接 由 shop_promote_url 生成

商品图由工具卡片自动显示。

这个例子体现了几个设计点:

  • 模型没有硬凑数据 —— 按克/按卷卖的、标题没给规格的,逐条说明「不可算」而不是编一个数
  • 主动声明数据来源 —— 明确说「规格是从标题读出的,接口不返回规格字段」
  • 图是自动出现的 —— 不需要你开口要

⚠️ 先说清楚它的边界

这不是「全网比价工具」,能力有明确范围:

限制 说明
仅覆盖可推广商品 联盟 API 不是全量商品库
没有商品规格参数 拼多多 API 实测不返回 productParams 之类的字段,参数靠 LLM 从标题提取
共享配额约 10 次/分钟 零配置模式下所有用户共享开发者额度
详情/对比按件消耗配额 shop_search 一次调用返回整页;但 shop_detail 与 shop_compare 每个商品各消耗一次调用。对比 4 件 = 4 次配额
不做下单/支付 不碰交易链路

关于配额的实践建议:个人账号约 10 次/分钟,所以插件在工具描述里明确约束了模型 —— 先与用户确认要深入了解的商品,只对 2~4 个调用详情/对比,不要对整页搜索结果逐个调用。 配额用尽时会返回可读提示并引导用户配置自己的凭证(见下文三级凭证)。

| 搜索结果只带前几件的图 | shop_search 为前 3 件附带主图(可配);一页 15~40 条不会全部带图。单张上限 3MB、超时 8s |

图片说明:商品图经 DSH 附件服务登记后,作为图块放进工具结果的 content, 由工具卡片自动显示,不需要你开口要图。 当前模型是纯文本的,dsh-llm 会在发给模型前把图块投影成占位符 ([image omitted because this model accepts text only; …]),不会浪费 token。 图片获取全程 best-effort:超时、过大、非图片或附件服务不可用时,一律降级为纯文本结果, 不会让商品查询失败。

而且:

不做爬虫。 商品数据一律走官方 API。相关判例已明确(如杭州中院 2025 浙01民初1729号案,批量搬运商品数据 + AI 二次利用被判赔 100 万元),且「用 AI 加工过」不能作为免责理由。

安装

dsh plugin --profile web add github:Hercules-debug/huixuan-assistant

安装后重启 dsh web。

使用

装好直接对话即可,模型会自动调用这些工具:

工具 作用
shop_search 搜索商品(支持价格区间、排序)
shop_detail 查单个商品详情
shop_compare 批量对比多个商品
shop_promote_url 生成推广链接

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-unified-market 下一个 Next dsh-llm-gate →