Back to Examples

4-Agent Team Definition (Researcher + Planner + Coder + Reviewer)

A complete multi-agent system pattern with clear roles and handoff protocols.

Multi-Agent OrchestrationAdvancedmarkdown
Example Code
Team:
- Researcher: web search / fetch MCP + context-builder skill
- Planner: produces detailed plan + task breakdown
- Coder: implements using the plan (never deviates without explicit approval)
- Reviewer: advanced-code-reviewer + test-writer

Handoff protocol (always written to scratch/handoff-xxx.md):
- Summary of work done
- Artifacts created
- Open questions + confidence
- Recommended next agent + any constraints

Coordinator (or human) decides the sequence and can run agents in parallel when safe.

When to use this

A complete multi-agent system pattern with clear roles and handoff protocols.