创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Anthropic建议以单一主循环精简智能体

AI 总结

Anthropic发布了一份18分钟指南,建议默认采用一个模型、一个上下文窗口和一个开放式工具循环。指南主张将领域流程放入技能,将硬性限制和查询放入工具;只有在实测存在上下文膨胀、可丢弃上下文的并行需求,或工具过多及指令冲突时,才应保留子智能体。Anthropic还援引称其单循环速度约为多智能体框架两倍的客户案例,并表示若干部署的质量、成本和延迟均有改善。

深度见解

这份指南为智能体架构精简提供了具体判断标准,但部署对比属于厂商自述,Reddit讨论也未提供独立验证结果。

Anthropic published an 18-minute guide on Oct 22 called "When to fold subagents into your main agent loop." It is aimed at enterprise agent builders, but the lessons apply to anyone who set up a pile of subagents in Claude Code.

Main points:

- Default to one model, one context window, one open-ended tool loop. Put domain procedures into skills and hard limits and lookups into tools. Let the model write and revise its own plan. - Keep subagents only when you measure degradation from context bloat, need parallel work with disposable context, or the agent struggles with too many tools or conflicting instructions. - One customer's single loop ran roughly 2x faster than its multi-agent harness. Several deployments saw better quality, lower cost and lower latency. - Tool choice tends to degrade past 30-50 tool definitions in the system prompt. Group tools by user intent and use tool search with deferred loading. - Anthropic cut Claude Code's own system prompt for newer models by over 80%. - Start with evals before you refactor. 10 golden examples are enough to begin. Run each task more than once, because one regression only showed in one of two runs. - Failure modes they list for big orgs: lost context between agents, subagent sprawl, the "Frankenprompt" where every team adds rules, overly local evals, latency. - New /claude-api skills for the migration: build-eval, prompt-audit, hillclimb, cost-optimize, plus /skill-creator and /skill-doctor. There is a kit on GitHub (anthropics/single-agent-loop-kit).

I had about six subagents at one point and ended up using two. This article matches what I saw: most of them were just skills with a separate context window.

Where do subagents still earn their place for you, and how many do you actually use day to day?

Source: https://claude.com/resources/articles/building-agents-when-to-fold-subagents-into-your-main-agent-loop

submitted by /u/emarkosov [link] [comments]

#Anthropic#Claude Code#Agent Skills

原文约 1 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。