DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Tool Retriever — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-tool-retriever

Tool Retriever

借助 LLM 的 DeepSeek Harness 多语言工具检索

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-tool-retriever@0.1.0-alpha.1
README兼容性版本

兼容性与来源证明

Tool Retriever 以 dsh-tool-retriever 发布,当前版本为 0.1.0-alpha.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.0-alpha.1prerelease
2026/8/14

相关插件

正在加载相关插件…

最新版
0.1.0-alpha.1
DSH
*
HMR
重启进程
Tree shaking
已声明 sideEffects: false
解包体积
152.2 kB
文件数
62
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
24
最近提交
2026/8/14
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 search-research 分类下经过校验的插件。

Browser Skill Dsh Plugin@wxg-prc-cpg/browser-skill-dsh-plugin向模型提供 BrowserSkill 浏览器自动化(browser_* 工具)的 DeepSeek Harness 工具插件Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Free Searchdsh-free-searchDeepSeek Harness 的免费网页搜索:13 个引擎(Bing/DuckDuckGo/AnySearch/SearXNG/Exa/Tavily/Keenable/Firecrawl 无需密钥;Parallel/Perplexity/SerpBase/DeepSeek 需要密钥),支持时间筛选、平台搜索和 web_fetch,并提供网页设置界面。Find Plugindsh-find-plugin在代理中查找 DeepSeek Harness 插件——实时搜索 GitHub 上的 dsh-plugin 主题,并按星标数排序。

README

dsh-tool-retriever

English | 中文

dsh-tool-retriever is an early-alpha DeepSeek Harness plugin that registers a real tool_search tool. Its default path combines canonical-name Exact matching, field-aware BM25F, and DSH LLM query expansion for large catalogs. A pinned local multilingual E5 lane remains available only as an explicitly enabled experiment.

Status and compatibility

The current development version is 0.1.0-alpha.1 and targets:

  • DeepSeek Harness packages: 0.1.0-rc.6
  • @deepseek-ai/cordis: 4.0.1
  • Node.js: ^22.19.0 || >=24.0.0

The npm next tag remains on published 0.0.1-alpha.0. This development version has not been pushed, tagged, or published.

The plugin reads the calling Agent's live Tool Registry and excludes only tool_search. It does not install restrictions or hide native tools. Dynamic Top-K activation remains postponed until DSH exposes the required safe lifecycle boundaries.

Default retrieval path

original query ──→ Exact + BM25F ───────────────┐
       └─ catalog size >= 32                    │
          └─ DSH LLM rewrite → BM25F ──────────┼─→ Weighted RRF → Top-K
       └─ experimental Dense enabled → E5 ─────┘

The original query is always searched. A validated LLM rewrite expands BM25F evidence; it never replaces the original query and never contributes to the Exact lane. Exact canonical-name hits skip the auxiliary LLM call.

Query expansion uses DSH's registered llm service. It does not configure credentials, endpoints, or a provider SDK. An explicit rewrite.provider/rewrite.model pair wins; otherwise the plugin reuses the calling Agent's provider/model. If no route or LLM service is available, or the model call/output fails, the result reports the failure and retains the original Exact/BM25F query. An explicitly enabled Dense lane remains independent and still runs.

Install

dsh plugin --profile <profile> add dsh-tool-retriever@next

For the unreleased development artifact:

pnpm pack
dsh plugin --profile <profile> add ./dsh-tool-retriever-0.1.0-alpha.1.tgz

The profile must provide tools. The llm service is optional at plugin load and is consulted only when Rewrite is attempted. Credentials remain owned by the selected DSH provider.

Model-facing contract

interface ToolSearchInput {
  query: string
}

