generate_workflow
Break a high-level goal into ordered stages and launch agents that execute each stage only after the previous stage completes.
Instructions
Auto-decompose a high-level goal into an ordered sequence of stages, then spawn all jobs with stage-based dependency enforcement. Returns immediately with workflow_id, job_ids, and the stage breakdown. Use get_workflow_status to poll progress. Each stage only starts after ALL jobs in the prior stage complete — guaranteeing ordered execution even across 100s of agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | High-level natural language goal to decompose into workflow stages (e.g. 'build, test, and deploy X') | |
| repo_url | Yes | Git repository URL for all spawned agents (https://github.com/owner/repo) | |
| max_stages | No | Maximum number of sequential stages (default 8, hard cap 20) | |
| agent_model | No | Model override for spawned agents (optional) | |
| agent_driver | No | Driver override for spawned agents (optional, e.g. 'claude', 'aider') | |
| max_agents_per_stage | No | Maximum number of parallel agents per stage (default 3) | |
| max_budget_per_agent | No | Maximum USD budget per spawned agent (default 5) |