dsh-harmony
用于在运行时对 DeepSeek Harness 插件进行修补、替换和装饰的库。
AI 分析
核心用途是提供 DSH 插件的运行时热补丁与协调框架,允许动态修改和扩展其他插件的行为。适合 DSH 插件开发者或需要高度定制化插件生态的高级用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CH4ACKO3/dsh-harmony说明文档
阅读完整 README ↗dsh-harmony
Runtime Patch coordination for DeepSeek Harness plugins.
A library for patching, replacing and decorating DeepSeek Harness plugins during runtime.
[Get started](https://ch4acko3.github.io/dsh-harmony/guide/installation)
·
[Documentation](https://ch4acko3.github.io/dsh-harmony/)
·
[Report an issue](https://github.com/CH4ACKO3/dsh-harmony/issues)
[](https://github.com/CH4ACKO3/dsh-harmony/blob/016207cd6344054799cd8cd077e138fda8da730b/LICENSE)
[](https://github.com/CH4ACKO3/dsh-harmony/blob/016207cd6344054799cd8cd077e138fda8da730b/package.json)
[](https://www.npmjs.com/package/dsh-harmony)
[](https://github.com/CH4ACKO3/dsh-harmony/stargazers)
[](https://awesome-dsh-plugin.com)
Introduction
Harmony provides an elegant way to modify the behavior of other plugins written for DeepSeek Harness. It runs as an external framework, applies Patches to target plugins at runtime, and starts DeepSeek Harness with the transformed plugin set.
Source Patches use TSQuery to precisely match target nodes in a TypeScript AST, then use MagicString to rewrite the corresponding ranges of the current in-memory source. Patches run in their configured order, and each Patch receives the output of the previous one, giving multiple changes to the same target a chance to coexist. Installed plugin files are never modified.
The goal is to extend the expressive power of DeepSeek Harness through creativity, composition, and modification.
Respect
Inspired by Harmony, the project of the same name created by Andreas Pardeike and other contributors for C#.
AI agents: use the repository skill
Load use-dsh-harmony for installation, Patch selection and authoring, runtime operations, and troubleshooting.
Install
Requires Node.js ^22.22.3 or >=24.11.1 and @deepseek-ai/dsh@0.1.0-rc.6.
npm install -g @deepseek-ai/dsh@0.1.0-rc.6
npm install -g dsh-harmony
dsh web
Open Settings → Harmony after starting the WebUI. For profiles, Desktop integration, updates, and removal, see the installation guide.
Documentation
| Topic | Guide |
|---|---|
| Runtime architecture | What is Harmony? |
| Installation and profiles | Installation |
| Writing source, semantic, and loader Patches | Patch authoring |
| Order, status, inspection, and reload | Operations |
React-aware patches with dsh-harmony-react | React integration |
| Studio previews | Studio integration |
| Commands, limitations, and failures | CLI · Limitations · Troubleshooting |
Development
All maintained implementation code uses TypeScript. Build artifacts are generated for packaging and are not tracked by Git.
Documentation sources and local preview tooling live on the docs branch.
npm test