Skip to content
AI Growth Lab
Navigation menu
AI Growth Lab

Loading lesson…

CoursesContactPrivacy

Curriculum based on Datawhale / Easy Vibe · CC BY-NC-SA 4.0

← Back to course

AI-Native Engineer

Claude Code Fundamentals
  1. Getting Started with Claude Code
  2. Essential Claude Code Techniques
  3. Configuring Claude Code for Your Project
  4. Everyday Development Workflows
  5. Troubleshooting Claude Code
MCP: Connecting Claude Code to Tools
  1. Getting Started with MCP in Claude Code
  2. Using and Troubleshooting MCP
  3. Configuring Common MCP Servers
Claude Code Skills
  1. Finding and Using Your First Skills
  2. Understanding Skills and SKILL.md
  3. Creating and Improving Your Own Skills
  4. How Claude Skills Work Internally
Claude Agent Teams
  1. Understanding and Setting Up Agent Teams
  2. Build an RPG with Agent Teams
  3. Agent Teams Best Practices
  4. Choosing When to Use Agent Teams
AI-Assisted Development Workflows
  1. Choosing an AI Development Strategy
  2. Developing Features and Fixing Bugs with AI
  3. Refactoring and Reviewing Code with AI
  4. Building a Project Knowledge Base
  5. Improving AI Collaboration Efficiency
Building Agents with Claude Agent SDK
  1. Getting Started with Claude Agent SDK
  2. Advanced Features and Practical Agent Examples
  3. Building a Code-Quality Guardrail Pipeline
Engineering Workflows with Superpowers
  1. Getting Started with Superpowers and Its Core Skills
  2. Build an Authentication System with Superpowers
  3. Configuring and Using Superpowers Effectively
Spec Coding
  1. Spec Coding Foundations
  2. Practicing Spec Coding in Claude Code
  3. Moving from Vibe Coding to Spec Coding
  4. Spec Coding FAQ and Summary
GitHub Spec-Driven Development
  1. Workflow Foundations and Setup
  2. From Product Idea to Specification
  3. From Specification to Working Software
  4. Reusable Prompts and Responsible Autonomy
Cross-Platform Development
  1. From a Web Page to Real Software and an AI-Native Product
  2. How to Choose the Right Platform for Your App
  3. How to Build an Android App with Jetpack Compose
  4. How to Build an iOS App with SwiftUI
  5. Build a Store Inspection App with React Native and Expo
On this page
  • Suitable scenarios
  • Cost and performance

Suitable scenarios

Agent Teams is powerful, but not every task is suitable for it. Understanding the right scenarios helps you choose correctly.

Lesson Contents

  1. Suitable scenarios
  2. Cost and performance
