DeepSeek Harness 插件

dsh-plugin-web-search-tavily

Tavily search provider bundle for DeepSeek Harness (dsh): registers a WebSearchProvider into ctx.web(英文原文)

跳到安装方式

来源信息

GitHub 仓库
coderdailyone/dsh-plugin-web-search-tavily
最近更新
2026年8月15日
分类
工具与能力
GitHub stars
2
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/coderdailyone/dsh-plugin-web-search-tavily
插件名:dsh-plugin-web-search-tavily
作者:coderdailyone

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<p align="center"> <img src="https://raw.githubusercontent.com/coderdailyone/dsh-plugin-web-search-tavily/main/docs/assets/banner.svg" alt="dsh-plugin-web-search-tavily — Tavily backend for dsh's built-in web_search" width="100%"> </p>

<p align="center"> <a href="https://www.npmjs.com/package/dsh-plugin-web-search-tavily"><img src="https://img.shields.io/npm/v/dsh-plugin-web-search-tavily?color=14b8a6&label=npm" alt="npm version"></a> <img src="https://img.shields.io/npm/l/dsh-plugin-web-search-tavily?color=34d399" alt="license"> <a href="https://github.com/deepseek-ai/deepseek-harness/discussions/2021"><img src="https://img.shields.io/badge/dsh-Show%20Your%20Plugins!-0f766e" alt="dsh discussion"></a> </p>

<p align="center"> <a href="#install">Install</a> · <a href="#config">Config</a> · <a href="#behavior">Behavior</a> · <a href="#model-experience">Model Experience</a> · <a href="./README.zh.md">中文文档</a> </p>

A community Tavily search provider for DeepSeek Harness (dsh). It registers a WebSearchProvider into the ctx.web capability seam, so the shipped web_search tool can be served by Tavily without touching any model-facing schema.

Ships as a dsh bundle: installing it into a profile inserts its plugin row automatically.

Install

dsh plugin --profile web add dsh-plugin-web-search-tavily

Provide the API key through the environment (TAVILY_API_KEY, e.g. in $DSH_HOME/.env) or through plugin config. When more than one search provider is usable in your composition, pin the selection with $DSH_WEB_SEARCH_PROVIDER=tavily or by patching the web row's searchProvider in your profile's cordis.patch.yml; with Tavily as the only usable provider, selection is automatic.

Verify without booting, then boot:

dsh --profile web --dump-config   # shows a "# == dsh-plugin-web-search-tavily" layer
dsh --profile web

Config

Override any field by patching the web-search-tavily row in your profile's cordis.patch.yml (a patch replaces the whole config value — restate the fields you keep):

KeyDefaultMeaning
apiKey$TAVILY_API_KEYTavily API key. Empty makes the provider registered-but-unavailable.
baseURLhttps://api.tavily.comEndpoint base; /search is appended.
searchDepthbasicTavily search_depth. advanced returns richer snippets at extra credit cost.
topicgeneralTavily topic vertical (general or news; news populates publishedAt).
includeAnswertrueRequest Tavily's generated answer; it surfaces as the search result's content.
numResults(omitted)Default result count when a request carries no maxResults. The seam still enforces the tool-layer bound either way.
- id: web-search-tavily
  config:
    searchDepth: advanced
    includeAnswer: false

Behavior

  • POST {baseURL}/search with Authorization: Bearer <key>, honoring the request AbortSignal; redirects are refused.
  • results[].content maps to snippet, published_date to publishedAt; entries without a non-blank snippet are dropped rather than padded with invented text.
  • A non-blank answer maps to the result's content; nothing is fabricated when Tavily returns none.
  • Cancellation surfaces as WebError code WEB_ABORTED; every other failure (transport, non-2xx, unprocessable body) is WEB_PROVIDER_ERROR with the richest provider detail available and a preserved cause chain. A non-2xx JSON error body's detail.error / detail / error / message fields are tried in that order.
  • available() is a cheap local check (key present, base URL parseable, bounds valid) and never touches the network.

Model Experience

What the model sees

Nothing from this package directly. The model-facing web_search schema and rendering belong to @deepseek-ai/dsh-tool-web; this provider only changes which backend serves the call. Result content (Tavily's generated answer, when enabled) and per-source title/snippet/publishedAt flow through the tool's ordinary rendering.

Token effect

includeAnswer: true adds one provider-generated answer paragraph to each search result the model reads. searchDepth: advanced tends to return longer snippets. Both are provider-output effects; the tool-layer maxResults bound is enforced by the seam regardless of provider.

KV Cache effect

None. Search results enter the conversation as ordinary tool results; this package contributes no prompt sections and changes no request prefix.

Development

npm install
npm run build
npm test                      # keyless: loopback double asserts wire shape and error taxonomy
TAVILY_API_KEY=tvly-... npm test   # adds the live smoke (self-skips without the key)

Keyless tests drive the real provider against a loopback HTTP double and assert the exact request shape (method, path, bearer header, user-agent, body fields), response mapping, the error taxonomy, and cancellation. The live smoke verifies the wire contract against the real API and self-skips without a key; it last passed against the live Tavily API at v0.1.1 (2026-08).

Known Limitations and Deferred Work

  • The Tavily wire contract is pinned to its 2026-08 public documentation. Field names (search_depth, include_answer, max_results) are this package's responsibility to track; the live smoke is the drift detector, last green against the live API at v0.1.1.
  • include_domains / exclude_domains / days are not exposed. The seam's request carries only query and maxResults today; domain filtering would be provider config rather than a per-call control, and no consumer has asked for it yet.
  • No retry policy. A transient Tavily failure surfaces as one WEB_PROVIDER_ERROR; retrying is left to the caller or a future seam-level policy, matching the in-tree providers.
  • dsh is in developer preview. This package pins @deepseek-ai/dsh-web to the currently published pre-release; expect lockstep bumps while upstream iterates.

License

MIT