Agent Workflow Designer
Design production multi-agent workflows with explicit pattern choice, handoff contracts, failure handling, and cost/context controls.
When to use
A single prompt is insufficient for the task complexity · you need specialist agents with explicit boundaries · you want deterministic structure before implementation · you need validation loops for quality/safety gates.
Pattern map
sequential— strict step-by-step dependency chainparallel— fan-out/fan-in for independent subtasksrouter— dispatch by intent/type with fallbackorchestrator— planner coordinates specialists with dependenciesevaluator— generator + quality-gate loop
Recommended workflow
- Select pattern based on dependency shape and risk profile.
- Scaffold config from the chosen pattern.
- Define handoff-contract fields for every edge (explicit, bounded payloads — pass targeted artifacts, not full upstream context).
- Add retry/timeouts and output-validation gates per step.
- Dry-run with small context budgets before scaling.
Common pitfalls
Over-orchestrating tasks a single well-structured prompt could solve · missing timeout/retry on external-model calls · passing full upstream context instead of targeted artifacts · ignoring per-step cost accumulation.
Best practices
- Start with the smallest pattern that satisfies requirements. 2. Keep handoff payloads explicit and bounded. 3. Validate intermediate outputs before fan-in synthesis. 4. Enforce budget + timeout limits in every step.