dsh-baize-session: Moving Context Between DSH Sessions

DeepSeek Harness (DSH) adopts a plugin-based architecture. In practical use, it is common to encounter situations where specific messages from one conversation need to be extracted and placed into another conversation to continue, or where conversations in a workspace need to be organized and archived. dsh-baize-session (Baize) specifically addresses these cross-conversation context migration and workspace management issues.

This is a plugin for DeepSeek Harness (DSH). Its core function is to extract messages from the current conversation and move them to another conversation (either an existing conversation in the current workspace or a new conversation in a different workspace). Additionally, it provides a workspace conversation management panel that supports archiving, restoring, moving, and deleting conversations.

Core Features

  • Cross-Conversation Context Migration: Supports extracting messages from the current conversation and appending them to a new or existing conversation.
  • Cross-Workspace Support: Allows moving context between different workspaces.
  • Conversation Management: Provides a workspace panel to manage all conversations (including archiving) and supports batch operations.
  • Flexible Selection Methods: Messages can be selected via checkboxes in the conversation list or directly captured using the + button next to replies.
  • Naming and Identification: Displays names instead of IDs when selecting target conversations; message rows are marked by author (USER/ASSISTANT/CONTEXT/TOOL).
  • Token Budget: Estimates token count before writing; rejects the write operation if the limit is exceeded.

Installation

Install via npm to the web profile:

dsh plugin --profile web add dsh-baize-session@0.1.2

After installation, the DSH process needs to be restarted to load the plugin.

Usage

  1. Open any conversation.
  2. Click the Tidy tab next to the chat view.
  3. In this panel, select the target workspace and target conversation (can be “New conversation”).
  4. Check the message rows that need to be migrated.
  5. Click the Relocate button.

Notes

  • Message Rewriting: Selected messages are rewritten as a single text block inserted at the beginning of the target conversation, rather than being replayed as events.
  • Selection Required: If nothing is selected, the plugin will not write any content.
  • Deletion Constraints: Conversations must be archived before they can be deleted, and archived conversations cannot be moved.
  • No Local State: The plugin itself does not maintain state files on disk; all data operations are handled by DSH.

Summary

Baize symbolizes omniscience. For scenarios requiring frequent context organization and cross-workspace content reuse, this plugin provides a lightweight and controllable solution. For more details, please refer to the GitHub source code: https://github.com/bvcvb/dsh-baize-session

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

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

Xiaoye