dgagf111/dsh-hydrasearch ↗★ 0

dsh-hydrasearch

TinyFish + AnySearch web search and fetch provider for DeepSeek Harness (DSH): registers a ctx.web failover chain with an operator-controlled backend priority, so the built-in web_search and web_fetch tools run through TinyFish and AnySearch, with a settings card in the Plugins page. 适合需要整合 TinyFish 和 AnySearch 提升内置搜索工具稳定性的用户。

Package
dsh-hydrasearch
Compatibility
Unverified
Harness peer range
^0.1.0-rc.6
Version
0.2.0
License
MIT
Last updated
Sep 22, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dgagf111/dsh-hydrasearch

配置

全部字段持久化在 settings 命名空间 hydrasearch,每个字段用独立路径写入(如 ['tinyfish','language']),所以编辑一个后端永远不会覆盖另一个。

链(顶层)

字段默认说明
priority[tinyfish, anysearch]后端顺序,卡片拖动调整
failovertrue失败时是否切下一个
takeOverSearchtrue组合未指定 web.searchProvider 时接管
takeOverFetchtrue同上,针对 fetch
searchBackendautoauto 跟随优先级,或钉死某个后端 id
fetchBackendauto同上,针对 web_fetch

TinyFish(tinyfish.*)

字段默认对应 API 参数
enabledtrue—
apiKey''X-API-Key;空则回退 env / CLI 配置
apiKeyEnvTINYFISH_API_KEY凭据中心的引用名
searchBaseURLhttps://api.search.tinyfish.ai/搜索端点
fetchBaseURLhttps://api.fetch.tinyfish.ai/抓取端点
purpose''purpose 搜索意图提示
language''language
location''location
domainType''domain_type:web / news / research_paper
includeDomains''include_domains(逗号分隔)
excludeDomains''exclude_domains(逗号分隔)
afterDate''after_date(YYYY-MM-DD)
beforeDate''before_date(YYYY-MM-DD)
recencyMinutes0recency_minutes(0=不发)
pubYearMin0pub_year_min(0=不发)
pubYearMax0pub_year_max(0=不发)
maxPages3每次搜索最多翻几页(1–10)
fetchFormatmarkdown抓取格式:markdown / html / json
fetchLinksfalse抓取时同时返回页面链接
verbosefalse打印每次搜索/抓取日志

AnySearch(anysearch.*)

字段默认对应 API 参数
enabledtrue—
apiKey''Authorization: Bearer;空则匿名访问
apiKeyEnvANYSEARCH_API_KEY凭据中心的引用名
baseURL''API 地址;空则用公共地址
tag''tag 垂直子域(如 finance.quote);空=通用网页搜索
params''params 垂直参数(JSON 对象字符串);需先填 tag
zone''zone
language''language
maxResults10max_results(1–10)
verbosefalse打印日志

写路径会校验:端点必须是绝对 URL、maxPages 在 1–10、fetchFormat 合法、日期是 YYYY-MM-DD、params 是合法 JSON 对象且必须同时有 tag。坏值在卡片层就被拒,不会静默禁用某个后端直到重启。