hellosky983/dsh-foundry
Plugin Foundry — 一个自我扩展、万物皆插件的编译器,用于 DeepSeek Harness (DSH)。包含蓝图注册表及脚手架/验证工具。
Project Overview项目介绍
dsh-foundry is a native DSH plugin that acts as a bootstrapping compiler for building other DSH plugins. It is built exclusively for DeepSeek Harness and follows official DSH plugin packaging conventions. Writing dynamic Cordis plugins for DSH normally requires developers to memorize complex runtime contracts including output schemas, parameter DSLs, and dependency injection declarations. dsh-foundry simplifies this process by turning these verbose contracts into reusable blueprints, allowing developers to generate valid, ready-to-use plugin code by just selecting a blueprint and filling in required parameters.
The plugin ships with a core foundry service that any existing plugin can extend by registering new custom blueprints, allowing the overall DSH plugin ecosystem to grow organically. It includes nine built-in blueprints covering the most common plugin types, including host tools, client tools, RPC services, events, timers, system prompts, skill tools, and file system tools. It also adds three DSH model tools: one to list all available blueprints, one to generate plugin scaffold code, and one to validate blueprint configurations before generation. After installation, users can generate a new working plugin in just three simple steps in any DSH session.
dsh-foundry requires DSH version 0.1.0-rc.6 or higher and lists @deepseek-ai/dsh-tools ^0.1.0-rc.6 as a peer dependency. It cannot be installed via the default dsh plugin add command, so users need to manually add it as a linked dependency in their web profile's package.json and add it to the bundles array, then run pnpm install and restart DSH to complete installation. The plugin does not read or write any user files, collect personal data, or require any configuration, it only registers a read-only route on DSH's local web server to return blueprint metadata. It is released under the open source MIT license, and contributions of new blueprints are welcome from the community.
dsh-foundry 是专为 DeepSeek Harness(DSH)开发的原生自举插件编译器,本身也是一个可直接运行的 DSH 插件,核心作用是简化 DSH 平台的插件开发流程。它将编写 Cordis 动态插件需要记忆的繁琐运行时契约固化为可复用的蓝图,把「从零写插件」简化为「选配方 + 填参数」的流程,还会在定义代码生成前做静态校验,最终输出可直接用于 cordis_define 的宿主/浏览器端可运行代码。
该工具面向 DSH 插件开发者、需要快速将能力下沉为运行时工具的智能体,以及需要通过插件扩展现有插件功能的元编程场景。它内置了九种不同类型的蓝图,覆盖宿主工具、客户端工具、RPC、事件、服务、定时器、系统提示、Skill、文件工具等常见场景,还提供了三个模型工具用于查询蓝图、生成脚手架和校验配置。安装后,用户可在任意 DSH 会话中快速生成新插件的代码,再通过 cordis_define 完成部署上线。
该插件要求 DSH 版本为 0.1.0-rc.6 及以上,依赖 @deepseek-ai/dsh-tools 版本 ^0.1.0-rc.6,需要手动通过 link 方式安装,不能直接用 dsh plugin add 命令安装。它本身不读写文件、不收集用户数据、也不需要额外配置,仅在 DSH 本地 Web 服务注册一个返回蓝图元数据的只读路由。项目采用 MIT 许可证开源,欢迎开发者贡献新的蓝图配方。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-foundry(hellosky983/dsh-foundry)
仓库:https://github.com/hellosky983/dsh-foundry
本站详情页:https://www.yhbd.top/plugins/hellosky983-dsh-foundry/
本站登记:类型 collection · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:hellosky983/dsh-foundry
把 hellosky983/dsh-foundry 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-foundry · Plugin Foundry(插件铸造厂)
一个自举式「一切皆插件」编译器:它本身是一个 DSH 插件,用来研发插件,并能被其它插件扩展。
Overview
Plugin Foundry 解决什么问题? 在 DeepSeek Harness(DSH)里编写动态 Cordis 插件需要记住繁琐的运行时契约(harness.defineTool 的 output:{schema,render}、parameters 逐属性 DSL、inject 声明、可逆副作用……)。本插件把这些契约固化成蓝图(blueprint),把「写插件」变成「选配方 + 填参数」,一键编译出可直接 cordis_define 的宿主/浏览器代码,并在定义前做静态校验。
适合谁? DSH 插件作者、需要把能力快速下沉成运行时工具的智能体(本插件与子代理皆可调用)、以及想用「插件扩展插件」的元编程场景。
核心价值:
- 一个
foundry服务(ctx.get('foundry')),任何插件都能registerBlueprint(...)续写配方 → 生态自我生长; - 三个模型工具
foundry_blueprints/foundry_scaffold/foundry_validate; - 九种内置蓝图覆盖 Host/Client/RPC/事件/服务/定时器/系统提示/Skill/文件工具;
- 一张 Settings 里的蓝图画廊页(只读)。
Compatibility
| 项目 | 版本 |
|---|---|
| DeepSeek Harness (DSH) | 0.1.0-rc.6 |
@deepseek-ai/dsh-tools(peerDependency) |
^0.1.0-rc.6 |
| 最后验证日期 | 2026-08-15 |
依赖声明在
package.json的peerDependencies。若你的 DSH 版本与0.1.0-rc.6差异较大,请先以 README 的「Development」冒烟测试验证。
Install / Uninstall
安装(link 方式)
⚠️ 不要用
dsh plugin --profile web add ./dsh-foundry(会把本地目录当 git 源解析而失败)。请手动 link。
- 编辑
$DSH_HOME/profiles/web/package.json,在dependencies增加:
并在"dsh-foundry": "link:/绝对路径/dsh-foundry"dsh.profile.bundles数组加入"dsh-foundry"。 - 在 profile 目录安装:
cd $DSH_HOME/profiles/web && pnpm install - 重启 DSH(或重载 web profile),验证:
dsh --profile web --dump-config # 应看到 "# == dsh-foundry" 层
升级
更新 link 指向的源码目录后,cd $DSH_HOME/profiles/web && pnpm install,重启即可(link 包无需重装版本号)。
禁用 / 彻底移除
# 彻底移除:从 package.json 的 dependencies 与 dsh.profile.bundles 删掉 "dsh-foundry"
cd $DSH_HOME/profiles/web && pnpm install
Quick start
最小可复现示例(安装并重启后,在任意 DSH 会话里):
1. foundry_blueprints
→ 返回 9 个蓝图(id / name / category / description / params)
2. foundry_scaffold { blueprint: "host-tool",
params: { toolName: "hello", toolDescription: "say hi" } }
→ 返回可粘贴的 code.host(已内置 output:{schema,render} 契约)
3. 把返回的 code.host 交给 cordis_define + cordis_run
→ 一个名为 hello 的模型工具立即上线,可被你和子代理调用
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
freestylefly/awesome-gpt-image-2
awesome-dsh-plugin/awesome-dsh-plugin
zhu1090093659/dsh-web
dsh-market/dsh-market
superdesigndev/treg
AdamPlatin123/dsh-plugin-radar
0xsline/awesome-deepseek-harness