# haiderrasoolqadri/launchmind architecture

> Architecture diagram of the GitHub repository haiderrasoolqadri/launchmind, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haiderrasoolqadri/launchmind
- Repository: https://github.com/haiderrasoolqadri/launchmind

## Overview

LaunchMind turns a startup idea into a product specification, landing page, marketing materials, and QA verdict, with the CEO coordinating revisions and publishing a final Slack summary. The shared in-memory message bus carries agent tasks and results; agents use a common Groq-backed LLM helper. The README documents the end-to-end capabilities, while the sampled source shows the main orchestration and several integration calls. Some agent internals are unsampled, so those documented branches are included without inferring unshown call details.

Main entry points: [`agents/ceo_agent.py`](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/ceo_agent.py) (CEO coordinator), [`agents/marketing_agent.py`](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/marketing_agent.py) (Marketing launch), [`llm_utils.py`](https://github.com/haiderrasoolqadri/launchmind/blob/main/llm_utils.py) (LLM helper), [`message_bus.py`](https://github.com/haiderrasoolqadri/launchmind/blob/main/message_bus.py) (Message bus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Orchestration"]
  node_launcher["Runtime entry<br/>[main.py]"]
  node_ceo["CEO coordinator<br/>[ceo_agent.py]"]
end

subgraph group_agents["Specialist agents"]
  node_product["Product spec<br/>[product_agent.py]"]
  node_engineer["Landing page<br/>[engineer_agent.py]"]
  node_marketing["Marketing launch<br/>[marketing_agent.py]"]
  node_qa["Quality review<br/>[qa_agent.py]"]
end

subgraph group_runtime["Shared runtime"]
  node_bus["Message bus<br/>[message_bus.py]"]
  node_llm["LLM helper<br/>[llm_utils.py]"]
end

subgraph group_integrations["External integrations"]
  node_groq["Groq API"]
  node_github["GitHub"]
  node_slack["Slack"]
  node_sendgrid["SendGrid"]
end

node_idea_submitter(("Idea submitter"))

node_idea_submitter -->|"provides idea"| node_launcher
node_launcher -->|"starts workflow"| node_ceo
node_ceo -->|"decomposes and reviews"| node_llm
node_ceo -->|"sends and reads tasks"| node_bus
node_ceo -->|"dispatches task"| node_product
node_product -->|"generates specification"| node_llm
node_product -->|"sends specification"| node_bus
node_product -->|"dispatches specification"| node_engineer
node_product -->|"dispatches specification"| node_marketing
node_ceo -->|"runs and revises"| node_engineer
node_engineer -->|"generates HTML"| node_llm
node_engineer -->|"creates issue and PR"| node_github
node_engineer -->|"sends result"| node_bus
node_ceo -->|"runs launch"| node_marketing
node_marketing -->|"generates copy"| node_llm
node_marketing -->|"sends email"| node_sendgrid
node_marketing -->|"posts launch"| node_slack
node_marketing -->|"sends result"| node_bus
node_ceo -->|"submits outputs"| node_qa
node_qa -->|"reviews HTML and copy"| node_llm
node_qa -->|"posts PR comments"| node_github
node_qa -->|"sends verdict"| node_bus
node_ceo -->|"posts final summary"| node_slack
node_llm -->|"calls model API"| node_groq
node_launcher -->|"prints message log"| node_bus

click node_launcher "https://github.com/haiderrasoolqadri/launchmind/blob/main/main.py"
click node_ceo "https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/ceo_agent.py"
click node_product "https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/product_agent.py"
click node_engineer "https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/engineer_agent.py"
click node_marketing "https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/marketing_agent.py"
click node_qa "https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/qa_agent.py"
click node_bus "https://github.com/haiderrasoolqadri/launchmind/blob/main/message_bus.py"
click node_llm "https://github.com/haiderrasoolqadri/launchmind/blob/main/llm_utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_ceo toneBlue
class node_product,node_engineer,node_marketing,node_qa toneAmber
class node_bus,node_llm toneMint
class node_groq,node_github,node_slack,node_sendgrid toneRose
class node_idea_submitter toneIndigo
```

## Components

### Orchestration

- [Runtime entry](https://github.com/haiderrasoolqadri/launchmind/blob/main/main.py): `main.py`
- [CEO coordinator](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/ceo_agent.py): `agents/ceo_agent.py`

### Specialist agents

- [Product spec](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/product_agent.py): `agents/product_agent.py`
- [Landing page](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/engineer_agent.py): `agents/engineer_agent.py`
- [Marketing launch](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/marketing_agent.py): `agents/marketing_agent.py`
- [Quality review](https://github.com/haiderrasoolqadri/launchmind/blob/main/agents/qa_agent.py): `agents/qa_agent.py`

### Shared runtime

- [Message bus](https://github.com/haiderrasoolqadri/launchmind/blob/main/message_bus.py): `message_bus.py`
- [LLM helper](https://github.com/haiderrasoolqadri/launchmind/blob/main/llm_utils.py): `llm_utils.py`

### External integrations

- **Groq API**
- **GitHub**
- **Slack**
- **SendGrid**

### Other components

- **Idea submitter**

## Connections

- Idea submitter → Runtime entry: provides idea (evidence: `README.md`)
- Runtime entry → CEO coordinator: starts workflow (evidence: `main.py`)
- CEO coordinator → LLM helper: decomposes and reviews (evidence: `agents/ceo_agent.py`)
- CEO coordinator → Message bus: sends and reads tasks (evidence: `agents/ceo_agent.py`)
- CEO coordinator → Product spec: dispatches task (evidence: `agents/ceo_agent.py`)
- Product spec → LLM helper: generates specification (evidence: `agents/product_agent.py`)
- Product spec → Message bus: sends specification (evidence: `agents/product_agent.py`)
- Product spec → Landing page: dispatches specification (evidence: `agents/product_agent.py`)
- Product spec → Marketing launch: dispatches specification (evidence: `agents/product_agent.py`)
- CEO coordinator → Landing page: runs and revises (evidence: `agents/ceo_agent.py`)
- Landing page → LLM helper: generates HTML (evidence: `agents/engineer_agent.py`)
- Landing page → GitHub: creates issue and PR (evidence: `agents/engineer_agent.py`)
- Landing page → Message bus: sends result (evidence: `agents/engineer_agent.py`)
- CEO coordinator → Marketing launch: runs launch (evidence: `agents/ceo_agent.py`)
- Marketing launch → LLM helper: generates copy (evidence: `agents/marketing_agent.py`)
- Marketing launch → SendGrid: sends email (evidence: `agents/marketing_agent.py`)
- Marketing launch → Slack: posts launch (evidence: `agents/marketing_agent.py`)
- Marketing launch → Message bus: sends result (evidence: `agents/marketing_agent.py`)
- CEO coordinator → Quality review: submits outputs (evidence: `agents/ceo_agent.py`)
- Quality review → LLM helper: reviews HTML and copy (evidence: `agents/qa_agent.py`)
- Quality review → GitHub: posts PR comments (evidence: `agents/qa_agent.py`)
- Quality review → Message bus: sends verdict (evidence: `agents/qa_agent.py`)
- CEO coordinator → Slack: posts final summary (evidence: `agents/ceo_agent.py`)
- LLM helper → Groq API: calls model API (evidence: `llm_utils.py`)
- Runtime entry → Message bus: prints message log (evidence: `main.py`)
