hellosky983/dsh-foundry

Collection合集 Native原生 ⭐ 2 MIT Markets & Collections市场与合集

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 许可证开源,欢迎开发者贡献新的蓝图配方。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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(插件铸造厂)

Awesome DSH Plugin

一个自举式「一切皆插件」编译器:它本身是一个 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。

  1. 编辑 $DSH_HOME/profiles/web/package.json,在 dependencies 增加:
    "dsh-foundry": "link:/绝对路径/dsh-foundry"
    
    并在 dsh.profile.bundles 数组加入 "dsh-foundry"。
  2. 在 profile 目录安装:
    cd $DSH_HOME/profiles/web && pnpm install
    
  3. 重启 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 →

← 上一个 Prev dsh-worktree 下一个 Next dsh-permissions →