# atulgaikwad20/multi_agents_product-_tracking_system architecture

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

- Interactive diagram: https://gitdiagram.com/atulgaikwad20/multi_agents_product-_tracking_system
- Repository: https://github.com/atulgaikwad20/multi_agents_product-_tracking_system

## Overview

RESQUORA is a web app for researching shopping requests with coordinated AI agents. The main workflow runs from a signed-in user’s typed or spoken request through request understanding, shop selection, parallel research, verification, and a sourced report. The graph also includes authentication, live progress, saved search history, optional location and language support, and the browser interface. Edges follow the shown imports and calls or explicit README descriptions; some browser-to-API and external-service links are dashed where the excerpts do not show their wiring.

Main entry points: [`app/playground/supervisor.py`](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/supervisor.py) (Supervisor), [`app/playground/agents.py`](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/agents.py) (Shop research agents), [`app/playground/routes.py`](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/routes.py) (Playground API), [`app/static/js/pg/app.js`](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/app.js) (Command Center)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_browser["Command Center<br/>[app.js]"]
  node_browser_api["Browser API<br/>[api.js]"]
  node_voice["Voice controls<br/>[voice.js]"]
  node_render["Report and progress UI<br/>[render.js]"]
  node_http["Playground API<br/>[routes.py]"]
end

subgraph group_orchestration["Research orchestration"]
  node_supervisor["Supervisor<br/>[supervisor.py]"]
  node_understanding["Request understanding<br/>[understanding.py]"]
  node_capabilities["Shop capabilities<br/>[capabilities.py]"]
  node_agents["Shop research agents<br/>[agents.py]"]
  node_events["Run events<br/>[events.py]"]
  node_location["Optional location<br/>[location.py]"]
end

subgraph group_evidence["Evidence pipeline"]
  node_search["Shopping and web search<br/>[search.py]"]
  node_fetcher["Safe page fetcher<br/>[net.py]"]
  node_extract["Product extraction<br/>[extract.py]"]
  node_verification["Result verification<br/>[verification.py]"]
  node_matching["Product matching<br/>[matching.py]"]
  node_reports["Reports and exports<br/>[reports.py]"]
  node_models["Evidence data models<br/>[models.py]"]
end

subgraph group_persistence["Identity and history"]
  node_auth["Account routes<br/>[auth_routes.py]"]
  node_db[("MySQL database<br/>[database.py]")]
  node_store[("Search history store<br/>[store.py]")]
end

subgraph group_integrations["External services"]
  node_llm["Language model<br/>[llm.py]"]
  node_search_service["Licensed search service"]
  node_shops["Retailer websites"]
end

node_user(("Shopper"))

node_user -->|"submits request"| node_browser
node_browser -->|"uses controls"| node_voice
node_browser -->|"calls"| node_browser_api
node_browser -->|"renders"| node_render
node_browser_api -.->|"sends API requests"| node_http
node_http -->|"starts and manages runs"| node_supervisor
node_http -->|"handles location"| node_location
node_http -->|"serves report actions"| node_reports
node_http -->|"reads run history"| node_store
node_auth -->|"queries accounts"| node_db
node_supervisor -->|"interprets request"| node_understanding
node_supervisor -->|"selects shops"| node_capabilities
node_supervisor -->|"dispatches research"| node_agents
node_supervisor -->|"verifies findings"| node_verification
node_supervisor -->|"emits progress"| node_events
node_supervisor -->|"saves run history"| node_store
node_supervisor -->|"uses language support"| node_llm
node_agents -->|"searches listings"| node_search
node_agents -->|"opens product pages"| node_fetcher
node_agents -->|"reads page data"| node_extract
node_agents -->|"checks shop profiles"| node_capabilities
node_agents -->|"builds offers"| node_models
node_search -.->|"queries provider"| node_search_service
node_fetcher -.->|"fetches pages"| node_shops
node_verification -->|"rechecks listings"| node_fetcher
node_verification -->|"extracts page facts"| node_extract
node_verification -->|"matches products"| node_matching
node_verification -->|"updates evidence"| node_models
node_supervisor -->|"consolidates offers"| node_matching
node_reports -->|"formats report facts"| node_models
node_browser -.->|"requests live updates"| node_http

