dsh-plugin-template: A Complete Dual-Side Plugin Template for DeepSeek Harness
bugmaker2/dsh-plugin-template
A complete dual-side DeepSeek Harness plugin template demonstrating host/client structure with type-checking, tests, CI, and publishing metadata, registering a greet Remote out of the box.
dsh-plugin-template is a plugin scaffold for DeepSeek Harness developers, providing a dual-side skeleton with host and client, including a greet example, type-checking, lint, unit tests, and CI. It solves the messy structure and complex configuration when building a DSH plugin from scratch, letting you quickly start and publish your own plugin. Out of the box, it registers a greet Remote: the host composes a configurable prefix, and the client renders the result in a new Greet tab.
How to Install
dsh plugin --profile web add github:bugmaker2/dsh-plugin-template- Category
- Development & Operations
- Platform
- DSH Plugin
- Author
- bugmaker2
- Distribution
- Plugin
dsh-plugin-template Key Features
dsh-plugin-template Repo Summary
What Does It Do?
dsh-plugin-template is a DSH plugin template for DeepSeek Harness that provides a complete dual-side plugin skeleton for developers. It solves the problem of setting up a DSH plugin from scratch with messy structure and complex configuration, offering a host plugin exposing a Typert Remote and a client plugin mounting that Remote into a React view, with type-checking, linting, unit tests, CI, and publishing metadata wired up. Out of the box, it registers a greet Remote: the host composes a configurable prefix, and the client renders the result in a new Greet tab.
Core Features
- Dual-side template: host plugin exposes a Typert Remote, client plugin mounts it into a React view, demonstrating the full plugin surface.
- Built-in greet example: host composes greeting from a configurable prefix, client renders it in a Greet tab.
- Development toolchain: includes typecheck, lint, vitest unit tests, and esbuild dual build (host ESM + client CJS).
- Shared strict contract: contract.ts defines a wire contract shared by host and client for type safety.
- Localization support: client includes zh/en dictionaries for internationalization.
- Release-ready: includes dsh.bundle and dsh.client manifests, CI workflow, ready for publishing.
How to Use This Plugin?
In DSH, developers can use this template to create their own plugins. After cloning the repository, install dependencies and build as per the README, then add the plugin via the plugin marketplace or a local path. After restarting the Web Harness, a Greet tab appears in the session view showing Hello, DSH. To customize, modify the host's prefix configuration or the client's view logic. When renaming the plugin, update relevant fields in package.json, build.mjs, src/index.ts, and other files.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: bugmaker2/dsh-plugin-template. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
