Agent Worker MCP — Development skill for Claude Code
DSH MCP worker: 让 Codex/ChatGPT/Claude Code 把执行类工作委派给本机 DSH(DeepSeek)的 MCP 服务.
How to install Agent Worker MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tongsh6/agent-worker-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Worker MCP does
DSH MCP worker: 让 Codex/ChatGPT/Claude Code 把执行类工作委派给本机 DSH(DeepSeek)的 MCP 服务.
Alternatives in Development
- Dsh Plugin Cc — Bridge Deepseek-harness into Claude Code for review, critique, delegation, and session import 80 ★
- Dsh Usage — 🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-chan 74 ★
- SpecFusion — 在 DeepSeek Harness / Claude Code / Cursor / Codex / Gemini CLI 里直接搜索 20 个中国开放平台的 65,600+ 篇 API 文档;零配置,支持 Skill 66 ★
README
agent-worker-mcp
把本机**多个 coding agent(DSH、Kimi Code CLI)**统一暴露成一个 **MCP worker**,让 **Claude Code / Codex CLI / ChatGPT(桌面)/ Claude Desktop** 这些 leader 把重活派给它,并**按任务选择执行体**。
角色模型:leader(决策、编排)通过 MCP 调用 worker;worker 按任务选择执行体(`backend=dsh|kimi`,默认 dsh),在真实项目目录里执行长任务(读代码、改文件、跑命令、跑测试),只回传结果与**可验收的证据**。
为什么做这个
**用便宜额度换贵额度。**
leader(Claude Code / Codex / ChatGPT)的额度是稀缺且昂贵的订阅资源,烧在「读 5 个文件改 1 行」「跑 12 轮测试」上极不划算;而执行密集的工作恰好是 token 消耗的大头,且**绝大多数中间信息用完即弃**。
所以这里做的是:把 leader 的额度只留给**决策与验收**,把执行交给按量计费的执行体(DSH / Kimi Code)。第一次 A/B 实测:加速 **2.29x**、leader token 省 **46.0%**、cost 省 **31.1%**(见 `measure-runs/`)。
两条推论直接决定了设计:
- 省额度不能以质量为代价 → 必须回传可验收的
evidence(命令退出码、变更文件、diff),leader 靠事实验收而不是靠 worker 的叙述; - 交接本身有成本 → 一个
worker_run必须是一个可独立验收的工作单元(实现 + 自测 + 证据),禁止微任务,否则省下的额度会在往返里赔回去。
现状(本地已验证)
| 项 | 状态 |
|---|---|
| 单元测试 | ✅ 216/217 通过(pnpm test;1 项 Windows-only 用例在 macOS/Linux 跳过) |
| 真实链路烟测 | ✅ MCP Client → worker → 真实 DSH:问答 + 写文件(hello-dsh.txt)全链路通过 |
| 长驻后端(M1) | ✅ 默认 backend=sdk:真实烟测首任务 9s(含一次初始化)、第二任务 3s;大仓库真实任务 18.4s(含 initialize);headless 保留为 fallback |
| 远程传输(M2a) | ✅ WORKER_TRANSPORT=http:真实 HTTP 冒烟通过(/healthz 200、无 token 401、MCP HTTP 客户端跑真实任务 8s) |
| 审批桥(M2b) | ✅ worker_result 检测审批阻断 → elicitation 询问授权 → 以 danger-full-access 重试(4 个单测覆盖;真实 DSH 审批场景未端到端实测) |
| 运维治理(M3) | ✅ 任务 TTL 自动清理 + 数量上限(超额淘汰最老已结束任务)、每仓库并发配额、审计日志(worker_audit)、任务列表(worker_tasks)、完整产物分页读取(worker_read_result) |
| 批量/检索/观测(M4) | ✅ worker_batch_run/status/result 批量派发与聚合、worker_search 历史任务内容检索、worker_metrics 指标快照、轻量 OTel span 导出(真实冒烟捕获到 2 条 dsh.task span) |
| 编码与写文件 | ✅ workspace-write 中文 UTF-8 写入/读回(字节 E4 B8 AD…);read-only 中文输出经 worker 自动双层兼容修复后回归正常(实测 read-only / workspace-write 均返回 中文探针:你好、无 �) |
| Windows ACL 沙箱降级(v0.6.6 → v0.9.2) | ✅ 公司仓库等「仅 Modify ACL」目录请求 workspace-write 时会遇 SetNamedSecurityInfoW failed (Win32 5): grantWrite;worker 按 worktree(workspace-write)→ danger-full-access 两级兜底,worker_result.sandbox_fallback/`effective |
Related Skills
Plugin Dsh Worker
Puente Claude Code <-> DeepSeek Harness: delega tareas a DSH y usa sus workers (Agent Teams) desde Claude Code
Deepseek Worker
Path-based MCP bridge & cross-worktree handoff board for Claude Code, Google Antigravity, and DeepSeek API
Wtagent
Turn ChatGPT Web (including Pro) into Codex. Turn Claude Web into Claude Code. Also DeepSeek, Gemini, Grok, Ki
Dsh Baton
Pass the baton from Claude Code or Codex to a local DeepSeek Harness. An MCP server that hands off tasks and b
Dsh Movein
Migrate Claude Code setup into DeepSeek Harness. Import skills, commands, agents, hooks, permission rules, and
Dsh Agent Plugins Market
One-stop skills, subagent, MCP and LSP manager for DeepSeek Harness (DSH) — compatible with Claude Code, Codex
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,
CLI Subagents Codex
Runs a task in OpenAI Codex (codex exec) on one of the user's ChatGPT accounts (CLI Subagents). The worker rea