zhn1100/dsh-forge 预览 preview

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 包仍属于显式信任边界。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 铁砧图标

DSH Forge

面向 DeepSeek Harness 的独立插件开发环境。它把源码参考、运行时检查、实验记录、验证和正式化流程收进一个可复现的 Forge Profile,同时避免污染日常使用的 DSH 环境。

当前版本针对 @deepseek-ai/dsh@0.1.0-rc.6,参考源码固定在官方提交 47f943859bef60e4160492346772ded9b24f765a。本项目不是 DeepSeek 官方项目。

能做什么

  • 建立独立的 ~/.dsh-forge Home、forge Profile 和开发者 Agent Preset。
  • 本地索引 Harness 文档、源码符号、Service、事件、工具、Config 和示例。
  • 管理可恢复的插件实验、验证状态与 Promotion scaffold。
  • 提供受限的 quick、package、full 验证流程。
  • 每次启动安全同步普通 ~/.dsh 中的用户配置,同时保护 Forge 本地修改。
  • 每次启动镜像普通 ~/.dsh 各 Profile 通过 cordis.patch.yml insert 声明的 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 提供隔离和恢复能力,但不将其包装成强安全沙箱。

License

MIT

← 上一个 Prev dsh-weixin-clawbot 下一个 Next dsh-deeplink →