πŸ€– Claude Code Subagents Map of Content

Your comprehensive guide to mastering Claude Code Subagents - from fundamental concepts to advanced implementation strategies

πŸ“‹ Overview

This Map of Content serves as your central hub for all Claude Code Subagents documentation. Whether you’re building your first subagent or optimizing a complex multi-agent system, you’ll find the resources you need here.

πŸ“Š Subagents Analytics

πŸ“ˆ Subagent Statistics

TABLE WITHOUT ID
  "Subagent References" AS Metric,
  length(pages() WHERE contains(lower(file.content), "subagent") OR contains(lower(file.content), "sub-agent")) AS Count
UNION ALL
TABLE WITHOUT ID
  "Agent Patterns" AS Metric,
  length(pages() WHERE contains(file.content, "agent pattern") OR contains(file.content, "agent architecture")) AS Count
UNION ALL
TABLE WITHOUT ID
  "Automation Examples" AS Metric,
  length(pages() WHERE contains(file.content, "automation") AND contains(file.content, "agent")) AS Count

πŸ“„ All Subagent References

TABLE WITHOUT ID
  link(file.name, file.name) AS "Page",
  dateformat(file.mtime, "yyyy-MM-dd") AS "Modified",
  length(filter(split(lower(file.content), "subagent"), (x) => true)) - 1 AS "Mentions"
WHERE contains(lower(file.content), "subagent") OR 
      contains(lower(file.content), "sub-agent") OR
      contains(lower(file.content), "agent")
SORT length(filter(split(lower(file.content), "subagent"), (x) => true)) DESC
LIMIT 20

🎯 Core Documentation

Fundamentals

Advanced Topics

Core Agent Documentation

LIST
WHERE contains(file.name, "Agent") OR
      contains(file.content, "## Agents") OR
      contains(file.content, "# Agents") OR
      contains(tags, "agent")
SORT file.name ASC

πŸŽ“ Learning Resources

Workshop Materials

Integration Examples

πŸ“ Code Examples

TABLE WITHOUT ID
  link(file.name, file.name) AS "Example",
  dateformat(file.mtime, "yyyy-MM-dd") AS "Modified"
WHERE contains(file.content, "```") AND
      (contains(lower(file.content), "agent") OR 
       contains(lower(file.content), "subagent"))
SORT file.mtime DESC
LIMIT 10

πŸ“š Learning Path

Beginner Path

  1. Start with Introduction to Multi-Agent Systems to understand core concepts
  2. Review Basic Architecture Concepts for foundational knowledge
  3. Study Simple Delegation Pattern for your first implementation
  4. Try hands-on exercises from Beginner TypeScript Exercises

Intermediate Path

  1. Deep dive into Advanced Subagent Patterns including pipeline and event-driven architectures
  2. Master TypeScript Advanced Patterns for type-safe agent development
  3. Learn Inter-Agent Communication Strategies
  4. Complete Intermediate Workshop Exercises

Advanced Path

  1. Master Advanced Optimization Techniques for large-scale systems
  2. Study Complex Multi-Agent Orchestration patterns
  3. Implement Distributed Agent Systems
  4. Build production systems using Advanced Application Patterns

πŸ—οΈ Agent Patterns & Architecture

🎨 Design Patterns

LIST
WHERE contains(file.content, "agent pattern") OR
      contains(file.content, "agent architecture") OR
      contains(file.content, "multi-agent")

πŸ”„ Communication Patterns

LIST
WHERE contains(file.content, "agent communication") OR
      contains(file.content, "message passing") OR
      contains(file.content, "agent interaction")

🧩 Composition Patterns

LIST
WHERE contains(file.content, "agent composition") OR
      contains(file.content, "nested agents") OR
      contains(file.content, "agent hierarchy")

πŸ’‘ Quick Reference

Common Subagent Patterns

// Delegation Pattern
const mainAgent = new Agent();
const dataAgent = new SubAgent('data-processor');
mainAgent.delegate('process-data', dataAgent);
 
// Pipeline Pattern
const pipeline = new AgentPipeline([
  new ValidationAgent(),
  new TransformAgent(),
  new StorageAgent()
]);
 
// Event-Driven Pattern
const eventAgent = new EventDrivenAgent();
eventAgent.on('data-received', async (data) => {
  // Process asynchronously
});

Best Practices Checklist

  • βœ… Keep subagents focused on single responsibilities
  • βœ… Implement proper error boundaries
  • βœ… Use TypeScript for type safety
  • βœ… Design for horizontal scaling
  • βœ… Monitor subagent health and performance

πŸ”Œ Agent Integration

πŸ”§ Tool Integration

LIST
WHERE contains(file.content, "agent tool") OR
      contains(file.content, "tool integration") AND contains(file.content, "agent")

🌐 External Systems

LIST
WHERE contains(file.content, "agent integration") OR
      contains(file.content, "external agent") OR
      contains(file.content, "third-party agent")

πŸ§ͺ Testing & Debugging

πŸ” Testing Strategies

LIST
WHERE contains(file.content, "agent test") OR
      contains(file.content, "testing agent") OR
      contains(file.content, "mock agent")

πŸ› Debugging Agents

LIST
WHERE contains(file.content, "debug agent") OR
      contains(file.content, "agent debugging") OR
      contains(file.content, "agent logs")

🏷️ Agent Types

Specialized Agents

LIST
WHERE contains(file.content, "specialized agent") OR
      contains(file.content, "task agent") OR
      contains(file.content, "domain agent")

Utility Agents

LIST
WHERE contains(file.content, "utility agent") OR
      contains(file.content, "helper agent") OR
      contains(file.content, "service agent")

Orchestration Agents

LIST
WHERE contains(file.content, "orchestration") OR
      contains(file.content, "coordinator agent") OR
      contains(file.content, "manager agent")

πŸ“Š Recent Activity

πŸ”₯ Most Referenced Agent Content

TABLE WITHOUT ID
  link(file.name, file.name) AS "Page",
  length(file.inlinks) AS "Backlinks"
WHERE contains(lower(file.content), "agent")
SORT length(file.inlinks) DESC
LIMIT 10

πŸ“… Recent Agent Updates

TABLE WITHOUT ID
  link(file.name, file.name) AS "Page",
  dateformat(file.mtime, "yyyy-MM-dd HH:mm") AS "Modified"
WHERE contains(lower(file.content), "agent") AND
      file.mtime > date(today) - dur(14 days)
SORT file.mtime DESC

SDK Integration

Hooks System

Additional Resources

🎯 Use Cases

LIST
WHERE contains(file.content, "agent use case") OR
      contains(file.content, "agent scenario") OR
      contains(file.content, "agent example")

Agent Lifecycle

LIST
WHERE contains(file.content, "agent lifecycle") OR
      contains(file.content, "agent initialization") OR
      contains(file.content, "agent termination")

Common Agent Patterns

LIST
WHERE contains(file.content, "async agent") OR
      contains(file.content, "reactive agent") OR
      contains(file.content, "proactive agent")

🏷️ Tags

claude-code subagents moc architecture typescript patterns optimization workshop troubleshooting agents automation


This MOC automatically updates to show all agent and subagent-related content.