DeepSeek Harness Code(DHSC)v0.1.0-BETA2

August 21, 2026 · View on GitHub

Important

预览版 / Pre-release0.1.0-BETA2 是 DeepSeek Harness Code 的第二个公开预览版,在 0.1.0-BETA1 基础上升级至 @deepseek-ai/dsh@0.1.0-rc.8,并集成 8 个官方格式插件 + MCP/子代理组合 + 全局 Agent 协议。仍标记为预览版,欢迎通过 Issues 反馈。 DeepSeek Harness Code 是社区项目(缩写 DSC / DHSC),并非 DeepSeek 官方发行版,与 DeepSeek 不存在隶属或关联关系。

v0.1.0-BETA2 是指向 083e9acd6ca499eac6a6e5eb5f938b29ddaba6e9 的 annotated tag;GitHub Release 存在。

本版本涵盖的平台

平台产物状态
macOS(macOS 12+,Intel 与 Apple Silicon)Universal DMG✅ 已构建、检查并发布
Windows(Windows 10+,x64 与 arm64)NSIS 安装包(Setup .exe)✅ 已构建并发布
Linux(x64 与 arm64)AppImage / deb✅ 已构建并发布

上表只描述发布资产,不等同于每个架构都做过原生安装并启动。BETA2 的最终 package Run 32363049370 成功;当时 Windows/Linux arm64 仍只有交叉构建覆盖,macOS 主要是静态 DMG 检查。原生执行覆盖与产物构建状态必须分开阅读。

相对 BETA1 的主要变更

  • 运行时升级@deepseek-ai/dsh0.1.0-rc.6 升级至 0.1.0-rc.8--expose-internals 恢复原生 cascaded loader,裸包名保留)。
  • 系统 Node 模型延续:BETA2 延续 BETA1 标记代码已采用的官方系统 Node.js >=22.13 模型;PR #4 合并提交 0d0bb18 是 BETA1 tag 的祖先,且 BETA1/BETA2 的 system-node blob 相同。旧 BETA1 release prose 所称便携 Node 下载属于文档漂移,不是 BETA2 才发生的产品变更。
  • 集成插件从 6 → 8+:新增 dsh-ui-polish(界面焕新,4 分组独立开关)、dsh-updater-check(设置内更新检查)、dsh-prompt-principles(分层提示词注入)、dsh-vision-router@1.7.1(视觉链 + 11 像素工具,OVH 免费兜底)、dsh-better-sidebar@0.12.3(文件/浏览器/终端/Git/任务工作台 + ctx.betterSidebar 服务)、dsh-superpowers(Coding 重型模式门控)、dsh-code-brand(品牌徽标)、app-composition(MCP everything + Context7,subagent codex/claude)。
  • 路由套件不可变build/routing-suite/versions.json 固定 injector 0.3.3 (355238fa...) / mode-boost 0.1.0 (72836d64...) / router-preset 0.2.0 eff787e (a8f3616f...),构建期 SHA-256 校验,移除运行时更新器。
  • 全局 Agent 协议config/global-agent-prompt/protocol.md 随包安装至官方 Harness Home 的 <DSH_HOME>/AGENTS.md(所有权安全,带时间戳备份的菜单切换)。
  • 首次启动竞态修复:合并后残留的两套 Electron 生命周期注册曾让同一主进程启动两个 Watchdog,并让两个 pnpm 安装同时操作补丁目录,偶发 ENOENT unlink 后由另一流程继续启动。BETA2 统一为唯一生命周期入口,并对启动序列加入 single-flight 防护。
  • BETA1 生命周期修复:异常恢复改为 5 秒后首次重试、再以 10 秒退避;Watchdog 完成重启或熔断后退出,避免重复驻留;单实例锁冲突显示可操作界面。这些是产品修复。
  • rc.8 兼容性修复:Harness 从 rc.6 升到 rc.8,并修复 dsh-better-sidebar 对已移除 globalThis.__DSH_MODULES__ 路径的依赖。
  • 打包校验增强scripts/check-runtime-closure.mjs 校验 51 个运行时产物、35 个生产依赖、8 个关键版本、10 个内置插件包及 bare-name patches;scripts/verify-macos-artifact.mjs --universal 校验挂载镜像签名、架构与插件根。

Bug 分类与发布门禁

  • 产品 bug / product bugs:BETA1 的 Watchdog 驻留、单实例锁静默失败、Windows 端口清理竞态,以及 BETA2 合并阶段的重复生命周期/并发 pnpm 安装,均影响用户实际启动与恢复路径;BETA2 的唯一 lifecycle authority、single-flight、退避和 rc.8 适配修复这些问题。
  • CI / 包装门禁 bug:PR #13–#16 修复 tag/ref 可复现性、精确资产名、原生 smoke 用户数据隔离、AppImage exit 127 诊断、deb 依赖/命令路径、清理竞态、冷启动超时和证据新鲜度。这些提高发布证据可信度,不应写成桌面产品功能修复。
  • 覆盖缺口 / coverage gaps:BETA2 最终 CI 全绿不代表全矩阵原生执行。当时只有 Windows x64 NSIS 与 Linux x64 deb 做了真实安装+启动,Linux x64 AppImage 是解包+启动;macOS 是静态 DMG 校验,Windows/Linux arm64 是交叉构建。该缺口由 BETA2-2 候选 workflow 扩展,但在云端证据产生前不能标记为已验证。

已集成的整体能力

  • 官方 Harness 运行时(rc.8):仅回环监听,官方会话/配置/提问协议/持久化不变;--expose-internals + 官方 Home 解析。
  • 桌面宿主(Electron 43.4.0):唯一生命周期入口与 single-flight 启动、启动就绪检查、串行化重启、健康探测(5 s 间隔,3 次失败触发恢复)、渲染器冻结 30 s 重建、独立 Watchdog(首次异常退出 5 s、第二次 10 s,5 分钟内第 3 次熔断)、托盘/菜单、关闭偏好、系统明暗外观(startup.html 单色启动)、快捷键与过渡动画(View Transitions + CSS 回退)。
  • V4 Pro / V4 Flash:官方模型目录、1,000,000-token 上下文、off / high / max 推理强度控制;V4 工具面锚定由 anchored-standard 提供。
  • Skills 系统:官方 Skills 运行时 + 内置 Superpowers 6.2.0 离线技能集 + Coding Mode(subagent/workflow/ralph 门控)+ prompt-principles 分层注入(Standard-like 生效,Minimal/锚定首轮跳过)。
  • Agent 工作流:Standard 预设、Goal、Plan 模式、Todo、Jobs、Workflow、压缩、检查点与持久会话;anchored-standard 渐进式 + router-standard/router-spec 托管预设。
  • 工具集:文件系统读写、Bash/PowerShell、Web、用户提问、审批、子代理、视觉工具(11 项)、交付物;MCP 桥接(everything + Context7)。
  • 诊断与安全:脱敏轮转日志(5 × 10 MB)、应用内日志查看、沙箱渲染器(contextIsolation + sandbox)、校验 IPC、外部导航 allow/open 策略;凭据只留在官方 Harness 设置。
  • 打包与运行:自包含应用(Chromium、Harness、插件、Watchdog 内置),运行于系统官方 Node.js;无 node_modules 随包(asar: false)。

内置模式

模式说明
Standard官方默认标准模式,保持默认行为
anchored-standard(渐进式锚定)首轮仅暴露 bash + str_replace_editor 锚定高质量推理轨迹,随后动态解锁 dev_tool_search/skill_search/skill_load + 显式解锁;失败时安全回落到 Standard
router-standard / router-spec社区路由套件管理的两个预设,双语名称/描述,随包离线快照(eff787e
mode-boost 宿主层内置路由套件的主机平面增强(injector 0.3.3 / mode-boost 0.1.0 / router preset 0.2.0,校验和固定快照)
Superpowers Coding Modeauto/on/off 三态,启发式难度判定 + tools.guard 门控 subagent/workflow/ralph
两级模型选择器 + UI 动效原生两级模型选择(dsh-model2-selector@1.1.0)与界面动效(dsh-ui-motion@1.1.0 + dsh-ui-polish

内置插件与生态

  • 已内置 8+ 集成插件deepseek-harness-desktop-plugindsh-ui-motiondsh-model2-selectordsh-ui-polishdsh-updater-checkdsh-prompt-principlesdsh-vision-routerdsh-better-sidebardsh-superpowers@dsh-external/dsh-super-injector@0.3.3@dsh-external/dsh-mode-boost@0.1.0dsh-find-plugin@0.3.6app-composition
  • 视觉能力dsh-vision-router 提供 vision_describe/vision_ground/vision_detect/vision_crop/vision_pixel_diff/vision_ocr/vision_trace 等 11 工具,内置 OVH 匿名链(Qwen 72B 等 5 模型,2 RPM/模型,理论 ~10 RPM)+ 用户模型优先 + 失败分类重试。
  • 工作台扩展dsh-better-sidebar 暴露 ctx.betterSidebar.registerTab / registerFileViewer,第三方插件可注册侧边栏页面与文件预览器(docs/external-plugin-guide.md)。
  • 插件发现:内置 dsh-find-plugin 在会话内搜索 GitHub dsh-plugin 主题生态(按 Star 排序,返回 dsh plugin add 命令)。

安装说明

  • macOS:本构建未签名(ad-hoc)。将 DeepSeek Harness Code.app 复制到 /Applications 后:

    xattr -dr com.apple.quarantine "/Applications/DeepSeek Harness Code.app"
    

    请勿在系统范围内禁用 Gatekeeper;安装前请阅读完整的未签名安装指南。需系统 Node.js >=22.13(常见位置自动探测)。

  • Windows:运行 DeepSeek-Harness-Code-0.1.0-BETA2-windows-<arch>-setup.exe(可选安装目录)。

  • Linux:解压 AppImage 或安装 deb(dist:linux --x64 --arm64 产物)。

校验信息

  • 构建pnpm dist:mac --universalpreflight:runtime 先行:51 个运行时产物 + 35 个生产依赖 + 8 个关键版本 + 10 个内置插件包 + SHA-256)
  • 验证node scripts/verify-macos-artifact.mjs release/DeepSeek-Harness-Code-0.1.0-BETA2-mac-universal.dmg --universal — 挂载镜像签名、运行时、插件、Mach-O 架构全绿
  • 测试:308 个单元测试通过(3 个按设计跳过)+ 108 个 Anchored + 24 个插件/真实 Harness + 39 个包契约 + 2 个 Playwright E2E;TypeScript、ESLint、Prettier、文档链接与安全契约均通过
  • BETA1 校验(归档)DeepSeek-Harness-Code-0.1.0-BETA1-mac-universal.dmg (221 MB) SHA-256 b1afaa874d00f1254c8d5542c64bc80969a804ad44d3ce96284c0ad73fcf25ce — 见 BETA1 发布说明

已知限制

  • 应用未签名/未公证(macOS),首次运行需要用户显式信任与清除隔离属性。
  • 自动更新发布通道尚未落地:本次 GitHub Release 不发布 update-manifest.json 或 macOS 更新 ZIP;dsh-updater-check 仅提供设置内检查入口,不能从 BETA2 直接完成下一版替换安装。
  • V4 Pro 锚定增益仍属实验性,需用户自有 Provider 凭据的配对实验验证(本项目不包含任何凭据)。
  • 上游为 developer preview,兼容性可能随版本变化;已通过固定版本与窄适配器隔离。

反馈

欢迎通过 GitHub Issues 反馈问题与建议。发布说明同时收录于仓库 docs/releases/


DeepSeek Harness Code (DHSC) v0.1.0-BETA2 — Integrated Preview

Important

Preview: 0.1.0-BETA2 advances BETA1 to @deepseek-ai/dsh@0.1.0-rc.8 with 8+ integrated plugins, MCP/subagent composition, and the Global Agent Prompt. Still marked as preview; issues welcome via Issues. Community project, not affiliated with DeepSeek.

Platforms

PlatformArtifactStatus
macOS (macOS 12+, Intel & Apple Silicon)Universal DMG✅ Built, inspected, and published
Windows (Windows 10+, x64 & arm64)NSIS Setup .exe✅ Built and published
Linux (x64 & arm64)AppImage / deb✅ Built and published

Final package Run 32363049370 succeeded. That green result must not be read as native execution of every architecture: Windows/Linux arm64 were cross-build coverage and macOS was primarily static DMG inspection.

Integrated capabilities

  • Official Harness rc.8 loopback service, Standard + anchored-standard + router-standard/router-spec + Coding Mode
  • Electron 43 host with a single lifecycle authority and single-flight startup, health probes (5 s, 3 failures → recovery), renderer freeze recovery (30 s), and Watchdog recovery (5 s/10 s, circuit on 3rd abnormal exit in 5 min)
  • 8+ plugins (desktop, ui-motion 1.1.0, model2 1.1.0, ui-polish, updater-check 1.0.0, prompt-principles, vision-router 1.7.1, better-sidebar 0.12.3) + composition + superpowers
  • Immutable routing snapshot (injector 0.3.3 / mode-boost 0.1.0 / router-preset eff787e, SHA-256 pinned), Superpowers 6.2.0, Global Prompt
  • Vision chain (11 pixel tools, free OVH fallback) + sidebar workbench with plugin service API

Reliability and verification

  • Fixed a first-launch race where duplicate lifecycle registration could start two Watchdogs and two pnpm installs against the same runtime patch directory, producing a transient ENOENT unlink error before the competing install completed.
  • Product fixes also replaced BETA1's resident Watchdog/1-second retry behavior with bounded 5-second/10-second recovery and actionable lock-conflict UI, and moved Harness from rc.6 to rc.8 with better-sidebar compatibility.
  • Verified 51 runtime artifacts, 35 production dependencies, 8 critical runtime versions, and 10 bundled plugin packages.
  • Passed 308 unit tests (3 intentionally skipped), 108 Anchored tests, 24 plugin/real-Harness tests, 39 package-contract tests, and 2 Playwright E2E tests, plus TypeScript, ESLint, Prettier, documentation-link, and security checks.
  • PRs #13–#16 hardened tag/ref, artifact-name, AppImage/deb, cleanup, timeout, and evidence-freshness gates. Those are CI/release-pipeline repairs. Native arm64 and dual-architecture macOS installed-runtime execution remained a coverage gap in this release.

Install notes

  • macOS unsigned (ad-hoc): xattr -dr com.apple.quarantine "/Applications/DeepSeek Harness Code.app" — do not disable Gatekeeper globally — requires system Node >=22.13
  • Windows: DeepSeek-Harness-Code-0.1.0-BETA2-windows-<arch>-setup.exe
  • Linux: AppImage / deb from dist:linux

Known limitations

  • Unsigned / not notarized; the auto-update release channel is not shipped (update-manifest.json and the macOS update ZIP are absent, so the settings check cannot replace BETA2 with the next version); V4 anchoring remains experimental; upstream is a developer preview.