Loading video...

Video Failed to Load

Go Home

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

1,062,204 views • 1 year ago •via X (Twitter)

46 Comments

Sid's profile picture
Sid1 year ago

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

Sid's profile picture
Sid1 year ago

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!

Sid's profile picture
Sid1 year ago

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

Karim C's profile picture
Karim C1 year ago

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?

Sid's profile picture
Sid1 year ago

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

Joel Washington's profile picture
Joel Washington1 year ago

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

Sid's profile picture
Sid1 year ago

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

Yaya Soumah's profile picture
Yaya Soumah1 year ago

We will be able to solve this issue?

Sid's profile picture
Sid1 year ago

Yes! You can select just the tools you need

Yaya Soumah's profile picture
Yaya Soumah1 year ago

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?

Sid's profile picture
Sid1 year ago

yes that's exactly it

Yaya Soumah's profile picture
Yaya Soumah1 year ago

That’s great!!!!

Shannon Sands's profile picture
Shannon Sands1 year ago

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!)

Sawyer Hood's profile picture
Sawyer Hood1 year ago

the wizard where you choose the color is 😙👌

Ben Pouladian's profile picture
Ben Pouladian1 year ago

Did I do it right?

Daniel (dB.) Doubrovkine (parody of myself)'s profile picture
Daniel (dB.) Doubrovkine (parody of myself)1 year ago

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

Sergey Karayev's profile picture
Sergey Karayev1 year ago

Coming ASAP to Superconductor!

Leon Builds Agents's profile picture
Leon Builds Agents1 year ago

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

Sid's profile picture
Sid1 year ago

They use the default model as of now

Jackson Atkins's profile picture
Jackson Atkins1 year ago

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

Alex Christou's profile picture
Alex Christou1 year ago

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)

Code Centre's profile picture
Code Centre1 year ago

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.

pedram.md's profile picture
pedram.md1 year ago

hell yea lets GO

Alexander's profile picture
Alexander1 year ago

I would, but I can't.

Christian Ulstrup's profile picture
Christian Ulstrup1 year ago

"I'm assembling a team"

topmass's profile picture
topmass1 year ago

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

Sid's profile picture
Sid1 year ago

👀

Neil's profile picture
Neil1 year ago

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

adwd118🦀's profile picture
adwd118🦀1 year ago

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

Mihai's profile picture
Mihai1 year ago

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

shpetim's profile picture
shpetim1 year ago

why not just make one that does all of tasks?

Yifan's profile picture
Yifan1 year ago

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

Chenlei Hu's profile picture
Chenlei Hu1 year ago

My new SDE department🤓

valo's profile picture
valo1 year ago

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

туmrtn's profile picture
туmrtn1 year ago

@apples_jimmy Sweet. So ready for this.

Dino 🇦🇷's profile picture
Dino 🇦🇷1 year ago

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?

Soheil's profile picture
Soheil1 year ago

Can you parallelize sub agents?

Ivor's profile picture
Ivor1 year ago

@icookandcode check this out

Patricio's profile picture
Patricio1 year ago

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

Eric Buess's profile picture
Eric Buess1 year ago

SO excited about this! Thank you!

Allen's profile picture
Allen1 year ago

Will hooks execute the same for the sub agents?

Adam Badar's profile picture
Adam Badar1 year ago

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?

Steve's profile picture
Steve1 year ago

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

Marcel Pociot 🧪's profile picture
Marcel Pociot 🧪1 year ago

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

Nathan Shearer's profile picture
Nathan Shearer1 year ago

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

Mat Warger's profile picture
Mat Warger1 year ago

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!

Related Videos