DeepSeek Harness: Conversation-Level Message Control Plugin

Introduction

When multiple agents collaborate, a common challenge is that messages can enter conversations indiscriminately, making it difficult to restrict who can send content to which session. The plugin-based architecture of DeepSeek Harness (DSH) allows such policies to be implemented on demand. Below is an introduction to the kzhw615/dsh-conversation-lock plugin, which provides a lock state for each session and lets users decide whether to allow other agents to deliver messages to that session.

What It Is

kzhw615/dsh-conversation-lock is a DeepSeek Harness plugin that adds a lock toggle to each DSH Session. By default, a session is in a locked state; only after it is unlocked can other agents within the same Harness process send messages to it. The lock state is stored in a local Harness file and can only be toggled by the user via the UI or the session menu — agent tools cannot unlock it on their own.

Core Features

  • Default session locking: Each session automatically enters a locked state upon startup.
  • User-controlled unlocking: Toggle the lock state through any of the following three interfaces:
  • A lock chip appears in the editor toolbar of the open session, displaying “Locked” / “Unlocked”; click to toggle.
  • A lock icon appears at the end of each Session row in the sidebar: a grey closed padlock indicates locked, a green open padlock indicates unlocked; the icon is shown on hover.
  • The session menu provides “Allow other agents to send messages” / “Deny other agents from sending messages” options, allowing modification directly from the session list.
  • Agent tools:
  • list_conversations: Lists the currently open sessions in the Harness, including lock state, status, and a brief title.
  • send_conversation_message: Delivers a text message to a specified session by Session id. The target must currently be in an open state; the message enters the target’s inbox as a user-role message, and the target’s reply can only enter unlocked sessions.
  • Security and permissions:
  • Lock control is implemented solely through the browser-side Host route; agent tools cannot unlock a session and are only denied delivery when the target is locked.
  • Lock state is stored at $DSH_HOME/conversation-lock/state.json; deleting this file will re-lock all sessions.
  • Only agents within the same Harness process can send messages; separate processes, remote viewers, or other applications cannot access unlocked sessions.

Installation and Enablement

In DeepSeek Harness, navigate to Plugins → Add plugin, and enter the repository URL:

https://github.com/kzhw615/dsh-conversation-lock

This plugin requires DeepSeek Harness version >=0.2.2-rc.2. After installation, no build step or network access is required — it will automatically register Host routes and web client controls.

Typical Usage

To have another agent send a message to a specified session:

  1. Open the target session and click the lock chip to set it to Unlocked.
  2. Obtain the target session’s Session id (Session menu → Copy session ID), or have the agent call list_conversations to retrieve it.
  3. Have the agent call send_conversation_message with the Session id and the message text.
  4. After collaboration is complete, click the lock chip again to lock the session.

Use Cases and Notes

  • Suitable for scenarios requiring control over message entry direction and preventing agents from arbitrarily disturbing specific sessions. For example, when multiple agents collaborate on the same session, you can allow only a specific agent to speak.
  • This plugin runs with the permissions of the current Harness process; the lock state is stored locally and is only effective within the same process.
  • It is recommended to review the source code and license (MIT) before installation to ensure compliance with your usage policies.

Summary

kzhw615/dsh-conversation-lock provides conversation-level message control for DeepSeek Harness, helping to manage message flow more precisely in multi-agent collaboration. For more details, refer to the plugin directory page and the GitHub repository.

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

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

Xiaoye