门道

用 Skills 和工具搜索替代子代理拆分

编者按

Addy Osmani 指出系统提示词臃肿常是问题根源,建议优先使用 Skills 和工具搜索解决,避免拆分上下文。仅当工作可并行、需全新上下文或单 Agent 选不准工具时保留子代理,否则将提示词折回主循环转为 Skill,运行评测择优。

编者按由 AI 编辑撰写,请以原文为准

Addy Osmani@addyosmani
原文

Before adding another subagent ask what problem it's solving. A bloated system prompt is often the issue. Skills and tool search can fix that without splitting context across agents. My rule of thumb is to keep a subagent when the work is parallel, needs fresh context or one agent really can't pick the right tools. Otherwise, fold it into the main loop, turn its prompt into a skill, run your evals and keep whatever wins. Good write-up:

步骤教程短帖