fangqian616/dsh-local-search

Plugin插件 Native原生 ⭐ 2 MIT Search & Web Access搜索与联网

一个 DeepSeek Harness 插件,注册 bingsearch 模型工具,用于零依赖的本地网页搜索 —— 无需 API key、无需 firecrawl、无需注册。它直接从宿主机抓取 Bing 的 HTML,并解析出标题 / 链接 / 摘要。

catalog descriptioncatalog 简介 / catalog description:拒绝花里胡哨,让你的dsh用本地网络搜索信息 | Zero-dependency local Bing search DSH plugin

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a bing_search tool to enable web search without any external API keys, additional runtime npm dependencies, or third-party crawling services like firecrawl. To install the plugin, users only need to run the DSH CLI command dsh plugin --profile web add @fangqian616/dsh-bing-search in their terminal, then restart their DSH instance to activate the tool. Once activated, the bing_search tool is available for DSH’s connected LLM to call directly whenever it needs to fetch up-to-date public web information from across the internet.

The plugin is specifically built to address common failure modes of DSH's default web_search tool. It is intended for use when the default keyless firecrawl integration gets blocked and returns a 403 error, or when the user has not set up any third-party search API key for their DSH instance. When called by the LLM, the tool accepts two parameters: a required search query string and an optional parameter that sets the maximum number of results to return, which defaults to 10. It then returns a structured list of results with each entry containing a title, URL, and text snippet.

The plugin fetches Bing search results directly using DSH's built-in ctx.web.fetch web service, parses the HTML with regular expressions to extract results, filters out self-promotional links from Bing and Microsoft, and has zero additional npm dependencies beyond DSH core. The developer chose Bing as the source because Bing is accessible without an API key in most regions, while many users face access blocks for alternative options like DuckDuckGo. There are important caveats to keep in mind: because parsing relies on Bing’s current front-end HTML structure, any changes to Bing’s page layout, or presentation of CAPTCHAs or consent pages will break the parser and cause the tool to return an error. The plugin is released under the permissive open-source MIT license.

这是专为 DeepSeek Harness (DSH) 开发的原生插件,会向 DSH 注册名为 bing_search 的网页搜索工具,支持在零依赖、不需要 API 密钥、不需要额外注册账号的情况下完成本地网页搜索。它直接调用 DSH 内置的 web 服务抓取必应搜索结果页的 HTML 代码,通过正则表达式解析出搜索结果的标题、链接和摘要。安装只需执行命令 dsh plugin --profile web add @fangqian616/dsh-bing-search 后重启 DSH 即可完成。

该插件主要供默认 web_search 工具无法正常使用时使用,比如遇到 firecrawl 无密钥访问被拒返回 403,或者用户尚未配置任何搜索 API 密钥的情况。它向大模型暴露可调用的 bing_search 工具,接受搜索关键词参数和可选的结果数量限制参数(默认值为 10),最终返回结构化的搜索结果列表,同时会自动过滤必应和微软自身的推广链接,适合因配置或访问限制无法使用默认搜索工具的 DSH 用户使用。

除 DSH 核心服务外,该插件没有任何额外的运行时 npm 依赖,属于零依赖工具。开发者选择使用必应作为搜索源,是因为不少地区无法正常访问 DuckDuckGo,而必应无需密钥即可访问。需要注意的是,搜索结果解析依赖正则表达式和必应当前的页面结构,如果必应改版、返回验证码或者用户协议页面,工具会返回错误且无法正常工作,插件采用 MIT 开源许可证发布。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add @fangqian616/dsh-bing-search

把 fangqian616/dsh-local-search 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@fangqian616/dsh-bing-search

中文 · English

一个 DeepSeek Harness 插件,注册 bing_search 模型工具,用于零依赖的本地网页搜索 —— 无需 API key、无需 firecrawl、无需注册。它直接从宿主机抓取 Bing 的 HTML,并解析出标题 / 链接 / 摘要。

当 web_search 报 403(firecrawl keyless 被拒)或未配置搜索 API key 时使用。

安装

dsh plugin --profile web add @fangqian616/dsh-bing-search
# 重启 dsh

工具随后以 bing_search 暴露(模型可调用)。

用法(作为模型工具)

bing_search(query: "你的查询词", limit?: 10)

返回 [{ title, url, snippet }]。

工作原理

  • 通过 DSH 的 web 服务(ctx.web.fetch)抓取 https://www.bing.com/search?q=...;
  • 用正则解析 <li class="b_algo"> 结果块(标题 / 链接 / 摘要),解码 HTML 实体,过滤 Bing / Microsoft 自身链接;
  • 除 DSH 核心服务外无运行时 npm 依赖。

注意事项

  • 解析基于正则,若 Bing 改版或返回验证码 / 同意页(此时工具返回 error 字段)可能失效;
  • 某些地区 DuckDuckGo 被墙,故选用无需 key 即可访问的 Bing。

License

MIT

← 上一个 Prev dsh-council 下一个 Next workspace-metabolism →