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.

Subagent Error Details — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

dsh-subagent-error-details

Subagent Error Details

DSH plugin: deliver the real failure reason (e.g. RATE_LIMIT 429) to the parent agent when a background subagent fails, instead of an empty "Its closing message:"

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

npx -y @deepseek-ai/dsh plugin --profile web add github:sijie-ni-0214/dsh-subagent-error-details#0ce7bcf46c0efbfb17c60f2924ae99fc0fdac2f6
READMECompatibilityVersions

Compatibility and provenance

Subagent Error Details is published as dsh-subagent-error-details and currently resolves to version 0.1.0. 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/26/2026

Versions

0.1.0stable
8/26/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
9/14/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.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocolSubagent Claude Code@deepseek-ai/dsh-subagent-claude-codeOne-shot Claude Code subagent provider over the official Agent SDK

README

dsh-subagent-error-details

DSH plugin: tell the parent agent why a background subagent failed.

The problem

When a background subagent dies mid-turn (e.g. a model API 429 rate-limit), the official settlement notice reads:

Background subagent <id> failed before it finished.
Its closing message:

and then nothing. The failure reason is discarded by core dsh-subagent (notifySettlement maps stopReason to a fixed sentence and splices the child's last partial output, which for a mid-turn death is reasoning + tool-call blocks only). The real error is recorded in the child session's terminal turn/end event — but nothing delivers it to the parent.

Upstream discussion: deepseek-harness#4334.

What this plugin does

  1. Listens to the public subagent/end event as a host-plane bundle: the scope-carried event bubbles up the scope chain, so one instance observes the delegations of every parent agent, regardless of the preset each session runs on.
  2. On stopReason === "error", resolves the child session's terminal turn/end failure detail via sessionPersistence.load() (live session store first, durable JSONL log second) and routes back to the owning parent through the child session header's parentSession and the agent registry.
  3. Delivers a short companion message to the parent, mirroring core's followup/steer split:
Subagent <id> failed with: RATE_LIMIT: 429 Rate limit exceeded for api_key ... Limit resets at ...

Once core itself includes the failure text in the official notice (the upstream fix), the inbox watcher detects it and suppresses the companion message automatically.

Install

One command, works for every agent preset — no composition editing:

dsh plugin --profile web add dsh-subagent-error-details

(the CLI command is a pnpm wrapper; cd ~/.dsh/profiles/web && pnpm add dsh-subagent-error-details is equivalent). The bundle patch mounts the plugin into the profile composition, which is rebuilt at boot, so restart dsh to activate.

Fresh-release note (pnpm ≥ 11): pnpm 11 enables a supply-chain default that rejects package versions published less than 24 hours ago (minimumReleaseAge). During the first day after a release, installs may fail with a "minimumReleaseAge" policy error. Either wait 24 hours, or bypass it for this one command:

dsh plugin --profile web add --config.minimumReleaseAge=0 dsh-subagent-error-details

Local development installs from a checkout instead:

cd ~/.dsh/profiles/web
pnpm add file:/path/to/dsh-subagent-error-details
# restart dsh

Design guarantees

  • Never breaks the parent loop: every path is wrapped; a plugin bug degrades to "no details" instead of an error.
  • Zero inject, lazy service lookup: services are resolved via ctx.get inside the handlers and every absence degrades gracefully, so activation can never fail a session mount.
  • Defensive parsing: session-schema drift degrades gracefully; never crashes on unknown shapes.
  • Version contract: dsh.engines.dsh: ">=0.1.1-rc.2 <0.2", with @deepseek-ai/cordis as the only peer dependency (the harness packages appear as dev dependencies for their types; the plugin has zero runtime dependencies). Because dsh is pre-release with no compatibility promise, re-verify against each new dsh rc.

Known limitations

  • The official notice text itself is unchanged (core generates it); this plugin adds a companion message.
  • One-shot in-process runs without a session record can only report stopReason, no detail.
  • The durable read depends on the session checkpoint policy having flushed the turn/end event; a bounded retry covers the common window.

Development

pnpm install
pnpm build      # tsc
pnpm test       # node --test test/extract.test.mjs

License

MIT