rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:veermetri05/dsh-plugins
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Collection of DeepSeek Harness (DSH) plugins — starting with a faithful port of oh-my-pi's web search stack.
Origin: https://github.com/can1357/oh-my-pi (
packages/coding-agent/src/web/search/**)This repository replicates oh-my-pi's search implementation so DSH gets a search provider that works out of the box (credential-free scrapers) and is not limited to DeepSeek (alternative API providers + fallback chain).
DSH's built-in @deepseek-ai/dsh-web-search-deepseek requires a DEEPSEEK_API_KEY and a single Anthropic-compatible endpoint. oh-my-pi's search:
perplexity, gemini, anthropic, codex, xai, zai, exa, tinyfish, jina, kagi, tavily, firecrawl, brave, kimi, parallel, synthetic, searxng, startpage, duckduckgo, ecosia, google, mojeek, public)site:, before:/after:, inurl:, intitle:, filetype:, quoted phrases, OR groups, -exclusions)applyQueryConstraints) that relaxes constraints rather than returning zero resultsduckduckgo, startpage, searxng etc. work without any API key (perfect for web_search tool usability)This repo ports that logic into a DSH ctx.web provider.
dsh-plugins/
├── README.md
├── .gitignore
└── plugins/
└── web-search-omp/ # DSH plugin: web-search-oh-my-pi
├── package.json
├── tsconfig.json
├── README.md
└── src/
├── index.ts # DSH plugin entry (name/inject/apply/Config)
├── types.ts # SearchProviderId, SearchResponse, etc.
├── query.ts # StructuredQuery parsing & formatting
├── utils.ts # clampNumResults, dateToAgeSeconds, etc.
├── provider.ts # Lazy registry + fallback orchestration
├── orchestrator.ts # Composite WebSearchProvider with chain fallback
└── providers/
├── base.ts
├── utils.ts
├── brave.ts
├── tavily.ts
├── exa.ts
├── perplexity.ts
├── duckduckgo.ts
├── searxng.ts
├── jina.ts
├── kagi.ts
├── firecrawl.ts
├── startpage.ts
├── google.ts
├── ecosia.ts
├── mojeek.ts
├── public.ts
├── anthropic.ts
├── gemini.ts
├── xai.ts
└── ...
# Install the plugin into a DSH profile (from the dsh-plugins root)
cd plugins/web-search-omp
pnpm install
pnpm run build
# Link into a running DSH profile
dsh plugin --profile web add ./plugins/web-search-omp
See plugins/web-search-omp/README.md for full configuration (provider order, excluded providers, timeouts, API keys).
| oh-my-pi concept | DSH equivalent |
|---|---|
AuthStorage + listAuthCredentials() |
ctx.get("credentials") + launchEnvironmentOf(ctx) env fallbacks |
ModelRegistry |
optional, only for LLM-mediated providers |
settings.get("providers.*") |
installSettingsSection + settingsNamespace("web-search-omp") |
SearchProvider.search(params) |
WebSearchProvider.search(request, signal) on ctx.web |
resolveProviderCandidates() + fallback loop |
OrchestratedSearchProvider that walks the candidate list internally |
formatForLLM + hasRenderableSearchContent |
normalized WebSearchResult (sources[] + optional content) with truncation enforced by ctx.web |
The port is behavior-preserving:
src/query.ts is a direct port of packages/coding-agent/src/web/search/query.ts (tokenizer, directive parsing, formatQuery, formatScraperQuery, applyQueryConstraints with relaxation)src/providers/* mirror their upstream counterparts (same endpoint, same BRAVE_SEARCH_URL, TAVILY_SEARCH_URL, EXA, PERPLEXITY, etc., same clampNumResults defaults, same recency maps)SEARCH_PROVIDER_ORDER derived from SEARCH_PROVIDER_OPTIONS, with public explicit-only (never in auto-chain)credit exhausted, 401/403) and hard timeout (AbortSignal.timeout + AbortSignal.any) match upstreamMIT — same as oh-my-pi and deepseek-harness. See each plugin's LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。