dsh-subagents
Manifest valid★ 1Focused child-agent delegation (scout, researcher, worker, reviewer, oracle, delegate) and multi-agent workflows (council, parallel review, review loop) for DeepSeek Harness.
dsh-subagents
Focused child-agent delegation and multi-agent workflows for DeepSeek Harness (DSH).
A faithful port of
pi-subagents, rebuilt on DSH's nativesubagent/subagent_fork/workflowtools — so you get the curated personas and workflows without giving up DSH's built-in delegation.
- 🇨🇳 中文文档
Why this exists
DSH already ships delegation (subagent, subagent_fork, workflow, agent_teams) and an on-demand skill system. What it does not ship is a ready-made set of who to delegate to and how to chain them.
dsh-subagents fills that gap with:
| Need | You get |
|---|---|
| A second pair of eyes before you edit | reviewer persona with P0/P1/P2 findings + a merge verdict |
| A sanity check on a risky decision | oracle persona that challenges assumptions without editing |
| Fast recon of unfamiliar code | scout persona for entry points, data flow, and risks |
| Grounded external facts | researcher persona producing a sourced brief |
| A careful implementer | worker persona that edits minimally and escalates instead of guessing |
| Orchestrated review/impl loops | parallel-review, review-loop, council, parallel-research, parallel-cleanup, gather-context workflows |
Problems solved: no hand-rolled prompts, no remembering role tool-allowlists, no reinventing review loops. One install and you can say "use reviewer to review this diff" and get a disciplined review.
What makes it different: it's not a new agent runtime — it's a thin, dependency-light skill layer (pure ESM, zero runtime deps) that teaches the model how to use DSH's own tools, so it composes with everything else in your profile (AgentTeams, MCP servers, skills, themes).
Install
dsh plugin --profile web add dsh-subagents
# or from a local checkout:
dsh plugin --profile web add /path/to/dsh-subagents
Restart the dsh process, and you're done — no config, no slash commands.
Try this first
- "Use reviewer to review this diff."
- "Ask oracle for a second opinion on my current plan."
- "Use scout to understand this code."
- "Run parallel reviewers: one for correctness, one for tests, one for simplicity."
The model loads the matching subagents-* skill and delegates with the native tools. You don't create agents, write config, or learn commands.
Builtin roles
| Role | Use when you want… |
|---|---|
scout | Fast local codebase recon: relevant files, entry points, data flow, risks. |
researcher | Web/docs research with sources and a concise brief. |
worker | Implementation: edits files, validates, escalates unapproved decisions. |
reviewer | Code/plan review with P0/P1/P2 findings and a merge verdict. |
oracle | A second opinion before acting; challenges assumptions without editing. |
delegate | A lightweight general handoff close to the parent session. |
Workflows
| Want | Skill |
|---|---|
| Debate a material decision | subagents-council — bounded parent-mediated advisor council |
| Review a diff adversarially | subagents-parallel-review — several fresh reviewers, distinct angles |
| Implement → review → fix until clean | subagents-review-loop — capped at 3 rounds |
| Build a grounded multi-angle answer | subagents-parallel-research — researcher + scout |
| Clean up AI-slop / verbosity | subagents-parallel-cleanup — deslop + verbosity passes |
| Gather context, then clarify | subagents-gather-context — scout/researcher, then clarifying questions |
How it maps to DSH
| pi-subagents | dsh-subagents / DSH |
|---|---|
subagent tool | subagent (fresh) / subagent_fork (context-aware) |
workflowScript | workflow |
| multi-agent teams | agent_teams (native) |
builtin agents (.md frontmatter) | skills subagents-scout, subagents-reviewer, … |
| prompt shortcuts | skills subagents-council, subagents-parallel-review, … |
context: fresh / fork | subagent / subagent_fork |
| async / background | run_in_background: true + job_output / job_kill |
subagent({action:"list"}) | list_agents (children) + the skills catalog |
Note on roles: DSH's
subagenttool fixes persona/tool-filter at config level, not per call. So role switching here is prompt-driven: each role is a skill whose persona text you paste into the child'sprompt. Hard per-role tool isolation would require a DSH agent-preset composition layer — see Limitations.
Layout
lib/index.js host plugin — registers skills + a usage section
skills/*.md the persona and workflow bodies
cordis.patch.yml mounts the plugin into a profile's host composition
Requirements
- Node ≥ 20 (ESM).
- A DSH profile whose base bundle mounts
skillsandsystemPrompt(standard profiles do).
Limitations
- Role personas are soft guidance: a child inherits DSH's toolset and self-limits by the persona's tool guidance. There is no per-call tool-allowlist enforcement.
councilcross-exams use a fresh re-launch rather than resuming the same child, because DSH one-shot subagents are not resumable (usesubagent_fork+send_messagefor a resumable child when you need it).
Contributing
Bug reports and PRs are welcome. Please open an issue before starting non-trivial work. There is no build step — the plugin is plain ESM, so node --check lib/index.js and a mock apply() run are the smoke tests.
License
MIT. A port of pi-subagents (MIT, © Nico Bailon).
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 121/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 6.8k
MIT
JavaScript
Aug 24, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 6.3k
MIT
JavaScript
Nov 8, 2026
dsh plugin --profile web add dsh-purge-communityby QingYunA
Answer me with HTML — an agent skill that answers hard questions with a one-page HTML you can actually read. 让 AI Agent 用一页 HTML 回答复杂问题。
★ 6.2k
MIT
JavaScript
Nov 10, 2026
dsh plugin --profile web add answer-me-with-htmlby T-Auto
Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency / 为windows的dsh提供bash、powershell7及一系列rust编写的高性能tools来提高token效率
★ 5.7k
↓ 52.6k/wk
NOASSERTION
JavaScript
Nov 10, 2026
dsh plugin --profile agent add dsh-opsby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 5.7k
MIT
Python
Aug 25, 2026