Adds Ctrl+F-style find to the current DeepSeek Harness conversation, with highlighted matches in rendered content, source filters, results grouped by turn, and jump-to-match navigation.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:dust-iny/dsh-session-search
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
GitHub: dust-iny/dsh-session-search · 中文说明
Find text inside the current DeepSeek Harness conversation. Press Ctrl+F to open an expandable find bar, highlight every match, and jump precisely to the matched text. Every result corresponds to a real rendered text range, which is centered and highlighted when selected.
This plugin combines useful ideas from dsh-session-find and dsh-conversation-find:
| Inspired by | Capabilities |
|---|---|
| dsh-session-find | Conversation-level panel; source labels (you, assistant, reasoning, tool calls, tool output, system); grouping by turn; body/all search scopes; case-sensitive and regex toggles |
| dsh-conversation-find | Browser-like Ctrl+F overlay; search-as-you-type; current/total counter; previous/next navigation; Esc to close; all-match highlighting; centered jumps |
Precise navigation
- Searches rendered rows. The plugin reads
[data-chat-node-key]rows in the conversation scroller (rows are not necessarily descendants of[data-chat-flow]) and builds a reversible string from their text nodes. Each match maps back to a real DOMRange. - Identifies source and turn. Row attributes
data-chat-flow-kind,data-chat-group-part, anddata-chat-turndetermine the source (you, assistant, reasoning, tool call, tool output, or system) and turn number. - Jumps to the exact match. Each result stores its row and in-row occurrence. On selection, the plugin locates the same match again, centers it with
scrollIntoView({ block: 'center' }), and highlights it through CSS Custom Highlight (::highlight()), without modifying the DOM or input fields. - Expands collapsed content. If the matched row is hidden inside a collapsed step, the corresponding disclosure control is expanded before navigation.
What the counter counts
The current/total counter and result list include matches in currently rendered content. Source toggles determine which categories participate (all categories are enabled by default). A text range is not counted multiple times just because multiple nodes carry the same text.
Installation
Install the local directory (repeat the command to update an existing installation):
dsh plugin --profile desktop add file:/path/to/dsh-session-search
You can also install the directory from the Plugins page. Refresh the page (Ctrl+R) once after installation; a restart is not required.
Usage
| Action | Keyboard / control |
|---|---|
| Open or close the find bar | Ctrl+F (macOS: Cmd+F); Ctrl+Shift+F and Alt+F are also supported if the host menu captures Ctrl+F |
| Next / previous match | Enter / Shift+Enter, ↓ / ↑, F3 / Shift+F3, or Ctrl+G |
| Expand / collapse results | Click the list icon beside the search field (collapsed by default; highlighted when expanded) |
| Jump to result N | Click the 3/56 counter, enter the result number, then press Enter (Esc cancels) |
| Close | Esc |
A magnifying-glass button is also available in the conversation header and opens the same panel; use it if a native menu captures the shortcut.
Panel
- Top row: search field,
current/totalcounter, previous, next, expand/collapse, and close controls. - Options row: case-sensitive (
Aa) and regex (.*) toggles, followed by seven source filters: you, assistant, reasoning, tool calls, tool output, system, and other. A truncation notice appears at the right when applicable. - Results list: collapsed by default; groups results by turn, labels each result with its source and turn, highlights the matching text in yellow, and jumps to the selected result when clicked.
By default, only you, assistant, and other are enabled (the conversation itself). Disabled sources are excluded from both results and highlighting; disabling all sources yields zero matches. Source selections are remembered across refreshes and searches. The panel follows the host's light/dark theme using its theme tokens (--dsw-alias-bg-*, --dsw-alias-border-*, and --dsw-alias-label-*).
Preferences and privacy
The plugin stores only the following preferences in localStorage; it does not store conversation content:
dsh-session-search:query:<sessionId>— the most recent query for each conversation;dsh-session-search:roles— the combination of source filters;dsh-session-search:match-caseanddsh-session-search:regex— the two search toggles.
Known limitations
| Limitation | Reason / workaround |
|---|---|
| Only rendered content is searched | Text in collapsed steps and older messages not yet loaded is unavailable. Expand or scroll to load it, then search; navigation expands a collapsed matched row. |
| Extremely repeated text in one row may make the target ambiguous | If surrounding context cannot distinguish occurrences, navigation uses the in-row occurrence index. |
| At most 300 results are listed | The result panel is a scrolling list and reports when results are truncated. |
May conflict with other plugins claiming Ctrl+F |
Only one find panel should handle the shortcut at a time. |
Package structure
package.json # dsh.bundle.patch, dsh.client configuration, and exports
cordis.patch.yml # One inert Host entry
index.js # Minimal Host-side implementation for mounting the bundle entry
client.js # Find bar, DOM search, highlighting, and precise navigation
locale/{zh,en}.json # Plugin title and description for the Plugins page
icon.svg # Plugin icon
smoke.test.mjs # Development smoke test; not part of plugin runtime
Mount point: conversation.session.header.utilities (session scope), which provides useChat and sessionId.
License
MIT
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.