🎁 福利专区全网大模型免费应用 + 新用户福利 + 注册活动入口,低成本玩转 AI

插件开发指南 whyihaveyou/dsh-plugin-tutorial

DeepSeek Harness
whyihaveyou63 天前有提交已提供中文文档扫描:无法判定

跟着章节动手写出可发布的 DSH 插件

29.7/100
综合分
2
GitHub 星标
—
npm 周下载
—/5
用户评分

数据截至 2026/9/18 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。

自动兼容检查未通过:仓库根目录及浅层子目录均无 dsh 插件清单,无法用 dsh 插件安装命令安装。以下命令仍可尝试,但可能失败。
无法用 dsh 插件命令安装(仓库内无 dsh 插件清单)
git clone https://github.com/whyihaveyou/dsh-plugin-tutorial.git
按该仓库 README 的原生方式安装;若作者另行发布了 DSH 插件包,请以其文档为准

状态速览

判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态
信任档位:需留意
是什么
dsh 原生插件 · vision
装得上吗
作者未把包发布到 npm,只能用源码安装
插件本身没问题,是分发方式不同
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
更新放缓:最近一次提交在 63 天前
档位由哪些信号合成

本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。

验证判据与等级说明 →
社区实装还没有人打卡 · 装过的第一个就是你
安装兼容性检查需源码安装

仓库根目录及浅层子目录均无 dsh 插件清单,无法用 dsh 插件安装命令安装

展开查看检查明细 ↓

以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。

✗npm 包dsh-plugin-tutorial(未发布到 npm,仅可源码安装)
✓Node 引擎未声明 engines.node
✓dsh CLI 依赖未声明 dsh 版本约束
✗入口文件缺少入口声明

源码安装时若 pnpm 拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑。

验证方式:npm registry 存在性 + package.json 静态校验 · 最后检查 2026/10/11 22:13:04

安全扫描自动 · 静态分析源码
v2.7.0
⚪ 扫描:无法判定尚无人工评估
展开查看扫描说明与证据 ↓

已尝试扫描但取不到可分析的源码:仓库或包不存在、已删除,或为非 JS/TS 实现、未随包发布源码。无法判定,不代表安全。

  • · 包内无可扫 JS
  • · TS 源码(可能为非 JS 实现或未发布源码),无法判定
扫描于 2026/11/2(1 天前) · 范围 全包扫描(包内未声明入口) · 来源 GitHub 仓库

静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。

给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个

功能亮点

  • DSH插件开发实战指南
  • 中英双语
  • 全真实截图

DeepSeek Harness 插件开发实战指南,中英双语,配真实截图,上手即用。

README

由 DeepSeek 最新模型翻译生成
📖 DSH 插件开发指南 DSH 插件开发指南 The hands-on, screenshot-rich book for building plugins on DeepSeek Harness (DSH) — from your first npm create dsh-plugin to tools, events, panels, and distribution. Bilingual EN / 中文. 一本动手的、全真实截图的 DeepSeek Harness (DSH) 插件开发实战书 —— 从第一条 npm create dsh-plugin 到工具、事件、面板与分发。中英双语。
展开完整文档(README 剩余 1 节)
📖 DSH 插件开发指南 DSH 插件开发指南

The hands-on, screenshot-rich book for building plugins on DeepSeek Harness (DSH) — from your first npm create dsh-plugin to tools, events, panels, and distribution. Bilingual EN / 中文.

一本动手的、全真实截图的 DeepSeek Harness (DSH) 插件开发实战书 —— 从第一条 npm create dsh-plugin 到工具、事件、面板与分发。中英双语。

GitHub stars
License: MIT
Language
Cordis

What is this book / 这本书是什么

DeepSeek Harness is the "everything is a plugin" agent harness. This book is the authoritative,
chapter-by-chapter guide to writing plugins for it, grounded in the two guarantees that make DSH's
plugin model safe at runtime — temporal composability (unload fully reverts a plugin's effects) and spatial composability (dependencies resolve reactively).

DeepSeek Harness 是一个「一切皆插件」的 agent harness。这本书是写 DSH 插件的权威章节化指南,扎根于让 DSH 插件模型在运行时安全的两个保证——时间可组合性(卸载完整撤销插件副作用)与空间可组合性(依赖响应式解析)。

Every code block comes from a verified, runnable spike and the
create-dsh-plugin scaffold — no fabricated API. Every screenshot is a real terminal run or a live dsh web session. The full formal theory behind the model lives in the companion paper notes.

每个代码块都来自已验证、可运行的 spike 与 create-dsh-plugin 脚手架——没有编造的 API。每张截图都是真实终端输出或真实 dsh web 会话。模型背后的完整形式化理论见配套论文笔记。

Table of Contents / 目录

| # | Chapter | 中文 |
| 0 | TL;DR | 摘要 |
| 1 | The plugin model | 插件模型 |
| 2 | The three plugin shapes | 三类插件形态 |
| 3 | The 15 design principles | 15 条设计准则 |
| 4 | Debugging and verification | 调试与验证 |
| 5 | Distribution and publishing | 分发与发布 |
| 6 | FAQ — the 14 pitfalls | FAQ 十四坑 |
| 7 | Skins and Personalization | 皮肤与个性化 |
| 8 | Publishing to the Catalog | 发布到目录 |
| 9 | Presets and Scenario Packs | 预设与场景包 |

| # | 章节 | English |
| 0 | 摘要 | TL;DR |
| 1 | 插件模型 | The plugin model |
| 2 | 三类插件形态 | The three plugin shapes |
| 3 | 15 条设计准则 | The 15 design principles |
| 4 | 调试与验证工作流 | 调试与验证 |
| 5 | 分发与发布 | 分发与发布 |
| 6 | FAQ — 十四个最易踩的坑 | FAQ — 十四个最易踩的坑 |
| 7 | 皮肤与个性化 | 皮肤与个性化 |
| 8 | 发布到目录 | 发布到目录 |
| 9 | 预设与场景包 | 预设与场景包 |

内容亮点 / What's inside

- 三类插件形态,最小且完整——一个 defineTool() 工具、一个 ctx.on/ctx.effect 事件插件,以及一个双半 Web UI 面板(ctx.slots.register + shell.overlay),全部提炼自一个可运行的 spike。/ Three plugin shapes, minimally and completely — a defineTool() tool, a ctx.on/ctx.effect event plugin, and a dual-half Web UI panel (ctx.slots.register + shell.overlay), all distilled from a runnable spike.
- 15 条设计准则——每条含规则、一句话理由、反例。/ The 15 design principles — each with the rule, the one-sentence why, and the anti-pattern.
- 无 API key 的验证工作流——脚手架、构建、dsh plugin add、--dump-config、headless。/ A key-free verification workflow — scaffold, build, dsh plugin add, --dump-config, headless.
- 分发与版本坑——dsh.bundle vs profile、cordis.patch.yml,以及为什么 @deepseek-ai/dsh-tools 必须锁 next tag。/ Distribution and the version trap — dsh.bundle vs profile, cordis.patch.yml, and why @deepseek-ai/dsh-tools must be pinned to the next tag.

截图在 assets/screenshots/——真实终端帧(暗色主题渲染)与真实 dsh web 服务器的 Playwright 截屏。/ Screenshots live under assets/screenshots/ — real terminal frames (rendered dark-theme) and Playwright captures of a live dsh web server.

配套仓库 / Companion repo

- dsh-suite——DSH 插件目录、 create-dsh-plugin 脚手架与迁移指南。本书是配套内容资产,套件是代码。/ the DSH plugin catalog, the create-dsh-plugin scaffolder, and the migration guide. This book is the companion content asset; the suite is the code.
- DeepSeek Harness — 上游 harness。/ the upstream harness.
- Cordis — 底层插件框架。/ the plugin framework underneath.

求 Star 与贡献 / Star and contribute

⭐ 如果这本书帮你省下一小时插件调试时间,给个 Star——这是我们判断该继续扩充的依据。
欢迎 issue / PR 补充章节、更清晰的示例或新坑。/ ⭐ If this book saves you an hour of plugin debugging, star the repo — it's how we know the guide is worth expanding. Issues and PRs for missing chapters, clearer examples, or new pitfalls are welcome.

许可 / License

MIT © 2026 whyihaveyou
预览分享卡片长什么样 ↓whyihaveyou/dsh-plugin-tutorial
分享 · DeepSeek Harness Hub
whyihaveyou/dsh-plugin-tutorial

跟着章节动手写出可发布的 DSH 插件

回到顶部