rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:loommii/dsh-thin-search
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Free, keyless web search for DeepSeekRuntime 0.2.2-rc.3 on Node 24.9+. Thin Search replaces the model-backed web search call with plain HTTP requests to free engines, so search costs no model tokens unless you explicitly enable query enhancement.
v1.0.0 is a complete rewrite and supports only DSH 0.2.2-rc.3. It does not carry compatibility branches for DSH 0.1.x, 0.2.0 or 0.2.1.
WebSearchProvider (id: thin-search), so it coexists with other
registered providers and is selected through the global web search setting.advanced_search tool: fixed tiers, relative durations
and absolute dates.provider:model override and a prompt file./thin-search-engine popup command.| Item | Requirement |
|---|---|
| DSH | 0.2.2-rc.3 (exact; declared in engines.dsh and peer dependencies) |
| Node | Node 24.9 or newer (engines.node: >=24.9.0) |
| Cordis | ~4.1.0 |
| Runtime dependencies | @deepseek-ai/schemastery, node-html-parser |
dsh plugin --profile web add dsh-thin-search
Restart dsh web once. The bundle patch inserts the thin-search row and
sets the first-boot default:
- insert:
- id: thin-search
name: dsh-thin-search
config:
provider: bing
bingMarket: zh-CN
- id: web
config:
searchProvider: thin-search
fetchProvider: http
The patch only sets web.searchProvider and web.fetchProvider; it never
rewrites a profile and never edits other rows. Uninstall with:
dsh plugin --profile web remove dsh-thin-search
Restart afterwards to return to whichever provider the deployment selects next.
v0.6.x targeted DSH 0.1.7-0.2.1 and shipped a plugin-level HTTP proxy, a settings bridge and a UI engine test control. Those surfaces are removed in v1.0.0.
engines.dsh and the peer dependencies,
but the plugin does not enforce a runtime version gate.proxy field with the DSH global proxy policy: set
HTTP_PROXY, HTTPS_PROXY and (when needed) NO_PROXY before
starting DSH. Thin Search uses the shared HTTP client, so there is no
per-plugin proxy setting anymore.cache boolean; cacheTtl now also acts as the on/off switch
(0 disables) and defaults to 5 minutes.enhanceSystemPrompt with enhanceSystemPromptPath. Prompt text no
longer lives in cordis.patch.yml; write it to a file such as
~/.dsh/thin-search/system-prompt.md and point the field at it.web engine-mode block from a profile patch.
The bundled patch pins the provider once; later switches go through
ConfigForms and take effect immediately.thin-search and the tool
names free_search_test, platform_search and advanced_search are unchanged.tools.mode and tools.maxParallelSubCalls from the tools row in the
profile patch. DSH 0.2.2-rc.3 declares both fields as z.never() and rejects
every value. The composition mounts the executor instead, for example the
native or PTC tool-executor bundle (@deepseek-ai/dsh-tool-executor-native
or @deepseek-ai/dsh-tool-executor-ptc); do not set either field.Every editable field is volatile and appears on the installed bundle's configuration card. The schema is closed: exactly nine fields.
| Field | Default | Description |
|---|---|---|
provider |
bing |
Preferred free engine; fallback still applies. |
platforms |
all eight | Platforms platform_search may query. |
cacheTtl |
5 |
Result-cache lifetime in minutes; 0 disables it. |
searchEnhance |
false |
Enables one model call per cache miss. |
enhanceModel |
empty | provider:model override; empty uses the current Agent model. |
enhanceSystemPromptPath |
empty | Prompt file; empty uses the built-in prompt. |
bingMarket |
zh-CN |
Bing mkt value. |
region |
empty | DuckDuckGo kl value, for example cn-zh. |
searxngInstances |
empty | Absolute http(s) SearXNG base URLs, including sub-path deployments such as https://host/searxng; empty uses built-ins. |
Edit them in Plugins → Installed → dsh-thin-search → Configuration. This entry
is the installed bundle's own configuration card; there is no global Settings item for Thin Search.
The Host owns storage and persistence through ConfigForms; each control writes its
field immediately with ConfigForm.set, and read-only or refused writes are
reported inline.
The installed bundle's configuration card has a Search provider group. It lists the providers the
Host reports through ctx.remote.web.listProviders() and switches the global
selection with ctx.configForms.get("web").set("searchProvider", id). The write is
accepted by the Host and applied live; no restart and no patch edit is needed.
The /thin-search-engine command only changes the preferred free engine and
writes configForms.get("thin-search").set("provider", id). The global provider
selection is independent of that engine choice.
Enhancement is off by default. While it is on, every cache miss sends one short
request to the current Agent model (or to the configured provider:model) to
rewrite the query. An explicit enhanceModel is exclusive: if that model fails,
the original query is used and no other model is called.
The system prompt comes from enhanceSystemPromptPath:
~/... or an absolute path: the file is read on each enhancement request, is
abortable with the search, and is capped at 64 KiB.Prompt text never enters cordis.patch.yml. Use a plugin data file such as
~/.dsh/thin-search/system-prompt.md.
| Tool | Timeout | Purpose |
|---|---|---|
free_search_test |
65 s | Probes engines individually; reports per-engine status. |
platform_search |
30 s | Searches one enabled platform. |
advanced_search |
60 s | Web search with timeRange and an optional preferred engine. |
All three forward exec.signal into the HTTP client, so cancellation aborts the
in-flight request. Every failure a tool throws is a WebError, so the tool result
keeps an error code: an invalid argument is WEB_INVALID_REQUEST, cancellation is
WEB_ABORTED, and an upstream failure is WEB_PROVIDER_ERROR with the original
error attached as cause. Per-engine failures are data, not errors:
free_search_test reports them in its result instead of throwing. Output renders as text
content blocks, not bare strings, and escapes untrusted title, snippet and URL
text before composing Markdown.
Without a time window the preferred engine runs first. With a time window, time-capable engines (SearXNG, DuckDuckGo, DuckDuckGo Lite) move ahead because Bing and AnySearch cannot apply a native filter. Any failure, empty result or invalid-URL result falls through to the next engine. The result note names the engine that actually answered, and when that engine cannot apply the window it says so explicitly: a time-filtered search never returns silently unfiltered results.
Time input accepts day / week / month / year, relative durations
such as 12h, 3d, 2mo or 1y, and absolute dates such as
2026-07-01. Absolute dates are read as a local calendar day, converted to days
from today, then mapped to the nearest fixed tier for the time-capable engines. A
date after the local today is rejected as invalid instead of being clamped to the
last day, and an unknown
engine value is an error rather than a silently ignored hint.
Network errors, request timeouts and 5xx responses retry once. HTTP 202, 403 and real anti-bot interstitials fail immediately and fall through to the next engine. JSON responses are never treated as challenge pages, even when the payload text contains words such as "captcha" or "access denied".
The cache is an in-memory LRU of 50 entries. Its key includes the query, result limit, time window, engine and the config fields that change results (market, region, SearXNG instances, enhancement settings). A config change therefore cannot serve a stale answer.
| Platform | Limit |
|---|---|
| GitHub | Public repository search; unauthenticated rate limits apply. |
| V2EX | Searches the current hot-topic list only; the public API has no full-text search. |
| Bilibili | May reject requests from data-center or proxy egress IPs. |
| May reject requests from data-center or proxy egress IPs. | |
| Hacker News | Public search API; no authentication. |
| Stack Overflow | Public Stack Exchange API; quota limited. |
| Wikipedia | MediaWiki search API. |
| npm | Registry search; package metadata only. |
Disabling a platform removes it from the tool; calling platform_search for a
disabled platform returns a clear configuration error.
Thin Search has no proxy field. It uses the DSH HTTP stack, so the global
proxy policy applies to every request: set HTTP_PROXY and/or
HTTPS_PROXY (plus NO_PROXY when needed) in the environment that starts
dsh web. This affects DSH as a whole, not only this plugin. There is no
separate proxy agent, no SOCKS proxy option and no per-plugin bypass.
http: or https:;
relative, javascript:, data:, mailto: and ftp: URLs are dropped.react and react/jsx-runtime; it makes
no network requests and writes only through ConfigForms.npm ci
npm run check
npm pack --dry-run
npm run check runs, in order:
typecheck:host and typecheck:client. The host typecheck is DOM-free;
the browser typecheck owns the DOM lib.test:host, test:client and test:integration.build:host and build:client (tsdown outputs lib/index.js and
lib/client.js), followed by smoke:client, which loads the built
browser bundle through window.__ModuleLoader__.load.CI rebuilds before running the tests and fails when a fresh build differs from
the committed lib tree.
Most integration files load lib/index.js or lib/client.js; the cache,
time-range and config helpers import the source modules directly. The suite uses
a stubbed network to cover provider registration, the nine-field config schema,
cache and time-range behavior, tool cancellation, URL validation, built-client
form mapping and the release package file list.
npm pack --dry-run must list lib/index.js, lib/client.js,
locale/en.json, locale/zh.json, icon.svg, cordis.patch.yml,
CHANGELOG.md, README.md, LICENSE and package.json, and no
tests, sources or temporary files.
MIT. See LICENSE.
dsh plugin --profile web add dsh-thin-search,重启 dsh web。补丁只设置
web.searchProvider 与 web.fetchProvider。configForms.get("web").set("searchProvider", id) 切换,立即生效,
不写 profile 补丁,无需重启。HTTP_PROXY / HTTPS_PROXY;插件没有
独立代理选项。enhanceSystemPromptPath 指定,不再写入
cordis.patch.yml。proxy / cache / enhanceSystemPrompt,分别改用全局代理、
cacheTtl 与 enhanceSystemPromptPath;旧设置桥与托管块已删除。npm run check(含集成测试与构建后 smoke)与 npm pack --dry-run;测试全部
使用桩网络,未做真实引擎联网验证,也未在运行中的 DSH 里安装本插件的 GUI 实测。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。