Claude Code Agent Features: Using Sub-agents

AI Navigate Original / 5/16/2026

共有:

Key Points

  • Claude Code runs Sub-agents in parallel to speed large tasks
  • Use for parallel research, refactor division, test parallelization
  • Define specialist agents in .claude/agents/; call explicitly or auto
  • Avoid for tiny/dependent tasks; cost adds up; commit definitions

Claude Code's Agent Features (Using Sub-agents)

Claude Code goes beyond a mere "dialogue CLI," with a Sub-agent feature that runs multiple agents in parallel itself. It can speed up large tasks.

What Is a Sub-agent

A mechanism where the main Claude Code session (orchestrator) calls child agents handling specific tasks. Parallel execution shortens time; context separation raises accuracy.

Typical Use

1. Parallel Research

> I want to write this project's API documentation.
> Investigate each endpoint in parallel.

→ Claude Code spins up 5 Sub-agents,
  each handling a different endpoint, aggregating results.

2. Refactor Division

> Make all TypeScript files strict-mode compliant.
> Process in parallel by module with Sub-agents.

3. Parallelizing Test Generation

> Add tests to each file in src/utils/*.
> 1 Sub-agent per file.

Sub-agent Definition (Project-Specific)

In the .claude/agents/ directory, you can define specialist Sub-agents.

Sign up to read the full article

Create a free account to access the full content of our original articles.