DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@deepseek-ai/dsh-subagent-claude-code

Subagent Claude Code

基于官方 Agent SDK 的一次性 Claude Code 子代理提供方

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-subagent-claude-code@0.2.2-rc.1
README兼容性版本

兼容性与来源证明

Subagent Claude Code 以 @deepseek-ai/dsh-subagent-claude-code 发布,当前版本为 0.2.2-rc.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.2.2-rc.1prerelease
2026/11/4
查看其余 34 个版本收起版本
0.2.2-alpha.3prerelease
2026/11/3
0.2.1-rc.5prerelease
2026/10/29
0.2.2-alpha.2prerelease
2026/10/27
0.2.1-rc.4prerelease
2026/10/26
0.2.1-rc.3prerelease
2026/10/23
0.2.1-rc.2prerelease
2026/10/17
0.2.1-rc.1prerelease
2026/10/17
0.2.1-alpha.5prerelease
2026/10/16
0.2.1-alpha.4prerelease
2026/10/15
0.2.1-alpha.3prerelease
2026/10/14
0.2.1-alpha.2prerelease
2026/10/9
0.2.1-alpha.1prerelease
2026/10/3
0.2.0-rc.2prerelease
2026/9/29
0.2.0-rc.1prerelease
2026/9/28
0.1.7-rc.2prerelease
2026/9/24
0.1.7-rc.1prerelease
2026/9/23
0.1.7-alpha.2prerelease
2026/9/22
0.1.7-alpha.1prerelease
2026/9/22
0.1.5-rc.3prerelease
2026/9/22
0.1.6-alpha.2prerelease
2026/9/17
0.1.6-alpha.1prerelease
2026/9/15
0.1.5-rc.2prerelease
2026/9/10
0.1.5-rc.1prerelease
2026/9/10
0.1.5-alpha.2prerelease
2026/9/9
0.1.5-alpha.1prerelease
2026/9/8
0.1.3-alpha.2prerelease
2026/9/7
0.1.2-rc.1prerelease
2026/9/3
0.1.2-alpha.5prerelease
2026/9/2
0.1.2-alpha.4prerelease
2026/9/1
0.1.2-alpha.3prerelease
2026/8/31
0.1.2-alpha.2prerelease
2026/8/30
0.1.1-rc.2prerelease
2026/8/21
0.1.1-rc.1prerelease
2026/8/21
0.1.0-rc.8prerelease
2026/8/19

相关插件

正在加载相关插件…

最新版
0.2.2-rc.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
65.4 kB
文件数
19
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 272.4k
周下载
14,028
最近提交
2026/11/4
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 agents-orchestration 分类下经过校验的插件。

Headless@deepseek-ai/dsh-headlessdsh one-shot bundle:基于 dsh-base 的直接核心 Agent/Session 运行器,不包含 Host、HTTP 或浏览器层Experimental Agent Team Profile@deepseek-ai/dsh-experimental-agent-team-profile在一个实验性捆绑包中提供 Agent Teams 协作、工具和 Web UIExperimental Ralph Bundle@deepseek-ai/dsh-experimental-ralph-bundle使用全新代理执行明确请求的重复工作。Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README


description: "The one-shot Claude Code subagent provider for users and maintainers choosing a product backend, installing a Profile bundle, or configuring an unattended Claude Code delegation." kind: "package-bundle"

@deepseek-ai/dsh-subagent-claude-code

English | 中文

Summary

Install this Profile Bundle when a delegated task should run as a fresh, unattended Claude Code session in the parent workspace. Each run accepts one self-contained text task and returns the final answer or a safe failure diagnostic; reasoning, tool traffic, stderr, usage, and workspace diffs stay out of the parent Session. Native Claude settings and authentication remain authoritative, while Profile configuration selects the model, environment, and permissionMode. The platform-pinned runtime starts on demand and never falls back to the host claude executable. Choose it when isolation and genuine Claude Code behavior matter more than continuation or prompts.

Table of Contents

  • Use this package
  • Understand the implementation
  • Further Exploration
  • Model Experience
  • Known Limitations and Deferred Work
  • Dev Note

Use this package

Enable Claude Code subagent in the Web or Desktop Plugins page when a task needs a fresh native Claude Code session in the parent workspace.

Installing the Bundle

