Files
deepseek-harness/packages/subagent/README.zh.md
Tianyi Cui d404609e19 docs(subprocess): bring the zh side of the consumer-migration pairs along
The parent branch's zh translations were recorded against its pre-reshape
en text; this PR's Node-ward en deltas get minimal zh updates across the
subprocess catalog and the subprocess/lsp-local/subagent READMEs (all
type-equiv blocks byte-identical), with pairing records re-recorded.
2026-07-26 22:54:44 +08:00

2.0 KiB
Raw Blame History

subagent/subagent 能力族

English | 中文

subagent seam 允许 agent智能体把工作委派给子 agent。与 bashllm 能力族一样,这也是一种能力 seam能力 seam),但有一个关键差异:多个提供方实现在同一上下文中共存,并按名称注册,而不是采用 bash 的单实现形态。该注册表仿照 LLM大语言模型适配器注册表。

角色 ctx 键
subagent/ 抽象 subagent seam具名提供方注册表与词汇 ctx.subagents
subagent-inprocess/ 共享进程内运行驱动器(不提供提供方;每次运行使用一个清理 effect
subagent-spawn/ 进程内后端:全新的子 agent (注册到 ctx.subagents
subagent-fork/ 进程内后端:以父 agent 已完成轮次的前缀作为初始内容的子 agent (注册到 ctx.subagents
subagent-acp/ 进程外后端:在派生子进程中运行并通过 ACPAgent Client Protocol驱动的子 agent (注册到 ctx.subagents
tool-subagent/ 面向模型的 subagent 委派工具,基于 ctx.subagents (注册到 ctx.tools

接口位于 subagent/subagent/。进程内 subagent-spawn / subagent-fork 后端共享 subagent-inprocess 驱动器(一个自身不提供提供方的库:两者都依赖它,彼此不依赖),进程外 subagent-acp 后端则经由 subprocess/ seam spawn 其子进程共享的凭据清除、以进程树为范围的拆卸、dispose资源释放阶梯。测试只用包内 fixture测试前置数据替换子 agent 边界。

提案与设计理由见 .agents/notes/implemented/feature/2026-06-21-subagent-capability-seam.md