Ri0n72Y/dsh-plugin-practice

Ri0n72Y★ 0TypeScript最后同步: 2026-08-14

在 GitHub 打开

learn how to write cordis dsh plugin

README 摘要

dsh-plugin-practice A minimal practice repository for learning DeepSeek Harness plugin development one concept at a time. Lesson 1: plugin lifecycle This first example keeps the surface area deliberately small. It demonstrates only: - a Cordis function plugin; - the apply(ctx) entry point; - lifecycle-owned resources with ctx.effect() ; - loading the plugin into DSH with a patch file. Files Plugin src/plugin.ts contains a small heartbeat resource: The important relationship is: The timer is created by the plugin effect and its cleanup function is owned by the same lifecycle. When the plugin is unloaded or replaced, Cordis runs the disposer. Load it from a DSH source checkout The patch file contains a placeholder because the local TypeScript module must be referenced by an absolute path when it is loaded as an external patch during this exercise. 1. Clone this repository somewhere on your machine. 2. Edit cordis.patch.yml and replace /ABSOLUTE/PATH/TO/dsh-plugin-practice with the repository's absolute path. 3. From the deepseek-harness source checkout, run: 4. Watch the terminal. You should see: When the plugin is unloaded or replaced, you should also see: What to understand before …

在 GitHub 查看完整 README →
Tools / Devdsh-plugin

分类