AI Development FAQ and Summary
How to Build a Cross-Platform App with Flutter
  • How to Build a PWA Local App
  • How to Build a Browser AI Assistant Extension
  • How to Build a Cross-Platform Electron Desktop App
  • How to Build Platform, Pixel-Art, and 3D Games with Godot
  • How to Build a VS Code Extension
  • How to Build an Industrial Qt Desktop App
  • How to Build Your Personal Website and Academic Blog
  • How to Publish the Application You Built
  • Scenarios where Agent Teams fits well

    Complex system refactors

    When the refactor spans multiple modules with clear boundaries:

    Scenario: split a monolithic application into microservices
    
    Create a team:
    - Teammate A: analyze dependencies in the user module
    - Teammate B: analyze dependencies in the order module
    - Teammate C: analyze dependencies in the payment module
    - Teammate D: design the inter-service communication protocol
    

    These modules can be analyzed simultaneously, and the final result can be synthesized later, which is much faster than analyzing them serially.

    Multi-angle code review

    When you need to review code from several dimensions:

    Scenario: conduct a full security review of the payment module
    
    Create a team:
    - Teammate A: focus on security vulnerabilities (SQL injection, XSS, etc.)
    - Teammate B: inspect performance issues (N+1 queries, memory leaks, etc.)
    - Teammate C: verify completeness of error handling
    - Teammate D: evaluate test coverage
    

    Each member focuses on one dimension, making the review deeper, and the final report more complete.

    Parallel frontend and backend development

    When you need to build frontend and backend at the same time:

    Scenario: build a user management feature
    
    Create a team:
    - Teammate A (frontend): implement the user list page
    - Teammate B (frontend): implement the user edit page
    - Teammate C (backend): implement the CRUD API
    - Teammate D (coordination): design the API contract and make sure frontend and backend stay aligned
    

    Frontend and backend can move in parallel as long as the API contract is defined first, following the contract-first principle.

    Competitive debugging

    When you have multiple possible solutions:

    Scenario: fix a complex bug with two possible repair strategies
    
    Create a team:
    - Teammate A: implement solution 1
    - Teammate B: implement solution 2
    - Teammate C: evaluate the pros and cons of both
    

    Both solutions can be implemented and tested in parallel, and the better one can be chosen afterward.

    Documentation generation

    When you need to produce a large amount of documentation:

    Scenario: write documentation for the whole project
    
    Create a team:
    - Teammate A: write API documentation
    - Teammate B: write the deployment guide
    - Teammate C: write the development guide
    - Teammate D: write the troubleshooting manual
    

    Multiple documents can be written at the same time, greatly improving efficiency.

    Scenarios where Agent Teams is not a good fit

    Simple modification tasks

    Not suitable: variable renaming, single bug fixes, tiny feature additions
    

    For these tasks, the cost of starting a team is greater than the actual work.

    Highly serial tasks

    Not suitable: tasks that must happen strictly in sequence
    

    If task B cannot start until task A finishes, there is no real space for parallelism.

    Cost-sensitive tasks

    Agent Teams consumes 2 to 4 times the tokens of a single instance, depending on the team size. If cost is the primary concern, a single instance may be the better choice.

    Decision flowchart

    Are there multiple independent subtasks?
        │
        ├─ No → Use a single instance
        │
        └─ Yes →
             │
             Can the subtasks be assigned to different files?
             │
             ├─ No → Consider serial execution or split the task further
             │
             └─ Yes →
                  │
                  Is the cost acceptable (2-4x)?
                  │
                  ├─ No → Use a single instance
                  │
                  └─ Yes → Use Agent Teams ✓
    

    Cost and performance

    Using Agent Teams increases cost, but it can also produce significant efficiency gains. Understanding this tradeoff helps you make informed decisions.

    Cost analysis

    Token consumption and team size

    The token consumption of Agent Teams is roughly linear with team size:

    Team sizeRelative costSuitable scenario
    1 person (single instance)1xSimple tasks
    2-person team2-2.5xMedium complexity
    3-person team3-4xComplex tasks
    5+ person team5-6x+Large projects

    Why it is not perfectly linear:

    • Startup cost: each member must receive initial context when it starts
    • Coordination cost: communication between members through the messaging system also consumes tokens
    • Team Lead cost: Team Lead usually uses Opus, which is more expensive

    Concrete example numbers (Claude 4.5 Sonnet):

    • Input: $3 per million tokens
    • Output: $15 per million tokens

    Suppose a task requires:

    • Team Lead (Opus): 50K input + 20K output ≈ $2.25
    • 3 Teammates (Sonnet): each 30K input + 15K output ≈ $2.7 × 3 = $8.1
    • Total: about $10.35

    The same task on a single Sonnet instance:

    • 100K input + 50K output ≈ $1.05

    Cost multiplier: about 10x

    But time saved: potentially reduced from 3 hours to 1 hour

    Efficiency gains

    Anthropic internal testing data:

    • Large project refactors: around 50% improvement in efficiency
    • Parallel multi-module development: around 60-70% improvement
    • Documentation generation tasks: around 80% improvement

    Real case:

    Anthropic's engineering team once used 16 parallel agents to build a C compiler in about 2 weeks that could compile the Linux 6.9 kernel, around 100,000 lines of Rust code, and it passed 99% of GCC tests.

    Cost optimization strategies

    Strategy 1: mix models

    Team Lead: Opus (strong reasoning needed)
    Teammates: Sonnet (high value for cost)
    Simple tasks: Haiku (cheapest)
    

    Strategy 2: adjust team size dynamically

    Analysis phase: 5-person team (multi-angle analysis)
    Implementation phase: 3-person team (parallel coding)
    Testing phase: 2-person team (testing and fixing)
    

    Strategy 3: use Agent Teams only in selected phases

    Do not use Agent Teams for the entire project. Use it only in the most complex phases:

    Phase 1 (requirements analysis): single instance
    Phase 2 (architecture design): Agent Teams (multiple plans explored in parallel)
    Phase 3 (coding): single instance
    Phase 4 (code review): Agent Teams (multi-angle review)
    Phase 5 (documentation): Agent Teams (parallel writing)
    

    When it is worth it

    Worth it when:

    • The project timeline is tight, and the value of efficiency gains exceeds the token cost
    • The task is highly complex, and a single instance is likely to miss details
    • You need multi-angle analysis and validation

    Not worth it when:

    • The task is simple, and the overhead of starting a team is too high
    • Cost is highly sensitive and the token budget is limited
    • The task is highly serial and offers no space for parallelism

    Previous
    Sign in to track progress
    Next