What problem does it solve?
Orchestrating multi-agent content workflows is complex and error-prone: coordinating research, writing, and review across isolated agent contexts, managing costs, and handling revision cycles requires explicit tooling and guardrails. This recipe provides a repeatable, opinionated pipeline pattern that centralizes delegation, checkpointing, and cost tracking so teams can reliably produce high-quality documents without ad-hoc orchestration logic.
Core Features & Use Cases
- Lead Orchestrator Pattern: A central coordinator delegates to specialized sub-agents (researcher, writer, reviewer) and passes structured results between them.
- Checkpointing & Shared State: Persist intermediate outputs for reliable handoffs and partial restarts.
- Cost and Iteration Controls: Per-session budgets, maxIterations per sub-agent, and revision cycle limits to bound expense and runtime.
- Remote and Dynamic Sub-agents: Support for connecting remote services or spawning agents at runtime for scalable or distributed pipelines.
- Use Case: Automate creation of technical guides, product documentation, or research summaries by delegating web search, drafting, and quality checks to specialized agents.
Quick Start
Run the lead orchestrator to research a topic, write a structured document from the findings, and perform a reviewer quality check with a maximum of two revision cycles.