DeepSeek Harness loading local plugins
Previous article DeepSeek Harness first plugin Now that the source of hello-plugin is written, next we load it into the Web UI.
Here we use two things: the patch overlay cordis.yml and the --patch startup argument.
scratch-plugin directory structure
Earlier we created scratch-plugin/src; now add a cordis.yml.
The structure of the whole temporary project is as follows:
scratch-plugin/
├── src/
│ └── my-plugin.ts # 插件源码(上一篇写的 hello-plugin)
└── cordis.yml # patch 覆盖层:告诉框架插入哪个插件
The insert in cordis.yml
Run pwd in the repository root to get the absolute path.
Then create scratch-plugin/cordis.yml with the following content:
Example
File path: scratch-plugin/cordis.yml
This is a Web overlay, only responsible for inserting the local plugin
- insert
:
- id
:
hello
name is the plugin file path and must be an absolute path!
name
:
'/absolute/path/to/deepseek-harness/scratch-plugin/src/my-plugin.ts'
Replace /absolute/path/to/deepseek-harness with the real path printed by pwd.

The plugin path must be absolute.
The patch file only contributes config; it does not change the profile directory used by the loader when resolving module paths.
Starting with --patch
Start the Web UI with this overlay:
pnpm dsh web --patch ./scratch-plugin/cordis.yml
During startup, the terminal prints [hello-plugin] plugin loaded!.

Open http://127.0.0.1:3080 and search for hello in the settings plugin list to see the plugin we installed.

How It Works
dsh stacks multiple configuration sources in order into one final config.
The cordis.yml passed via --patch is an overlay that is stacked into the profile at startup.
| Concept | What It Is | Purpose |
|---|---|---|
| profile | A launchable assembled configuration | Determines which bundles make up the Web UI |
| patch overlay | additional yml stacked at startup | insert local plugins, override a config item |
| insert | syntax for inserting a plugin in patch | load a plugin by its name absolute path |
Tip: --patch is suitable for local development and debugging.
To deliver the plugin to others, use a bundle; see:DeepSeek Harness Bundles。