Introduction¶
After opening a session in DSH (DeepSeek Harness), if you need to find content from a long-ago conversation, you end up switching between workspaces and sessions one by one, which is highly inefficient. The dsh-search-everything plugin aggregates all workspaces, sessions, and messages into a single global search. Press Ctrl+K to open the search palette, type a keyword, and it will jump directly to the matching message with a highlight. It uses linear scanning rather than building an inverted index. In benchmarks with 30 MB / 18k messages, multi-word AND queries took 10–90 ms, and index restoration after restart was approximately 0.3 seconds.
Plugin Overview¶
- Plugin name: dsh-search-everything
- Maintainer: IvesCheung
- Category: Memory
- Core value: Provides an Everything-like global search in DSH. Press Ctrl+K to search user messages and assistant replies across all sessions, then jump and locate the target.
Core Features¶
1. Global Search & Jump¶
- Search scope: all workspaces, all sessions, session titles, user messages, and assistant replies.
- Usage:
- Press Ctrl+K (⌘ K on macOS) to open the search palette.
- Type a keyword and press Enter to open the selected result.
- Jump behavior:
- Automatically switches to the corresponding workspace and session.
- Scrolls the target message to the center of the view and flashes a highlight.
2. Four Result Tabs¶
The palette provides four tabs:
- All: all messages
- Sessions: session list
- My messages: user messages only
- Assistant replies: assistant replies only
3. Workspace-Scoped Search¶
- A workspace dropdown control is located on the right side of the tab bar. Press Ctrl+W or click the control to open it.
- Once a workspace is selected, the search scope is limited to that workspace.
- Benchmarked on a 31 MB corpus, scoping to a workspace reduced search time from 32 ms to 4 ms.
4. Index & Persistence¶
- The index resides in the host process and is persisted to disk.
- Index restoration from disk after restart takes approximately 340 ms, avoiding re-parsing of logs on every startup.
- Refresh strategy: on-demand refresh. The
/refreshendpoint is called when the palette is opened; no disk I/O occurs until the next opening.
5. Query Syntax¶
- Space-separated words are treated as AND (e.g.,
jellyfin portmeans the result must contain both words). - Double quotes wrap exact phrases (e.g.,
"write failed"). - Case-insensitive; Chinese matching is substring-based (no tokenization).
Installation & Activation¶
One installation method (from a local checkout):
# Install from a local checkout directory
dsh plugin --profile web add link:/absolute/path/to/dsh-search-everything
After installation, restart dsh web:
- A “Search Ctrl K” entry will appear below “New session” in the sidebar.
- Press Ctrl+K anywhere to open the palette, and Esc to close it.
Configuration¶
The following options can be set in the config block of cordis.patch.yml:
- insert:
- id: dsh-search-everything
name: dsh-search-everything
config:
refreshIntervalMs: 0 # Background polling interval; 0 disables it (default is on-demand refresh)
lazyRefreshMs: 0 # If > 0, re-scans before query/session-list when last scan exceeds this value
maxResults: 50 # Maximum results per query
sessionsRoot: '' # Sessions root directory; defaults to $DSH_HOME/sessions or ~/.dsh/sessions
cacheDir: '' # Index disk directory; defaults to $DSH_HOME/storages/dsh-search-everything
# Set to "-" to disable persistence and rebuild on every startup
Shortcuts & Operations¶
| Action | Shortcut |
|---|---|
| Open/close palette | Ctrl K / ⌘ K |
| Move selection | ↑ ↓ (or Ctrl P / Ctrl N) |
| Open selected result | Enter |
| Switch tab | Tab / Shift Tab, or → ← when input is empty |
| Open/close workspace dropdown | Ctrl W, or click the scope control |
| Select workspace in dropdown | ↑ ↓ then Enter, or click |
| Close palette | Esc |
Use Cases & Notes¶
- Ideal for developers and users who frequently need to locate historical conversations across multiple workspaces and sessions.
- The plugin runs with the current DSH process permissions, reads the
~/.dsh/sessionsdirectory, and performs no uploads, no network requests, and no telemetry. - It is recommended to review the source code and license (MIT) before installation.
Summary¶
dsh-search-everything provides global search and jump capabilities in DSH. Through four result tabs, workspace scoping, and on-demand refresh mechanisms, it makes it possible to quickly locate messages across a large number of sessions. Installation and configuration are straightforward, and it is ready to use immediately after a restart.
- Plugin directory page: https://www.skillhub.cn/plugins/IvesCheung/dsh-search-everything
- GitHub repository: https://github.com/IvesCheung/dsh-search-everything