Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/deepagents-subagents
在 Deep Agents 中使用 SubAgentMiddleware 启动子代理进行任务委托、上下文隔离和专门工作。
Passed 23 of 23 test cases with the skill, and 17 of 23 without it.
and 4 more in the full report
6 fixed17 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
I want to rename the internal subagent delegation tool from `task` to `delegate_task` in `createDeepAgent` to avoid naming conflicts. What property allows overriding the task tool name?
| Checked | Without skill | With skill |
|---|---|---|
| The task tool name cannot be renamed or overridden. | Missed | Passed |
The instructions your model reads when the skill loads.
SubAgentMiddleware 通过 task 工具实现任务委托。优势:上下文隔离、专业化、token 效率、并行执行。
默认子代理:"通用型" - 自动可用,具有与主代理相同的工具/配置。
import { createDeepAgent } from "deepagents";
import { tool } from "langchain";
import { z } from "zod";
const searchPapers = tool(
async ({ query }) => `找到 10 篇关于 ${query} 的论文`,
{
name: "search_papers",
description: "搜索学术论文",
schema: z.object({ query: z.string() }),
}
);
const agent = await createDeepAgent({
subagents: [
{
name: "research",
description: "研究学术论文并提供摘要",
systemPrompt: "你是一个研究助手。提供简洁的摘要。",
tools: [searchPapers],
model: "claude-sonnet-4-5-20250929", // 可选
}
]
});
const result = await agent.invoke({
messages: [{ role: "user", content: "研究关于 transformers 的最新论文" }]
test cases passed, vs 17 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.