Foreword

DSH’s plugin ecosystem emphasizes “Everything is a plugin”; the community directory is an independent site with no official affiliation to DeepSeek / Fenfang. For developers using DSH Agent for project delivery, maintaining Requirements, Run, Step, Acceptance Scenarios/Cases, and Work Memory separately makes it easy to lack unified state. dsh-pm is driven by ChunSun, with the repository owner being mqhe2007, and the goal is to integrate these objects into the same delivery loop.

What is this

dsh-pm is a DSH plugin that takes Requirements as the work object, organizes Run, Step, Acceptance Scenarios/Cases, and Work Memory, and forms an AI-native project delivery loop. It provides Host service, Model tools, Client panel, and typert, remote, client entry points. Work Memory and state take the ChunSun self-hosted instance as SSOT.

The plugin license is MIT, requiring Node.js >= 24 + npm; DSH profile plugin management uses pnpm. The ChunSun self-hosted instance is optional; if not provided, the plugin side can only see the disconnected state.

Core Features

Below are several capabilities to verify:

  • Provides 28 chunsun_* model tools, covering Connection/Status, Requirements, Run, Step, Scenarios/Cases, Work Memory, Environment Variables, Defects, and reset.
  • Supports DSH Agent to open Run with Requirements as the work object, report Step, maintain Acceptance Scenarios/Cases, read/write Work Memory, and pass the completed hard gate.
  • Provides a session-level delivery GUI: The status bar above the composer shows the current Requirement / Run round / Step, and the “Project Management” view provides an overview page.
  • Supports configuring CHUNSUN_API_URL and CHUNSUN_SECRET_KEY via Workspace .env or the GUI “Project Management” view, and testing the connection.

Installation and Enablement

Below uses the web profile as an example.

1. Local Build

In the dsh-pm directory, install dependencies and build:

npm install
npm run build

The build uses tsc. Since @Remote is a Stage 3 decorator, tsdown cannot be used for the build.

2. Install to DSH profile

Execute in the dsh-pm checkout directory:

dsh plugin --profile web add ./dsh-pm

This command adds the local plugin to the web profile. pnpm creates symlinks for local path dependencies, so after each change, only a rebuild is needed; there is no need to re-run add.

3. Install from GitHub

You can also install directly from GitHub:

dsh plugin --profile web add github:mqhe2007/dsh-pm

This command runs the prepare build script. If pnpm intercepts, add the key given in the error message to the profile’s pnpm-workspace.yaml allowBuilds and retry.

4. Start DSH

Start and enter the web profile:

dsh web

Or:

dsh --profile web

Typical Usage

Configure ChunSun Connection

You can first write in the workspace .env:

CHUNSUN_API_URL=http://localhost:11111/api/v1
CHUNSUN_SECRET_KEY=

The default value for CHUNSUN_API_URL is http://localhost:11111/api/v1. CHUNSUN_SECRET_KEY is required after connection and is marked as Secret. You can also fill it in the GUI “Project Management” view and execute “Save and Test Connection”.

Development Iteration

After modifying src/*.ts, rebuild:

npm run build

Changes on the Host side require restarting DSH; changes on the Client side require refreshing the browser.

Validation before Commit

Run before committing:

npx tsc --noEmit
npm run build
node --check lib/index.js
node --check lib/tools.js
npm test

The Client artifact lib/client.js must be lazy-CJS and start with window.__ModuleLoader__.load. When using Host and Client outside the repository, you need to provide ./typert and ./remote yourself; remote.chunsun needs explicit $mount.

Applicable Scenarios and Notes

This plugin is suitable for developers who need to unify DSH Agent’s delivery objects to Requirements, Run, Step, Acceptance Scenarios/Cases, and Work Memory; it is also suitable for users who have prepared a ChunSun self-hosted instance and wish to centralize state to SSOT.

Note: The plugin runs with the current dsh process permissions; you should check the source code and license before installing. CHUNSUN_SECRET_KEY is a Secret and should be handled according to key management requirements when writing to .env or GUI configuration. When using Host and Client outside the repository, you need to confirm that the wiring of ./typert, ./remote, and $mount is complete.

The value of dsh-pm lies in integrating ChunSun’s delivery state as a DSH plugin, enabling the Agent to form a loop between Requirements, Run, Step, Acceptance Scenarios/Cases, and Work Memory. The GitHub repository address is: https://github.com/mqhe2007/dsh-pm. The community directory page address is subject to the actual directory site retrieved.