click node_browser "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/app.js"
click node_browser_api "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/api.js"
click node_voice "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/voice.js"
click node_render "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/render.js"
click node_http "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/routes.py"
click node_auth "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/routes/auth_routes.py"
click node_db "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/database.py"
click node_supervisor "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/supervisor.py"
click node_understanding "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/understanding.py"
click node_capabilities "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/capabilities.py"
click node_agents "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/agents.py"
click node_events "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/events.py"
click node_search "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/search.py"
click node_fetcher "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/net.py"
click node_extract "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/extract.py"
click node_verification "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/verification.py"
click node_matching "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/services/matching.py"
click node_reports "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/reports.py"
click node_models "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/models.py"
click node_store "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/store.py"
click node_location "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/location.py"
click node_llm "https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/llm.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_browser,node_browser_api,node_voice,node_render,node_http toneBlue
class node_supervisor,node_understanding,node_capabilities,node_agents,node_events,node_location toneAmber
class node_search,node_fetcher,node_extract,node_verification,node_matching,node_reports,node_models toneMint
class node_auth,node_db,node_store toneRose
class node_llm,node_search_service,node_shops,node_user toneIndigo
```

## Components

### Web experience

- [Command Center](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/app.js): `app/static/js/pg/app.js`
- [Browser API](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/api.js): `app/static/js/pg/api.js`
- [Voice controls](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/voice.js): `app/static/js/pg/voice.js`
- [Report and progress UI](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/static/js/pg/render.js): `app/static/js/pg/render.js`
- [Playground API](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/routes.py): `app/playground/routes.py`

### Research orchestration

- [Supervisor](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/supervisor.py): `app/playground/supervisor.py`
- [Request understanding](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/understanding.py): `app/playground/understanding.py`
- [Shop capabilities](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/capabilities.py): `app/playground/capabilities.py`
- [Shop research agents](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/agents.py): `app/playground/agents.py`
- [Run events](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/events.py): `app/playground/events.py`
- [Optional location](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/location.py): `app/playground/location.py`

### Evidence pipeline

- [Shopping and web search](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/search.py): `app/playground/search.py`
- [Safe page fetcher](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/net.py): `app/playground/net.py`
- [Product extraction](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/extract.py): `app/playground/extract.py`
- [Result verification](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/verification.py): `app/playground/verification.py`
- [Product matching](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/services/matching.py): `app/services/matching.py`
- [Reports and exports](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/reports.py): `app/playground/reports.py`
- [Evidence data models](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/models.py): `app/playground/models.py`

### Identity and history

- [Account routes](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/routes/auth_routes.py): `app/routes/auth_routes.py`
- [MySQL database](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/database.py): `app/database.py`
- [Search history store](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/store.py): `app/playground/store.py`

### External services

- [Language model](https://github.com/atulgaikwad20/multi_agents_product-_tracking_system/blob/main/app/playground/llm.py): `app/playground/llm.py`
- **Licensed search service**
- **Retailer websites**

### Other components

- **Shopper**

## Connections

- Shopper → Command Center: submits request (evidence: `README.md`)
- Command Center → Voice controls: uses controls (evidence: `app/static/js/pg/app.js`)
- Command Center → Browser API: calls (evidence: `app/static/js/pg/app.js`)
- Command Center → Report and progress UI: renders (evidence: `app/static/js/pg/app.js`)
- Browser API → Playground API: sends API requests
- Playground API → Supervisor: starts and manages runs (evidence: `app/playground/routes.py`)
- Playground API → Optional location: handles location (evidence: `app/playground/routes.py`)
- Playground API → Reports and exports: serves report actions (evidence: `app/playground/routes.py`)
- Playground API → Search history store: reads run history (evidence: `app/playground/routes.py`)
- Account routes → MySQL database: queries accounts (evidence: `app/routes/auth_routes.py`)
- Supervisor → Request understanding: interprets request (evidence: `app/playground/supervisor.py`)
- Supervisor → Shop capabilities: selects shops (evidence: `app/playground/supervisor.py`)
- Supervisor → Shop research agents: dispatches research (evidence: `app/playground/supervisor.py`)
- Supervisor → Result verification: verifies findings (evidence: `app/playground/supervisor.py`)
- Supervisor → Run events: emits progress (evidence: `app/playground/supervisor.py`)
- Supervisor → Search history store: saves run history (evidence: `app/playground/supervisor.py`)
- Supervisor → Language model: uses language support (evidence: `app/playground/supervisor.py`)
- Shop research agents → Shopping and web search: searches listings (evidence: `app/playground/agents.py`)
- Shop research agents → Safe page fetcher: opens product pages (evidence: `app/playground/agents.py`)
- Shop research agents → Product extraction: reads page data (evidence: `app/playground/agents.py`)
- Shop research agents → Shop capabilities: checks shop profiles (evidence: `app/playground/agents.py`)
- Shop research agents → Evidence data models: builds offers (evidence: `app/playground/agents.py`)
- Shopping and web search → Licensed search service: queries provider
- Safe page fetcher → Retailer websites: fetches pages
- Result verification → Safe page fetcher: rechecks listings (evidence: `app/playground/verification.py`)
- Result verification → Product extraction: extracts page facts (evidence: `app/playground/verification.py`)
- Result verification → Product matching: matches products (evidence: `app/playground/verification.py`)
- Result verification → Evidence data models: updates evidence (evidence: `app/playground/verification.py`)
- Supervisor → Product matching: consolidates offers (evidence: `app/playground/supervisor.py`)
- Reports and exports → Evidence data models: formats report facts (evidence: `app/playground/reports.py`)
- Command Center → Playground API: requests live updates
