Merge branch 'feat/subagent-names' into integrate/team-descendants-names
This commit is contained in:
commit
3f67f2ce2b
8 files changed
+25
-23
No files matched your search
@@ -120,7 +120,7 @@ it.each(['loop', 'root'] as const)('unloads %s while a background child is stopp
|
||||
const started = await ctx.tools.execute({
|
||||
agent: parent, signal: new AbortController().signal,
|
||||
callId: ToolCallId('background-start'), name: 'subagent',
|
||||
arguments: { description: 'child', prompt: 'wait' },
|
||||
arguments: { name: 'child', description: 'child', prompt: 'wait' },
|
||||
})
|
||||
expect(started.isError).toBe(false)
|
||||
const child = await requestEntered.promise
|
||||
|
||||
@@ -1244,6 +1244,7 @@ describe('out-of-process delegation boundary', () => {
|
||||
if (schema === undefined) throw new Error('remote delegation tool schema is missing')
|
||||
appendHeader(session, [schema])
|
||||
const args = {
|
||||
name: 'remote-inspector',
|
||||
description: 'remote boundary',
|
||||
prompt: 'Inspect the child runtime permission boundary.',
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ try {
|
||||
});
|
||||
const run = await ctx.subagents.startActivation({
|
||||
provider: "built-local",
|
||||
name: "scope-child",
|
||||
childId: SessionId("built-child"),
|
||||
label: "built scope carrier",
|
||||
delivery: "caller",
|
||||
|
||||
@@ -79,23 +79,23 @@ describe('product-provider public Loader composition', () => {
|
||||
tools: [
|
||||
{
|
||||
name: 'subagent_codex',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_code',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_primary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_secondary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
],
|
||||
jobTools: ['job_kill', 'job_list', 'job_output'],
|
||||
|
||||
@@ -69,18 +69,18 @@ describe('Codex provider public Loader composition', () => {
|
||||
tools: [
|
||||
{
|
||||
name: 'subagent_codex',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_codex_primary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_codex_secondary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['name', 'description', 'prompt'],
|
||||
},
|
||||
],
|
||||
jobTools: ['job_kill', 'job_list', 'job_output'],
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
en: 465d36925c792167
|
||||
zh: 269cac314f638827
|
||||
/deepseek-ai-dsh-tool-subagent-control/summary:
|
||||
en: b397bc87605b3dcc
|
||||
zh: a97e97e30be53faa
|
||||
en: 5b225b5c13d38808
|
||||
zh: 185508ceb2ad7d88
|
||||
/deepseek-ai-dsh-tool-subagent-control/table-of-contents:
|
||||
en: d152484eb41ac6b4
|
||||
zh: 09388d293f9be9cb
|
||||
@@ -90,8 +90,8 @@
|
||||
en: 094e55d258f2ec2e
|
||||
zh: f364bc9046530bff
|
||||
/deepseek-ai-dsh-tool-subagent-control/model-experience/listing-result/what-the-model-sees:
|
||||
en: a975a6e493671c84
|
||||
zh: a258b718855972ea
|
||||
en: f888710beb3d325e
|
||||
zh: 1869a221626dd2ce
|
||||
/deepseek-ai-dsh-tool-subagent-control/model-experience/listing-result/token-effect:
|
||||
en: d3ced2fbde9382ef
|
||||
zh: 8c7e904ed30f7353
|
||||
|
||||
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
||||
|
||||
## Summary
|
||||
|
||||
`dsh-tool-subagent-control` adds the global control tools for continuable children: `send_message` steers between a parent and child or between siblings, `interrupt_agent` stops a descendant’s current turn while keeping its inbox and descendants intact, and the separately loadable `list-agents` plugin discovers agents by id and description. Parents and continuable children inherit the same tool definitions and ordering.
|
||||
`dsh-tool-subagent-control` adds the global control tools for continuable children: `send_message` steers between a parent and child or between siblings, `interrupt_agent` stops a descendant’s current turn while keeping its inbox and descendants intact, and the separately loadable `list-agents` plugin discovers agents by name and description. Parents and continuable children inherit the same tool definitions and ordering.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
@@ -148,7 +148,7 @@ Append-only; newly visible content follows the reusable request prefix and does
|
||||
|
||||
#### What the model sees
|
||||
|
||||
One line per descendant in stable order: `<id> [<status>] parent=<id> depth=<n> — <label>`. A continuable child’s list starts with `<id> [<status>] — your parent`, then `<id> [<status>] — sibling: <label>` rows. Unknown modes or unreadable catalogs produce `<id> [diagnostic: <reason>] parent=<id> depth=<n>`. Status describes turn activity, not task completion. `(no subagents)` means no row survived the projection.
|
||||
One line per descendant in stable order: `<name> [<status>] parent=<name> depth=<n> — <label>`. A continuable child’s list starts with `<name> [<status>] — your parent`, then `<name> [<status>] — sibling: <label>` rows. Unknown modes or unreadable catalogs produce `<name> [diagnostic: <reason>] parent=<name> depth=<n>`. Status describes turn activity, not task completion. `(no subagents)` means no row survived the projection.
|
||||
|
||||
#### Token effect
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ kind: "package-reference"
|
||||
|
||||
## 概述
|
||||
|
||||
`dsh-tool-subagent-control` 提供可继续子级的全局控制工具:`send_message` 在父子或同级间发送 Steer 消息,`interrupt_agent` 停止后代当前轮次并保留收件箱和后代,可单独加载的 `list-agents` 插件按 id 和描述发现代理。父级与可继续子级继承相同的工具定义和顺序。
|
||||
`dsh-tool-subagent-control` 提供可继续子级的全局控制工具:`send_message` 在父子或同级间发送 Steer 消息,`interrupt_agent` 停止后代当前轮次并保留收件箱和后代,可单独加载的 `list-agents` 插件按名称和描述发现代理。父级与可继续子级继承相同的工具定义和顺序。
|
||||
|
||||
## 目录
|
||||
|
||||
@@ -148,7 +148,7 @@ kind: "package-reference"
|
||||
|
||||
#### 模型看到什么
|
||||
|
||||
每个后代按稳定顺序显示一行:`<id> [<status>] parent=<id> depth=<n> — <label>`。可继续子级的列表先显示 `<id> [<status>] — your parent`,再显示 `<id> [<status>] — sibling: <label>`。未知模式或无法读取的目录输出 `<id> [diagnostic: <reason>] parent=<id> depth=<n>`。状态描述轮次活动,不代表任务完成。`(no subagents)` 表示投影未留下任何行。
|
||||
每个后代按稳定顺序显示一行:`<name> [<status>] parent=<name> depth=<n> — <label>`。可继续子级的列表先显示 `<name> [<status>] — your parent`,再显示 `<name> [<status>] — sibling: <label>`。未知模式或无法读取的目录输出 `<name> [diagnostic: <reason>] parent=<name> depth=<n>`。状态描述轮次活动,不代表任务完成。`(no subagents)` 表示投影未留下任何行。
|
||||
|
||||
#### Token 影响
|
||||
|
||||
|
||||
Reference in new issue
Block a user