The Official entry is visible offline. Enabling it installs the target for the running DSH installation through the ordinary bundle installer and selects its profile layer. The layer registers the provider and adds subagent_claude_code to every Agent as a global tool; it starts no native process until delegation. Restart when the installer reports that one is required.

Switching Off deselects the layer and leaves the package installed. Remove is a separate package operation. Enabling or switching Off registers or removes the global tool in the running Host, so live Agents see the change on their next request.

The layer inserts Host rows only, so any profile can select it, including the shipped headless, SDK, and ACP profiles. Existing provider-only consumers follow the upgrade guide.

Configuration

FieldDefaultMeaning
providerNameclaude-codeNon-empty registry name on ctx.subagents; each mounted instance needs a unique value
modelnative Claude settingsOptional non-empty model name fixed for every run from this provider instance; omission sends no SDK override
env{}Explicit SDK/CLI environment layered over the credential-scrubbed parent environment
permissionModedontAskNative non-interactive permission policy fixed for every run from this provider instance
disposeGraceMs3000Grace between the shared managed-range owner's termination tiers
permissionMode valueNative behavior
dontAskDeny operations that are not already authorized instead of prompting
acceptEditsAccept file edits; any remaining permission prompt is denied by the unattended callback
autoLet Claude Code's native classifier allow or deny permission requests
planRun in native planning mode, deny execution approval, and return the completed plan as the final answer
bypassPermissionsExplicitly set the SDK's dangerous confirmation and bypass permission checks

The generated configuration catalog is the exhaustive source for every accepted field and its JSDoc. A configured model passes unchanged to every query from that provider instance; omission leaves native model selection in force. Credential-shaped ambient variables are removed before the explicit env overlay, so an API key intended for the child must be supplied there. The provider omits the SDK settingSources option, so Claude Code reads the host's normal user, project, and local settings relative to the selected child working directory. It does not copy or filter those files, create or modify login state, inspect PATH, or fall back to a host claude executable.

Exposing the tool

The bundle inserts tool-subagent-claude-code as a Host row, so subagent_claude_code is a global tool visible to every preset, including minimal. Later user patches can configure or disable that row by id. A preset that registers its own tool with the same name shadows the global tool for its Agents. To mount the provider and tool without selecting the bundle layer, insert the same rows in cordis.patch.yml:

- insert:
    - id: subagent-claude-code
      name: '@deepseek-ai/dsh-subagent-claude-code'
    - id: tool-subagent-claude-code
      name: '@deepseek-ai/dsh-tool-subagent'
      config:
        provider: claude-code
        toolName: subagent_claude_code
        maxDepth: provider-managed

The tool returns a child id after accepting the task and sends its result to the parent Agent on completion. Each external activation executes once and accepts no follow-up input or resume.

What you get

The completion notice contains the final Claude Code answer, or the stop reason and optional safe diagnostic. The parent Session also retains the external task identity and complete terminal result independently of the notice; no local child Session is created. Product reasoning, tool activity, raw stderr, and workspace diffs do not enter the parent Session.

Failure and recovery

An install that omits optional dependencies, uses an unsupported platform, or loses the selected payload leaves the provider dormant and fails the first delegation at the SDK startup boundary with a safe query-start / unknown failure fact; there is no host-CLI fallback. The original product error stays on the internal cause chain and in the provider's Host log. A cancelled run settles as aborted.


Understand the implementation

Implementation internals — click to expand

This section explains how the provider drives a real Claude Code CLI and where the observable behavior comes from; the full contract lives in Use this package.

Design concept

  • One fresh query per run. Every run has an independent SDK query, cancellation controller, CLI process, and non-persisted product session; there is no continuation, resume, or pooling.
  • Native settings are authoritative. The provider deliberately omits the SDK settingSources option, so Claude Code reads the host's normal user, project, and local settings; an optional model and the required permissionMode are the only query-level overrides.
  • Unattended by design. AskUserQuestion is disabled and permission prompts are denied except in bypass mode, so the query never waits for a user interface.

Source map

FileRole
src/index.tsPlugin entry: config schema, provider registration
src/run.tsThe SDK query lifecycle, result acceptance, and permission handling
src/process.tsManaged-range termination escalation on disposal
cordis.patch.ymlThe Profile layer that registers the provider and contributes preset delegation tools

Run flow

