dsh-web-search-tavily
by nitrazepam01
DeepSeek Harness(dsh)的 Tavily 搜索 provider bundle:为 ctx.web 搜索缝注册 Tavily 后端,并附带可热切换的后端选择器
A Tavily-backed search provider bundle for DeepSeek Harness ( dsh ). It registers a Tavily backend for the ctx.web web-search seam and ships a hot-switchable backend selector…
安装
dsh plugin --profile web add github:nitrazepam01/dsh-web-search-tavilyGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
A Tavily-backed search provider bundle for DeepSeek Harness (dsh). It registers a Tavily backend for the ctx.web web-search seam and ships a hot-switchable backend selector (Tavily / DeepSeek search).
Features
- Tavily provider — calls
POST /searchand normalizes results to{ url, title, snippet, publishedAt }. Tavily returns content excerpts, so the model can quote snippets directly. - Hot backend switcher — a delegating provider (
search-switch) sits behind thewebrow and resolves the active backend from theweb-searchsettings section on every search. Saving the section takes effect immediately: no restart, no loader-row reload. - Full
WebErrortaxonomy (WEB_PROVIDER_ERROR/WEB_PROVIDER_CREDENTIAL_MISSING/WEB_ABORTED). - Credential resolution chain: literal
apiKey→credentialsservice → launch environment. - Settings sections:
web-search-tavily—apiKey/apiKeyEnv/baseURL/maxResultsweb-search—backendselection (tavily|deepseek-official)
Install
# From git (recommended — plain JS, no build step, no allowBuilds required)
dsh plugin --profile web add github:nitrazepam01/dsh-web-search-tavily
# From npm
dsh plugin --profile web add dsh-web-search-tavily
# From a local checkout
dsh plugin --profile web add ./dsh-web-search-tavily
Restart dsh web after installing (bundle layers are frozen at boot). To uninstall: dsh plugin --profile web remove dsh-web-search-tavily.
Configuration
1. Credential
Store your Tavily key in $DSH_HOME/.credentials.yaml:
TAVILY_API_KEY: tvly-your-key
2. Backend selection
The web row's searchProvider is set to search-switch (the delegating provider) by this bundle. The active backend lives in the web-search section of $DSH_HOME/settings.yaml and hot-reloads on save:
web-search:
backend: tavily # tavily | deepseek-official
tavily— this plugin's Tavily provider (results carry content excerpts)deepseek-official— delegates to the shippedweb-search-deepseekprovider (DeepSeek Anthropic-compatible Messages endpoint; no excerpts)
3. Tavily options (web-search-tavily section)
| Field | Default | Description |
|---|---|---|
apiKey |
none | Literal key (secret, stored via the credentials domain) |
apiKeyEnv |
TAVILY_API_KEY |
Credential reference name |
baseURL |
https://api.tavily.com |
Tavily REST endpoint |
maxResults |
5 |
Max results per search |
How it works
web_search tool → ctx.web (searchProvider: search-switch)
→ switcher delegates by web-search.backend:
tavily → this plugin's provider → POST https://api.tavily.com/search
deepseek-official → shipped provider → Anthropic Messages + web_search_20250305
Why a delegating provider instead of editing the web row directly? Changing the web row's config restarts the dsh-web plugin and disposes every registered provider (Cordis Fiber.update → restart semantics). The switcher keeps the selection in the settings layer only, sidestepping that hazard entirely.
Development
# Install a local checkout into a profile
dsh plugin --profile web add ./dsh-web-search-tavily
# Inspect the composed config without booting
dsh --profile web --dump-config
dsh web
License
原始 README: https://github.com/nitrazepam01/dsh-web-search-tavily/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent