@cloudkinetix/bmad-enhanced
Version:
Cloud-Kinetix enhanced fork of BMAD-METHOD - Breakthrough Method of Agile AI-driven Development with robust versioning and unified validation.
102 lines (75 loc) • 3.48 kB
Markdown
# Task: Plan Parallel Execution
> ⚡ **Claude Code Only** - This task uses Claude's Task tool for parallel agent coordination with maximum parallelism
## Description
Generates and executes a comprehensive parallel execution plan using Claude's concurrent multi-tool capability. Deploys multiple Task agents simultaneously in a single message for true parallel development.
## Steps
1. **Initialize Coordination Directory**
```bash
PROJECT=$(basename $(pwd))
COORD_DIR="/tmp/$PROJECT-ck-parallel"
mkdir -p "$COORD_DIR"
```
2. **Create Plan Document**
```bash
cat > "$COORD_DIR/parallel-plan.md" << 'EOF'
# CK Parallel Development Plan
## Execution Phases
[Phases based on dependency analysis]
## Story Assignments
[Story to worktree mapping]
## Status Tracking
[Progress tracking table]
EOF
```
3. **Define Execution Phases**
Based on dependency analysis:
- Phase 1: Independent stories (can run parallel)
- Phase 2: Dependent on Phase 1
- Phase 3: Dependent on all previous
4. **Assign Smart Worktree Names**
Auto-detected patterns based on work type:
- `st-svc` (story: services content)
- `bg-jobs` (bug: job filtering issue)
- `ft-cases` (feature: case studies)
- `inv-dash` (investigation: dashboard performance)
5. **Create Status Tracking**
```markdown
| Phase | Work Item | Type | Worktree | Branch | Status | Started | Completed |
| ----- | ---------------- | ------- | -------- | ----------- | ----------- | ------- | --------- |
| 1 | Services Content | Story | st-svc | story/svc | Not Started | - | - |
| 1 | Login Bug Fix | Bug | bg-login | bug/login | Not Started | - | - |
| 1 | API Enhancement | Feature | ft-api | feature/api | Not Started | - | - |
```
6. **Execute Concurrent Task Deployment**
Deploy multiple Task agents simultaneously using Claude's multi-tool capability:
```json
{
"execution_mode": "maximum_parallelism",
"status": "launching_concurrent_tools",
"coordination_strategy": "concurrent_multi_tool_execution",
"parallel_strategy": {
"approach": "simultaneous_task_calls",
"benefit": "True parallelism using Claude's multi-tool capability",
"execution": "4 concurrent Task tool calls in single message"
}
}
```
Deploy agents with concurrent Task tool invocations in a single message, each with unique innovation dimensions and conflict zone awareness.
## Output
- `parallel-plan.md` with concurrent execution strategy
- `concurrent-execution.json` with agent deployment configuration
- Real-time status tracking for parallel agents
- Conflict zone management setup
## Concurrent Execution Example
```
Single Message with 4 Concurrent Task Calls:
Task 1: AGENT_A_REGISTRATION (innovation: error_handling, conflict_zones: [authentication_flow])
Task 2: AGENT_B_RECAPTCHA (innovation: testing_strategies, conflict_zones: [test_environment])
Task 3: AGENT_C_GENDER_BIAS (innovation: security_hardening, conflict_zones: [ai_prompts])
Task 4: AGENT_D_HOBBIES (innovation: monitoring_approach, conflict_zones: [session_handling])
```
## Considerations
- True parallelism through concurrent tool calls
- Unique innovation dimensions prevent duplicate implementations
- Conflict zone management prevents interference
- Real-time coordination through shared status tracking