跳到正文
Addy Osmani· @addyosmani · X·· 2 小时前AI 评分56
AI 导读

Addy Osmani 探讨了何时应当把子智能体收回主循环。他建议在系统提示词臃肿时优先通过技能和工具搜索解决问题,并给出了保留子智能体的经验法则,即工作可并行、需要全新上下文或单个智能体无法正确选择工具。

正文 · 原文

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:
https://claude.com/resources/articles/building-agents-when-to-fold-subagents-into-your-main-agent-loop

来源:Addy Osmani · x.com