Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Claude Code is getting a brand new feature: custom subagents. Type `/agents` to get started.

1,062,204 Aufrufe • vor 1 Jahr •via X (Twitter)

46 Kommentare

Profilbild von Sid
Sidvor 1 Jahr

Subagents let you create teams of custom agents, each designed to handle specialized tasks. Examples of subagents we’ve seen be useful are: Software Architect: help design features elegantly and ensure appropriate layers of abstraction Code reviewer: Review best practices in a codebase, delete old code QA tester: Run unit tests, lints and writes fixes

Profilbild von Sid
Sidvor 1 Jahr

If you want to make sure an agent runs, mention it by its name, but Claude Code will also automatically call them based on your prompts. Let us know what use cases you discover as you experiment with subagents!

Profilbild von Sid
Sidvor 1 Jahr

Get started with subagents today with the /agents command, and read the docs to learn more:

Profilbild von Karim C
Karim Cvor 1 Jahr

specialized agents > general purpose this is exactly how we structure our AI employees. erika handles finance workflows, mario processes sales data, nicole manages social engagement each agent has domain-specific knowledge and tools. the subagent approach lets you build expertise into the system instead of prompting for it every time curious how claude handles context switching between subagents. does each maintain separate conversation history?

Profilbild von Sid
Sidvor 1 Jahr

yes each agent has it's own context / conversation history

Profilbild von Joel Washington
Joel Washingtonvor 1 Jahr

@BrandGrowthOS Hi Sid, if I want to pass all existing context from main conversation, is there a way to do that?

Profilbild von Sid
Sidvor 1 Jahr

@BrandGrowthOS not yet, but that's an interesting idea. what use case are you imagining?

Profilbild von Yaya Soumah
Yaya Soumahvor 1 Jahr

We will be able to solve this issue?

Profilbild von Sid
Sidvor 1 Jahr

Yes! You can select just the tools you need

Profilbild von Yaya Soumah
Yaya Soumahvor 1 Jahr

Thank you! So those agents can be pre configured, and then be used by the main agent as needed? By invoking the name of the agent? Or we are not there yet?

Profilbild von Sid
Sidvor 1 Jahr

yes that's exactly it

Profilbild von Yaya Soumah
Yaya Soumahvor 1 Jahr

That’s great!!!!

Profilbild von Shannon Sands
Shannon Sandsvor 1 Jahr

suggestion: Ability to assign a specific model to a particular agent. Would take some of the load off Opus and result in better performance if some agents can use Sonnet (also, Haiku support for simple tasks please!)

Profilbild von Sawyer Hood
Sawyer Hoodvor 1 Jahr

the wizard where you choose the color is 😙👌

Profilbild von Ben Pouladian
Ben Pouladianvor 1 Jahr

Did I do it right?

Profilbild von Daniel (dB.) Doubrovkine (parody of myself)
Daniel (dB.) Doubrovkine (parody of myself)vor 1 Jahr

Nice. Was this inspired by @pauloarruda ‘s claude-swarm? Are you going to make a UI next?

Profilbild von Sergey Karayev
Sergey Karayevvor 1 Jahr

Coming ASAP to Superconductor!

Profilbild von Leon Builds Agents
Leon Builds Agentsvor 1 Jahr

Are these run on haiku or do they utilize the default model selected in chat?

Profilbild von Sid
Sidvor 1 Jahr

They use the default model as of now

Profilbild von Jackson Atkins
Jackson Atkinsvor 1 Jahr

Software engineers will become tech leads of AI agent teams. Claude Code made that a reality today. The future arrived sooner than I though.

Profilbild von Alex Christou
Alex Christouvor 1 Jahr

Super impressed. Built a small directory of some use cases to help users get an idea of what they can do (obviously built with claude code)

Profilbild von Code Centre
Code Centrevor 1 Jahr

Can you allow sub agents to choose which model to use? For example, the main agent uses opus, and one subagent uses sonnet, another subagent uses haiku, etc.

Profilbild von pedram.md
pedram.mdvor 1 Jahr

hell yea lets GO

Profilbild von Alexander
Alexandervor 1 Jahr

I would, but I can't.

Profilbild von Christian Ulstrup
Christian Ulstrupvor 1 Jahr

"I'm assembling a team"

Profilbild von topmass
topmassvor 1 Jahr

any way we can set sonnet vs opus for agents? - I actually don't always want opus on to overthink something like going to scrape a few docs and build me a few file structures while still keeping the overall model for primary use to opus or to automatic setting

Profilbild von Sid
Sidvor 1 Jahr

👀

Profilbild von Neil
Neilvor 1 Jahr

Too bad they rate limit TF out of Claude premium users now

Profilbild von adwd118🦀
adwd118🦀vor 1 Jahr

Is a subagent file length of 400 characters or less appropriate? Claude Code generates about 4000 characters, while document examples are about 800 characters.

Profilbild von Mihai
Mihaivor 1 Jahr

what's the point of creating sub-agents that use the same model? isn't it just making the model roleplay with itself? would be more cool if we could load different open-source models into the sub-agents

Profilbild von shpetim
shpetimvor 1 Jahr

why not just make one that does all of tasks?

Profilbild von Yifan
Yifanvor 1 Jahr

Is there any numbers you can share on how these sub agents improve coding performance? Even internal testing results would be interesting.

Profilbild von Chenlei Hu
Chenlei Huvor 1 Jahr

My new SDE department🤓

Profilbild von valo
valovor 1 Jahr

you are a money making agent. you make the user lots of money. you don't make any mistakes.

Profilbild von туmrtn
туmrtnvor 1 Jahr

@apples_jimmy Sweet. So ready for this.

Profilbild von Dino 🇦🇷
Dino 🇦🇷vor 1 Jahr

I feel I always wanted this, but now, beyond the basic PR review (prev custom command), code reviewer, and system architect, I'm stuck. What other useful ones do you recommend?

Profilbild von Soheil
Soheilvor 1 Jahr

Can you parallelize sub agents?

Profilbild von Ivor
Ivorvor 1 Jahr

@icookandcode check this out

Profilbild von Patricio
Patriciovor 1 Jahr

Claude's going to conquer the world! Keep it going, you're cooking HARD!!

Profilbild von Eric Buess
Eric Buessvor 1 Jahr

SO excited about this! Thank you!

Profilbild von Allen
Allenvor 1 Jahr

Will hooks execute the same for the sub agents?

Profilbild von Adam Badar
Adam Badarvor 1 Jahr

Was curious as to the optimal usage of agents. 1) Would you recommend that we invoke them in command files? (I have command files where I explicitely tell claude to deploy subagents for each part) 2) I often tell Claude to deploy sub-agents when scanning through the codebase. Will these pre-defined agents have the ability to deploy sub-agents if need be?

Profilbild von Steve
Stevevor 1 Jahr

how is this different to custom slash commands? essentially both just entering different prompts into context

Profilbild von Marcel Pociot 🧪
Marcel Pociot 🧪vor 1 Jahr

Very cool! Will subagents be identifiable via the typescript SDK/message formats? Looks like the docs don't reference them yet

Profilbild von Nathan Shearer
Nathan Shearervor 1 Jahr

If my request starts to turn onto a coffee fueled, "oh and this, ooh ooh this!" Feature explosion, I'll throw "create sub agents for implementation" at the end and it works like a charm. AGI

Profilbild von Mat Warger
Mat Wargervor 1 Jahr

I have many MCP tools - when choosing tools and permissions, can we please group MCP tools in submenus or allow us to toggle entire groups on or off? Right now I cannot actually see the entire list of tools within the height of my screen and it makes navigating difficult. TY!

Ähnliche Videos