deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
English | 简体中文 · Live site · Architecture
A control plane for dispatching coding work across machines and agent runtimes from one DSH conversation.

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.
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:
dsh-alpha is a plugin for DSH (DeepSeek Harness). It coordinates existing provider CLIs; it does not replace their installation, authentication, or security controls.
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.
| Capability | What it changes |
|---|---|
| Global workspace inventory | One repository can be recognized across several machines and local paths. |
| Repository-aware scheduling | Prefer a Worker that already has the repository; clone on demand only inside an allowed root. |
| Per-turn Worker controls | Select Agent, model, reasoning effort, and permission mode without leaving the conversation. |
| Event-driven results | Dispatch once, wait on events, and resume with the same durable task ID after interruption. |
| Approval handoff | Worker approval requests return to the active Alpha session instead of hanging invisibly. |
| Reverse gateway | Workers connect to the master through authenticated WebSocket sessions and reconnect automatically. |
| Operational tooling | Web sidebar, headless runner, status CLI, Worker doctor, and multi-device acceptance checklist. |
0.1.0-rc.8 or newerdsh plugin)dsh --version
pnpm --version
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.
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.
Set TYPESAFE_API_KEY and DSH_ALPHA_JEV_ROUTING=1 in the master process to let Jev choose the workspace, Agent, and model for new requests without an Agent selected in the UI. A selected Agent still dispatches directly. The task engine continues to enforce the UI scope, model capabilities, filesystem boundaries, and approvals. Uncertain decisions, timeouts, and service failures fall back to the existing master LLM.
Keep the key in the master environment, outside the repository. DSH_ALPHA_JEV_ENDPOINT can point to an HTTPS service implementing the full TypeSafe v1/systemone Choice response, including choice, confidence, and probabilities. The confidence thresholds are provisional; assess routing accuracy, fallback rate, and latency on representative requests before rollout.
For source testing, load the local configuration with node --env-file=.env. Placing .env in the directory alone does not change the environment of a running master process.
git clone https://github.com/songofhawk/dsh-alpha.git
cd dsh-alpha
npm install
npm run setup
npm test
Configure one token per Worker on the master:
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:
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.
The default scans every supported runtime and advertises those with an available executable. DSH_ALPHA_WORKER_PROVIDERS is an optional override to restrict candidates.
| Provider ID | Runtime | Discovery |
|---|---|---|
codex |
Codex app server / CLI | Automatic |
claude-code |
Claude Code headless | Automatic |
kimi-code |
Kimi ACP | Automatic |
dsh |
DSH headless profile | Automatic |
zcode |
Zhipu ZCode headless | Automatic |
opencode |
OpenCode ACP | Automatic |
qoder |
Qoder headless | Automatic |
workbuddy |
Tencent WorkBuddy via codebuddy | Automatic |
Automatic discovery checks executable availability; each runtime still needs separate authentication and a real-task check. mock exists for tests and local diagnostics only.
The dsh provider runs dsh --profile headless in the Worker's target directory and uses that machine's headless profile default model. This entry point returns final text only; per-turn model overrides and forwarding DSH's internal approvals to the master are not yet supported.
list_workspaces resolves the logical repository and its machine locations.list_agents exposes availability, capabilities, load, and workspace affinity.dispatch_task returns a durable taskId; wait_task follows the event stream without busy polling.agent_approve or agent_cancel resolves Worker approvals in the current Alpha session.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.
dsh-alpha status
dsh-alpha web
dsh-alpha run "summarize the current workspace"
dsh-alpha-worker-doctor
dsh-alpha-worker
npm test
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.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。