DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

@momojie-s/dsh-subagent-model

Subagent Model

DSH plugin: a subagent delegation tool supporting per-call model routing and context inheritance, with clean context by default (same as built-in semantics); fresh_context: false forks the current conversation from the latest completed turn at the time of invocation (forked from @deepseek-ai/dsh-too

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Momojie-S/dsh-subagent-model#5947465674384f0213d9aeacb3de08bb865e7334
READMECompatibilityVersions

Description

DSH plugin: a subagent delegation tool supporting per-call model routing and context inheritance, with clean context by default (same as built-in semantics); fresh_context: false forks the current conversation from the latest completed turn at the time of invocation (forked from @deepseek-ai/dsh-tool-subagent, minimal diff)

Compatibility and provenance

Subagent Model is published as @momojie-s/dsh-subagent-model and currently resolves to version 0.3.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
8/25/2026

Versions

0.3.1stable
8/25/2026
0.3.0stable
8/25/2026
0.2.1stable
8/25/2026
Show 2 more versionsCollapse versions
0.2.0stable
8/25/2026
0.1.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.3.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 3
Weekly downloads
0
Last push
8/25/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in agents-orchestration.

Hindsight Coding Agents@vectorize-io/hindsight-coding-agentsReflect-only Hindsight long-term memory for coding agents (harness-pluggable: opencode, …), with automatic background ingestion (no setup CLI).Skills Manager@michengai/dsh-skills-managerDSH Skills Manager — 在 DeepSeek Harness 中统一加载并安全管理本机 Agent Skills · Load and safely manage local Agent Skills in DSHArisdsh-arisARIS research-workflow skills as a DeepSeek Harness bundle: 82 skills plus cross-model adversarial review through Codex.Speak Updsh-speak-upSpeak Up on Her Own (dsh-speak-up): DSH plugin. When no one is talking to her, she starts a conversation herself — rolls a local die at the interval you set (without using the model), and if it hits, runs DSH's own turn (her personality, history, tools, and memory are all her own).

README

dsh-subagent-model

一个 DeepSeek Harness (DSH) 插件:注册 subagent_model 工具——在内置 subagent 工具基础上,把子代理的模型路由(provider / model / max_tokens)和上下文继承(fresh_context)都暴露为每次调用可选的参数。

fork 自官方 @deepseek-ai/dsh-tool-subagent,除这两组参数外行为与原版一致(后台策略、continuable 子会话、工具过滤、persona、深度限制全部保留)。

环境要求

  • DeepSeek Harness >= 0.1.0-rc.6(已验证至 0.1.1-rc.2,Windows)
  • Host 组合已加载 subagents 服务;fresh 模式需要 spawn 类 provider,默认继承模式需要 fork 类 provider(官方 base bundle 两者都带)

用法

挂载后模型多出一个 subagent_model 工具。不传任何可选参数时,子代理默认干净上下文(与内置 subagent 语义一致);要基于当前对话续写,传 fresh_context: false——子代理以调用那一刻父会话最新完成轮次为种子(不是会话打开时的快照;正在进行的这一轮不含在内)。参数:

参数类型说明
description / prompt / run_in_background-同内置 subagent;run_in_background 默认值随上下文模式不同(见下)
fresh_contextboolean?默认省略 = 干净上下文(prompt 必须完全自包含)。传 false = fork 当前对话(按调用时刻的最新完成轮次做种子;整段对话会在子路由全额重算,留给真正需要上下文的任务);显式传 true 强制干净
providerstring?provider 路由 id(Models 页配置的路由)。省略则继承父会话——此时 model 必须是该继承路由下的模型
modelstring?模型 id,由有效路由(显式 provider,否则继承的父路由)解释;跨路由的 id 不会被自动转发,模型属于别的路由时务必同时传 provider。省略则继承父会话
max_tokensnumber?子代理每次模型请求的输出 token 上限(正整数)

上下文模式与后台默认(backgroundMode: continuable 挂载时):

模式后台语义
fresh(默认,省略 fresh_context)默认后台 continuable,返回可持续会话的子代理 id(send_message 续聊),与内置 subagent 原版行为一致
继承(fresh_context: false)默认前台等待直接拿结果(种子 = 调用时刻最新完成轮次);传 run_in_background: true 得到可持续分叉会话(durable 子代理 id,send_message 续聊;其对父对话的视野冻结在创建时刻)——与 rc.7+ 内置 subagent_fork 对齐

backgroundMode: one-shot 挂载时两种模式都默认前台;run_in_background: true 走后台 job(job_output 收取)。

组合方式(最终路由优先级):调用参数 > 插件 config 的 agentOptions > 父会话路由。未知 provider/model 在启动子代理之前快速失败,错误信息列出可用的 provider / 模型目录。

⚠️ 版本间默认值变更史:0.1.x 省略参数 = 干净上下文;0.2.0 改为默认继承(破坏性);0.3.0 改回默认干净(破坏性,依据使用分布与成本不对称,见 ADR-0005)——继承用 fresh_context: false 或部署配置 defaultContext: inherit。另:provider 配置必须是 fresh 类 provider(如 spawn)——配成 fork 会在挂载时报错,继承通道用 inheritProvider。

安装

git clone https://github.com/Momojie-S/dsh-subagent-model.git
cd dsh-subagent-model
npm install          # prepare 脚本自动构建 lib/

profile 的 cordis.patch.yml 加一行(源码直连开发机形态):

- insert:
    - id: subagent-model
      name: 'file:///D:/code/workspace/deepseek-harness-101/plugins/dsh-subagent-model/lib/index.js'
      config:
        provider: spawn              # fresh 模式的传输 provider(必须是干净上下文类,如 spawn)
        backgroundMode: continuable  # 后台策略(fresh 默认后台;继承默认前台)
        # inheritProvider: fork      # 继承模式的传输 provider,默认 fork
        # defaultContext: fresh      # 省略 fresh_context 时的模式,默认 fresh(同内置 subagent)

重启 DSH 生效。组合包安装形态:dsh plugin --profile web add github:Momojie-S/dsh-subagent-model。

配置

patch config 字段:

字段默认说明
provider(必填)fresh 模式的 ctx.subagents 传输 provider(如 spawn);不能是继承父对话的 provider,否则挂载报错
inheritProviderfork继承模式的传输 provider;调用时实时解析,缺失或不是 fork 类(inheritsParentContext: false)会在子会话创建前报错
defaultContextfresh调用省略 fresh_context 时的模式;inherit 把省略默认改为继承当前对话(0.2.x 的行为)
toolNamesubagent_model模型可见的工具名;与内置 subagent 工具共存,勿重名
enableRunInBackgroundtrue是否暴露 run_in_background
backgroundModeone-shotone-shot / continuable,作用于两种模式的后台路径(继承模式默认仍前台,见上表;ADR-0004)
agentOptions无所有子代理的默认路由(provider/model/maxTokens),被调用参数覆盖
validateModeltrue调用级路由是否经 llm 注册表校验(未知 id 快速失败)
persona无子代理 persona,同内置工具
toolFilter无子代理工具过滤(allow/deny),同内置工具
maxDepth3子代理递委派深度上限,同内置工具

验证

重启后让模型做对照委派(或检查 verbose 日志确认工具注册):

> 先在本对话约定一个暗号。然后:1) 用 subagent_model 不传 fresh_context 委派"本对话前面的暗号是什么";2) 传 fresh_context: false 再委派一次同样的问题

默认(省略)的子代理应不知道暗号(干净上下文);fresh_context: false 的子代理能答出暗号,且换一轮新对话内容后再 fork,子代理能看到新增内容——证明种子取的是调用时刻最新状态,不是会话打开时的。


设计取舍与实现细节见 docs/design/overview.md。