1624318455/dsh-plugin-tavily 预览 preview

1624318455/dsh-plugin-tavily

Tavily 支持的 DeepSeek Harness (dsh) 网络搜索提供方插件 — 将一个 tavily 搜索提供方注册到 ctx.web 中,并在 Web 界面中显示设置卡片。

Project Overview项目介绍

This is a native DSH plugin that adds Tavily as a web search provider for DeepSeek Harness. Once installed via the DSH plugin system, it automatically sets Tavily as the default provider for the built-in web_search tool, so users don't need to manually edit configuration files or environment variables. It adds a dedicated settings card under DSH's web GUI settings menu, where users can enter their API key, adjust all available search parameters, test connectivity, and check search usage credits. It also supports switching between Tavily and the official DeepSeek provider directly from the GUI, no uninstall required.

This plugin is designed for both casual users and professional power users of DSH. Casual users can get started quickly by just pasting their API key and using the default settings, with advanced parameters tucked away in a collapsed section to avoid clutter. Power users can tune every possible Tavily search parameter directly from the GUI, or pin fixed values in their configuration file that override UI settings. One-click parameter presets for common use cases like deep research, quick summary, and live news make it easy to get the right search behavior for your task.

The plugin is released under the permissive MIT license, so it is free to use, modify, and distribute for both personal and commercial projects. Prebuilt assets are committed to the repository, so no local build step is required after installation, and all DSH framework dependencies are provided by the host runtime at runtime. The CI workflow runs compatibility tests against multiple released versions of DSH to ensure the plugin works correctly across all supported versions. It also includes optional extra features like persistent search caching, rate limit retries, and optional Firecrawl integration for web page extraction.

这是一款专为DeepSeek Harness(DSH)打造的、基于Tavily搜索服务的网页搜索插件。它会将Tavily搜索提供商注册到DSH内置的网页搜索接口中,并在DSH的网页界面提供图形化设置面板,支持用户配置API密钥、调整各类搜索参数。安装完成后会自动将Tavily设为默认搜索提供商,无需手动修改环境变量或配置文件,还支持用户根据需求切换搜索引擎,可在Tavily和官方DeepSeek搜索之间切换。

该插件面向专业用户开放了Tavily全部可配置参数,支持通过配置文件固定参数值,也支持在界面上一键调用预设参数方案,如深度研究、快速摘要、实时新闻等。它还提供了API连接状态测试、剩余额度查询、连接错误分类提示等功能,普通用户不会被过多高级选项干扰,专业用户则可以根据需求自由调整搜索行为,适配不同使用场景。

该插件采用MIT许可证开源,免费供个人和商业使用,预构建产物已提交至代码仓库,安装时无需额外构建步骤即可直接使用。开发遵循DSH不同版本的插槽契约,CI流程会多版本验证兼容性,确保在所有已发布的DSH版本上都能正常运行。同时还支持持久化搜索结果缓存、限速重试、可选Firecrawl网页提取等额外功能。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
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:1624318455/dsh-plugin-tavily#main"

把 1624318455/dsh-plugin-tavily 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-tavily

English | 中文

A Tavily-backed web search provider plugin for DeepSeek Harness (dsh). It is the professional/pro-user edition: it exposes the full Tavily request parameter set through the web GUI, while still letting developers pin values from the profile configuration file.

It registers a tavily search provider into the harness's ctx.web seam, so the built-in web_search tool searches the web through Tavily — and ships a settings card in the web GUI (设置 → 插件 → 网页搜索) where you paste your API key, tune advanced parameters, and test connectivity. One install, both halves.

Features

  • Install-and-use (no manual config): installing this plugin auto-selects Tavily as the web_search provider via its cordis.patch.yml. Paste a key in the card and search — no yaml or DSH_WEB_SEARCH_PROVIDER edits required.
  • Tavily/DeepSeek engine switch: a GUI switch answers web_search with Tavily (default; keyless if no key) or falls back to the official DeepSeek provider — no uninstall needed. This is a real provider-switch UI, not a config file edit.
  • Server-side connectivity probe: POST /api/tavily-probe lets the card test a stored key (browsers cannot read stored secrets), using keyless mode when none is set.
  • Status indicator: a GET /api/tavily-status route reads the stored key and Tavily GET /usage (no search credits) and the card shows a live ✅/⚠️/❌ badge (normal / credits low / API error, or "no key"), refreshed by the host without re-entering the key.
  • Full professional parameter set in the GUI: API key, API Base URL, maxResults, searchDepth (basic/advanced/fast/ultra-fast), topic, includeAnswer, includeRawContent, timeout, days, chunksPerSource, timeRange, startDate/endDate, includeImages, includeDomains/excludeDomains, and country are editable from the card; advanced fields are tucked into a collapsed <details> block so ordinary users are not overwhelmed.
  • Parameter presets: one click stages a bundle of advanced values — Deep research (advanced depth, more results, raw content), Quick summary (basic depth, few results, detailed answer), Live news (news topic, day window) — then press Save; yaml-pinned fields are left alone.
  • Configuration-first priority: cordis.patch.yml > WebUI > code defaults. Any field explicitly set in the yaml is shown disabled on the card with a "covered by config file" badge, so a stale UI value can never shadow a developer's pinned config.
  • API connectivity test: a lightweight Test API connection button checks the currently entered key/base URL directly from the browser and reports success or the API error, now classified (invalid key / insufficient credits / rate limited / service down / timeout / network) with a targeted explanation per case. Stored keys cannot be read back by the browser by design, so testing an already-configured key requires re-entering it once (it is not saved again).
  • Usage & cost panel: the card shows a live per-search credit/token estimate for the current settings, plus a Check usage button that reads Tavily GET /usage (remaining credits, search usage, plan) with the currently entered key. A host-side usage() method on the provider exposes the same data where the stored key is available.
  • Page extraction: a Tavily Extract-backed fetch provider (tavily-extract) reads a full page from a URL and returns it as clean text/html — select it once and URL retrieval is answered by Tavily.
  • Optional Firecrawl extraction: an alternative fetch provider (firecrawl) scrapes a page via Firecrawl POST /scrape (markdown, main content) — selectable when Tavily extracts a page poorly. It registers under its own id and credential (default ref FIRECRAWL_API_KEY); search always stays on Tavily. Inert until selected.
  • Persistent result cache: cacheFile persists the TTL/LRU search cache to a JSON file (survives restarts; ~/ expands, relative paths resolve against the working directory). Best-effort and debounced — a failing disk never breaks a search. Off by default.
  • Rate-limit retry & cache: extra attempts after a 429 response honor Tavily's retry-after with a bounded backoff, and an optional TTL cache serves identical searches to save credits — LRU-capped (default 200 entries) and, by default, skipped entirely for recency-sensitive searches (news/finance topics or any time window) so a "right now" question never gets a stale snapshot.
  • Concise debug logging: an opt-in debug switch logs one readable line per search/extract (query excerpt, depth, credits, cache state, duration, classified error) — never the API key or raw response bodies.
  • Multi-key rotation & failover: apiKeyRefs lists extra credential references (refs only — keys stay in the credentials store/environment) forming a rotation ring with the literal key and apiKeyEnv. A search rotates through the ring on key-level failures (429 / invalid key / insufficient credits); a key that fails 3 times in a row enters a 60s cooldown so the healthy keys take over.
  • Footnote citations: citeFormat: footnote appends a numbered source block to the generated answer (Sources:\n[1] title — url…), so the model can cite sources by number; plain (default) keeps the answer alone.
  • Automatic fallback engine: fallbackEngine: deepseek answers a search through the official DeepSeek provider when Tavily fails with a service-side problem (timeout / network / 5xx). Key-level faults (429/401) never trigger the fallback — they are credential problems, not outages.
  • Credential-first key handling: per-search resolution order is literal apiKey → credentials service (apiKeyEnv) → process.env[apiKeyEnv].

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-skin-pack 下一个 Next dsh-heatmap →