Claude Code introduces specialized sub-agents

(docs.anthropic.com)

Comments

pjm331 8 hours ago
I've made a few attempts at manually doing this w/ mcp and took a brief look at "claude swarm" https://github.com/parruda/claude-swarm - but in the short time I spent on it I wasn't having much success - admittedly I probably went a little too far into the "build an entire org chart of agents" territory

the main problem I have is that the agents just aren't used

For example, I set up a code reviewer agent today and then asked claude to review code, and it went off and did it by itself without using the agent

in one of anthropic's own examples they are specifically telling claude which agents to use which is exactly what I don't want to have to do:

> First use the code-analyzer sub agent to find performance issues, then use the optimizer sub agent to fix them

My working theory is that while Claude has been extensively trained on tool use and is often eager to use whatever tools are available, agents are just different enough that they don't quite fit - maybe asking another agent to do something "feels" very close to asking the user to do something, which is counter to their training

but maybe I just haven't spent enough time trying it out and tweaking the descriptions

bomewish 14 hours ago
Has CC become much stupider in recent weeks, or is it me? Any anecdata out there?
lvl155 2 hours ago
Here my main problem with sub-agents WITHIN Claude Code. They don’t allow you to use other models. Let’s be honest it’s 99% Sonnet.
Garlef 6 hours ago
One nice realization I had when using a similar feature in roo:

You don't need a full agent library to write LLM workflows.

Rather: A general purpose agent with a custom addition to the system prompt can be instructed to call other such agents.

(Of course explicitly mamaging everything is the better choice depending on your business case. But i think it would be always cheaper to at least build a prototype using this method.)

Dlanv 9 hours ago
I wonder if this is also a good way to create experts for specific tasks/features of a codebase.

For example, a sub-agent for adding a new stat to an RPG. It could know how to integrate with various systems like items, character stats component, metrics, and so on without having to do as much research into the codebase patterns.

T0Bi 15 hours ago
So everything claude-flow¹ already does but worse (I guess?).

¹ https://github.com/ruvnet/claude-flow