DeepSeek Harness Plugin: Conversation Transcript Archiver

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture designed to modularize functionality. By default, session data exists only in memory, making it difficult to persist long-term or reuse as an asset. As a member of the plugin family, dsh-plugin-transcript assumes the role of the underlying data layer. It captures every interaction within the session, persists it as JSONL files, and provides Markdown rendering capabilities, offering a foundation for other plugins (such as search, note synchronization, etc.) that rely on session data.

Core Features

This plugin primarily handles the capture, storage, and display of session data.

  • Real-time Capture and Archiving: Listens for user/message, assistant/message, and tool/call events, and appends these records in real-time to monthly JSONL sidecar files (default path: ~/.dsh/transcripts/transcript-YYYY-MM.l).
  • Markdown Rendering: Supports rendering the current session into Markdown format via the command-line interface.
  • Automatic Persistence: When a session is disposed (session/disposed), the plugin automatically flushes the Markdown content to the dataDir/markdown/ directory.
  • Fault Tolerance: If the DSH process crashes during a session, the Markdown may not be automatically flushed, but the JSONL data remains intact and can be redrawn via command upon the next startup.

Installation and Enablement

The installation process involves the following three steps:

  1. Install the plugin package:
    dsh plugin --profile web add github:121212165/dsh-plugin-transcript
This command installs the plugin into the specified profile.
  1. Merge configuration file:
    Merge the content of cordis.patch.yml from the root directory of the plugin repository into the DSH configuration file $DSH_HOME/profiles/web/cordis.patch.yml.

    • Note: This file is an empty array by default. Please merge the inserted entries into the same array; do not simply append them, otherwise, it will cause YAML parsing errors.
  2. Restart the client:
    The DSH client must be restarted for configuration changes to take effect.

Command Usage

Once installed, you can perform operations using the following commands:

  • View Statistics:
    Enter /transcript to view the record statistics (count, character count) of the current session and the specific location of the JSONL file.

  • Export Markdown:
    Enter /transcript-export to render the current session content into Markdown format.

Markdown Output Structure

The exported Markdown file typically includes the session title, segmented content from the user and assistant, and records of tool calls. The structure example is as follows:

# Session Title
> N records · Exported at render time

## 👤 User
…

- 🔧 `bash` — {"command":"ls"}

## 🤖 Assistant · deepseek-v4-pro
…

Notes

  • Crash Recovery: If DSH crashes mid-session, the Markdown will not be automatically flushed, but the JSONL data remains intact and can be re-rendered using /transcript-export.
  • Tool Result Limitations: To prevent the archive file from bloating, the plugin only records tool calls (invocation name and parameter preview) and does not record the return results of the tools.
  • Configuration Activation: After modifying configuration items such as dataDir or captureTools, you must restart the DSH client.
  • Uncertainties: The specific content block shape of user/message is inferred based on the general DSH structure and has not been tested on running instances; the specific serialization shape of the stream data for assistant/message has also not been tested on running instances.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye