Wenaixi

Dsh Plugin Dev — Development skill for Claude Code

Development community

The authoritative standard and developer skill for DeepSeek Harness (DSH 0.2.0-rc.2) & Cordis plugin development.

How to install Dsh Plugin Dev

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Wenaixi/dsh-plugin-dev and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Dsh Plugin Dev does

The authoritative standard and developer skill for DeepSeek Harness (DSH 0.2.0-rc.2) & Cordis plugin development.

Alternatives in Development

  • Dsh Plugin Cc — Bridge Deepseek-harness into Claude Code for review, critique, delegation, and session import 80 ★
  • Dsh Usage — 🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-chan 74 ★
  • SpecFusion — 在 DeepSeek Harness / Claude Code / Cursor / Codex / Gemini CLI 里直接搜索 20 个中国开放平台的 65,600+ 篇 API 文档;零配置,支持 Skill 66 ★

README

DeepSeek Harness (DSH) 插件开发权威指南

CI Status License PRs Welcome

**核心定位声明** **本项目是一个用于【开发 DeepSeek Harness (DSH) 插件】的辅助 Agent Skill(纯文本权威开发标准与架构知识库)。** **本项目本身是一个 Skill,绝不是 DSH 插件本身!** 它的核心目标是辅助开发者、架构师与 AI 智能体快速、零踩坑、高质量地编写、审查、调试各类 DSH / Cordis 插件。


本项目是开发、审查、调试与验收 DeepSeek Harness(DSH)插件与生态扩展的参考知识库(Agent Skill)。**本项目自身也属于线索级材料**:默认支持最新 DSH 版本(多版本源码见 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness))。任何 API、服务挂载名、配置字段和版本行为,都必须再回到目标环境的真实源码与运行时核对后才可使用。证据优先级为运行时行为 > 发布物实现与 JSDoc > 包内 README > 文档站散文 > 本技能库正文。

DSH 是基于 Cordis 微内核构建的高可扩展 Agent Harness。在 DSH 架构中,**一切皆为插件 (Everything is a Plugin)**:会话日志、工具注册表、系统提示词装配、模型适配器、UI 界面以及执行循环驱动器均作为平等、可插拔的插件运行。


一、两条不可协商的工作前置

  1. 源码至上:读完参考文档只是起点。动手写插件前必须打开目标运行时的真实源码——先查 pnpm 再查 npm、命中即停;本机安装的源码没有混淆,读到了就不必解包桌面版;并能指出每个契约出自哪个包的哪个文件。三层来源、跨平台定位方式与缓存目录约定见 source-verification-and-caches.md。
  2. 隔离验收:插件完成的标志是在只装了基础插件与目标插件的全新实例上,冷装、热装、热更新、卸载四态全过,并在真实浏览器里逐项点击、回读真值;测试模型必须由用户选定。流程见 isolated-instance-acceptance.md。

二、核心架构原则

  1. 零特权微内核:不存在固化的特权逻辑。所有业务与平台能力均通过向共享 Context 挂载服务或监听事件提供。
  2. 核心服务大动脉 (The Core Spine):单复数是硬约束——ctx.sessions、ctx.agents、ctx.agentTeams、ctx.tools 为复数;ctx.systemPrompt、ctx.configEditor、ctx.schedule、ctx.planMode、ctx.llm 为单数。ctx.agentLoop 是唯一的具体循环包(bundle),扩展插件依赖 dsh-agent 的事件与服务即可。完整 core/seam/bundle 角色矩阵见