DSH Subagent MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DSH Subagent MCPAsk DSH to trace why cancelled requests leave workers running. Read-only, no edits."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Give Codex a DeepSeek coding agent that can read your repo, edit files, and run tests. Ask it another question when it finishes. Check in while it works. Stop it when the plan changes.
Your Codex conversation becomes the place you direct the work. DSH handles the delegated task in its own session.
Built for ongoing collaboration
What you get | |
Standard by default | DSH's native standard preset, including automatic context compaction and tool-result pruning. |
Live in your browser | With the Web adapter installed, tool activity and streamed replies arrive in DSH Web without refreshing. |
Completion handoff | The skill keeps the parent waiting for dependent tasks, then checking artifacts and continuing authorized work. |
A conversation that continues | Ask the same agent to investigate, implement, or verify. Its earlier context stays with it. |
Existing Web sessions | Attach a session started outside the bridge, read its progress, and queue or steer messages into the same conversation. |
Interrupt and redirect | Stop the current task, then give the agent a new direction. |
Workspaces that make sense | Sessions are registered under their working directory in DSH. |
Work survives a disconnect | The local service keeps running when the Codex client closes. Reconnect to check progress. |
Related MCP server: dsh-crew
Get started
You'll need Linux with systemd, Node.js satisfying the package requirement, Codex CLI, and a working DSH installation with provider credentials.
npx -y dsh-subagent-mcp@latest setup --skillNo clone needed. Setup installs the runtime in a persistent user directory, so the service and skill do not depend on the npx cache. Add --web during setup to connect an already initialized DSH Web profile in the same command.
If your DeepSeek key is only in the current shell's DEEPSEEK_API_KEY, add --capture-key to the setup command. See installation and credentials for details.
If you also use DSH Web, initialize its Web profile and install the adapter:
npx -y dsh-subagent-mcp@latest webProfiles with patchReload: live load it automatically; otherwise restart the Web profile after its work finishes. See Web integration and upgrades.
Open a new Codex session and try:
Use $dsh-subagent to review this repository's error handling in read-only mode.
Keep the agent available for follow-up questions.The skill handles the delegation workflow; the MCP server supplies the execution tools. DSH appears in Codex as MCP activity.
From “look into this” to “make the change”
Completion returns through a pending tool call. The parent must keep its turn active; this does not automatically wake an ended conversation. See completion handoff.
An example workflow with the bundled skill:
You → Codex
Use $dsh-subagent to investigate why cancelled requests leave workers running.
Have it trace the code and report what it finds. Don't change files yet.
You → Codex
What has DSH found so far?
You → Codex
Ask that same agent whether the timeout path has the same problem.For an agent given permission to edit:
You → Codex
Have DSH implement the agreed fix and run the relevant tests.
You → Codex
Stop it. We've changed the approach. Wait until it stops, then give it this plan: …Standard by default, visible in DSH Web
New subagents use DSH's standard preset by default, including automatic context compaction and tool-result pruning. It is mounted before the first task. Follow-ups retain the original preset, including across restarts.
Pass preset: "minimal" explicitly for the fixed-prompt, single-shell preset without automatic compaction. Existing sessions keep their original configuration.
Sessions are registered under their working directory in DSH. With the Web adapter installed, the DSH Web conversation receives tool activity and streamed replies without a manual refresh. You can watch a task delegated from Codex in the browser; when following the latest output, long replies scroll into view as they arrive.
Go further
The MCP bridge returns compact receipts for dsh_start and dsh_followup.
dsh_status and dsh_list are compact lifecycle views, while dsh_wait
returns the final answer once after settlement. Omit seconds for persistent
work. dsh_events defaults to new assistant-visible text; request tool
summaries explicitly and use an event_id for one full tool record. Large
events return a continuation cursor. Use legacy: true only for compatibility
with older full state payloads.
Follow-ups, progress and cancellation · Permissions and architecture · Service management · Validation
If this makes DSH useful in your workflow, a star helps others find it. Share what you build—or what gets in the way—in Issues.
Built on
DeepSeek Harness and the MCP SDK. Thanks to dsh-mcp and dsh-cursor-codex for exploring DSH delegation, and DSH-Code for the terminal UI that sparked this project.
MIT. Independent community project.
This server cannot be deployed
Maintenance
Related MCP Connectors
Coding agents build full-stack apps in persistent workspaces and share them by link.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
- ParleyOAuthdev.weldra
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
AI-powered spec-to-task decomposition and execution orchestration for coding agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Codex to start the local DeepSeek Harness Web UI, delegate coding tasks into visible sessions, and review workspace changes.67 npm8MIT
- AlicenseNot gradedqualityBmaintenanceEnables dispatching work to DeepSeek Harness agents from Claude Code/Codex, with native progress UI, tier policy, and vision/image generation through MCP tools.602 npm149MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents like Claude Code or Codex to delegate tasks to a DeepSeek Harness subagent with its own context window, providing tools for task delegation, result waiting, continuation, and supervision with sandboxed execution.6MIT
- AlicenseAqualityBmaintenanceEnables Codex to delegate routine repository exploration, implementation, refactors, tests, and fixes to DeepSeek Harness in isolated Git worktrees, returning compact results and patches for review while keeping the main workspace protected.529 npmMIT