The Plugin Pass/Fail Checklist — A Field Guide for DeepSeek Harness Plugins

Most plugin checklists read like tax forms. This one doesn’t. It’s a decision gate: every row is a hard Pass/Fail, and if a Required row fails, the plugin doesn’t ship — no debate, no “but it worked on my machine.”
Built from the official “Your first plugin” tutorial. Nothing invented, nothing padded.
🧭 How to use this
- Walk Stages 1–4. These are the non-negotiables.
- Pick Stage 5 matching your plugin form (function / object / class).
- Verdict rules at the bottom. FAIL is FAIL.
Stage 1 — Structure & Entry Point
| # | Check | ✅ Pass | ❌ Fail | Req |
|---|---|---|---|---|
| 1.1 | Plugin is a TypeScript module | Compiles as .ts | Non-TS / won’t compile | Yes |
| 1.2 | Exports an apply entry | Function, object method, or class form | No entry point | Yes |
| 1.3 | Has a name | export const name or class name | Nameless plugin | Yes |
| 1.4 | Uses exactly one valid form | Function / object / class | Mixed or invalid form | Yes |
| 1.5 | Correct type import | @deepseek-ai/cordis | Wrong path | Rec. |
Stage 2 — Dependency Declaration
| # | Check | ✅ Pass | ❌ Fail | Req |
|---|---|---|---|---|
| 2.1 | Declares every consumed service | inject = ['tools', …] | ctx.tools used, not injected | Yes |
| 2.2 | No premature readiness | Only touches injected services | Races at load | Yes |
| 2.3 | Minimal injection | Only what’s needed | Over-declared deps | Rec. |
⚠️ The silent killer: using
ctx.llmwithoutinject: ['llm']often appears to work in dev and explodes in production load order. Treat 2.1 as sacred.
Stage 3 — Registration & Cleanup
| # | Check | ✅ Pass | ❌ Fail | Req |
|---|---|---|---|---|
| 3.1 | Registers via ctx | Tools/listeners/timers through ctx | Global manual registration | Yes |
| 3.2 | Trusts auto-cleanup | No manual removeListener / clearInterval | Manual teardown of ctx resources | Rec. |
| 3.3 | ctx.effect() for explicit resources | Sockets, connections wrapped | Long-lived resource with no disposer | Yes (if applicable) |
| 3.4 | Disposer returned | ctx.effect(() => { … return () => {} }) | Callback returns nothing | Yes (if applicable) |
💡 Mental model:
ctxowns what you register through it. If you reach aroundctx, you own the cleanup — and you will forget.
Stage 4 — Configuration & Loading
| # | Check | ✅ Pass | ❌ Fail | Req |
|---|---|---|---|---|
| 4.1 | Valid cordis.yml overlay | insert: block with id + name | Malformed / no insert | Yes |
| 4.2 | Absolute plugin path | /abs/path/…/plugin.ts | Relative path | Yes |
| 4.3 | Loaded via --patch | pnpm dsh web --patch ./…/cordis.yml | No overlay | Yes |
| 4.4 | Patch doesn’t relocate profile dir | Profile dir unchanged | Patch moves profile dir | Yes |
| 4.5 | Loads at startup | Load log printed | Silence or error | Yes |
🔍 Gotcha: a patch file contributes config but does not change the profile directory the loader resolves modules from. Absolute paths are non-negotiable.
Stage 5 — Form-Specific Rules
| # | Check | Form | ✅ Pass | ❌ Fail |
|---|---|---|---|---|
| 5.1 | Object shape correct | Object | { name, inject, apply } | Missing fields |
| 5.2 | Extends Service | Class | extends Service, super(ctx, 'name') | No super |
| 5.3 | Sync constructor init | Class | All init synchronous | Async in constructor |
| 5.4 | Class form justified | Class | Used because it provides a service | Used when function suffices |
🏁 The Verdict Gate
| Gate | Condition | Result |
|---|---|---|
| 🚫 Blocking | Any Required item in Stages 1–4, or a form rule, fails | FAIL — do not load |
| ⚠️ Advisory | Only Recommended items fail | PASS with notes |
| ✅ Full pass | Everything Required and Recommended passes | PASS |
🎯 TL;DR (for the skimmers)
- No absolute path → FAIL.
- Undeclared service → FAIL.
- Long-lived resource with no
ctx.effectdisposer → FAIL. - Everything else → notes, not blockers.
📌 Scope note
This checklist is scoped strictly to the linked tutorial. The pages it links to — tool definition DSL, plugin configuration, Cordis internals — are next steps, so they are deliberately out of scope here. A checklist that pretends to cover everything covers nothing.
