hy-sde/dsh-tool-library-search--packages-tool-library-search ↗★ 0

@hy-sde-org/dsh-tool-library-search

Model-facing library_search tool: free cross-ecosystem (npm/crates.io/Maven/Go/PyPI/RubyGems + GitHub) 'has this already been built?' search — exact-name ranked, stars/downloads as fitness signals, no API key required 提供多语言包管理器及GitHub搜索。适合需要寻找现有轮子、避免重复造车的任务。

パッケージ
@hy-sde-org/dsh-tool-library-search
互換性
未検証
Harness ピア範囲
^0.2.0-rc.2
Cordis ピア範囲
~4.0.4
バージョン
0.2.0-rc.2
ライセンス
MIT
最終更新
2026/10/03

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hy-sde/dsh-tool-library-search#49184db16b5b81856420a19d61c78bb59ec4f6bd&path:packages/tool-library-search

ドキュメント

README 全文を読む ↗

Configuration

import toolLibrarySearch from '@hy-sde-org/dsh-tool-library-search'

ctx.plugin(toolLibrarySearch, {
  timeoutMs: 12000,     // per-source transport timeout (default 10000)
  maxResults: 20,       // default result cap after merge+rank (default 15)
  perSourceLimit: 8,    // per-source hit cap before merge; >100 pages GitHub when a token is set
  githubToken: 'ghp_…', // optional: raises GitHub repo-search quota 10/min → 30/min AND enables paging
  semantic: true,       // enable README-similarity rerank (default false)
  embedderModel: 'Xenova/all-MiniLM-L6-v2', // optional local model id
  semanticPoolSize: 50, // candidates entering the rerank before maxResults cut
})

Install the optional peer to activate semantic rerank: npm i @huggingface/transformers (or pnpm add @huggingface/transformers). The first call downloads ~25 MB of model weights; subsequent calls reuse the in-memory pipeline. Without the peer the tool still fully works lexically.

Install as a preset/patch row via the bundled cordis.patch.yml (row id hy-sde-libsearch-tool-library-search), which also registers the library:search prompt section.