Parallel Subagents for Complex Tasks
Agent can now spawn parallel subagents for better context management and concurrent work
Zed’s AI agent can now spawn multiple subagents that work in parallel, allowing it to tackle complex tasks more efficiently while managing context better.
What Are Subagents?
Subagents are separate AI agent instances that the main agent can create to:
- Work on independent subtasks simultaneously
- Keep focused context for specific problems
- Prevent context window overflow on large tasks
- Parallelize research and implementation work
The main agent coordinates the subagents and combines their results.
How It Works
When you give the agent a complex task:
- The agent analyzes the task and identifies independent subtasks
- It spawns subagents using the new
spawn_agenttool - Subagents work in parallel on their assigned subtasks
- The main agent collects and integrates the results
- You get faster completion for multi-part tasks
This happens automatically - you don’t need to request subagents explicitly.
Why This Matters
Faster completion: Parallel work reduces total time for complex tasks.
Better context: Each subagent maintains focused context for its subtask.
Scalability: Handle larger tasks without overwhelming a single agent’s context.
Smarter coordination: Main agent orchestrates work like a senior developer delegating to team members.
Example Use Cases
- Large refactoring across multiple files
- Researching multiple code patterns simultaneously
- Implementing independent features in parallel
- Analyzing different aspects of a codebase concurrently
The feature is now available to all users after being tested behind a feature flag.