bpc-oss/dsh-routed-subagent2

dsh-routed-subagent

Global DeepSeek Harness plugin: subagent_routed — run a one-shot subagent fully mounted on ANY agent preset, from ANY session, with per-call model/provider override, a model-availability pre-check, and external CLI engines (codex / claude / codebuddy).

包名
dsh-routed-subagent
版本
0.3.0
许可证
MIT
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bpc-oss/dsh-routed-subagent

Usage

subagent_routed(prompt="Use the dev engineer standard to review this repository", preset="dev", description="dev review")          # background one-shot
subagent_routed(prompt="Continue the review", preset="dev-reviewer", description="follow-up", fork=true)  # inherits THIS conversation
subagent_routed(preset="dev", prompt="Audit this repo", description="audit", continuable=true)            # send_message(, ...) later

Behavior:

Modes (one tool, four shapes):

modehowreturns
one-shot background (default)run_in_background: true (default)job id immediately; collect with job_output (live progress) / stop with job_kill; aborting the conversation leaves the child running
one-shot foregroundrun_in_background: falseblocks until the child returns its final output
forkfork: truejob id / run result — the child is seeded with this conversation's COMPLETED turns (inherits the context) then mounts the requested preset on top
continuablecontinuable: truedurable subagent id — continue it later with send_message(subagentId, ...); the child mounts the requested preset and keeps it across resumes

Parameters:

inputbehavior
preset invalid / unresolvableerror, with the roster's available preset ids
model / providerper-call model override (fail-fast pre-check lists the provider's candidates; original error preserved as cause)
max_tokensoutput/token cap for the child's LLM calls (positive integer)
tool_filterDENY-only tool mask on top of the preset's tool surface ({ deny: string[] }, e.g. deny shell tools for a read-only audit)
max_depth not a positive integertool-layer validation error
fork + continuable togethersupported (continuable fork seeds the parent's completed turns)
valid callchild fully mounted on the target preset