graph TD
A[Start: Choose Subagent 1-4 for Analysis] -->|User Selection Required| B[Confirm Selected Subagent]
B -->|Input Error: No Subagent 6| C[Request Clarification]
C --> D{User Choice}
D -->|Option 1| E[Analyze Existing Subagent]
D -->|Option 2| F[Create New Subagent]
D -->|Option 3| G[Select Different Subagent]
E --> H[Detail Task Flow]
F --> I[Define New Requirements]
G --> J[Return to Start]
H --> K[Generate Mermaid Diagram]
I --> K
J --> A
K --> L[End: Display Flowchart]