Prompt Generator
Configure your multi-agent workflow and generate a ready-to-paste prompt for Claude Code's orchestrator agent.
Template Library
Pre-built prompt templates for common multi-agent workflows. Click any template to expand and copy.
CLAUDE.md Builder
Generate a complete CLAUDE.md system prompt for multi-agent orchestration. Customize the rules your orchestrator follows.
Core Concepts
The foundational ideas behind multi-agent orchestration in Claude Code.
"The true constraint of agentic engineering is twofold: the tools we have available and our ability to prompt engineer and context engineer the outcomes we're looking for."
Andy Devdan
The Three Pillars
Multi-Agent Orchestration
A primary orchestrator agent creates task lists and spawns specialized sub-agents. Each sub-agent gets its own context window, model, and session ID. They work in parallel on focused tasks, communicate results back via send_message, then get deleted to force clean context resets. The orchestrator compiles results while keeping its own context lean.
Multi-Agent Observability
You can't improve what you can't see. A custom observability system captures every session start/end, tool call, task update, and inter-agent message. Running Claude Code inside T-Mux provides visual panes for each sub-agent. Andy's system shows swim lanes, event streams, and per-agent drill-downs โ 60+ tool calls per minute across teams of 8 agents.
Agent Sandboxes
Isolated execution environments (like E2B) where agents do work without jeopardizing your local machine. Andy ran 24 sandboxes simultaneously. Pattern: rapid prototype in sandbox โ if you like it, copy locally. Sandboxes live ~12 hours. Also works with dedicated hardware (Mac Mini) for privacy-sensitive workflows. This is the "scale compute" part of the equation.
The Core Four Framework
Everything in agentic engineering boils down to four elements. Every new feature is just a new combination:
Agent Team Lifecycle
Create Team
team_createCreate Tasks
task_create รNSpawn Agents
Parallel launchWork
Independent ctxCommunicate
send_messageDelete Team
Context resetKey Insights
Tool Reference
All new Claude Code multi-agent orchestration tools with descriptions and usage patterns.
Team Management
Task Management
Communications
Each sub-agent has its own independent context window. They do NOT inherit the orchestrator's context. This means every sub-agent needs to independently run any skills or /commands it needs. Always tell sub-agents which skills to load in your task description.
Decision Guide
Not every task needs a full agent team. Use this guide to decide the right approach.
Setup Guide
Step-by-step instructions to enable multi-agent orchestration in Claude Code.
โ ๏ธ Multi-agent orchestration requires the experimental agent teams flag. This feature is currently in preview and may change.
Install T-Mux (required for pane visualization)
T-Mux gives you visual panes for each sub-agent. Without it, you can't see agents working in parallel.
brew install tmux On Linux: sudo apt install tmux โ On Windows: use WSL
Start a T-Mux session
All Claude Code agent teams run inside T-Mux. Start a new session first.
tmux Enable the experimental agent teams flag
This environment variable unlocks the multi-agent orchestration tools.
export CLAUDE_CODE_AGENT_TEAMS=1 Launch Claude Code
Start Claude Code inside the T-Mux session. It will now have access to team management tools.
claude Verify with a test prompt
Send a simple orchestration prompt to confirm everything is working.
Build a new agent team. Create 2 agents. Have each list the files in the current directory and report back. T-Mux Navigation Cheat Sheet
Key bindings you'll need while agents are running:
Ctrl+B, โ/โ โ Switch panesCtrl+B, [ โ Scroll modeCtrl+B, z โ Fullscreen paneEsc โ Exit scroll modeCost Estimator
Estimate API costs for multi-agent workflows. Prices based on current Anthropic API rates.
* Estimates are approximate. Actual costs depend on prompt length, output complexity, caching, and tool call overhead. Extended thinking may increase costs 2-3x for Opus/Sonnet.