# saitejare/zora_ai_assistent. architecture

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

- Interactive diagram: https://gitdiagram.com/saitejare/zora_ai_assistent.
- Repository: https://github.com/saitejare/zora_ai_assistent.

## Overview

ZORA is a Windows voice-and-text desktop assistant. Its main workflow accepts user input through the interface or microphone, sends requests through the API and application coordinator, then uses the agent to plan and execute supported actions or generate a conversational response. Speech recognition, memory, LLM access, and speech synthesis support that flow; desktop and browser automation are distinct capabilities. The README documents additional capability areas, but several implementations and their wiring were not sampled, so those links are shown only where documented.

Main entry points: [`backend/planner/executor.py`](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/planner/executor.py) (Plan execution), [`backend/agent/orchestrator.py`](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/agent/orchestrator.py) (Request orchestration), [`backend/application.py`](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/application.py) (Application coordinator), [`frontend/src/App.tsx`](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/App.tsx) (Assistant interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Desktop experience"]
  node_desktop["Electron shell<br/>[main.js]"]
  node_frontend["Assistant interface<br/>[App.tsx]"]
  node_context["UI conversation state<br/>[ZoraContext.tsx]"]
  node_api_client["API client<br/>[zoraApi.ts]"]
end

subgraph group_input["Input and API"]
  node_api["HTTP routes<br/>[routes.py]"]
  node_application["Application coordinator<br/>[application.py]"]
  node_recorder["Audio recording<br/>[record.py]"]
  node_transcriber["Speech recognition<br/>[transcribe.py]"]
end

subgraph group_assistant["Assistant intelligence"]
  node_orchestrator["Request orchestration<br/>[orchestrator.py]"]
  node_conversation["Conversation history"]
  node_planner["Command planning<br/>[planner.py]"]
  node_executor["Plan execution<br/>[executor.py]"]
  node_llm["LLM service<br/>[service.py]"]
  node_llm_client["Groq client<br/>[client.py]"]
end

subgraph group_actions["Action capabilities"]
  node_desktop_actions["Desktop automation<br/>[service.py]"]
  node_browser_actions["Browser automation<br/>[service.py]"]
  node_application_actions["App launching<br/>[service.py]"]
  node_filesystem_actions["File operations<br/>[service.py]"]
  node_system_actions["System controls<br/>[service.py]"]
  node_vision_actions["Vision actions<br/>[service.py]"]
end

subgraph group_support["Supporting services"]
  node_memory["Memory service<br/>[service.py]"]
  node_memory_manager["Memory manager<br/>[memory_manager.py]"]
  node_vector_store[("Vector store<br/>[vector_store.py]")]
  node_tts["Speech synthesis<br/>[synthesizer.py]"]
end

node_user(("User"))

node_user -->|"enters text"| node_frontend
node_user -->|"speaks"| node_recorder
node_desktop -->|"hosts interface"| node_frontend
node_frontend -->|"uses state"| node_context
node_frontend -->|"calls API"| node_api_client
node_context -->|"uses API"| node_api_client
node_api -->|"routes requests"| node_application
node_application -->|"processes text"| node_orchestrator
node_application -->|"records audio"| node_recorder
node_application -->|"transcribes audio"| node_transcriber
node_orchestrator -->|"creates plans"| node_planner
node_orchestrator -->|"executes plan"| node_executor
node_orchestrator -->|"updates history"| node_conversation
node_orchestrator -->|"recalls and stores"| node_memory
node_orchestrator -->|"requests generation"| node_llm
node_llm -->|"sends prompts"| node_llm_client
node_memory -->|"manages memories"| node_memory_manager
node_memory_manager -->|"searches and saves"| node_vector_store
node_application -->|"synthesizes response"| node_tts
node_executor -.->|"runs actions"| node_desktop_actions
node_executor -.->|"runs actions"| node_browser_actions
node_executor -.->|"runs actions"| node_application_actions
node_executor -.->|"runs actions"| node_filesystem_actions
node_executor -.->|"runs actions"| node_system_actions
node_executor -.->|"runs actions"| node_vision_actions
node_user -.->|"requests browsing"| node_browser_actions
node_tts -->|"speaks response"| node_user

click node_desktop "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/electron/main.js"
click node_frontend "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/App.tsx"
click node_context "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/services/ZoraContext.tsx"
click node_api_client "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/services/zoraApi.ts"
click node_api "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/api/routes.py"
click node_application "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/application.py"
click node_recorder "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/speech/record.py"
click node_transcriber "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/speech/transcribe.py"
click node_orchestrator "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/agent/orchestrator.py"
click node_conversation "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/agent/conversation_manager.py"
click node_planner "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/planner/planner.py"
click node_executor "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/planner/executor.py"
click node_llm "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/llm/service.py"
click node_llm_client "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/llm/client.py"
click node_memory "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/service.py"
click node_memory_manager "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/memory_manager.py"
click node_vector_store "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/vector_store.py"
click node_tts "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/tts/synthesizer.py"
click node_desktop_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/desktop/service.py"
click node_browser_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/browser/service.py"
click node_application_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/application/service.py"
click node_filesystem_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/filesystem/service.py"
click node_system_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/system/service.py"
click node_vision_actions "https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/vision/service.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_desktop,node_frontend,node_context,node_api_client,node_user toneBlue
class node_api,node_application,node_recorder,node_transcriber toneAmber
class node_orchestrator,node_conversation,node_planner,node_executor,node_llm,node_llm_client toneMint
class node_desktop_actions,node_browser_actions,node_application_actions,node_filesystem_actions,node_system_actions,node_vision_actions toneRose
class node_memory,node_memory_manager,node_vector_store,node_tts toneIndigo
```

## Components

### Desktop experience

- [Electron shell](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/electron/main.js): `electron/main.js`
- [Assistant interface](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/App.tsx): `frontend/src/App.tsx`
- [UI conversation state](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/services/ZoraContext.tsx): `frontend/src/services/ZoraContext.tsx`
- [API client](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/frontend/src/services/zoraApi.ts): `frontend/src/services/zoraApi.ts`

### Input and API

- [HTTP routes](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/api/routes.py): `backend/api/routes.py`
- [Application coordinator](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/application.py): `backend/application.py`
- [Audio recording](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/speech/record.py): `backend/speech/record.py`
- [Speech recognition](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/speech/transcribe.py): `backend/speech/transcribe.py`

### Assistant intelligence

- [Request orchestration](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/agent/orchestrator.py): `backend/agent/orchestrator.py`
- [Conversation history](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/agent/conversation_manager.py): `backend/agent/conversation_manager.py`
- [Command planning](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/planner/planner.py): `backend/planner/planner.py`
- [Plan execution](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/planner/executor.py): `backend/planner/executor.py`
- [LLM service](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/llm/service.py): `backend/llm/service.py`
- [Groq client](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/llm/client.py): `backend/llm/client.py`

### Action capabilities

- [Desktop automation](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/desktop/service.py): `backend/capabilities/desktop/service.py`
- [Browser automation](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/browser/service.py): `backend/capabilities/browser/service.py`
- [App launching](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/application/service.py): `backend/capabilities/application/service.py`
- [File operations](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/filesystem/service.py): `backend/capabilities/filesystem/service.py`
- [System controls](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/system/service.py): `backend/capabilities/system/service.py`
- [Vision actions](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/capabilities/vision/service.py): `backend/capabilities/vision/service.py`

### Supporting services

- [Memory service](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/service.py): `backend/memory/service.py`
- [Memory manager](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/memory_manager.py): `backend/memory/memory_manager.py`
- [Vector store](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/memory/vector_store.py): `backend/memory/vector_store.py`
- [Speech synthesis](https://github.com/saitejare/zora_ai_assistent./blob/feature/langgraph-agent/backend/tts/synthesizer.py): `backend/tts/synthesizer.py`

### Other components

- **User**

## Connections

- User → Assistant interface: enters text (evidence: `README.md`)
- User → Audio recording: speaks (evidence: `README.md`)
- Electron shell → Assistant interface: hosts interface (evidence: `README.md`)
- Assistant interface → UI conversation state: uses state (evidence: `frontend/src/App.tsx`)
- Assistant interface → API client: calls API (evidence: `frontend/src/App.tsx`)
- UI conversation state → API client: uses API (evidence: `frontend/src/services/ZoraContext.tsx`)
- HTTP routes → Application coordinator: routes requests (evidence: `backend/api/routes.py`)
- Application coordinator → Request orchestration: processes text (evidence: `backend/application.py`)
- Application coordinator → Audio recording: records audio (evidence: `backend/application.py`)
- Application coordinator → Speech recognition: transcribes audio (evidence: `backend/application.py`)
- Request orchestration → Command planning: creates plans (evidence: `backend/agent/orchestrator.py`)
- Request orchestration → Plan execution: executes plan (evidence: `backend/agent/orchestrator.py`)
- Request orchestration → Conversation history: updates history (evidence: `backend/agent/orchestrator.py`)
- Request orchestration → Memory service: recalls and stores (evidence: `backend/agent/orchestrator.py`)
- Request orchestration → LLM service: requests generation (evidence: `backend/agent/orchestrator.py`)
- LLM service → Groq client: sends prompts (evidence: `backend/llm/service.py`)
- Memory service → Memory manager: manages memories (evidence: `backend/memory/service.py`)
- Memory manager → Vector store: searches and saves (evidence: `backend/memory/memory_manager.py`)
- Application coordinator → Speech synthesis: synthesizes response (evidence: `backend/application.py`)
- Plan execution → Desktop automation: runs actions
- Plan execution → Browser automation: runs actions
- Plan execution → App launching: runs actions
- Plan execution → File operations: runs actions
- Plan execution → System controls: runs actions
- Plan execution → Vision actions: runs actions
- User → Browser automation: requests browsing (evidence: `README.md`)
- Speech synthesis → User: speaks response (evidence: `README.md`)
