subagent/

September 4, 2026 · View on GitHub

English | 中文

Summary

The subagent group is the delegation family: it lets an agent hand a task to a child agent, wait for or continue the child's work, and keep every child discoverable. One contract (ctx.subagents) serves any number of named providers, so a single composition can mix in-process children (fresh, or forked from the parent's completed history) with out-of-process children — an ACP agent, a real Codex or Claude Code installation, or a complete Harness runtime over the SDK. The model-facing tools expose delegation, adjacent-Agent messaging, and listing to agents, and a parent can always see which children exist and whether they are live or stored. This page maps the group; each package README owns its package contract.

Table of Contents


Packages

PackageRolectx key
subagent/Defines the delegation service: provider registry, one-shot runs, continuable children, and discoveryctx.subagents
subagent-in-process-driver/Provides the shared in-process run driver
subagent-spawn-in-process/Runs a fresh in-process childregisters on ctx.subagents
subagent-fork-in-process/Runs an in-process child seeded from the parent's completed historyregisters on ctx.subagents
subagent-acp/Runs an out-of-process child over the Agent Client Protocolregisters on ctx.subagents
subagent-codex/Runs a real Codex child through the official app-server protocolregisters on ctx.subagents
subagent-claude-code/Runs a real Claude Code child through the official Agent SDKregisters on ctx.subagents
subagent-dsh-sdk/Runs an out-of-process Harness child through the TypeScript SDKregisters on ctx.subagents
tool-subagent/Exposes delegation to the modelregisters on ctx.tools
tool-subagent-control/Exposes adjacent-Agent messaging, interrupt, and listing to the modelregisters on ctx.tools

Dev Note

None.