helibeiqi/dsh-context-aware-search ↗★ 0
@helibeiqi/dsh-context-aware-search
Context-aware web search for DeepSeek Harness (dsh): rewrites queries with session context, reranks and credibility-tags results, and offers one-click source summarization across multiple backends. 需要结合会话上下文搜索并一键总结来源的用户,安装需锁定版本以匹配内核。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:helibeiqi/dsh-context-aware-searchConfiguration
All settings are optional — the schema supplies the defaults below, and they can
be changed live from the Settings Card (ctx → settings).
| Key | Type | Default | Meaning |
|---|---|---|---|
rerank | boolean | true | Rerank results by TF-IDF similarity to query + context. |
credibility | boolean | true | Tag each result with a high/medium/low credibility badge. |
rewriteEnabled | boolean | true | Rewrite the raw query using session context. |
contextWindow | number | 8 | How many recent session messages to read for context. |
backendOrder | string[] | ['duckduckgo','bing','searxng'] | Backend priority for fallback. |
duckduckgoEnabled / bingEnabled / searxngEnabled | boolean | true | Per-backend on/off. |
searxngInstance | string | '' | Base URL of a SearXNG instance (empty = disabled). |
bingApiKey | string | '' | Optional Bing key (empty = keyless scrape fallback). |
maxResults | number | 10 | Max results returned per search. |
summarizeTopN | number | 5 | Links the web_summarize tool pulls when given a query. |
userAgent | string | dsh-context-aware-search/0.1.1 | UA sent on fetch. |
Usage
Just search as usual — the plugin does the rest.
Session:
User: I'm writing a Rust CLI; my main() returns Result>.
User: search error handling
What the plugin does:
- Reads the last
contextWindowmessages → detects Rust, cargo, Result. - Rewrites
error handling→Rust error handling Result Option unwrap ? best practices. - Runs the rewritten query across the backends (DuckDuckGo → Bing → SearXNG).
- Reranks by context similarity and tags credibility.
- Returns a banner + sources, e.g.:
🔎 Context-aware rewrite: Rust error handling Result Option unwrap ? best practices
| # | credibility | title | url |
|---|----|----|----|
| 1 | 🟢 high | Error Handling in Rust - The Rust Book | https://doc.rust-lang.org/book/ch09-00-error-handling.html |
| 2 | 🟢 high | Recoverable vs Unrecoverable Errors | https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html |
| 3 | 🟡 medium | thiserror / anyhow patterns | https://crates.io/crates/thiserror |
One-click brief — ask the model to summarize:
User: web_summarize query="Rust error handling best practices" topN=3
Returns a Markdown brief with key points, key data, and source links.
You can also summarize a specific page:
User: web_summarize url="https://doc.rust-lang.org/book/ch09-00-error-handling.html"