A start accepts only a non-empty sequence of text blocks and derives the child cwd from the parent session. It creates a private AbortController, calls the official SDK query() with the exact concatenated task, and publishes the run only after the SDK's custom-spawn hook has supplied a live CLI handle owned by the subprocess seam. The provider iterates the complete message stream and accepts only a result message with subtype: "success", , and a nonblank , followed by normal iterator completion. Every other outcome maps to a fixed-category diagnostic naming the lifecycle stage and observed process outcome — the category set lives in . Local cancellation wins the result race and maps to without a failure diagnostic.


Further Exploration

Read these pages when the package-level contract is not enough. They move from this provider to the seam it plugs into and the sibling product provider.

  • Subagent subsystem — the service contract, provider contract, and terminal result semantics.
  • dsh-subagent seam — the registry and start API this provider registers on.
  • Codex subagent provider — the sibling product backend over the official app-server protocol.
  • historical Claude Code and Codex backends — the design record for the product providers.
  • Generated configuration catalog — every accepted config field and its source declaration.

Model Experience

Child request

What the model sees

The Claude Code child receives the standalone text task as one fresh SDK query. Its workspace is the selected child working directory; the selected provider instance fixes the query's configured model, environment, and non-interactive permission mode, while an omitted model and every other product setting come from native Claude configuration. The executable version comes from the Bundle's pinned SDK platform payload.

Token effect

The child pays for an independent Claude Code context and query. Child tokens do not enter the parent's context.

KV Cache effect

Independent of the parent request cache. Reuse depends only on Claude Code's own model, instructions, tools, native settings, and fresh query.

Parent scheduling and results, indirectly

What the model sees

Through dsh-tool-subagent, the parent model first receives a child id, then the final Claude Code answer or a failure notice with its stop reason and safe diagnostic. Diagnostics contain only fixed stage, category, and observed protocol or process facts. Product reasoning, intermediate messages, tool activity, stderr, usage, product identifiers, commands, paths, and raw protocol payloads are not copied into the parent Session.

Token effect

Parent input grows by the start acknowledgement and completion notice, including the final answer or failure detail. Child tokens do not enter the parent context. This provider adds no parent tool schema by itself.

KV Cache effect

Start acknowledgements and completion notices append after the reusable parent request prefix. A notice may wake another turn without rewriting the existing prefix.

Known Limitations and Deferred Work

These limits define when this provider is a poor fit or needs special operational care. They are current package constraints, not a general Claude Code comparison or a task backlog.

  • One fresh query and process per run — there is no continuation, resume, pooling, progress stream, or product-session persistence.
  • Static instance selection — Profile rows fix provider names, optional models, and tool bindings; calls cannot choose or change either a provider or model dynamically, and every exposed tool needs a unique toolName.
  • Host settings are intentionally authoritative — when model is omitted, project and user settings choose it; native settings always retain the remaining tools and behavior, and the provider does not provide a filtered or hermetic production mode.
  • Authentication and account state remain native — the Bundle supplies the CLI but does not create an account, log in, or rewrite Claude settings; configuration and authentication failures surface with their lifecycle stage and the safe unknown fallback rather than a separate public classification.
  • The SDK platform payload is required at delegation time — installs that omit optional dependencies, unsupported platforms, and missing or damaged payloads fail at the first query; there is no host-CLI fallback.
  • No human interaction path — AskUserQuestion is disabled, permission prompts are denied, MCP elicitation is declined, and blocking dialogs fail closed instead of suspending.
  • Assistant payload is final text only — failed runs can also expose a separate safe diagnostic; reasoning, intermediate messages, tool traffic, usage, stderr, and workspace diffs remain outside the parent Session. Task identity and terminal results are retained in the parent log.
  • No optional shared capabilities — agentPreset, agentOptions, output schemas, and harness depth enforcement are rejected by the shared service for this provider.
  • No wall-clock timeout or side-effect rollback — the caller cancels long work, and files or external systems changed before cancellation are not restored.

Dev Note

Working context for maintainers — click to expand

This Dev Note is working context for maintainers: open questions and undecided directions. It is explicitly non-authoritative — shipped behavior and limits live in the sections above and in the package code.

  • Payload size disclosure — the current darwin-arm64 platform payload packs to about 92 MB and unpacks to about 325 MB; these are disclosure numbers, not installation thresholds.
  • Version-pinned protocol — the runtime dependency is pinned to Agent SDK 0.3.263; upgrading pins a new SDK version and requires re-running the keyless real-product and loader-composition evidence.
is_error: false
result
error
src/run.ts
aborted