rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hy-sde/dsh-tool-library-search
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
[!NOTE] 📦 This plugin lives in the dsh-plugins monorepo — file issues & pull requests there. npm:
@hy-sde-org/dsh-tool-library-search
One standalone package, installable as one plugin row, for the DeepSeek Harness CLI:
| package | role | installed by users? |
|---|---|---|
@hy-sde-org/dsh-tool-library-search |
the plugin: model-facing library_search tool + library:search prompt section (hy-sde-libsearch-tool-library-search row) |
yes |
library_search answers "has someone already built this?" before the
model writes a new library or reimplements a wheel: one call fans the query
out to the free, no-credential registry sources concurrently — deps.dev
(cross-ecosystem existence), npm + crates.io (descriptions/downloads),
pkg.go.dev (Go module descriptions), GitHub repo search (the semantic
"someone already built this" signal) — merges the hits, and ranks
exact-name matches first (popularity only breaks ties). Optional
semantic rerank (semantic: true, bundled default) embeds the query and each
candidate's README and re-sorts by cosine similarity, catching libraries
whose name does not contain the query ("saphyr" IS the Rust YAML parser).
No API key, no fetch provider, no service realm: it mounts as one plain
agent-plane row like the harness's own tool rows and consumes the stock
tools + systemPrompt host services.
library_search [query] [ecosystems] [language] [maxResults] — one
natural-language need or exact package name (default ecosystems: all of
npm | cargo | maven | go | pypi | rubygems | nuget | github).ok | failed | skipped per source), a complete flag,
and typed candidates for UI cards (presentationMeta). When any source
failed and nothing matched, the answer says the search was INCOMPLETE —
never a bare "nothing exists".library:search prompt section — registered by the same plugin, no
separate prompt row — teaches the model when to reach for it. The section
only renders when the tool is visible in the active tool set, and can be
suppressed with prompt: false.readme fields or
raw.githubusercontent.com/…/README.md).engines floor) with npm and pnpm on PATH;dsh CLI — the peer baseline
is @deepseek-ai/cordis ~4.1.0 and
@deepseek-ai/dsh-tools/@deepseek-ai/dsh-system-prompt ^0.2.2-rc.3;@huggingface/transformers (>=3.7.1 <5) downloads ~25 MB of model weights
once; without it the tool answers with lexical ranking and notes the rerank was
unavailable.pnpm install --global @deepseek-ai/dsh
dsh plugin --profile web add @hy-sde-org/dsh-tool-library-search
pnpm install # workspace setup
pnpm -r --filter './packages/*' build
pnpm -r --filter './packages/*' pack # defaults to prebuilt dist/ (prepack rebuilds)
dsh plugin --profile web add "$PWD/packages/tool-library-search/hy-sde-org-….tgz"
dsh web --dump-config # look for the hy-sde-libsearch-tool-library-search row
dsh plugin --profile web remove @hy-sde-org/dsh-tool-library-search
The package declares a DSH bundle (dsh.bundle.patch → cordis.patch.yml),
so dsh plugin inserts one row (id hy-sde-libsearch-tool-library-search —
the hy-sde- row prefix avoids clashing with any shipped row of the same
name). Override per deployment by patching the row by id, e.g.:
- id: hy-sde-libsearch-tool-library-search
config:
githubToken: ghp_xxx # raises GitHub search quota 10/min -> 30/min; sent ONLY to api.github.com
timeoutMs: 12000
maxResults: 20
perSourceLimit: 8 # >100 walks page= links (≤5 pages) with a token
semantic: false # disable the README-similarity rerank layer
prompt: false # suppress the library:search prompt section
semantic: true embeds the query + READMEs locally (all-MiniLM-L6-v2 via the
OPTIONAL peer @huggingface/transformers, ~25 MB one-time download, no key);
without that peer the tool still answers with lexical ranking and notes that
the rerank was unavailable, so enabling it by default is safe.
| Source | Notes |
|---|---|
deps.dev /_/search |
name-existence across npm/cargo/maven/go/pypi/rubygems/nuget + GitHub projects; Maven/PyPI live here (no usable free search elsewhere). Undocumented endpoint — best-effort. |
npm registry.npmjs.org/-/v1/search |
best free description search + monthly downloads |
crates.io /api/v1/crates |
Cargo descriptions + downloads; requires a library-shaped User-Agent (bare clients get 403) |
GitHub /search/repositories |
semantic-ish leader; 10 searches/min unauthenticated, 30/min with a token; code search is out of scope |
pkg.go.dev /search |
Go modules with synopsis + "Imported by"; HTML-only, regex-parsed SearchSnippet cards — shape change yields 0 hits (never fails the call; deps.dev still covers Go names) |
Excluded after live probing: libraries.io (401), OpenLib (403), PyPI search
(behind a client challenge), Maven solrsearch (q=yaml misses snakeyaml),
api.deps.dev/v3alpha (404). Full ranking/rerank details in the package
README.
pnpm install
pnpm -r --filter './packages/*' check # tsc --noEmit
pnpm -r --filter './packages/*' test # vitest run (fixture-based HTTP seams)
pnpm -r --filter './packages/*' build # tsc -p tsconfig.build.json
pnpm run release:check # non-publishing release gate
Renderer code never hits the live web in pnpm test — source calls accept an
injected fetch seam and parser tests use fixture pages.
MIT — see LICENSE and packages/tool-library-search/LICENSE.
See also: packages/tool-library-search/README.md (full package docs), packages/tool-library-search/README.zh.md (中文说明), the repo SECURITY.md, CONTRIBUTING.md, and THIRD-PARTY-NOTICES.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。