SubAgent
SubAgent (Hierarchical Agents): What is it?
A SubAgent is a specialized, smaller agent responsible for a specific subset of a larger task. In a Multi-Agent System, a main “Orchestrator” agent breaks down a complex goal and delegates parts of the work to SubAgents (e.g., a “Coder” agent, a “Researcher” agent, a “Reviewer” agent).
Each SubAgent has its own focused prompt, specialized tools, and distinct persona, making it more effective at its specific niche than a single generalist agent.
Why is it Important?
- Complexity Management: LLMs struggle with very long, multi-faceted contexts. Decomposition prevents the model from getting “confused” or losing focus.
- Modularity: You can optimize and swap out specific SubAgents (e.g., upgrade the “Coder” to a better model) without changing the rest of the system.
- Parallelism: Multiple SubAgents can work on different parts of a project simultaneously.
Technical View
The architecture is often hierarchical or a directed graph of communicating nodes.