feat(agent-presets): enable background Codex and Claude Code subagent tasks

This commit is contained in:
pku-xht
2026-08-12 17:07:34 +08:00
parent b423ed15d7
commit 28fcda2751
35 changed files with 318 additions and 102 deletions

View File

@@ -53,11 +53,16 @@ try {
required: tool.parameters.required,
}
})
const taskTools = ctx.tools.schemas()
.map(schema => schema.name)
.filter(name => name === 'task_kill' || name === 'task_list' || name === 'task_output')
.sort()
process.stdout.write(`${JSON.stringify({
registeredProviders: ctx.subagents.list(),
providers,
tools,
taskTools,
starts,
})}\n`)
} finally {