treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jaco-tech/dsh-web-search-searxng
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
SearXNG-backed search provider plugin for DeepSeek Harness.
Registers a WebSearchProvider into ctx.web so that the existing web_search model tool routes through your SearXNG instance. No auth, no API key, no model calls — just a plain HTTP GET against SearXNG's JSON endpoint.
npm install @jaco-tech/dsh-web-search-searxng
Requires DeepSeek Harness 0.2.1-rc.5. The tested DSH dependency set pins
@deepseek-ai/dsh-web and @deepseek-ai/dsh-settings exactly at 0.2.1-rc.5.
@deepseek-ai/cordis is the deliberate exception: like the first-party DSH web plugins,
this package declares the compatible patch range ~4.0.5. A consumer lockfile could in
principle resolve a different 4.0.x cordis patch and create a second framework copy; this
plugin's one-shot install is verified against cordis 4.0.5. Every DSH bump therefore needs
a release of this package with its framework peers re-pinned (test/peer-pins.test.mjs
enforces their presence and pin form). Use 0.1.x of this plugin with DSH 0.1.x.
npm install @jaco-tech/dsh-web-search-searxng
Edit ~/.dsh/profiles/web/cordis.patch.yml (create it if it doesn't exist) and add:
- insert:
- id: web-search-searxng
name: '@jaco-tech/dsh-web-search-searxng'
config:
# Required: point at your SearXNG instance
baseURL: 'http://your-searxng-instance:8888'
# Optional filters:
language: 'en'
categories: 'general'
timeRange: ''
If you have multiple search providers registered, pin ctx.web to use this one:
- replace:
- id: web
config:
searchProvider: searxng
Stop your running dsh process and start it again:
npx @deepseek-ai/dsh web
The plugin will be loaded automatically. The web_search tool in your agent will now use your SearXNG instance.
Once DSH is running, go to Settings → Plugins in the Web UI. You'll see a "web-search-searxng" card where you can edit the baseURL and filter settings without editing YAML files.
Every config field is volatile (DSH 0.2 settings model): a change is committed into the running plugin and the next search reads it, without reloading the plugin.
This is a Cordis plugin that implements the WebSearchProvider interface from @deepseek-ai/dsh-web:
export const name = "web-search-searxng"
export const inject = ["web"]
export function apply(ctx, config) {
ctx.web.registerSearchProvider({
id: "searxng",
available() { /* URL.canParse(config.baseURL.get()) */ },
async search(request, signal) {
// GET /search?q=<query>&format=json
// maps response to WebSearchResult
}
})
}
The existing @deepseek-ai/dsh-tool-web consumer calls ctx.web.search() — your SearXNG instance serves the results automatically.
| Method | Behavior |
|---|---|
available() |
Returns true when baseURL is a valid URL |
search(request, signal?) |
GET /search with q, format=json, optional language/categories/time_range params. Dedupes results by URL. Surfaces answers and infoboxes as provider-generated answer text. |
This plugin communicates with SearXNG via its JSON API (/search?format=json). SearXNG is a free internet metasearch engine which aggregates results from more than 70 search services. You need a running SearXNG instance to use this plugin.
# Tag and push — the CI workflow builds and publishes to npm automatically
git tag v0.1.0
git push origin v0.1.0
Requires the NPM_TOKEN secret to be set in the repository.
npm install
npm run build
npm test # hermetic: loads lib/ into a real cordis Context next to dsh-web's ctx.web
Verify a one-shot scratch install of DSH plus this package's npm pack tarball:
repo=$PWD
scratch=$(mktemp -d)
tarball=$(npm pack --pack-destination "$scratch" --silent)
printf '%s\n' \
"{\"private\":true,\"dependencies\":{\"@deepseek-ai/dsh\":\"0.2.1-rc.5\",\"@jaco-tech/dsh-web-search-searxng\":\"file:./$tarball\"}}" \
> "$scratch/package.json"
(cd "$scratch" && npm install --no-audit --no-fund)
node "$repo/test/installed-tree-identity.mjs" "$scratch"
The final check is hermetic (it only reads the installed tree). It requires exactly one
installed copy each of @deepseek-ai/dsh-web,
@deepseek-ai/dsh-settings, and @deepseek-ai/cordis, and requires
@deepseek-ai/cordis-plugin-group to be present.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: api。