Building more effective AI agents
Anthropic · 2025-10-17 · 18м 58с · 89 834 просмотров · YouTube ↗
Топики: ai-agent-orchestration
🎧 Аудио
📝 Summary
model=deepseek-v4-flash · prompt=summary-v7 · 6 241→2 152 tokens · 2026-07-20 13:47:25
🎯 Главная суть
Claude обучали быть агентом через RL на разнообразных задачах (кодинг, поиск), что сделало его эффективным в долгих multi-step процессах с использованием инструментов. Эволюция идёт от жёстких workflow к агентным циклам и мультиагентным системам, где один Claude может делегировать задачи параллельным sub-agent'ам. Главный принцип — начинать с простого и усложнять только по необходимости.
Почему Claude эффективен как агент
Claude тренировали на открытых задачах, где он может делать много шагов, использовать инструменты и исследовать среду перед финальным ответом. Через reinforcement learning на кодинге, поиске и других доменах модель училась действовать с минимальным руководством и обратной связью. Кодинг стал первой и ключевой тренировочной областью — это фундаментальный навык для агента: если модель умеет писать код, она может делать веб-поиск через API, создавать расписания, генерировать файлы. «Тренируйся на самом сложном сначала — всё остальное станет легко».
Claude Code SDK — готовая основа для агентов
Вместо того чтобы строить агентский цикл с нуля (свои loops, инструменты, выполнение, взаимодействие с файлами), разработчики могут использовать Claude Code SDK как ядро. Это не просто утилита для кода, а полноценный общий агент, который чаще всего применяют для кодинга. Он уже содержит готовый agent loop, который Anthropic отполировали. Разработчик добавляет свою логику и инструменты через MCP, убирает кодинговые части и подставляет нужные промпты. Пример не-кодингового использования: Claude Code спланировал свидание — нашёл через веб-поиск активности и рестораны в районе.
Skills — расширение возможностей агента
Если Claude MD-файлы давали модели инструкции о стиле программирования и структуре проекта, то Skills — это следующий шаг. Skill включает любые файлы: шаблоны PowerPoint, скрипты, изображения, ассеты. Агент получает не просто инструкции, а готовые ресурсы для работы. Аналогия из «Матрицы»: когда Нео «загружают» кунг-фу — после этого он сразу мастер. Точно так же, получив Skill по созданию электронных таблиц, Claude мгновенно становится «банкиром» и строит финансовую модель.
От workflow к агентам и «workflow из агентов»
Раньше типичный пайплайн выглядел как workflow: Claude одним выстрелом писал SQL-запрос, загружал данные, передавал на следующий шаг для построения графика. Если SQL падал, второй шаг ничего не получал. Сейчас эволюция: каждый шаг такого workflow — это agent loop. Claude пишет SQL, запускает, видит вывод, повторяет, пока не получит корректное значение — и только потом переходит к следующему шагу. Workflows всё ещё хороши для низкой задержки и single-shot ответов, но агентные циклы значительно лучше по абсолютному качеству.
Мультиагент: параллельная работа нескольких Claude
Мультиагент отличается от workflow тем, что несколько копий Claude работают одновременно, а не последовательно. Один родительский агент делегирует задачи sub-agent'ам, которые выполняются параллельно. Так работает Deep Research: оркестратор создаёт несколько sub-agent'ов, каждый делает свои поиски одновременно — ответ приходит быстрее. В Claude Code sub-agent используется, когда подзадача требует десятков тысяч токенов (например, поиск реализации класса), но итог — маленький ответ. Основной контекст не забивается мусором: sub-agent — это просто tool, которому Claude передаёт промпт как параметр, а тот возвращает финальный результат.
Типичные ошибки при проектировании агентов
Главная проблема — овербилдинг: слишком сложные мультиагентные системы тратят время на коммуникацию между агентами вместо реальной работы. Как в больших организациях с высоким overhead. Второе — нужно смотреть на промпты и тулы глазами модели: она видит только то, что вы ей показываете. Проверяйте сырые логи tool calls. Третья частая ошибка — MCP и инструменты делают one-to-one с API. Правильно: инструменты должны быть one-to-one с UI. Если для понимания слака человеку нужно три API-вызова (конвертировать user ID, channel ID, загрузить чат) — это три tool call'а для модели. Вместо этого создайте один tool, который отдаёт всё сразу, как пользователь видит в интерфейсе.
Будущее агентов: верификация и computer use
Следующие 6–12 месяцев — агенты станут вездесущими, начиная с верифицируемых областей вроде кодинга. Ключевой прорыв — когда агенты смогут проверять свою работу сами: написали веб-приложение, открыли его, нашли баг и исправили без человека. Computer use откроет домены, куда агенты раньше не могли зайти: например, Claude сможет сам редактировать Google Doc — скроллить, кликать, менять текст, а разработчику не придётся копировать результат туда-сюда. Комбинация сильного кодинга и способности действовать в интерфейсе замкнёт цикл тестирования.
📜 Transcript
en · 3 714 слов · 45 сегментов · clean
Показать текст транскрипта
I think there's also a lot of interesting things to explore of multi-agent as a form of test time compute. Basically letting many clods work on a problem can get you a better final answer than just one. Hey, I'm Alex. I lead clod relations here at Anthropic. Today we're going to be talking about building more effective agents, and I'm joined by my colleague. I'm Eric. I work on multi-agent research here at Anthropic. Eric, to kick us off here, can you just explain why clod is so good at agent tasks? Yeah, sure. So during our training, we let Claude practice being an agent. We give it open-ended problems for it to work on where it can take many steps and use tools, explore where it is and what it's working on before giving a final answer. And by getting lots of practice and being an agent, Claude becomes really good at this. Okay, so it's these long-running tasks and a variety of domains, basically. And through the process of RL and other training mechanisms, Claude is learning an objective of how to do these things with basically limited guidance or feedback. Exactly. We do lots of RL on coding tasks, on search task, lots of things for Claude to practice being an agent in different environments. There's this conception, I think, of Claude models that they're really, really strong in code, but that doesn't always maybe transfer into other domains or that coding is its own separate thing. What are your views on that generally? Coding has been the first task that we've really focused on. But once you have an amazing coding agent, A coding agent can do any other kind of work. If you need to do search, you can do web search via APIs. You can plan a weekend by creating a schedule. So we really see coding as a very fundamental skill for an agent that's going to have a lot of spillover effect to be able to make Claude great at all sorts of things and sort of like train on the hardest thing first and then everything else will become easy. One interesting thing I've seen here recently with a feature that we released in in claude.ii on on the web was the ability for claude to create actual files through writing code so it was like writing a python script and then the python script got ran and all of a sudden you have like a excel sheet that popped out of that is that kind of the future direction that we're headed is like claude's writing scripts and taking actions on computers to create files or do things that are traditionally not code related i think that's one of the really effective ways claude will be able to do these things Actually, just a few days ago, Claude was helping me make some diagrams for a presentation, and it was able to create files just by writing out the SVGs. But then I wanted it to make a much more detailed diagram that would need a lot of repetition. And so Claude was actually able to do this by writing some code to generate the SVG, which ran much, much faster than Claude itself needing to write, you know, it was a very, very repetitive image file with lots and lots of sort of detailed patterns in it. So yeah, I think that... for a lot of cases, writing code to produce some artifact will be much better than just trying to create that artifact directly. So it's one way to do it for harder cases. Okay, right. Yeah, code allows for kind of this speed up that's not even possible with like a human like clicking and dragging and using their mouse on a computer, like repeated actions. Exactly. Cloud gets a for loop. Yeah. If you're a developer and you're building an agent with Cloud, one thing that we've started to see become really popular is this Cloud Code SDK. Can you walk me through what that is and how you're seeing developers starting to use that? Yeah, so we're really excited about developers using the Cloud Code SDK. This is something where previously, if you wanted to build a coding agent or sort of any agent, you had to really go from nothing but hitting an API endpoint, build the loops yourself, build all the tools, build executing these tools, interacting with files. interacting with MCP, we basically have already built all of that into Cloud Code. And even though its name is Cloud Code, really Cloud Code is just a general purpose agent that is most often used for code. Yeah, we are encouraging a lot of developers to use this SDK as the core of their agent loop. And that way they don't have to spend a lot of time reinventing the wheel. that we've already put a lot of time into polishing and perfecting that core agent loop. Instead, they can use that and then just add their tools for their own custom business logic or affordances into that via MCP. It offers that customizability to where you can remove the coding specific bits and put in whatever prompt or tools that you need. just like slots nicely into the scaffold. Yeah. I think also the people have been using Claude code for all sorts of things. I think the, my strangest use of Claude code is I once had it plan a date for me, where I did a bunch of web searches, found interesting activities and restaurants in the area. And so not, not a code related at all, but it has all the tools. How was the date? It was pretty good. Yeah. Yeah. It's great. Yeah. I did a good job. Yeah. Faloli gardens and then a Chinese restaurant nearby. Wow. Yeah. Claude did a good job. I'm impressed. One other thing on Claude code that has been another popular feature I've seen a lot of software engineers use lately is Cloud MD files. So these are files that you define within a project and gives Cloud relevant information about what your programming style is or what the layout of the directories are, things like that. We've now launched a similar concept that maybe takes a step further called skills. Can you explain what skills are and how we're starting to see developers use them and what they mean for agents? Yeah, so Claude Skills are a very exciting extension of Claude MD files where instead of just giving it notes files, you can give it any sort of file. That can be PowerPoint template files. It can be code and helper scripts that you want it to use. It can be images or assets. And I think this extension of not just instructions but resources for the agent to use is a really, really powerful tool where you might say, uh not just these are my instructions for making powerpoint presentations but here's you know the headshots of all of our company leadership that you might need to reuse in many presentations and just giving it all to claude in a reusable way so it has everything it needs right there one analogy i've heard um used internally that i really really like is it's kind of like in the matrix when neo is learning kung fu for the first time and they like inject him with the kung fu information and all of a sudden he's like a kung fu master that feels like very similar to when i give claude a skill of some type like here's how you create spreadsheets and it's like oh all of a sudden claude's like a banker now and it can create a financial model for me that and where they load in all the racks of equipment and tools and stuff for them to grab yes you can start with these things not just uh not just instructions yeah i love that switching gears a little bit so the last time we chatted on on camera here a few months back And we were talking about agents. And at the time, we were in this transition from maybe workflows, which are like very defined ways of how you chain together prompts to what was just like a single agent system where you're running a model in a loop. Since then, what's been the evolution in the space? Yeah, so we've really seen agents take over from workflows where Claude has gotten so good at responding to feedback and correcting its own work that now agent loops really dramatically outperform workflows for most things where you care most about absolute quality. Workflows are still great where you need very low latency and you want Claude to just give a best answer single shot. Agents are really, really high performance now. I think one of the things that I've seen develop since then is what I call workflows of agents. Whereas previously an application might have had a workflow that had Claude and Singleshot write a SQL command in order to load data, and then that would go to another step in the workflow where it would then write a chart. to display that data. And if the SQL command failed, it doesn't know that it's not returning any data. And then the second step of the workflow is kind of screwed. But now I've seen people where each one of those steps in the workflow is actually a closed loop, where instead of just writing a single attempt at a SQL query, it then runs, Claude sees the output, and then it can keep iterating and repeat until it knows that it got the right value. And then it transitions to the next step in the workflow. Okay, interesting. So yes, this evolution, I guess, of chaining together prompts to now chaining together agents in these loops themselves. We'll see where that goes from there. One other big topic of discussion I feel like that has taken a lot more chatter as of late is this question around observability and verification. Can you explain what that challenge is? how people are starting to think about it. Yeah, so observability is very hard for agents, especially as the systems get more complex. And I think that's one of the reasons where I still really believe that even though the models are much more capable today than they were a year ago, and they can work better in an agent or even more complex setups, I think that simplicity is still a really important thing. And that even though you can build a big workflow of agents, you should still start sort of by from the simplest possible thing and then work up to a more complex solution. And you know, that's first trying single-shotting things or trying, you know, single-shot prompt to cloud code SDK, which is now just sort of such a simple, easy thing to use. And then I think only as needed, adding layers and layers of complexity, because that's going to make the observability harder. Another term here. maybe in parallel to workflows of agents is multi-agent. Is that the same thing or is that something different? Yeah. So multi-agent is my main area of research now. I'd say it's pretty different from a workflow of agent. Workflows of agents were sort of one agent goes, finishes, and then it transitions or its output gets sent to the next agent to work on. Multi-agent is where fundamentally you have multiple agents or multiple clods working at the same time. where maybe one parent agent delegates tasks to five sub-agents that can each then work in parallel. This is how our deep research search product works. The main orchestrator agent will decide and create several sub-agents that can do lots of searches in parallel. And that's way better for the user because all this happens in parallel and you get the answer back much sooner. We also see things like in Claude code, the model will use a sub-agent. So if some subtask is going to take tens of thousands of tokens, like maybe finding a certain implementation of a class, but the answer really boils down to something very small, it can do that work in a sub-agent to protect the main context from all of those tokens that aren't necessary for the main work. So yeah, basically it can... offload this piece of work and just get back the final answer that it needs. So are we exposing then this sub-agent in this case is like a tool that Claude can call upon? Exactly. It'll pass in the prompt as like a parameter or something. Exactly. So to Claude, sub-agents look like a tool where it can pass prompts to the sub-agents that will then go and do work. And part of my research is training Claude to be a better manager and know how to give clear instructions to its sub-agents and make sure that it gets the right things it needs out of them. How is this different than, or is this maybe like a specialized part of tool calling overall, or is it different in some ways? I would say that this uses the framework of tool calling for that communication protocol. And it just happens to be a tool that itself is backed by Claude, by another Claude. Does Claude have like an intuitive understanding of? what a sub-agent is or do we have to like teach it like you're actually talking to another version of yourself claude like don't get freaked out sort of thing uh i would say that uh claude makes a lot of the same mistakes that first-time managers make uh of where it will give incomplete or sort of unclear instructions uh to a sub-agent and you know kind of expect the sub-agent to have the right context when actually it doesn't. And I think something we've seen during training on sub-agents is that Claude starts to get much more verbose and much more detailed and give its sub-agents the overall context of what's going on so that they can do better work that adds up to the whole. So I'd say that, you know, it definitely Claude has a lot to learn and is learning to get better at this. Okay, cool. What are some of the use cases here? So there's search is one and like... preserving context is there other things that people are using multi-agent for right now yeah i think uh coding is uh there's a lot of sub-agent use in coding um anything that can be parallelized or map reduced if you have something where you need to produce a lot of output or there's maybe 10 parts of some output you're creating if you can split that up among 10 sub-agents That can be really, really effective for saving context and getting faster results. I think there's also a lot of interesting things to explore of multi-agent as a form of test time compute. Basically letting many clods work on a problem can get you a better final answer than just one. Just like with people, a bunch of people putting their heads together can get better results. In that case, are we specializing these agents in any way? Do we gear them towards one type of persona? or another or is it just kind of let them take whatever form? I think you can do either. You know, sometimes it's helpful to give a bunch of people the same exact task and see what the different answers they come up with are. Sometimes it's good to have many people or many agents work from different approaches to the same problem or split it up. One thing I've seen a lot is customers that have a lot of tools, maybe 100 or 200 tools that they want an agent to use. they found that it's really good to split up those tools among sub-agents. So the main agent, all it has to know is, hey, I want to use this bucket of tools, and then there's a sub-agent that goes and does the actual work there. So that each sub-agent just has maybe 20 tools that it needs to understand and know how to use. Have we tried scaling agents all the way up? What happens if you have 1,000 versions of Claude all working on one problem? Does it just turn into chaos? I've not tried that yet. Okay. I'll get back to you. Good research idea right there. What are some other failure modes that we're seeing right now with agents or multi-agents? Yeah, I think just like any sort of complex system, I think it's easy to overbuild something and lose a lot of efficiency and just... creates sort of a lot of like dead weight. And so I've seen overbuilt multi-agent systems spend too much time just talking back and forth with each other and not actually making progress on the main task. And human agents or human organizations suffer from the stew. As companies get bigger, you have more communication overhead and less and less work is actually the people on the ground making progress on things. And so I think that's another interesting thing to study is like, how can we make organizations of clods very effective while keeping the overhead small. If I'm a developer and I want to get started with agents, whether I'm building on the Cloud Code SDK or just trying to roll my own, do you have any tips or best practices that you'd give them? Yeah, I think the best practices really remain start simple. and make sure you only add complexities you need. I think another really important thing is think from the point of view of your agents. If you're giving Claude tools or prompts or sort of any affordances, put yourself in Claude's shoes and read what it actually gets, what it sees as the model, and make sure there's actually enough information there for you to solve the problem. It's very easy to sort of forget. uh you know that we're seeing everything and the model only sees what we what we show it and it's uh yeah yeah i feel like it's always important to go back into like the raw transcript of like your tool calls and your logs and everything just view that exactly and i think another thing is that as people are building more things like mcps and trying to connect claude to more things i think a a very natural first instinct that people have that's very wrong is that an MCP or tools should be one-to-one with your API. And I think actually tools for the model or MCPs should be one-to-one with your UI, not your API. Because ultimately the model is a user of these things. It doesn't work like a traditional program. So if your API might have three separate endpoints for say loading a Slack conversation and turning a user ID into a username and turning a channel ID into a channel name. If those are the tools you give the model to understand Slack, for it to understand anything, it's going to have to make three tool calls. For us as a user, we just see everything all nicely rendered. And so you want to create a tool or an MCP for the model that it presents everything all at once with as little interaction as possible. Just like for a user, it would be terrible if every time you had Slack, you had to click on a user ID to see what the name was, et cetera. Right. I like that. It's kind of working back from the end state almost instead of just trying to map the technical specs one-to-one. Exactly. And sort of surround whatever context you need. What do you think the future of Agents has in store for us? Any predictions on... these next six to 12 months? I think agents are going to become a lot more pervasive, sort of starting in areas that are verifiable, like software engineering. You know, coding agents have already changed how I work and how tons of people at Anthropic work. And I think there's still a huge amount to be gained there. I think one of the really exciting things is if agents can start getting better at verifying their own work with things like computer use of They can write a web app, but can they go actually open it up and test it and then find their own bug instead of you needing to do that? I think that's one of the most exciting things is closing that loop of testing so that I don't have to be Claude's QA engineer. Right. So kind of combining all these things from the software engineering abilities to the computer use abilities once we put all these pieces together. Yeah. And I think the computer use is also going to really open up a lot of other avenues and domains where agents have been sort of locked out of so far. What would be an example of that? I think that if you want to have Claude sort of do work for you in a Google Doc, right now it's, you know, Claude can write for you, but you're copy and pasting back and forth. Right. But if you have computer use and you say, hey, Claude, can you clean up this Google Doc? It can just do it right there for you, scrolling around, clicking, editing the text. And that's just such a nicer experience than needing to copy and paste back and forth. Yeah. It's like wherever you are, Claude can be there with you, if it has, with computer use. Oh, I'm very excited to have Claude write. my Google Docs and respond to all my comments for me. Exactly. That'd be a very nice future. Eric, this has been great. Thank you so much for the conversation. Absolutely. Thank you.
⚙️ Pipeline jobs
| Stage | Status | Att. | Updated | Error |
|---|---|---|---|---|
| download | done | 2/3 | 2026-07-20 13:46:47 | |
| transcribe | done | 1/3 | 2026-07-20 13:47:01 | |
| summarize | done | 1/3 | 2026-07-20 13:47:25 | |
| embed | done | 1/3 | 2026-07-20 13:47:27 |
📄 Описание YouTube
Показать
Anthropic’s Alex Albert (Claude Relations) sits down with Erik (Multi-Agent Research and co-author of our blog post, Building Effective Agents) for a discussion on the evolution of agents over the past six months, including tips for building multi-agent systems, common multi-agent patterns, and best practices for using skills, MCP servers, and tools. 00:00 - Introductions 00:35 - Training Claude to tackle agentic tasks 1:30 - Making Claude more autonomous with code 3:20 - Using the Claude Agent SDK to build agents 5:00 - Tips for using Agent Skills 6:40 - The evolution of workflows and agents (workflows of agents) 8:30 - The value of simple agent architectures 9:30 - Building multi-agent systems: orchestrators, subagents, and tool calling 11:40 - Training Claude to use subagents 12:25 - Multi-agent use design patterns: parallelization, MapReduce, and test-time compute 13:20 - Coordinating problem solving with tools and subagents 14:15 - Common agent failure modes 15:00 - Best practices for getting started with building agents (context engineering, MCPs, and tools) 17:15 - The future of agents: coding, computer use, and beyond Read the original blog post: https://www.anthropic.com/engineering/building-effective-agents Learn more about Agent Skills: https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills