AcademAI profile stampAcademAI
CoursesLearning PathsMy ProgressSyllabusCertificatesPricingAbout
Become a MemberSign in
AcademAI profile stampAcademAI

Independent premium training for mastering Claude AI, Claude Code, and Anthropic technologies. Source-informed by Anthropic's official training platform.

Learn

  • All Courses
  • Learning Paths
  • AI Syllabus
  • Certificates
  • Start Here

Resources

  • Official Anthropic Training
  • Anthropic Docs
  • GitHub Courses

© 2026 AcademAI. Independent educational project.

Not affiliated with or endorsed by Anthropic PBC.

Courses/Introduction to Subagents/Introduction to Sub-agents Concept
Course overview

Modules

1Introduction to Sub-agents Concept2Creating Your First Sub-agent3Context Management Between Agents4Building Specialized Workflows5Communication Patterns6Best Practices for Sub-agent Design
Module 1 of 6·10 min read

Introduction to Sub-agents Concept

When to use sub-agents

What Are Sub-agents?

Sub-agents are specialized Claude instances that a main agent can create and delegate tasks to. Rather than one Claude instance handling every aspect of a complex workflow, the main agent acts as an orchestrator — breaking the task into parts and assigning each part to a sub-agent with the right focus and tools.

Why Sub-agents?

Two fundamental constraints make sub-agents valuable:

  • Context window limits: Every Claude instance has a finite context window. For very large tasks, the context fills up. Sub-agents have their own fresh context windows, allowing parallel work on different parts of the problem.
  • Specialization: Different parts of a task benefit from different instructions, tools, and focus. A sub-agent tasked with security review can be given security-specific tools and instructions without those cluttering the context of the sub-agent doing documentation.

The Orchestrator Pattern

The main agent acts as a project manager: it plans the overall approach, creates sub-agents with specific mandates, collects their outputs, synthesizes the results, and handles coordination. Sub-agents are focused workers: they receive a specific task, complete it, and return results to the orchestrator.

When to Use Sub-agents

Sub-agents are appropriate when:

  • Tasks can be meaningfully parallelized (independent work that doesn't need to coordinate in real time)
  • Different parts of the task require different specialized context or tools
  • The overall task is too large to fit in a single context window
  • You want to isolate risky operations in a contained sub-agent context

For simple, sequential tasks, sub-agents add overhead without benefit. The overhead of creating and coordinating sub-agents is only worthwhile when the task genuinely warrants it.

Key Takeaways

  • Sub-agents are specialized Claude instances orchestrated by a main agent to handle complex workflows
  • They solve context window limits and enable specialization — different tools and focus per sub-task
  • The orchestrator pattern: main agent plans and coordinates; sub-agents focus and execute
  • Use sub-agents only when tasks can be parallelized or specialized — they add coordination overhead
Course overviewCreating Your First Sub-agent