interface ToolSearchOutput {
  query: string
  catalogSize: number
  catalogRevision: string
  rewrite: {
    status: 'skipped' | 'applied' | 'failed'
    reason: 'disabled' | 'catalog-below-threshold' | 'exact-match' | 'applied'
      | 'llm-unavailable' | 'route-unavailable' | 'llm-error' | 'invalid-response'
    query: string // empty unless status is applied
  }
  results: Array<{
    name: string
    description: string
    rank: number
    score: number
    rrf: number
    exact: number
    bm25: number
    dense: number // 0 while Dense is disabled
    matchedFields: Array<'name' | 'description' | 'parameterName' | 'parameterDescription'>
  }>
}

Every call rereads tools.schemas(agent) and computes a stable SHA-256 revision from locale-independent, code-unit-sorted names, original descriptions, and canonical input schemas. Empty queries are Tool Errors. When no Dense vector is active for a search, no Exact/BM25F evidence returns an empty result list.

Configuration

topK: 8
bm25K1: 1.2
bm25B: 0.75
fieldWeights:
  name: 4
  description: 2
  parameterName: 1.5
  parameterDescription: 1
rewrite:
  enabled: true
  minCatalogSize: 32
  provider: ''
  model: ''
  maxTokens: 128
dense: false
fusion:
  rankConstant: 60
  weights:
    exact: 3
    bm25: 1
    dense: 1

rewrite.provider and rewrite.model must be configured together. Empty values reuse the calling Agent route. Rewrite output is strict JSON, bounded after trimming to one non-empty query of at most 512 characters, and no tools are supplied to the auxiliary model call.

DSH patch layers replace a row's complete config; restate every setting that must be retained.

Experimental Dense lane

Dense is off by default. While disabled, the plugin does not construct an embedding provider, build vector indexes, load Transformers.js, contact Hugging Face, or retain model memory. Once explicitly enabled, Dense is attempted for every non-empty catalog independently of the Rewrite outcome.

To experiment with the current local E5 provider, install the optional peer @huggingface/transformers@4.2.0 and replace dense: false with:

dense:
  offline: false
  cacheDir: ''
  batchSize: 16
  maxCachedCatalogs: 8

This provider still loads Xenova/multilingual-e5-small q8 inside the plugin fiber. It is not the intended long-term architecture for DSH. Production Dense retrieval should wait for a DSH-owned embedding service seam and an isolated shared provider rather than loading one local model per applicable fiber.

Failure and lifecycle behavior

  • Rewrite failure is visible in rewrite.status/reason and retains the original Exact/BM25F query; an explicitly enabled Dense lane still runs.
  • Explicit Dense failure remains a Tool Error; Dense never silently pretends to be available.
  • Native tools remain visible and executable after either failure.
  • Plugin disposal unregisters tool_search, aborts and settles owned Rewrite/index work, and disposes an enabled Dense provider.

Development and evaluation

pnpm install --frozen-lockfile
pnpm run verify:self-contained
pnpm run typecheck
pnpm test
pnpm run build
pnpm run prepare
pnpm pack --dry-run --json

Normal tests use a deterministic fake DSH LLM and do not require credentials. The existing real-E5 checks are explicitly experimental:

pnpm run test:e5
pnpm run eval:verify
pnpm run eval:dense
pnpm run eval:rewrite:prepare
pnpm run eval:rewrite:score

The sealed corpus has 56 tools and 168 queries across 9 domains. The Rewrite comparison is pinned to deepseek-official / deepseek-v4-flash and prompt version query-rewrite-v1. Requests must run through DSH's registered llm route; the plugin and evaluator do not read provider credentials directly. The scorer compares raw BM25 with the actual Rewrite path and rejects incomplete or differently routed artifacts.

The first frozen run reached 71.43% cross-language Recall@5 and failed the 80% release gate because 51 of 112 Rewrite calls produced invalid structured output. 0.1.0-alpha.1 is therefore not release-ready. See evaluation/README.md and evaluation/RESULTS.md.

See DESIGN.zh-CN.md, CONTRIBUTING.md, SECURITY.md, and THIRD_PARTY_NOTICES.md.

License

MIT