Community plugin

maxwell-feng / dsh-tinyfish-search

TinyFish-backed web search provider for DeepSeek Harness (ctx.web): makes the built-in web_search tool run on the TinyFish Search API

  • TypeScript
  • MIT
  • 27 stars
  • Nov 20, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-tinyfish-search is a DSH plugin published from the maxwell-feng/dsh-tinyfish-search repository.

  • Listing statusManifest verified
  • Manifest checkedNov 20, 2026
  • Packagedsh-tinyfish-search
  • Package version0.22.0
  • DSH engine>=0.1.7-alpha.2 <0.3.0
  • Source commit888f8f6
  • Repository createdAug 30, 2026

Capabilities and topics

deepseek-harnessdshpluginweb-search
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

dsh-tinyfish-search

English | Chinese

DeepSeek Harness plugin that runs the built-in web_search tool on the TinyFish Search API. One GET per query. No model call.

What it does

The plugin registers a web search provider on ctx.web under the stable id tinyfish:

  • Each web_search call becomes GET https://api.search.tinyfish.ai with the x-api-key header.
  • results[] (title, snippet, URL, date) are mapped to WebSearchSource.
  • ready(llmProvider) reports whether a usable API key exists. Without one, a model step is not offered web_search.
  • No LLM turn is consumed per search.
  • Native icon.svg and bilingual manifest resources (locale/en.json, locale/zh.json) are included for Plugin Manager.

Bundle patch

cordis.patch.yml overrides two host rows:

  • web: sets searchProvider: tinyfish and restates fetchProvider: http. Since DSH 0.2.2-rc.5, dsh-base sets no search provider, and dsh-web chooses one per model route: legacy Messages search on DeepSeek routes, DeepSeek Search API elsewhere. The explicit id pins TinyFish for every route.
  • tool-web: re-enables the host tool row with disabled: false and restates search: true, fetch: true and the base timeouts. dsh-web-app ships this row disabled, so a clean web profile would otherwise have no web_search tool.

Re-enabling tool-web makes the web tools visible to every agent preset on the profile, including presets that do not otherwise carry them (e.g. minimal). A preset that mounts its own tool-web row shadows this registration for its agents. To scope the tools to one preset, override or remove the tool-web row in your profile cordis.patch.yml and add tool-web to that preset's composition. Later profile, home and --patch layers can override both rows.

Configuration uses a volatile schema. The Host reads the exported Config and renders the form for the dsh-tinyfish-search row on the Plugins page. There is no plugin-side settings code. A saved edit reaches the next search without a restart.

Requirements

  • DeepSeek Harness dsh with the web seam, such as the web profile. Build baseline: 0.2.2-rc.5 (released 2026-11-18). engines.dsh: >=0.1.7-alpha.2 <0.3.0.
  • Node.js ^22.19.0 || >=24.0.0. DSH 0.2.2 hosts require Node 24.9+, so the effective host floor is 24.9.
  • A TinyFish API key. Search is free at any wallet balance.
  • @deepseek-ai/dsh-credentials and @deepseek-ai/dsh-launch-environment as peers. Every dsh profile carries them.

DSH checks the declared engines.dsh range against the running version before it loads the row. A host outside the range is refused with the exact requirement named. To accept the risk:

dsh plugin --profile web allow-version dsh-tinyfish-search@0.22.0 --dsh-version <your-dsh-version> --accept-risk

Guides: Install · Configuration · Usage · Update · Uninstall · Changelog. Each has a Chinese edition.

Install

dsh plugin --profile web add dsh-tinyfish-search

From a checkout or tarball:

dsh plugin --profile web add ./dsh-tinyfish-search
dsh plugin --profile web add ./dsh-tinyfish-search-0.22.0.tgz
dsh plugin --profile web add github:maxwell-feng/dsh-tinyfish-search

--profile <name> goes before add, remove, update and allow-version. Git installs build lib/ through the package prepare script (tsc -p tsconfig.build.json).

Check the layer with dsh --profile web --dump-config | grep tinyfish. Then start a session and ask a question that needs live information: the result should carry TinyFish URLs and snippets, and the web search settings card should show provider tinyfish with available: true.

Configure

Set the API key (recommended):

export TINYFISH_API_KEY="your_api_key_here"                      # current shell
echo 'export TINYFISH_API_KEY="your_api_key_here"' >> ~/.bashrc  # permanent (bash)
echo 'export TINYFISH_API_KEY="your_api_key_here"' >> ~/.zshrc   # permanent (zsh)
source ~/.bashrc                                                 # or reopen the terminal

On Windows PowerShell, use setx TINYFISH_API_KEY "your_api_key_here" for new terminals or $env:TINYFISH_API_KEY = "your_api_key_here" for the current session.

Set these fields in your profile cordis.yml or a patch layer:

FieldDefaultMeaning
apiKey—Literal API key (secret; wins over the env var)
apiKeyEnvTINYFISH_API_KEYEnvironment variable carrying the key
baseURLhttps://api.search.tinyfish.aiAPI endpoint base
location—Optional geo targeting; blank sends nothing
language—Optional search language; blank sends nothing

All fields are optional. See the Configuration Guide for the schema, credential order and readiness rules.

Usage

  1. The model calls web_search as usual.
  2. The harness routes it through ctx.web → tinyfish → https://api.search.tinyfish.ai.
  3. Results arrive as WebSearchSource[] (url, title, snippet, publishedAt).

available() is a local check the seam uses to pick a provider. ready() decides whether the tool is offered on a model step. With no usable key, web_search is withheld. A dispatched search that bypasses that gate fails with WEB_PROVIDER_CREDENTIAL_MISSING.

Errors follow the dsh-web seam: WEB_PROVIDER_CREDENTIAL_MISSING when no key is found, WEB_ABORTED on cancellation, WEB_PROVIDER_ERROR otherwise. See the Usage Guide for examples and the error table.

Update

dsh plugin --profile web add dsh-tinyfish-search@latest

This release moves the dependencies to DSH 0.2.2-rc.5 and updates the documentation; behavior is unchanged. See the Update Guide for steps and rollback.

Uninstall

dsh plugin --profile web remove dsh-tinyfish-search

This removes the bundle layer and the tinyfish provider. The web and tool-web rows return to the values shipped by the underlying bundles. A preset that mounts its own tool-web row keeps web_search, which falls back to the harness's own selection: since 0.2.2-rc.5, deepseek-official (legacy Messages search) on DeepSeek model routes and deepseek-search-api elsewhere; deepseek-search-api on 0.2.2-rc.2 through rc.4; deepseek-official on earlier hosts; or no provider if none is installed. A preset that relied on this bundle's host-level tool-web row (for example minimal) loses web_search until tool-web is restored for that preset.

Development

Maintained with the assistance of dsh-superagent.

pnpm install
pnpm build     # tsc -> lib/
pnpm test      # node --test, mocked fetch
pnpm typecheck # tsc --noEmit, src + test + scripts

Run node scripts/check-docs-language.ts to check the docs language pairs. Publishing uses npm Trusted Publishing (OIDC) through GitHub Actions; see .github/workflows/publish.yml.

Release notes: CHANGELOG.md or CHANGELOG.zh.md, plus the GitHub Releases page.

License

MIT — see LICENSE.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/maxwell-feng/dsh-tinyfish-search)