Max Techera.

Architecting Production AI Since 2012

Site

CoursesBlogMy StoryFAQ

Social

Legal

PrivacyTerms

© 2026 Max Techera. All rights reserved.

System Stable // Uruguay to Global
Max Techera.
CoursesBlog
Back to course

Claude Code Mastery: From 0 to 10x Developer

Progress0/13
1. Foundations
  • 1
    Introduction to Claude Code
  • 2
    Installation and Configuration
2. Working Modes
  • 1
    Default Mode (Interactive)
  • 2
    Auto Mode (YOLO)
  • 3
    Plan Mode and Extended Thinking
3. Memory Systems
  • 1
    The CLAUDE.md System
  • 2
    Context Management
4. Advanced Techniques
  • 1
    Sub-agents
  • 2
    MCP Integrations
  • 3
    Hooks
5. Production
  • 1
    Testing with Claude
  • 2
    CI/CD Pipelines
6. Action Plan
  • 1
    The 7-Day Plan
0%
CoursesClaude Code Mastery: From 0 to 10x DeveloperAdvanced TechniquesSub-agents
Advanced Techniques

Sub-agents

Learn to use sub-agents to parallelize tasks and create specialized agents for code review, testing, and documentation.

1.805 min

Sub-agents

Sub-agents are specialized Claude instances that work on specific tasks in parallel with your main session.

What Are Sub-agents?

Think of sub-agents as team members you can delegate to:

  • Main agent (you): Architects and coordinates
  • Sub-agents: Handle specific tasks

Spawning Sub-agents

Use the Task tool to spawn sub-agents:

> Use a sub-agent to write tests for the auth module
> while I continue working on the API

Claude will:

  1. Spawn a specialized agent for testing
  2. Let you continue other work
  3. Report back when tests are complete

Sub-agent Types

Code Review Agent

> Spawn a sub-agent to review the PR in #123
> Focus on security issues and performance

Testing Agent

> Use a sub-agent to generate comprehensive tests
> for all functions in src/utils/

Documentation Agent

> Have a sub-agent update the README and API docs
> based on recent changes

Research Agent

> Spawn a sub-agent to research best practices
> for implementing rate limiting

Parallel Execution

The real power is parallelization:

> In parallel:
> 1. Sub-agent A: Write unit tests for user service
> 2. Sub-agent B: Write integration tests for API
> 3. Main: I'll work on the new feature

Best Practices

Be Specific

# Less effective
> Have a sub-agent help with tests

# More effective
> Spawn a sub-agent to write Jest unit tests
> for src/services/user.ts covering:
> - createUser with valid/invalid input
> - updateUser authorization checks
> - deleteUser cascade behavior

Set Boundaries

> The sub-agent should only modify files in
> src/__tests__/ and not touch production code

Review Results

Always review sub-agent output:

> Show me what the testing sub-agent produced

When to Use Sub-agents

TaskMain AgentSub-agent
Core feature
Tests for feature
Documentation
Code review

Next Steps

In the next lesson, you'll learn about MCPs for integrating external tools.

Previous
Context Management
Next
MCP Integrations