Preface¶
When orchestrating with DeepSeek Harness (DSH), conversations, plans, and context usually remain in the main session. However, when encountering refactors across many files, running tests for long periods to fix failures, or wishing to switch to a different model for an independent review of the output, the common practice is to manually copy and paste between DSH and another CLI window. This interrupts focus and risks turning actual error messages into paraphrased descriptions. The DSH ecosystem also has built-in subagents and official optional product providers, but by design, they lean towards being “one-shot”: new process, new thread, one run, without the continuity of the same worker or a persistent job ledger.
Below is an introduction to the community plugin dsh-external-workers (maintained by piecuzwhynot), which delegates long-running tasks to Claude Code, Codex CLI, and Antigravity CLI (agy) via their official product CLIs and your subscription login. Each lane retains an independent persistent session, and job state is persisted to disk, remaining accessible and resumable even after conversation compression or harness restarts.
What is this¶
dsh-external-workers is a native DSH plugin (npm package name dsh-external-workers, current repository package.json version 0.3.1, license MIT). Its positioning can be summarized as: DSH remains the brain for conversation and orchestration, while external workers are “one self-contained task at a time” expert lanes. Handoffs rely on task packets and on-disk job records, rather than humans acting as porters or relying on single-window memory.
The plugin is categorized as Workflow in the SkillHub directory; the GitHub repository is at piecuzwhynot/dsh-external-workers. The DSH community directory is an independent site and has no official affiliation with DeepSeek / High-Flyer. Please read the source code and license yourself before installing and using—the plugin runs with the current dsh process permissions.
Core Features¶
Six Tools and Extensibility by Product¶
The plugin registers 6 tools to the session; for every custom product declared in the config, an additional delegate_<product> tool is added:
| Tool | Function |
|---|---|
delegate_claude |
Delegates tasks to a Claude Code worker |
delegate_gpt |
Delegates tasks to a Codex CLI worker |
delegate_google |
Delegates tasks to an Antigravity CLI (agy) worker |
check_external_job |
Reads job status, results, artifacts, and errors from disk |
resume_external_job |
Continues a blocked or failed job within the same worker session |
worker_config |
Lists actually available models for each product, manages lanes (roles, models, tiers, speed) |
Lanes and Persistent State¶
- Each lane corresponds to a product + model (and effort / speed, etc.) + role description, possessing an independent persistent session and working directory (default
~/.dsh/workers/<lane id>). - Jobs and lane metadata are written to the DSH storage domain (
external_workers→$DSH_HOME/storages/external_workers.json), not in the conversation context. Upon delegation, ajobs/<id>/packet.md(containing inline files, logs, acceptance criteria, etc.) is generated, and artifacts are convention-placed injobs/<id>/out/. - Failure states distinguish between
blocked(CLI missing / not logged in) andretryable(quota, timeout, process exit, etc.), preventing worker crashes from being silently swallowed. - The web interface provides a job status bar and drawer (Lanes / Jobs tabs) above the input box; it does not render when there are no jobs, and undelegated sessions are unaffected.
Differences from Built-in Subagents (Design Orientation)¶
The official optional subagent provider documentation explicitly states: no continuation, resume, pooling, progress stream, or product-session persistence. This plugin is designed for “repeated use of the same worker”: it defaults to continuing on the same session and works with a disk ledger to restore readable state after restarts or compression. The worker’s own long threads may still undergo internal compression; the plugin guarantees handoff and job record persistence, not that the worker’s internal memory will never be lost.
Codex Quota and Credits¶
Before dispatching work, delegate_gpt reads local Codex rollout usage (without network access). It can intercept and require confirmation when the 5-hour or weekly window reaches quota.warnAtPercent (default 90). If the plan is exhausted and credits will be charged, a separate allow_credits: true is required. For Claude / Antigravity, the plugin does not fabricate quota numbers; hard limits may still manifest as retryable + failureKind: quota.
Other Capabilities (Summary)¶
- Session-scoped Mounting: Can exclude presets, workspaces, or session IDs; excluded sessions retain unchanged tool directories and system prompts, and do not fall back to global registration.
- Custom Products: In addition to the three hand-written adapters, you can describe arbitrary agent CLIs in
config.jsonunderproducts. You can also connect to OpenAI-compatible HTTP APIs viaexamples/api-lane.mjs(no file tools, suitable for text-based deliverables). - Session Scope: Requires web profile (relies on the storage domain provided by
dsh-web-app).
Installation and Activation¶
Prerequisites: DeepSeek Harness web profile, Node ≥ 22.19, and at least one worker CLI installed and logged in (e.g., claude auth login, codex login, or agy installed per README). The plugin does not create API keys or perform browser automation.
Install from Release (command provided in README, URL does not contain version number):
dsh plugin --profile web add --force \
https://github.com/piecuzwhynot/dsh-external-workers/releases/latest/download/dsh-external-workers.tgz
Pinned version example (README uses v0.3.0 as an example):
dsh plugin --profile web add --force \
https://github.com/piecuzwhynot/dsh-external-workers/releases/download/v0.3.0/dsh-external-workers-0.3.0.tgz
Local directory or tarball:
dsh plugin --profile web add link:C:/path/to/dsh-external-workers
dsh plugin --profile web add file:/path/to/dsh-external-workers-0.3.0.tgz
Restart the harness (dsh web) after installation. In a new session, ask the agent to “list your external worker tools,” and you should see all 6. Verification and uninstallation:
dsh plugin --profile web list
dsh plugin --profile web remove dsh-external-workers
Typical Usage¶
Configuration can be modified via Settings → External Workers, the config.json beside the package, or via the worker_config tool; both point to the same set of lane logic.
Quick Start (README conversation example, can be spoken directly in DSH):
- First check models and create lanes, e.g.: “List available models for the three external workers”; “Open two lanes for gpt: quick using gpt-6-luna/medium + speed priority, deep using gpt-6.1-sol/xhigh + speed priority; keep claude on opus/high for UI”.
- Name the lane when delegating, e.g.: “Have gpt in the deep lane change this code to async, put the output in its own folder, then you read it out and apply it to my project”.
- Later in any session: “Check external jobs”.
Lane configuration snippet (from README, lanes example):
"lanes": [
{ "id": "main", "worker": "claude", "role": "example lane: planning and code review", "model": "opus", "effort": "high", "speed": null },
{ "id": "quick", "worker": "gpt", "role": "example lane: fast edits and scripted chores", "model": "gpt-6-luna", "effort": "medium", "speed": "priority" },
{ "id": "deep", "worker": "gpt", "role": "example lane: the heavy model work", "model": "gpt-6.1-sol", "effort": "xhigh", "speed": "priority" },
{ "id": "research", "worker": "google", "role": "example lane: research and data gathering", "model": "gemini-3.1-pro-high", "effort": "high", "speed": null }
]
For more complete usage and troubleshooting, see the repository docs/USAGE.zh.md.
Use Cases and Caveats¶
Suitable for: Users who already pay for Claude Code / ChatGPT (Codex) / Antigravity subscriptions and want DSH to orchestrate conversations while handing “long, self-contained, second-opinion” tasks to the corresponding CLI agents; need for the same lane to continue across multiple delegations; need to still be able to check_external_job / resume_external_job after harness restarts or main session compression.
Cautions:
- Workers start from zero context; the quality of the task packet determines the effectiveness. Ambiguous discussions should stay in DSH. Workers cannot ask you questions.
- Lanes default to working in
~/.dsh/workers/<id>, not in your project directory; merging artifacts into the project is an intentional second step (or balancing session continuity viacwd). - Automatic re-briefing after a worker session is found to be compressed is not yet automated; manual
resume_external_jobor a new packet is required. The plugin guarantees state recovery, not automatic hounding. - When running multiple lanes in parallel, apply a shared handoff directory or the same checkout, or single-writer per domain, to avoid each lane holding a conflicting “truth”.
- Please review the source code and MIT license before installation; plugin capabilities are constrained by each CLI’s permissions, sandbox, and subscription quotas. Be mindful of the gate parameters for Codex credit consumption.
Conclusion¶
In the DSH “everything is a plugin” ecosystem, dsh-external-workers fills the gap of persistent external lanes + on-disk job ledgers: the brain continues with cheap conversation, expensive subscriptions are spent only on long tasks that truly require CLI agent autonomy, and the cost of humans acting as “wires” and “memory” is reduced.
- Directory Page: https://www.skillhub.cn/plugins/piecuzwhynot/dsh-external-workers
- Source Code & Docs: https://github.com/piecuzwhynot/dsh-external-workers