dsh-web-search
开发工具 活跃维护

dsh-web-search

Shyboy0499/dsh-web-search

为对应大模型生态提供轻量级网络检索扩展,输入查询词即可返回结构化排序结果,无需额外配置即可快速接入,补全模型知识时效性短板,提升信息检索准确度。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
45 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Shyboy0499/dsh-web-search
git clone https://github.com/Shyboy0499/dsh-web-search.git
git clone git@github.com:Shyboy0499/dsh-web-search.git
README.md main

dsh-web-search

CI
License

Web search tool for DeepSeek Harness (dsh).

dsh-web-search is a small, dependency-free DeepSeek Harness plugin that lets the
coding agent search the web and get back ranked, readable results (title + URL

  • snippet) through the official tool API. It uses a keyless public endpoint, so
    there's nothing to configure.

Features

Tool What it does
web_search Query the web and return ranked results with title, URL and snippet
fetch_page Fetch a URL and return readable text (title + body)

Installation

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

No API key or external credentials required.

Tool reference

web_search

Search the web and get readable results.

{
  "query": "deepseek harness",
  "limit": 5
}

Returns { query, results: [{ title, url, snippet }] }.

limit (optional) caps how many results are returned. It is clamped to the
range 1–10 so the agent can't request an unbounded result list; defaults to
returning everything the endpoint provides (usually a handful).

Network/abort failures surface as readable messages rather than raw
TypeError/AbortError.

fetch_page

Fetch a URL and get readable text back (title + body), via a keyless reader
endpoint. Best used on a result URL returned by web_search.

{ "url": "https://example.com/article", "maxChars": 8000 }

Returns { url, title, content }. maxChars caps the returned body (default
12000, clamped to a hard 80000 ceiling).

Development

pnpm install
pnpm typecheck
pnpm test
pnpm lint
pnpm build

Structure

The plugin is deliberately split so the fetch layer and the formatting layer can
be developed and tested independently:

  • src/search.ts — fetches + parses results from the search endpoint
  • src/format.ts — renders results as readable text for the agent
  • src/tool.ts — the web_search tool definition (schemas, render, execute)
  • src/index.ts — plugin entry point registering the tool with the harness

License

MIT