dsh-session-search: Search all session content by content and time

Preface

In DeepSeek Harness (DSH), a session search link has already been integrated into the sidebar. However, with out-of-the-box configurations, it often only matches titles and workspace names. It is difficult to stably retrieve user prompts, model replies, and tool outputs within the body text using the same set of capabilities. In Chinese scenarios, if the underlying FTS5 unicode61 tokenizer is used, entire paragraphs of Chinese characters are often treated as a single token, causing short keywords to potentially fail to match completely. Even if content retrieval is enabled, hit items returned by the public API are often sorted by relevance; the timestamp on individual records is not preserved at that layer, making it impossible to “sort results by the time of a specific content item from newest to oldest” on the official remote.

dsh-session-search (Maintainer: Victue, Community Category: Memory) builds its own index on the host machine: it incrementally parses transcripts of each session, binding the text of each record to its time, uses substring matching (applicable to both Chinese and English), and sorts results by the time of the hit record. There is no need to modify cordis.patch.yml in the profile to enable the content backend that is disabled by default.

What is this

In one sentence: A bundle plugin for DSH that globally searches all session body text (not limited to titles), with results sorted from newest to oldest based on the time of the hit record.

Core Features

The plugin occupies a first-level entry in the sidebar at the same level as “Plugins” and “Schedules”: a magnifying glass icon + a full-width result page in the main area (between the two, order 5). It can be opened from any interface using Ctrl/Cmd+Shift+F (registered in desktop profiles; on Web profiles, it may conflict with the factory default shortcut for session.fork, see notes below).

Search behavior (as described in the README):

  • Matching method: Substring, case-insensitive; short Chinese words can hit within longer sentence segments (different from the behavior of factory FTS5 on CJK).
  • Filters: Chips for All / My prompts / Replies / Tool output; optional Include subagent sessions (default off).
  • Top session scope picker: When there is a query, it only lists sessions that actually hit and the count (e.g., title (12)); when there is no query, it lists recent sessions.
  • Click on a hit: Opens in context—the hit record plus four records before and after it, highlighted and not truncated; you can navigate to the previous/next item or use Open session to enter the session.

Find within Current Session

While reading a session, you can use Ctrl/Cmd+F, or click the magnifying glass in the toolbar to the right of the session header (conversation.session.header.utilities). A floating find bar will pop up (sharing the shell.overlay layer with the result dialog). Refer to the repository README for specific interaction details.

Differences from Factory Search (Design Motivation)

The README summarizes three coexisting facts in a table: the content backend in the profile defaults to openAt: never; CJK tokenization under FTS5 unicode61 is too coarse; and after enabling, the wire shape loses the time for each hit and sorting is primarily by relevance. Therefore, this plugin chooses to build its own index on the host side and does not require you to modify the profile to enable session-query-sqlite content retrieval.

Installation and Activation

Standard DSH bundle (manifest contains dsh.bundle.patch and dsh.client). Install using the plugin manager (replace the path with the absolute path to the repository on your local machine):

plugin_manager action=install_bundle target="<absolute path to this repo>"

This will write to the profile’s dependencies, dsh.profile.bundles, and link to node_modules. You do not need to manually modify the profile’s package.json or cordis.patch.yml.

Disable or Remove:

plugin_manager action=set_bundle    target=dsh-session-search enabled=false
plugin_manager action=remove_bundle target=dsh-session-search

If mounting manually, add a line to the profile’s own cordis.patch.yml (name can be the package name, relative path, or absolute path):

- insert:
    - id: session-search
      name: 'dsh-session-search'

If loading failed during development, Node ESM caching may cause changes on disk to not take effect, requiring a Host restart; the README has explanations regarding lib/entry.js and HMR.

Typical Usage

Globally search for something said in a conversation

  1. Click the search icon between Plugins and Schedules in the sidebar, or press Ctrl/Cmd+Shift+F.
  2. Enter keywords (substring matching works for both Chinese and English).
  3. Use chips to narrow down to “My prompts”, “Replies”, or “Tool output”; check the box to include subagent sessions if needed.
  4. Select a session at the top to narrow the scope, or directly click a hit in the list to view by context and jump.

Find only within the current session

  1. Open the target session.
  2. Ctrl/Cmd+F or click the magnifying glass to the right of the session header.
  3. Enter the query in the floating bar (refer to GitHub README.zh.md for subsequent steps).

Use Cases and Notes

Who is it for

  • Those with many sessions who can’t remember them by title and need to trace back by config names, error reports, or API names in the body text.
  • Those who need to view recent relevant discussions sorted by “the time of that message” rather than pure relevance.
  • Those who frequently search with Chinese keywords and do not want to rely on the factory FTS5 tokenization limitations for CJK.

Please be aware before use

  • The plugin reads session transcripts and builds indexes under the current DSH process permissions; please read the source code and MIT license before installation to ensure compliance with your security and compliance requirements.
  • The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, and this package is a community-maintained independent bundle.
  • Desktop and Web Shortcuts: The global Ctrl/Cmd+Shift+F is only registered by default in desktop profiles; on the Web, KeyF + primary+shift is already occupied by the factory, and subsequently registered plugins may trigger Conflicting shortcut defaults. Refer to the README Compatibility for details.
  • Directory metadata such as star counts will change; at the time of writing, GitHub showed approximately 1 star, but please refer to the real-time page.

Conclusion

If your pain point is “can search titles but not body text” or “want to retrieve a specific sentence by the message timeline”, you can install dsh-session-search locally using plugin_manager and start using it via global search in the sidebar or find within sessions. See the GitHub Repository for documentation and updates, and the SkillHub Plugin Page for the entry index.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye