dib
已验证 · 实测可装 MaimoryLab
功能简介
DSH-in-Box:DSH运行时和插件打包器。
可用 — 实测通过,早期项目
DSH-in-Box:DSH运行时和插件打包器。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dib
DSH-in-Box packages DeepSeek Harness with a private Node.js runtime and a small Go launcher.
gui targets use the operating system WebView: WebView2 on Windows, WKWebView on macOS, and WebKitGTK on Linux. No browser engine is included. serve targets only start dsh web.
Build
Requirements: Go, pnpm 11.21.0, and network access. GUI launchers also require a C/C++ toolchain for the target. Linux requires the GTK 4 and WebKitGTK 6.0 development packages while building, and their runtime libraries on the destination machine.
go run . -dry-run
go run . -target darwin/arm64
go run . # build every configured target
Because native WebViews use CGO, the simplest six-target release is a build matrix that runs go run . -target "$TARGET" on the matching Windows, macOS, and Linux architecture. Cross builds can set cc and cxx on a target in dib.yaml when a suitable cross-toolchain and target SDK are installed:
targets:
- os: windows
arch: arm64
cc: aarch64-w64-mingw32-gcc
cxx: aarch64-w64-mingw32-g++
Each archive contains dshbox, Node.js, @deepseek-ai/dsh, and packages listed in dsh.plugins. pnpm lifecycle scripts are disabled during packaging; preset plugins should therefore be published as built packages.
Set icon to a 512x512 PNG. dib converts it into the Windows executable/installer/shortcut icon, the macOS app and DMG volume icon, and the Linux desktop/taskbar icon.
icon: icon.png
node.base_url defaults to https://nodejs.org/dist; the example uses npmmirror for networks where nodejs.org is unavailable. The selected source must expose Node's normal v<version>/SHASUMS256.txt layout. Node downloads, the pnpm store, and installed DSH runtimes are reused from cache.
macOS DMG and signing
macos.format: dmg creates an HFS+/LZMA DMG containing DeepSeek Harness.app and an Applications shortcut. HFS+ avoids APFS padding differences between macOS runners. DMG creation requires macOS. Use tar.gz to keep the portable archive layout.
Unsigned builds need no identity:
macos:
format: dmg
sign:
enabled: false
Signed builds sign and verify both the app bundle and final DMG:
macos:
format: dmg
sign:
enabled: true
identity: "Developer ID Application: Example Corp (TEAMID)"
Windows NSIS
windows.format: nsis creates a compressed installer with user or machine scope, architecture and Windows version checks, shortcuts, and an uninstaller. It requires makensis; use zip to keep the portable archive.
Install the packager with brew install nsis on macOS or apt install nsis on Debian/Ubuntu build hosts.
windows:
format: nsis
app_name: DeepSeek Harness
publisher: DeepSeek AI
install_scope: user
The installer uses the system WebView2 runtime and does not bundle a browser engine.
Linux packages
Linux can emit either or both nFPM-backed formats. The packages install the runtime under /opt/dsh, link dshbox into /usr/bin, and add a desktop entry. Building requires the nfpm command.
go install github.com/goreleaser/nfpm/v2/cmd/[email protected]
linux:
formats: [deb, rpm]
package_name: dsh
maintainer: DeepSeek Harness <[email protected]>
depends:
deb: [libgtk-4-1, libwebkitgtk-6.0-4]
rpm: [gtk4, webkitgtk6.0]
Dependency package names vary between distributions; set both lists for the distributions you publish to.
Official releases
Run the Release official DSH workflow manually and enter an exact published DSH version without a leading v. It builds unsigned macOS DMGs, Windows NSIS installers, and Linux DEB/RPM packages for amd64 and arm64, then publishes them under the matching v<dsh-version> GitHub Release. Official release builds always exclude preset plugins.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dib」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:MaimoryLab/dib Headless(CLI)profile:
dsh plugin --profile headless add github:MaimoryLab/dib 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。