dsh-bot: A Persistent AI Coworker in DeepSeek Harness

Introduction

DeepSeek Harness (DSH) supports plugin-based extensibility. For scenarios requiring long-term collaboration, persistent memory, and group orchestration, a standard single-turn conversation is insufficient. This plugin builds a set of persistent AI colleagues for DSH, providing continuous sessions, explicit memory, group collaboration, and real tool execution capabilities.

What It Is

dsh-bot is a workflow plugin for DeepSeek Harness, maintained by ZYX121212. It provides native support to DSH in the form of “long-term AI colleagues / team collaboration.” It is not an auto-reply account on X, nor a single-turn Q&A page wrapped in multiple prompts.

Core Capabilities

  • Continuous sessions with native hosting: Each Bot is associated with and reuses a native DSH session. Context, tool execution, and model selection are handled by the host—no new session is created.
  • Explicit memory: Manually add, edit, or delete private or team-shared memories. On each task assignment, the corresponding Bot’s role, memories, and group context are injected. No automatic learning is performed.
  • Group collaboration: Add real Bots to a group. Use @Scout to designate a lead, or @everyone to assign tasks in member order. Each member uses their own continuous session. Group chat history retains up to 16,000 characters of the tail end of public replies for the current round; full replies remain in the corresponding member’s native session.
  • Real tool execution: New Bots use the host’s standard tool preset, governed by the capabilities actually exposed and authorized by the host. Supports code, files, search, skills, MCP, and more.
  • Observable work: Tool activity, execution status, pending interactions, native file delivery events, and historical work records.
  • Approval & authorization: Detects native pending interactions and redirects to the real DSH session for handling. Does not silently approve requests or alter permission policies.
  • Data persistence: The roster, groups, explicit memories, and task/run records are stored via host file storage and persist across page refreshes. Conversations are saved in native sessions.
  • Clean workbench: Roster and groups on the left, continuous conversation in the center. Supports light, dark, and system themes, plus a mobile drawer. Bots are displayed as unified spherical avatars, with status emojis reflecting real states (idle, thinking, retrieving, working, waiting, done, error).
  • Safe message parsing: Assistant replies support a safe, minimal Markdown subset (headings, lists, blockquotes, inline code, links, copyable code blocks). No HTML execution, no external image loading.
  • Retrieval & export: Conversation search and Markdown export read from earlier native event pages. History retrieval has pagination, message count, and character count limits (up to 200 pages, 10,000 public messages, 4 million characters, with a 30-second read timeout per page).
  • Archive & restore: Archived conversations are read-only and do not create new tasks. After a page interruption, persistent runs are re-observed; tasks are not resubmitted.

Installation & Enablement

This plugin targets DSH 0.2.2-rc.1 / Node >= 24.9.0. Other versions require actual verification; forced installation with version bypass is not recommended.

General users: download the tgz package from GitHub Releases, or install via the in-app plugin manager using the release package URL. No npm package is currently published.

Recommended: install the pre-built tgz bundle:

dsh plugin --profile web add https://github.com/ZYX121212/dsh-bot/releases/download/v0.5.1/dsh-bot-0.5.1.tgz

For the desktop app, prefer the in-app plugin manager to install the URL above; the web in the command example applies only to that profile—substitute with your actual profile for other installation methods. You can also download the file and use the DSH plugin manager’s install_bundle to install via a local absolute path.

After installation, restart the DeepSeek Harness application, then open dsh-bot from the sidebar. Simply refreshing the web page is not sufficient to ensure the old host module is unloaded.

Typical Usage

  1. Create a primary Bot: choose a template, or customize the name, role, and avatar.
  2. Assign a specific task, e.g., “First check the current project, list the structure, then help me make a change with tests.” This consumes model quota configured in DSH.
  3. On first start, the Bot establishes a native session and inherits the working directory of the current native primary session where possible; if it cannot be clearly identified, the DSH default directory is used—no guessing of recent folders.
  4. Review real tool activity and deliverables on the right side. “Open native workspace” navigates to that Bot’s DSH session, where you can view full tool details, handle authorizations, and open files.
  5. Add specialized Bots for research, writing, etc.; once at least one valid member exists, you can create a group.
  6. In the group, type @Scout verify the materials or @everyone check this proposal individually. Without an @mention, the task goes to the group’s primary Bot; otherwise, it goes to the first valid member.
  7. Save long-term preferences to “Memory” and choose whether it’s for that Bot only or shared with all. Roles and memories apply to the next task assignment; they do not retroactively delete existing content in native sessions.

Use Cases & Notes

  • Suitable for DSH users who need continuous sessions, explicit memory, and group orchestration, such as long-term code review, documentation collaboration, multi-skill task decomposition, and tracking.
  • The plugin runs with the current DSH process permissions. It does not scrape browser credentials, does not establish new HTTP services, does not obtain or store API Keys, and does not create forged owner peers.
  • Metadata is accessed via the existing authenticated Typert RPC, located at dshHomePath('storages', 'dsh-bot', 'workspace.json'), with file permissions 0600. This storage is not an encrypted vault—do not store passwords, tokens, bank card numbers, or similar sensitive information in memories.
  • After upgrading, always restart the DSH application. Simply refreshing the web page is not sufficient to ensure the old host module is unloaded.
  • The current version is 0.5.1 public preview. It is recommended to validate in a test environment before using in critical workflows.

In Closing

dsh-bot provides a set of persistent AI colleagues for DeepSeek Harness, ideal for workflows requiring long-term collaboration, explicit memory, and group orchestration. For more details and source code, visit: GitHub.

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

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

Xiaoye