rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:westhack/deepseek-harness-desktop
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A desktop client for DeepSeek Harness, built with Electron 39 + Vue 3 + Naive UI
English | 简体中文
DeepSeek Harness Desktop is a cross-platform desktop client built on the Electron 39 + Vue 3 + Naive UI stack, using the ElectronEgg (ee-core) framework to organize main-process lifecycle and automatic IPC loading. The app bundles a Node.js 24.18.1 LTS runtime, hosts the official @deepseek-ai/dsh as a subprocess, and loads its dsh web UI inside a sandboxed BrowserWindow.
Compared to running npx @deepseek-ai/dsh web directly, this project packages the entire workflow — installing Node, configuring npm, opening a terminal, managing the process — into a regular desktop app that users can launch with a double-click.
This is a community-maintained project with no affiliation to DeepSeek. The app does not modify any code, data, or behavior of the official DSH; DSH runs under its own license.
--port 0; the actual address is parsed from stdout to avoid port conflicts┌─────────────────────────────────────────────────────────┐
│ Renderer Process (Vue 3) │
│ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Version Manager (Naive UI) │ │
│ │ - Version card grid / install progress / │ │
│ │ registry switch / language switch │ │
│ │ - Reactive state management (reactive) │ │
│ │ - i18n en/zh copy │ │
│ └──────────────────────────────────────────────────┘ │
└────────────────────────┬────────────────────────────────┘
│ contextBridge (controlled API)
│ window.dshDesktop.*
┌────────────────────────▼────────────────────────────────┐
│ Main Process (Electron 39) │
│ │
│ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │
│ │ Bundled │ │ Version │ │ Process │ │
│ │ Node.js │ │ Manager │ │ Supervisor │ │
│ │ 24.18.1 LTS │ │ npm install │ │ spawn dsh web │ │
│ │ │ │ switch/verify│ │ parse port │ │
│ └─────────────┘ └──────────────┘ └────────────────┘ │
│ │
│ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │
│ │ System Tray │ │ App Updater │ │ IPC Registry │ │
│ │ menu/tooltip│ │ electron- │ │ ipcMain.handle │ │
│ │ │ │ updater │ │ │ │
│ └─────────────┘ └──────────────┘ └────────────────┘ │
└────────────────────────┬────────────────────────────────┘
│ BrowserWindow.loadURL
│ http://127.0.0.1:random port
┌────────────────────────▼────────────────────────────────┐
│ DSH Window (sandboxed) │
│ │
│ Official dsh web page │
│ - contextIsolation: true │
│ - sandbox: true │
│ - No Electron / Node.js API exposed │
└─────────────────────────────────────────────────────────┘
The main process exposes a controlled API (window.dshDesktop) to the version manager renderer via contextBridge.exposeInMainWorld; the DSH window only loads a local 127.0.0.1 URL with no preload script injection.
| Layer | Technology | Purpose |
|---|---|---|
| Desktop framework | Electron 39 | Cross-platform desktop runtime |
| App framework | ee-core (ElectronEgg) | Main-process lifecycle, IPC auto-loading, config layering |
| Frontend framework | Vue 3 + Vite | Renderer UI with hot reload |
| UI library | Naive UI | Version manager UI components |
| Runtime | Node.js 24.18.1 LTS | Bundled runtime for DSH subprocess |
| State management | Vue reactive | Lightweight reactivity (no Pinia) |
| Version comparison | semver | DSH version validation and sorting |
| App updater | electron-updater | GitHub Releases check and install |
| Persistence | write-file-atomic | Atomic config file writes |
| Process management | child_process.spawn | DSH subprocess start/stop and stdout monitoring |
dsh web subprocess via the bundled Node.jsAfter launch, a tray icon appears. Right-click to access three items:
| Menu item | Action |
|---|---|
| DeepSeek Harness | Show the DSH workspace window (available while DSH is running) |
| Version Manager | Show the version manager main window |
| Quit | Quit the app; any running DSH process is stopped automatically |
Single-click the tray icon: shows the DSH workspace window if available, otherwise the main window.
Grab the installer for your system from GitHub Releases:
| System | Installer |
|---|---|
| macOS Apple Silicon | *-arm64.dmg |
| macOS Intel | *-x64.dmg |
| Windows 10/11 x64 | *-Setup-x64.exe |
DSH install location (does not pollute the global environment):
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/dsh-desktop/dsh-versions/ |
| Windows | %APPDATA%\dsh-desktop\dsh-versions\ |
Each version lives in its own subdirectory. Delete the directory to uninstall that version.
npm install
npm run prepare:runtime # download bundled Node.js 24 and DSH
npm run dev # launch Electron + frontend hot reload
npm run build-m-arm64 # macOS Apple Silicon
npm run build-m # macOS Intel
npm run build-w # Windows x64
Build artifacts are written to build/out/.
electron-egg/
├── electron/ # Electron main process
│ ├── config/
│ │ └── config.default.js # app config (sandbox, window, lifecycle)
│ ├── preload/
│ │ ├── bridge.js # DSH API bridge (contextBridge, controlled API)
│ │ └── lifecycle.js # app lifecycle preload
│ ├── service/
│ │ ├── dsh/
│ │ │ ├── manager.js # main manager: windows, tray, menu, IPC
│ │ │ ├── controller.js # business orchestration: version select, start/stop, registry
│ │ │ ├── version-manager.js # npm install, version resolution, atomic install
│ │ │ ├── dsh-supervisor.js # DSH subprocess spawn, stdout parsing, exit handling
│ │ │ ├── registry.js # npm catalog query
│ │ │ ├── state-store.js # config persistence (write-file-atomic)
│ │ │ ├── runtime-paths.js # bundled Node.js path resolution
│ │ │ ├── network-proxy.js # network proxy detection and config
│ │ │ └── menu-copy.js # en/zh menu and tray copy
│ │ └── desktop-updater.js # app self-update (electron-updater)
│ └── shared/
│ ├── contracts.js # shared constants & validation (version, locale, registry)
│ └── ipc-channels.js # IPC channel constants
├── frontend/ # Vue 3 frontend
│ └── src/
│ ├── views/dsh/
│ │ └── Manager.vue # version manager page (Naive UI)
│ ├── store/dsh.js # reactive state management
│ ├── utils/i18n.js # en/zh copy and localization utils
│ └── router/ # route config
├── public/ # static assets (logo, etc.)
├── build-resources/ # build resources (bundled Node.js, DSH)
└── scripts/ # build helper scripts
This project only takes responsibility for runtime management, version management, and process hosting. It will never:
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。