dsh-quick-find-en
Find anything in a DeepSeek Harness chat, including the parts the chat has not rendered yet. English version of dsh-quick-find, with meaning search added in the style of Needle.
Meaning search (default)
Click the search button in the conversation header (magnifier with a spark). Describe what you are looking for in your own words, then press Enter or Search. Nothing is sent while you type.
- The whole chat is searched: your messages and the assistant's replies.
- Results are ranked by relevance. Each one shows the sentence that matters.
- Selecting a result scrolls to that sentence and highlights it. If the message is older than what the chat has loaded, older messages are loaded first.
- Enter / ↓ goes to the next result, Shift+Enter / ↑ to the previous one. Esc closes the bar.
- When nothing matches strongly, the three closest passages are listed, dimmed.
TypeSafe Jev (typesafe-ai/jev-1.14.0) does the matching, through the Vercel AI Gateway evaluation API. It uses the Vercel AI Gateway key already saved in DSH (Settings > Models > Vercel AI Gateway, credential VERCEL_AI_GATEWAY_API_KEY). If that is not set, it falls back to AI_GATEWAY_API_KEY, then to those environment variables, then to the macOS Keychain item vercel ai-gateway setup writes. The key stays on the Host and never reaches the page. A search over a long chat costs a fraction of a cent.
Text search (Cmd+F / Ctrl+F)
Cmd+F (macOS) or Ctrl+F opens the same bar in text mode:
- On screen: literal matches are highlighted as you type. The counter shows
3/12; Enter and Shift+Enter move between them. - Whole history: the session log is searched too, and matches are listed newest first. Selecting one jumps to it the same way.
The Meaning / Text switch in the bar changes mode without losing the query.
Limits
- Meaning search covers the newest 160 passages (up to 60,000 characters) of a chat. Older messages are left out, and the status line says so.
- Meaning search sends that chat text to the Vercel AI Gateway and TypeSafe. Text search stays on this machine.
- Tool output and reasoning are not part of meaning search. Text search covers tool output, but not reasoning. Hidden context, such as workspace instructions, is never searched.
- Highlights use the CSS Custom Highlight API, so the page is never modified.
Install
dsh plugin --profile <profile> add github:eliaweiss/dsh-quick-find-en
Or add a local checkout from the DSH plugin manager. Disable the original dsh-quick-find first so both do not handle Cmd+F. Then refresh the page.
Develop
node --test tests/*.test.mjs # Host: Node 22.15+ (zstd)
PLAYWRIGHT=/path/to/playwright-core node tests/client.e2e.mjs # Client, headless Chromium
index.js registers the two routes. They answer only requests carrying the page's own DSH sign-in.
GET /quick-find/searchruns the text search over the session log.POST /quick-find/semanticruns the meaning search.
find-core.mjs reads the log. semantic.mjs builds passages and calls Jev. client.js provides the find bar and the header button.
Tested on DeepSeek Harness desktop with Node 24.
License
MIT
No comments yet. Be the first to write one.