dsh-plugin-transcript-search: Full-Text Search Plugin for Archived Sessions

Preface

In the agent system built by DeepSeek Harness (DSH), archived session transcripts serve as crucial long-term memory. As data volumes grow, quickly locating specific information within historical conversations becomes a pain point. The dsh-plugin-transcript-search plugin provides full-text search capabilities for these archived data by reading the JSONL sidecar files generated by dsh-plugin-transcript.

Introduction

This is a DSH plugin focused on full-text search for archived session transcripts. It directly reads the JSONL sidecar data output by the dsh-plugin-transcript plugin and does not rely on imports from other plugins. This plugin is maintained by 121212165 and is released under the MIT License.

Core Features

  • Multi-keyword AND Search: Supports inputting multiple keywords; the system identifies conversation records containing all specified terms.
  • Grouping and Sorting by Session: Search results are grouped by session and can be sorted by hit count.
  • Hit Location Excerpts: Provides context-truncated excerpts of hit content for quick previewing.
  • session_search Model Tool: Provides Agents with a tool to automatically query historical conversations.
  • Fault Tolerance: Handles exceptions such as empty queries, no hits, missing directories, or corrupted file lines without crashing.

Installation and Configuration

The installation process consists of three steps.

  1. Install the Plugin Package
    Run the following command to install the plugin to the specified profile:
    dsh plugin --profile web add github:121212165/dsh-plugin-transcript-search
  1. Merge Configuration Files
    Merge the content of cordis.patch.yml from the root directory of the plugin repository into $DSH_HOME/profiles/web/cordis.patch.yml.
    Note: Do not simply append. Since this file defaults to an empty array, you must place the insert entries into the same array. Otherwise, it will cause a YAML parsing error: failed to parse overlay ... end of the stream or a document separator is expected.

  2. Restart the Service
    Restart dsh. Both the configuration layer and the client require a restart for the settings to take effect (the client distributes content calculated at startup; hard refreshing the browser will not work).

Usage

  • Command Line Search: Enter /find keyword1 keyword2 in the conversation to perform a search.
  • Tool Invocation: Use the session_search model tool to query historical conversations.

Notes

  • It is recommended to install this alongside dsh-plugin-transcript to ensure data availability.
  • dsh must be restarted after installation.
  • Configuration changes require a restart to take effect.
  • The cordis.patch.yml configuration must be merged correctly.
  • Live mount verification within a running dsh instance has not been performed.

Summary

This plugin provides fundamental capabilities for historical conversation retrieval within the DSH environment. Developers can quickly locate information within archived data via simple commands or tool invocations. For more details, please refer to its GitHub repository.

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

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

Xiaoye