Skip to main content

How to use dsh-subagent-in-process-driver

Shared in-process subagent run driver: drives a child agent on ctx.agents (used by the spawn and fork backends)

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Shared in-process subagent run driver: drives a child agent on ctx.agents (used by the spawn and fork backends)

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add npm:@deepseek-ai/dsh-subagent-in-process-driver

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • A structured_output tool registered with the requested schema validates and stages the model's value.
  • An order-190 system-prompt section tells the child that the tool call is the terminal answer.
  • Both contributions are ordinary child-scoped registrations. An expert system-prompt/assemble listener may replace them and therefore owns preserving the structured-output protocol for that child.
  • A tools/result observer commits a staged value only after that execution's authoritative final tool result succeeds, including the enclosing run_code result for Code Mode sub-dispatch.
  • A monotonic tool guard blocks later calls after capture, and the structured-output execution's concludeTurn() marker ends the turn after the result commits.

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule