鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-alpha

DSH 的多机多 Agent 编排与控制平台:发现各设备上的 Agent 与工作区,按机器、仓库、能力和负载将任务路由到本地或远程 Agent Runtime,统一回传进度、审批与结果,并在断线后恢复持久任务。

远程移动端
访问 GitHub
文档README

dsh-alpha

English | 简体中文 · Live site · Architecture

A control plane for dispatching coding work across machines and agent runtimes from one DSH conversation.

dsh-alpha product demo

The demo uses an isolated environment. Machine, workspace, and path information is redacted.

The square launch film on the project site was rendered locally with the open-source HyperFrames framework.

Why dsh-alpha

Coding agents are useful on their own, but real work quickly spreads across laptops, build hosts, GPU machines, and repositories that live at different paths. dsh-alpha adds the missing control plane:

  • see which machines and agents are online;
  • treat the same Git repository on different machines as one logical workspace;
  • route a task to the right machine, runtime, model, and permission mode;
  • stream progress, approvals, cancellation, and results back into the same conversation;
  • reconnect and recover durable task history when a Worker temporarily disappears.

dsh-alpha is a plugin for DSH (DeepSeek Harness). It coordinates existing provider CLIs; it does not replace their installation, authentication, or security controls.

Mental model

▼
text
复制代码
DSH Web / headless master ├─ global workspace inventory ├─ agent capability and load catalog ├─ task / approval / recovery state └─ reverse WebSocket gateway ├─ Worker A → Codex / Claude Code ├─ Worker B → Kimi Code / ZCode └─ Worker C → OpenCode / Qoder / WorkBuddy

Workers connect outward to the master, so they do not need public IP addresses. Repository identity is separated from machine-local paths, and execution remains constrained to each Worker's explicit allowed roots.

Highlights

CapabilityWhat it changes
Global workspace inventoryOne repository can be recognized across several machines and local paths.
Repository-aware schedulingPrefer a Worker that already has the repository; clone on demand only inside an allowed root.
Per-turn Worker controlsSelect Agent, model, reasoning effort, and permission mode without leaving the conversation.
Event-driven resultsDispatch once, wait on events, and resume with the same durable task ID after interruption.
Approval handoffWorker approval requests return to the active Alpha session instead of hanging invisibly.
Reverse gatewayWorkers connect to the master through authenticated WebSocket sessions and reconnect automatically.
Operational toolingWeb sidebar, headless runner, status CLI, Worker doctor, and multi-device acceptance checklist.

Quick start

Requirements

  • Node.js supported by your DSH installation
  • DSH 0.1.0-rc.8 or newer
  • pnpm (used by dsh plugin)
  • the provider CLI you want to run, already installed and authenticated on the machine that executes it
▼
bash
复制代码
dsh --version pnpm --version

DSH Web

▼
bash
复制代码
dsh plugin --profile web add dsh-alpha node ~/.dsh/profiles/web/node_modules/dsh-alpha/scripts/install-preset.mjs dsh web

Open Alpha master from the Web sidebar, choose a workspace or keep automatic routing enabled, then start a conversation.

Headless master

▼
bash
复制代码
dsh plugin --profile alpha add dsh-alpha node ~/.dsh/profiles/alpha/node_modules/dsh-alpha/scripts/install-alpha-profile.mjs dsh --profile alpha "Use list_agents, dispatch a short task, and report the result."

The installer updates only the dsh-alpha managed block and preserves configuration outside it.

Develop from source

▼
bash
复制代码
git clone https://github.com/songofhawk/dsh-alpha.git cd dsh-alpha npm install npm run setup npm test

Add a remote Worker

Configure one token per Worker on the master:

▼
bash
复制代码
export DSH_ALPHA_GATEWAY_HOST=0.0.0.0 export DSH_ALPHA_GATEWAY_PORT=4310 export DSH_ALPHA_GATEWAY_TOKENS='build-1:replace-with-a-long-random-token'

Install and start the Worker on the target machine:

▼
bash
复制代码
npm install dsh-alpha export DSH_ALPHA_HUB_URL='ws://<master>:4310/' export DSH_ALPHA_WORKER_MACHINE_ID='build-1' export DSH_ALPHA_WORKER_TOKEN='replace-with-a-long-random-token' export DSH_ALPHA_WORKER_ALLOWED_ROOTS='/work' ./node_modules/.bin/dsh-alpha-worker-doctor ./node_modules/.bin/dsh-alpha-worker

Use wss:// and network-level source restrictions outside a trusted LAN or VPN. Keep tokens out of repositories, URLs, screenshots, and process logs.

Supported runtimes

The default set is Codex, Claude Code, and Kimi Code. Optional runtimes must be enabled explicitly.

Provider IDRuntimeDefault
codexCodex app server / CLIEnabled
claude-codeClaude Code headlessEnabled
kimi-codeKimi ACPEnabled
zcodeZhipu ZCode headlessOpt-in
opencodeOpenCode ACPOpt-in
qoderQoder headlessOpt-in
workbuddyTencent WorkBuddy via codebuddyOpt-in

Each runtime is installed and authenticated independently. mock exists for tests and local diagnostics only.

Daily workflow

  1. list_workspaces resolves the logical repository and its machine locations.
  2. list_agents exposes availability, capabilities, load, and workspace affinity.
  3. dispatch_task returns a durable taskId; wait_task follows the event stream without busy polling.
  4. agent_approve or agent_cancel resolves Worker approvals in the current Alpha session.
  5. task_status and task_result recover disconnected or historical work.

The Web workspace selector can create a hard machine/workspace constraint. With no manual selection, the scheduler may choose a matching Worker and clone the Git workspace into its allowed root.

Safety defaults

  • Gateway startup fails closed when authentication tokens are missing.
  • Every local and remote path is checked against explicit allowed roots.
  • Clone destinations are chosen by the Worker, never by an arbitrary task path.
  • Web master and headless master must not share one gateway port.
  • Health endpoints expose liveness and Worker counts, not identities or secrets.
  • Worker doctor is read-only and never prints the Worker token.
  • Approval, cancellation, reconnect, and interrupted-task behavior are covered by automated tests.

Useful commands

▼
bash
复制代码
dsh-alpha status dsh-alpha web dsh-alpha run "summarize the current workspace" dsh-alpha-worker-doctor dsh-alpha-worker npm test

Documentation

  • Design and architecture
  • Deployment guide
  • Multi-device acceptance checklist
  • LAN access bundle
  • Vendored adapter notes
  • Launch article: Chinese / English
  • Doco publication: Chinese / English

Project status

Current public source version: 0.2.1. The repository covers local orchestration, reverse-gateway Workers, repository-aware scheduling, recursive masters, approval forwarding, global workspace selection, durable task recovery, and seven production runtime integrations.

Before upgrading a running installation, rerun the matching preset/profile installer and execute the acceptance checklist for every connected machine.

远程移动端

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:songofhawk/dsh-alpha

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-web#packages/dsh-ssh
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
dsh-tether
用 Android/iOS 手机远程使用电脑上的 dsh 完整网页界面,经 iroh 跨网点对点直连,中间不经过任何服务器。
dsh-im-gateway
DeepSeek Harness 聚合 IM 网关:通过微信、飞书、Telegram、Discord、QQ、WhatsApp 等 20+ 聊天平台驱动 agent,支持统一会话、远程审批和交互提问。默认放行所有能给机器人发消息的人,需要限制请配置 allowedUserIds。
dsh-android
在对话里直接操作 Android 设备——模拟器或 USB 手机,完全通过 adb 驱动:20 个 Agent 工具用于流式投屏、Gradle 构建运行、UI 树或 OCR 交互、logcat、进程与内存检查,并附带三键导航面板。
dsh-remote-ssh
类 VSCode Remote-SSH 的 DSH 插件:SSH 连接超算/服务器,内置文件页签直读远程文件、终端页签自动 SSH,远程工作区配单往返合并读与结果缓存,含 12 个会话感知的 remote_ssh_* 模型工具。