rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qikairo7/dsh-web-search
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Self-contained multi-backend web search and fetch providers for DeepSeek Harness (DSH). The bundle replaces the paid official web providers while keeping the first-party dsh-tool-web tool layer. The model still calls web_search and web_fetch; only the backends change, with optional AnySearch / Tavily / AIHOT advanced tools.
Non-goals: the paid DeepSeek Search/Fetch APIs, an MCP server, and third-party DSH plugins.
Status: pre-1.0. Behavior, defaults, and provider support can change between minor versions. Review SAFETY.md before use.
The legacy deepseek-official search runs a full model turn for every search. The DeepSeek Search and Fetch APIs charge per successful request. This bundle uses free-tier backends and direct HTTP where possible:
| Backend | Free allowance | Used by |
|---|---|---|
| Keenable | 100,000/month (key); 1,000/hour anonymous | Default search + Markdown fetch |
| AnySearch | 1000 searches/day with a registered key; anonymous access also works | Search |
| Exa | $10 free credits/month (docs.exa.ai); one-time $10 onboarding bonus | Semantic search + Contents fetch; free depth |
| Bing | Keyless HTML SERP; no metered quota | Keyless search floor before the paid tail |
| Zhihu | 5000 global + 5000 site searches/day | Chinese search |
| Tavily | 1000 credits/month | Fallback only: empty free search, missing official docs, stale news, fetch failure chain |
| Firecrawl | 1000 credits/month | Last-resort fetch for hard JS/PDF pages |
| AIHOT | Anonymous read-only | AI-news search/curation (free) |
| Direct HTTP | No API cost | Static-page fetch |
| SiliconFlow | Free allowance | BGE rerank + embeddings |
quality mode queries free sources by default (Chinese: Zhihu + Keenable + AnySearch; English: Keenable + AnySearch; AI news adds AIHOT first). Exa's monthly free allowance makes it the free depth hop after the default free stack; Bing adds the keyless floor before the paid tail; Tavily and Firecrawl spend credits only on empty results, missing official docs, stale news, or fetch failures. Evidence enrichment prefers Keenable/HTTP/AnySearch, then Exa/Tavily/Firecrawl. fast uses the free order first.
Why this over the alternatives:
0.2.2-rc.3 (the version this bundle was verified against).22.19+ or 24+.dsh-web; the bundle patch enables the first-party dsh-tool-web row.From a checkout:
git clone https://github.com/qikairo7/dsh-web-search.git
cd dsh-web-search
dsh plugin --profile desktop add "."
Or install the release tarball:
dsh plugin --profile desktop add path/to/dsh-web-search-<version>.tgz
Or install the checkout directory with the Plugin Manager. Restart DSH after installing.
After install, open Settings → Search and fetch settings, or Plugins → Installed plugins → Web search router → Configuration, to fill provider API keys, enable or disable backends, and set search and fetch modes. Keys are written to the DSH credential store and never read back into the page.
Use Test on a provider card to send one real search request and confirm the saved key works. The settings page shows documented free allowances; Tavily and Firecrawl return live remaining values; SiliconFlow balance stays in its console. Keenable reports credits_remaining per search/fetch, so Refresh quota runs one minimal search to read the latest value. Pull models loads the SiliconFlow rerank and embedding model lists. Releases attach installable tarballs; the package is not published to npm.
The plugin reads API keys through the DSH credentials service. Prefer the provider card's Add key on the settings page (the credential service writes the format). To hand-edit ~/.dsh/.credentials.yaml, nest the keys under refs (or export them in the launching environment):
version: 1
records: {}
refs:
ANYSEARCH_API_KEY: "as_..."
KEENABLE_API_KEY: "keen_..."
EXA_API_KEY: "..."
TAVILY_API_KEY: "tvly-..."
FIRECRAWL_API_KEY: "fc-..."
ZHIHU_API_KEY: "..."
SILICONFLOW_API_KEY: "sk-..."
AnySearch and Keenable work anonymously; a registered key raises the quota. Exa requires a key. Zhihu requires an Access Secret from the Zhihu Open Platform. Tavily and Firecrawl report not ready without a key and the router skips them. Reference names are configurable via the *ApiKeyEnv fields.
For multiple keys, use Add key in the provider card to add one row per key. Existing keys show a masked value with a Delete button. Rows are stored as the base reference plus _2, _3, … and tried in order; a key failing on quota, rate-limit, or authentication moves to the next before the router falls back. Zhihu exposes its daily allowance at GET /api/v1/quota, shown on the settings page.
| Provider id | Search | Fetch | Default role |
|---|---|---|---|
anysearch |
yes | yes | English/default search supplement; broad coverage |
keenable |
yes | yes | Free-quota first; search + clean Markdown fetch |
exa |
yes | yes | Semantic search + Contents fetch; free depth after the default free stack |
bing |
yes | no | Keyless HTML SERP floor before the paid tail |
tavily |
yes | yes | Search fallback; news-freshness and official-docs supplements; optional generated answer; PDF Extract |
firecrawl |
yes | yes | Fetch last-resort only; strong Scrape for SPA/PDF |
zhihu |
yes | no | Chinese search first; global search + site supplement |
zhihu-site |
yes | no | Zhihu site-only search when selected explicitly |
aihot |
yes | no | Curated AI news for AI-news queries; anonymous |
http |
no | yes | Direct HTTP fetch; second after Keenable in the fast order |
auto |
yes | yes | Default router for both capabilities |
Default orders:
zhihu → keenable → anysearch → exa → bing → tavily → firecrawlkeenable → anysearch → exa → bing → tavily → firecrawlkeenable → http → anysearch → exa → tavily → firecrawlThe bundle patch pins the default auto provider; individual providers are also registered and selectable in the settings page.
searchMode defaults to quality (see Quality pipeline); Exa holds the free depth position and is not in the default quality fan-out; Bing is the keyless floor; Tavily and Firecrawl are fallback-only. fetchMode defaults to fast; clean uses keenable → anysearch → exa → http → tavily → firecrawl, preferring free extraction and keeping Tavily/Firecrawl as fallback. The tool-web summary cap comes from the agent preset (standard 800; bundle patches cannot override it — see the cookbook); provider maxSnippetChars is 4000 but web_search truncates to that cap. Tavily search uses include_raw_content; the optional tavily_search tool supports include_published_date.
| Tool | Purpose |
|---|---|
anysearch_capabilities |
Discover current AnySearch domains, vertical tags, and parameter definitions |
anysearch_search |
Run a vertical or structured search with tag / params / zone |
anysearch_batch_search |
Run one to five independent searches concurrently |
tavily_search |
Tavily advanced search with depth/topic/time-range/domain filters and optional answer |
tavily_extract |
Batch-extract one to twenty URLs through Tavily |
aihot_latest |
AIHOT today/week curated AI news, anonymous and free |
aihot_hot |
AIHOT current hot topics, anonymous and free |
anysearchMaxRenderedContentChars caps the result content anysearch_search / anysearch_batch_search render to the model per call; default 12000 characters.
zhihu calls global_search first. If it returns fewer than maxResults sources, it calls zhihu_search and merges the results by URL. English queries do not call the site endpoint.technical, news, chinese-community, or general, then choose the provider set and fast-mode order.zh, otherwise en; the value is passed to Tavily/AnySearch as the language hint. An explicit lang: wins.news intent enables Tavily topic: news + time_range: week, Firecrawl news sources + qdr:w, the Zhihu realtime index, and AIHOT for AI-news queries. Known Chinese/English news domains get a small ranking bonus; wrong-language news sources are filtered out; AIHOT items get an extra provider boost. Non-AI news queries whose free results carry fewer than 3 sources dated within 7 days trigger one extra Tavily news search (newsFreshnessEnabled, default on).site:, lang:, after:, and before: are parsed and forwarded to Tavily, Firecrawl, and Zhihu where their APIs support the filter.searchMode: quality queries the language's free providers in parallel (Chinese: Zhihu + Keenable + AnySearch; English: Keenable + AnySearch; AI news: AIHOT + the language set), merges by URL, removes near-duplicates with BAAI/bge-m3 embeddings, then reranks with BAAI/bge-reranker-v2-m3 and adds a domain-authority prior (official docs, MDN, GitHub, StackOverflow first). AnySearch page bodies are compressed into an 800–1500 character query-aware extract. If the reranker or embedding service is unavailable, the merged provider order is returned.deepseek-harness.github.io, api-docs.deepseek.com, nodejs.org, developer.mozilla.org, react.dev, docs.python.org, go.dev, rust-lang.org, plus known vendor domains for Docker, Kubernetes, AWS, Azure, GitHub, TypeScript, Java, and NVIDIA), quality mode runs one extra Tavily search restricted to those domains only when free results miss every official domain, drops archived Node.js /download/release/ docs and old release blogs, and merges the results.tavilyIncludeAnswer is on (default), Tavily's generated answer becomes the optional web_search content. Turn it off to return sources only.zhihuIncludeMetadata is on (default), each summary starts with 作者:…;赞同 …;评论 …, giving the model a quality signal inside the provider-neutral source shape.WEB_UNSUPPORTED_CONTENT_TYPE so the router falls back to an API provider. Small client-rendered app shells are detected by minDirectHtmlChars (default 2048) and also trigger a fallback.fallbackFailureClasses (default: all six) decides which classes may try the next provider, and an explicit empty list stops at the first failure. Caller cancellation and invalid URLs return immediately. A 404 from direct HTTP is returned as a result, not a fallback trigger.fetchMode: clean changes the order to keenable → anysearch → exa → http → tavily → firecrawl, preferring free extraction and keeping Tavily/Firecrawl as fallback.dsh-web-fetch-http behavior.Search results are cached for 5 minutes (200 entries); fetch results for 10 minutes (100 entries). A provider with 3 consecutive recoverable failures is skipped for 5 minutes.
requestTimeoutMs, so a hanging stage cannot outlive the tool deadline.See Configuration for every field, default, and meaning.
pnpm install
git config core.hooksPath .githooks
pnpm docs:check
pnpm check
pnpm probe
pnpm benchmark
pnpm check runs guardrail tests, architecture lint, order-doc sync, doc-code, docs and pairing checks; pre-commit runs only the syntax check, and pre-push runs the full pnpm check once. pnpm probe is the daily live probe: 14 fixed queries plus 2 fetches with per-provider telemetry, list-health signals, a rolling 7-day aggregate, and PASS/FAIL verdicts (see Testing policy). pnpm benchmark loads the committed FRAMES/WebWalkerQA fixture first, then falls back to the public rows API; SAMPLE_SIZE sets the rows per benchmark (default 50). Run pnpm benchmark:refresh when the benchmark data changes. Live API verification requires the credentials above.
MIT. Third-party code, dependencies, and benchmark data are disclosed in THIRD_PARTY_NOTICES.md. Names and compatibility statements are covered by TRADEMARKS.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。