dsh-learning-plugin
by fengyufengzi
一个用于学习 DeepSeek Harness 插件机制的最小工具组合包。安装后,它向模型注册 learning greet 工具。
A small DeepSeek Harness tool plugin for learning the Cordis extension model
安装
dsh plugin --profile web add github:fengyufengzi/dsh-learning-pluginGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
一个用于学习 DeepSeek Harness 插件机制的最小工具组合包。安装后,它向模型注册 learning_greet 工具。
这个项目展示四个 Harness 扩展点:
inject = ['tools']声明服务依赖。Config使用 Schemastery 校验部署配置。ctx.tools.register()注册随插件生命周期自动撤销的能力。defineTool()从同一份 schema 推导参数和输出类型。
环境要求
- Node.js
^22.19.0 || >=24.0.0 - Corepack
- pnpm
11.7.0 - DeepSeek Harness
0.1.0-rc.6系列
Harness 尚处于开发者预览阶段,插件 API 可能发生破坏性变化。
本地开发
corepack pnpm install
corepack pnpm run check
check 会执行类型检查、测试和发布构建。构建产物写入 lib/。
安装到 DSH profile
先构建插件,然后从本项目目录把 checkout 安装到 web profile:
corepack pnpm run build
npx @deepseek-ai/dsh plugin --profile web add .
npx @deepseek-ai/dsh --profile web --dump-config
npx @deepseek-ai/dsh --profile web
package.json 中的 dsh.bundle 声明会让 DSH 自动应用 cordis.patch.yml。启动后可向模型提出:
Use learning_greet to greet Ada.
移除插件:
npx @deepseek-ai/dsh plugin --profile web remove dsh-learning-plugin
打包检查
corepack pnpm pack
生成的 tarball 应只包含 lib/、cordis.patch.yml、README、LICENSE 和包清单。
项目结构
src/index.ts 插件实现
tests/plugin.spec.ts 生命周期与真实 ToolRuntime 测试
cordis.patch.yml 可安装组合包的配置层
docs/source-walkthrough.zh.md
.github/workflows/ci.yml Node 22/26 持续集成
当前范围
这是学习项目,不是诊断或生产运维插件。下一阶段计划基于这些机制实现隐私优先的 dsh-local-diagnostics。
License
MIT
原始 README: https://github.com/fengyufengzi/dsh-learning-plugin/blob/main/README.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod