How composite tasks work
1. AI Planning Phase
When you create a composite task:- AutoDev analyzes your request
- AI generates a task graph (DAG structure)
- Tasks are organized with dependencies
- Plan is saved for your review
2. Review and Start
After planning completes:- View the task graph visualization
- See all tasks and their dependencies
- Review the execution plan
- Click Start Execution to begin
3. Task Execution
Tasks execute based on dependencies:- Initial tasks (no dependencies) become Ready
- You approve each ready task
- Approved tasks spawn unit tasks
- Tasks run in parallel when possible
- New tasks become ready as dependencies complete
4. Completion
When all tasks finish:- Composite task status: Completed
- All pull requests are created
Creating a composite task
- Go to your AutoDev dashboard
- Select your repository
- Enter your complex project description
- Check “Create as Composite Task”
- (Optional) Configure defaults for all tasks:
- AI Agent: Default agent for all nodes
- Model Version: Default model for all nodes
- Base Branch: Branch for all tasks
- Click Create Task
Task graph structure
The task graph shows:Nodes
Each node represents a task to be completed:- Pending (gray) - Waiting for dependencies
- Ready (blue) - Dependencies met, awaiting approval
- Approved (yellow) - Approved, about to start
- In Progress (orange) - Currently executing
- Completed (green) - Successfully finished
- Failed (red) - Encountered an error
- Blocked (dark gray) - Cannot proceed due to failed dependency
Edges
Arrows show dependencies:- Task A → Task B means B depends on A
- Task B starts only after Task A completes
Parallel execution
Tasks without dependencies on each other run in parallel:Approving tasks
When a task becomes ready:- Review the task’s auto-generated prompt
- (Optional) Modify the prompt before approving
- Click Approve to start execution
- Task spawns a unit task and begins work
Auto-approval mode
Enable auto-approval to run tasks automatically:- Go to composite task details
- Enable Auto-Approval
- Ready tasks are automatically approved and executed
- No manual intervention required
- You trust the AI-generated plan
- Tasks are well-defined and low-risk
- You want continuous progress without manual steps
- You want to review each task before execution
- Tasks require careful sequencing
- You want to modify prompts before execution
Managing composite tasks
Task details page
View comprehensive information: Overview section:- Title and description
- Repository and branch
- Progress (X/Y tasks completed)
- Current status
- Creation time
- Interactive diagram of all tasks
- Color-coded status indicators
- Click nodes to see details
- View dependencies
- List of tasks ready to execute
- Option to modify prompts
- Approve or reject buttons
- Currently executing tasks
- Links to spawned unit tasks
- Real-time status
- Finished tasks
- Links to pull requests
- Merge status
- Failed tasks with error details
- Retry options
- Blocked tasks showing required dependencies
Editing task prompts
You can edit task prompts before execution: During approval:- Task becomes ready
- Review the AI-generated prompt
- Click Edit Prompt
- Make your changes
- Approve to execute with modified prompt
- Go to task graph visualization
- Click on a task node (must be pending, ready, or blocked)
- Edit the prompt and title
- Save changes
- Approve when ready
Retrying failed tasks
If a task fails:- Review the error details
- (Optional) Edit the task prompt
- Click Retry
- A new unit task is created with the same (or updated) configuration
Syncing composite tasks
The sync feature checks all tasks and updates statuses:- Go to composite task details
- Click Sync Composite Task
- AutoDev checks all tasks and PRs:
- Updates PR merge statuses from GitHub
- Marks completed tasks when PRs are merged
- Recalculates node readiness
- Triggers auto-approval if enabled
- Updates composite task progress
- Tasks updated count
- Nodes updated count
- PRs synced count
- Workflows triggered count
Task graph best practices
How AI creates the plan
AutoDev uses advanced prompting to create efficient task graphs: Planning priorities:- Minimize rebasing - Structure for parallel execution
- CI/Infrastructure first - Set up testing before features
- Independent code paths - Tasks touch different files
- Clear boundaries - Define interfaces early
- Phase 1: CI/Infrastructure (no dependencies)
- Phase 2: Database/Storage setup
- Phase 3: Core contracts (APIs, models)
- Phase 4: Parallel features
- Phase 5: Integration
- Phase 6: Polish (UI, performance, docs)
- Wide and shallow (more parallel, fewer sequential)
- Each task represents meaningful progress
Writing effective composite task prompts
Include comprehensive context:Deleting composite tasks
Deleting a composite task:- Cancels all incomplete unit tasks
- Blocks all pending/ready task nodes
- Cancels running GitHub Actions workflows
- Removes the composite task
Example composite task
Prompt:Benefits of composite tasks
Coordinated execution
- Tasks build on each other
- Dependencies ensure correct order
- Parallel work speeds completion
AI-powered planning
- Optimal task breakdown
- Smart dependency management
- Efficient parallelization
Flexibility
- Modify prompts before execution
- Retry failed tasks
- Enable/disable auto-approval
Visibility
- See entire project plan upfront
- Track progress across all tasks
- Understand dependencies
Batch processing with consistent prompts
Composite tasks excel at applying the same logic across multiple independent items, creating separate PRs for each one. This is ideal for: Translation and localization:- Plan separate tasks for each documentation page
- Apply the same review logic to each language version
- Create individual PRs only when improvements are needed
- Process pages in parallel for faster completion
- Parallelization: Multiple pages are processed simultaneously
- Focus: Each AI agent works on a single page, preventing the common issue of AI agents forgetting their tasks midway through complex work
- Isolation: Problems in one page don’t affect others
When not to use composite tasks
Use unit tasks instead when:- Task is straightforward and single-purpose
- No dependencies on other work
- Quick fix or small change
- One pull request is sufficient
Troubleshooting
See the Composite Task Troubleshooting guide for common issues.Next steps
- Learn about Unit Tasks
- Understand PR Review Process
- Configure AI Agents