zhn1100/dsh-forge
可复现的DeepSeek Harness插件开发环境
Project Overview项目介绍
DSH Forge is a standalone plugin development environment built exclusively for DeepSeek Harness (DSH), hosted at the zhn1100/dsh-forge GitHub repository under the permissive open-source MIT license. It consolidates the entire plugin development workflow—including source reference, runtime checking, experiment logging, validation, and release formalization—into a reproducible Forge Profile that runs entirely separately from your daily DSH environment. This intentional isolation prevents development-related changes and messy experiments from polluting your stable main DSH setup.
This tool is built for DSH plugin developers, offering a dedicated isolated workspace, a local index of official DSH source code and documentation, and a complete toolchain for plugin development. It lets developers track and manage resumable plugin experiments, and offers multiple validation levels ranging from quick checks to full builds before publishing. On each startup, it safely syncs user configurations from the main DSH environment and mirrors any out-of-tree plugins loaded in the main profile, so developers can reuse existing setups without risking changes to their main DSH installation.
To install DSH Forge, you first need to have Node.js version 22.19.0 or higher, or any version 24 and above, plus the pnpm package manager installed on your system. The installation process requires cloning the GitHub repository, running pnpm install to install dependencies, then pnpm run verify to check the environment, and finally node lib/cli.js install to complete setup. DSH Forge installs to ~/.dsh-forge by default and never touches your main ~/.dsh directory. While it provides strong isolation for development, it is not a full security sandbox, and dynamically loaded Cordis packages remain within the explicit trust boundary.
DSH Forge 是专门面向 DeepSeek Harness(DSH)的独立插件开发环境,项目托管在 GitHub 仓库 zhn1100/dsh-forge,采用 MIT 许可开源。它将插件开发全流程中的源码参考、运行时检查、实验记录、验证和正式化发布流程整合为可复现的 Forge Profile,同时可与开发者日常使用的 DSH 环境完全隔离,避免开发调试过程污染主环境配置。
它面向 DSH 插件开发者,提供了独立的开发工作空间、本地源码文档索引和完整开发工具链,支持开发者管理可恢复的插件实验状态,提供从快速到完整的多等级验证流程。每次启动时会安全同步主 DSH 环境的用户配置,同时镜像主环境加载的外部插件,既能复用现有配置又不会破坏 Forge 本地的开发修改。
项目要求依赖 Node.js ^22.19.0 版本或 24 及以上版本,以及 pnpm 包管理器。安装通过克隆 GitHub 仓库后,依次执行 pnpm install、pnpm run verify 和 node lib/cli.js install 完成,默认安装到 ~/.dsh-forge 目录,不会写入主 DSH 环境目录。它提供隔离开发和可恢复能力,但不提供强安全沙箱,动态 Cordis 包仍属于显式信任边界。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-forge(zhn1100/dsh-forge)
仓库:https://github.com/zhn1100/dsh-forge
本站详情页:https://www.yhbd.top/plugins/zhn1100-dsh-forge/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-16 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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:zhn1100/dsh-forge
把 zhn1100/dsh-forge 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH Forge
面向 DeepSeek Harness 的独立插件开发环境。它把源码参考、运行时检查、实验记录、验证和正式化流程收进一个可复现的 Forge Profile,同时避免污染日常使用的 DSH 环境。
当前版本针对
@deepseek-ai/dsh@0.1.0-rc.6,参考源码固定在官方提交47f943859bef60e4160492346772ded9b24f765a。本项目不是 DeepSeek 官方项目。
能做什么
- 建立独立的
~/.dsh-forgeHome、forgeProfile 和开发者 Agent Preset。 - 本地索引 Harness 文档、源码符号、Service、事件、工具、Config 和示例。
- 管理可恢复的插件实验、验证状态与 Promotion scaffold。
- 提供受限的
quick、package、full验证流程。 - 每次启动安全同步普通
~/.dsh中的用户配置,同时保护 Forge 本地修改。 - 每次启动镜像普通
~/.dsh各 Profile 通过cordis.patch.ymlinsert声明的 out-of-tree 插件(包目录 + Forge Profile 注册),让主线的插件在 Forge 环境同样可用。 - 使用 SHA-256 内容寻址 tarball 安装自身,避免复用旧包缓存。
- 将 Cordis、System Prompt 和 Tools 保持为宿主提供的可选 peer,避免 Profile 内重复运行时破坏 Symbol 身份。
- 升级时先由 DSH 正常移除旧 Forge 依赖再安装新工件,避免 lockfile 保留旧 peer 绑定。
安装
需要 Node.js ^22.19.0 或 >=24,以及 pnpm。
git clone https://github.com/zhn1100/dsh-forge.git
cd dsh-forge
pnpm install
pnpm run verify
node lib/cli.js install
安装程序不会写入普通 ~/.dsh,默认目标为 ~/.dsh-forge。
启动
在需要开发插件的工作区运行:
DSH_HOME="$HOME/.dsh-forge" npx @deepseek-ai/dsh@0.1.0-rc.6 --profile forge
Forge Profile 默认监听 127.0.0.1:3188(与主线 dsh 的 3080 错开,可同时运行);需要其他端口时用 --port <端口> 覆盖。
打开 Web UI 后选择 DSH Forge 开发者 Preset。
工作区边界
Forge 启动时同步的是 ~/.dsh → ~/.dsh-forge 的用户态数据,不同步当前工作文件夹的源码。
- 从工作区 A 切换到工作区 B,不会复制 A 的代码到 B。
- A、B 的修改互不影响,但共享同一个 Forge 配置和控制面。
forge/、profiles/、.agent-presets/和cordis.patch.yml永不参与 Home 同步(唯一例外:主线 Profile 通过insert声明的 out-of-tree 插件会镜像到~/.dsh-forge/profiles/node_modules/并在 Forge Profile 的cordis.patch.yml注册)。- Forge 侧已修改或删除的文件不会被覆盖;源端删除也不会传播。
同步基线保存在 ~/.dsh-forge/forge/home-sync-manifest.json。如需使用其他上游 Home,可显式设置 DSH_FORGE_SOURCE_HOME。
常用命令
# 环境检查
DSH_HOME="$HOME/.dsh-forge" node lib/cli.js doctor
# 重建指定 Harness revision 的知识索引
DSH_HOME="$HOME/.dsh-forge" node lib/cli.js sync --revision <commit>
# 搜索本地索引
DSH_HOME="$HOME/.dsh-forge" node lib/cli.js search "Service.init"
# 验证当前插件项目
node lib/cli.js verify --root . --level full
完整设计和安全边界见 任务书。
开发验证
pnpm run verify
验证包括类型检查、测试、构建和包结构检查。动态 Cordis Package 仍属于显式信任边界;Forge 提供隔离和恢复能力,但不将其包装成强安全沙箱。
chaojixinren/dsh-reviewer-bot
boe1900/owndsh
0lidaxiang/dsh-plugin-greet
qinyre/dsh-plugin-install
annexwu/dsh-cos