ava-dynamic-workflow

Builds Python orchestrator scripts that spawn parallel worker agents and reduce their results.

1|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/zhiyuan-zhang0206/Ava --skill ava-dynamic-workflow-zhiyuan-zhang0206
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ava-dynamic-workflow
Source: https://github.com/zhiyuan-zhang0206/Ava/tree/main/ava_builtins/skills/ava-dynamic-workflow
Command: npx skills add https://github.com/zhiyuan-zhang0206/Ava --skill ava-dynamic-workflow-zhiyuan-zhang0206

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Complex tasks often exceed what a single agent can handle, and traditional frameworks force you to pre-declare pipelines in YAML or DAG configs. This Skill lets you write a single Python orchestrator script that decomposes work at runtime, farms sub-tasks to parallel worker agents, and synthesizes their results. ## Core Features & Use Cases - Explore-Fork-Join-Reduce Pattern: Decompose a task at runtime, spawn one worker per sub-task, wake at orchestrator-chosen checkpoints, and synthesize a final answer. - Checkpoint-Based Coordination: A configurable watcher (gather_files.py) wakes the orchestrator when all, K-of-N, or glob-matched result files land, so workers never burn LLM turns messaging back. - Ready-Made Reference Orchestrators: Includes full multi-wave examples for deep research (~40 agents, 7 waves) and codebase sweeps (~28 agents, 7 waves), plus scaled-down lite demos. - Use Case: Ask the agent to research the AI coding agent competitive landscape — it spawns parallel search workers, cross-verifies claims, runs adversarial reviews, and publishes a final HTML report. ## Quick Start Ask the agent to use the dynamic workflow skill to split your large task into parallel sub-tasks, gather the worker results, and produce a synthesized final report.

Frequently Asked Questions about ava-dynamic-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run parallel AI agents from a single Python script?▼

Write an orchestrator script that calls ava.agents.spawn once per sub-task with a self-contained prompt. Each worker writes its result file and terminates silently, while a watcher checkpoint wakes the orchestrator to reduce the results.

How do workers report results back to the orchestrator agent?▼

Workers write a JSON result file to a shared handoff directory and then terminate themselves. A gather_files watcher polls that directory and sends one message to the orchestrator when the expected files exist, so workers never message directly.

When should I use dynamic workflow instead of a single agent?▼

Use it when a task splits into independent sub-tasks, is too large for one agent, or benefits from concurrent execution. Skip it for single-step lookups or strictly sequential tasks, where spawning agents adds overhead without benefit.

How does this compare to LangGraph or CrewAI orchestration?▼

Orchestration is a plain Python script instead of a YAML or DAG config, decomposition happens at runtime by the LLM rather than at compile time, and parallelism is true process-level multi-agent execution rather than threads in one process.

Can the orchestrator wake before all workers finish?▼

Yes. Set REQUIRED_COUNT to K for a K-of-N checkpoint that wakes after any K results land, or use MATCH_GLOB to count files by pattern when result names are unknown. Stragglers keep running and can be terminated later.

What are common mistakes when building multi-agent workflows?▼

Common anti-patterns include workers messaging the orchestrator on completion, arming one checkpoint per worker, polling in a sleep loop, spawning agents for trivial lookups, and over-decomposing into too many workers.