In the development and debugging of DeepSeek Harness (DSH), session data is often scattered across logs or interfaces, lacking a convenient export and sharing mechanism. Existing generic export solutions often struggle to meet requirements for precise control over the sharing scope (such as sharing only the last N items) or specific formats (such as HTML that includes tool calls). Below is an introduction to a community plugin that provides action entry points in the Session Header and sidebar menu, allowing you to capture a specific range of conversations directly from a DSH session and export them as Markdown, HTML, TXT, or PNG.
What Is This¶
This is a community plugin for DeepSeek Harness, maintained by chrisx9z. It implements local sharing and export of session messages by registering the Web /share slash command and Session Header actions. The plugin does not rely on server-side uploads; all processing is completed locally.
Core Features¶
- Commands and Menus: Registers the Web
/shareslash command; adds a Share action to the Session Header; if the harnessui-workspacesupportssessionRowMenucontribution registration, it can add Share/Save TXT options to the sidebar menu. - Format Support: Supports exporting in Markdown, HTML, TXT, and PNG formats.
- Formatting Options:
- Sensitive Information Redaction: Enabled by default, it can recognize and hide credential patterns and local absolute paths.
- Include Tool Calls: Disabled by default; can be enabled on demand to include tool call lines.
- Include Sub-agent Conversations: Disabled by default; can be enabled on demand to include sub-session conversations.
- Preview and Interaction: Provides GitHub Flavored Markdown (GFM) preview, with support for copying to the clipboard or downloading the file.
- Automatic Saving: Optionally configure a directory to automatically save TXT files after each conversation turn is completed.
Installation and Enablement¶
- Run the official installation command:
dsh plugin --profile demo add dsh-session-chat-share
- After installation, it can be used in any Session.
Typical Usage¶
- Open the sharing dialog: Enter
/sharein the Web interface. - Export as TXT: Enter
/share txt. - Export the last N messages: Enter
/share last 10. - Export the last 10 messages as TXT: Enter
/share txt last 10. - In the dialog, you can use the From/To selectors or click message rows to select the export range, or switch to multi-select mode.
Applicable Scenarios and Notes¶
- Applicable Scenarios: Suitable for developers who need to quickly share part of the conversation content from the Session Header or sidebar menu; suitable for scenarios where conversations need to be archived as Markdown or HTML.
- Notes:
- Data Security: Sharing is limited to local copying or downloading and is not uploaded to any server.
- Line Limit: The dialog list displays up to the latest 300 shareable messages; earlier messages need to be retrieved through direct saving (such as
/share txt). - Redaction Accuracy: Sensitive information redaction is a best-effort attempt based on pattern matching and not an absolute guarantee; please preview the content before sharing.
- Content Scope: The export only includes rendered message text; reasoning text and tool results (except tool call lines) are not included.
- Dependency Requirements: Sidebar menu integration requires the harness
ui-workspaceto supportsessionRowMenucontribution registration.
This plugin is released under the MIT License and is a community-maintained project.