DeepSeek Harness 插件

dsh-plugin-template

Minimal Hello World plugin template for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
bugmaker2/dsh-plugin-template
最近更新
2026年8月14日
分类
插件开发工具
GitHub stars
15
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/bugmaker2/dsh-plugin-template
插件名:dsh-plugin-template
作者:bugmaker2

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器4 个文件
README.zh.md来源说明 · 只读预览
README 语言

dsh-plugin-template

English | 中文

这是一个使用 TypeScript + tsdown 开发的最小 DeepSeek Harness 插件 bundle。Harness 加载它时会输出 hello world

从 fork 开始

git clone https://github.com/YOUR-USER/dsh-plugin-template.git
cd dsh-plugin-template

pnpm install
pnpm run check
dsh plugin --profile hello add .
dsh --profile hello --dump-config | grep dsh-plugin-template
dsh --profile hello

Harness 输出中出现下面一行,就表示插件已经加载:

[dsh-plugin-template] hello world

开发时编辑 src/index.ts,执行 pnpm run build,然后重启 profile。生成的 lib/ 会包含在 package 中,因此直接从 Git 安装时可以加载已经构建好的 JavaScript 入口。

如果要改插件名,以下位置必须保持一致:

  • package.jsonname
  • src/index.tsname
  • cordis.patch.ymlidname

卸载:

dsh plugin --profile hello remove dsh-plugin-template

插件全部内容

package.json       # 声明 dsh.bundle patch 和构建入口
src/index.ts       # TypeScript Cordis 插件入口
lib/index.js       # 自动生成的 Harness 入口
cordis.patch.yml   # 把 package 注册进 profile
tsconfig.json      # TypeScript 类型检查配置
pnpm-lock.yaml     # 依赖锁定

Harness 唯一需要的 manifest 是 package.json 中的 dsh.bundle.patch:它让 package 成为可安装的 profile bundle。cordis.patch.yml 插入插件行,src/index.ts 编译后导出普通 Cordis name/apply 入口。

当前模板只升级到 TypeScript + tsdown,仍然保持 Host-only,不加入 React Client、Remote contract 或测试框架。只有实际需要 Web UI、远程调用或复杂测试时,再引入对应方案。

被发现

给 fork 添加 GitHub topic dsh-plugin。topic 是 GitHub 仓库元数据,不是仓库文件:

gh api --method PUT repos/YOUR-USER/dsh-plugin-template/topics \
  -H 'Accept: application/vnd.github+json' \
  -f 'names[]=dsh-plugin'

许可证

MIT