dsh-history-search: DeepSeek Harness Chat History Search

Introduction

When developing with or using DeepSeek Harness, if your conversation history is long and you want to quickly locate specific passages, the built-in session search often disappoints. It relies on the unicode61 tokenizer from SQLite FTS5, which treats an entire block of Chinese text as a single token—so searching for “plugin” won’t find “context search plugin.” The dsh-history-search plugin does not depend on a tokenized index; instead, it performs literal substring matching on the raw text, making Chinese phrases, code names, and file paths all directly searchable. It offers two modes: current-session search and cross-session search. By default, it is operated via keyboard shortcuts and click interactions, so you never need to leave the chat area.

What Is This

dsh-history-search is a history search plugin for DeepSeek Harness. Maintained by mafuyuyu, it is categorized under “Memory.” It does not modify session content; it only reads local session logs to perform literal matching. It supports searching within the current session as well as across all sessions. After installation, enable the corresponding bundle on the plugin management page to get started.

Core Features

  • Current-session search: Press Ctrl+F (or Cmd+F on Mac) in the current chat window, or hover the mouse over the magnifying glass to the right of the session title for about 0.2 seconds. A search box appears in the upper-right corner. After entering a keyword, matches in the conversation body are highlighted with a yellow background, listing up to 60 snippets.
  • In-session highlighting: Uses the CSS Custom Highlight API without modifying the session DOM. Highlights are automatically applied as history loads. Requires Chromium 105+; on older browsers, highlighting is simply omitted while search and the results list remain functional.
  • Double-click to jump: Double-click any result. If the message has not been loaded, it loads first, then the view smoothly scrolls to that message. Collapsed turns scroll to the top of that turn. In trajectory view, the chat area does not scroll.
  • Cross-session search: Press Ctrl+Shift+F (or Cmd+Shift+F on Mac), or click the “Search” button on the left side of the search box to open the cross-session search panel. Results are grouped by session, showing the title, working directory, timestamp, match count, and up to 3 highlighted snippets. Clicking a result switches to that session.
  • Result persistence: Clicking outside the search box, pressing Esc, or clicking × only hides the panel; keyword highlights and the results list are preserved. Reopening the panel displays the previous results directly without re-searching.
  • Pure local, read-only: Only reads session logs. It does not write to sessions, does not connect to the network, and does not generate model requests or tool definitions. On the Host side, a single authenticated GET /api/history.search route is registered, reading session logs via ctx.sessionQuery (live-preferred, read-only).

Installation & Activation

Install from GitHub (recommended):

  1. In DeepSeek Harness, navigate to the “Plugins” page.
  2. Click “Add Plugin” and paste the repository URL:
https://github.com/mafuyuyu/dsh-history-search
  1. On the same page, locate and enable the bundle named dsh-history-search (enabled by default upon installation).

Install from a local directory:

  1. Download the repository to your local machine.
  2. In “Add Plugin,” enter the absolute path to that directory, for example:
D:\plugins\dsh-history-search

Local installation creates a directory link: after modifying the source code, simply refresh the page (Host-side changes require a DSH restart to take effect).

Typical Usage

Current-session search:

  1. Press Ctrl+F (or Cmd+F), or hover the mouse over the magnifying glass to the right of the session title for about 0.2 seconds.
  2. A search box appears in the upper-right corner. Enter a keyword to start searching; up to 60 snippets are listed.
  3. The keyword is highlighted in the conversation body.
  4. Double-click any result to scroll the conversation to the corresponding message.
  5. Click anywhere outside the search box, press Esc, or click × to hide; results and highlights are preserved.

Cross-session search:

  1. Press Ctrl+Shift+F (or Cmd+Shift+F), or click “Search” on the left side of the search box.
  2. Enter a keyword. Results are grouped by session, showing the title, working directory, timestamp, match count, and up to 3 highlighted snippets.
  3. Click a result to switch to that session.

Use Cases & Notes

Ideal for scenarios where you need to quickly find specific content, code snippets, file paths, or Chinese phrases within conversation history. The plugin runs with the current DSH process permissions; it is recommended to review the source code and license before installing. Requires DeepSeek Harness >=0.2.2-rc.3 (Web and Desktop editions). Depends on the Harness-bundled session query service (dsh-session-query-sqlite) and the Web client slot. No additional runtime dependencies are needed.

Conclusion

dsh-history-search provides the ability to quickly locate text within the current session and across all sessions, using literal matching and local read-only access to reduce the time spent scrolling through long conversations. Related documentation and source code can be found on the directory page or GitHub:
- Directory page: https://www.skillhub.cn/plugins/mafuyuyu/dsh-history-search
- GitHub: https://github.com/mafuyuyu/dsh-history-search

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

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

Xiaoye