# liveatul/brahma-ai-evo architecture

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

- Interactive diagram: https://gitdiagram.com/liveatul/brahma-ai-evo
- Repository: https://github.com/liveatul/brahma-ai-evo

## Overview

Brahma AI Evo is an autonomous desktop assistant: a user speaks or types a request, the desktop application coordinates reasoning and tool execution, and the selected capability returns an action or information. Its documented product branches include desktop control, document creation, circuit guidance, skill generation and repair, mapping, music, smart home, and Android connectivity. The source index confirms main’s references to the UI and several tools; other links below are limited to relationships explicitly documented in the README. Unsampled implementation details are not inferred.

Main entry points: [`main.py`](https://github.com/liveatul/brahma-ai-evo/blob/main/main.py) (Application loop), [`ui.py`](https://github.com/liveatul/brahma-ai-evo/blob/main/ui.py) (Desktop interface), [`core/skill_forge.py`](https://github.com/liveatul/brahma-ai-evo/blob/main/core/skill_forge.py) (Skill generation), [`actions/spotify_controller.py`](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/spotify_controller.py) (Spotify integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Assistant interaction"]
  node_main["Application loop<br/>[main.py]"]
  node_ui["Desktop interface<br/>[ui.py]"]
  node_planner["Task planning<br/>[planner.py]"]
  node_executor["Tool execution<br/>[executor.py]"]
  node_dashboard["Local dashboard<br/>[server.py]"]
end

subgraph group_capabilities["Desktop capabilities"]
  node_desktop["Desktop control"]
  node_files["File operations<br/>[file_processor.py]"]
  node_office["Office documents<br/>[office_builder.py]"]
  node_circuit["Circuit guidance"]
  node_geo["Geospatial tools"]
end

subgraph group_intelligence["Intelligence and state"]
  node_ai["AI client<br/>[llm_client.py]"]
  node_memory[("Long-term memory<br/>[memory_manager.py]")]
  node_skills["Skill generation<br/>[skill_forge.py]"]
  node_healing["Automatic repair"]
end

subgraph group_connected["Connected services"]
  node_smart_home["Smart home hub<br/>[service.py]"]
  node_spotify["Spotify integration"]
  node_spotify_server["Spotify MCP server<br/>[server.ts]"]
  node_android["Android companion"]
  node_gateway["Connect gateway<br/>[server.py]"]
end

node_user(("User"))

node_user -->|"sends request"| node_ui
node_ui -.->|"enters application"| node_main
node_main -->|"updates interface"| node_ui
node_main -->|"requests reasoning"| node_ai
node_main -->|"uses memory"| node_memory
node_main -->|"dispatches tools"| node_files
node_main -->|"dispatches tools"| node_desktop
node_user -->|"requests guidance"| node_circuit
node_user -->|"requests new skill"| node_skills
node_skills -.->|"sandbox verifies"| node_healing
node_user -->|"requests documents"| node_office
node_user -->|"requests map data"| node_geo
node_user -->|"requests playback"| node_spotify
node_spotify_server -.->|"provides MCP tools"| node_spotify
node_user -->|"requests device control"| node_smart_home
node_android -->|"connects over WebSocket"| node_gateway
node_user -->|"uses dashboard"| node_dashboard

click node_main "https://github.com/liveatul/brahma-ai-evo/blob/main/main.py"
click node_ui "https://github.com/liveatul/brahma-ai-evo/blob/main/ui.py"
click node_planner "https://github.com/liveatul/brahma-ai-evo/blob/main/agent/planner.py"
click node_executor "https://github.com/liveatul/brahma-ai-evo/blob/main/agent/executor.py"
click node_ai "https://github.com/liveatul/brahma-ai-evo/blob/main/llm_client.py"
click node_memory "https://github.com/liveatul/brahma-ai-evo/blob/main/memory/memory_manager.py"
click node_desktop "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/computer_settings.py"
click node_files "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/file_processor.py"
click node_office "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/office_builder.py"
click node_circuit "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/circuit_assembler.py"
click node_geo "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/geospatial_globe.py"
click node_skills "https://github.com/liveatul/brahma-ai-evo/blob/main/core/skill_forge.py"
click node_healing "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/auto_heal_engine.py"
click node_dashboard "https://github.com/liveatul/brahma-ai-evo/blob/main/dashboard/server.py"
click node_smart_home "https://github.com/liveatul/brahma-ai-evo/blob/main/smart_home/service.py"
click node_spotify "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/spotify_controller.py"
click node_spotify_server "https://github.com/liveatul/brahma-ai-evo/blob/main/actions/spotify_mcp_server/src/server.ts"
click node_android "https://github.com/liveatul/brahma-ai-evo/blob/main/brahma-connect-android/app/src/main/java/com/brahma/connect/BrahmaConnectForegroundService.kt"
click node_gateway "https://github.com/liveatul/brahma-ai-evo/blob/main/brahma_connect/gateway/server.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_main,node_ui,node_planner,node_executor,node_dashboard,node_user toneBlue
class node_desktop,node_files,node_office,node_circuit,node_geo toneAmber
class node_ai,node_memory,node_skills,node_healing toneMint
class node_smart_home,node_spotify,node_spotify_server,node_android,node_gateway toneRose
```

## Components

### Assistant interaction

- [Application loop](https://github.com/liveatul/brahma-ai-evo/blob/main/main.py): `main.py`
- [Desktop interface](https://github.com/liveatul/brahma-ai-evo/blob/main/ui.py): `ui.py`
- [Task planning](https://github.com/liveatul/brahma-ai-evo/blob/main/agent/planner.py): `agent/planner.py`
- [Tool execution](https://github.com/liveatul/brahma-ai-evo/blob/main/agent/executor.py): `agent/executor.py`
- [Local dashboard](https://github.com/liveatul/brahma-ai-evo/blob/main/dashboard/server.py): `dashboard/server.py`

### Desktop capabilities

- [Desktop control](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/computer_settings.py): `actions/computer_settings.py`
- [File operations](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/file_processor.py): `actions/file_processor.py`
- [Office documents](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/office_builder.py): `actions/office_builder.py`
- [Circuit guidance](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/circuit_assembler.py): `actions/circuit_assembler.py`
- [Geospatial tools](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/geospatial_globe.py): `actions/geospatial_globe.py`

### Intelligence and state

- [AI client](https://github.com/liveatul/brahma-ai-evo/blob/main/llm_client.py): `llm_client.py`
- [Long-term memory](https://github.com/liveatul/brahma-ai-evo/blob/main/memory/memory_manager.py): `memory/memory_manager.py`
- [Skill generation](https://github.com/liveatul/brahma-ai-evo/blob/main/core/skill_forge.py): `core/skill_forge.py`
- [Automatic repair](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/auto_heal_engine.py): `actions/auto_heal_engine.py`

### Connected services

- [Smart home hub](https://github.com/liveatul/brahma-ai-evo/blob/main/smart_home/service.py): `smart_home/service.py`
- [Spotify integration](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/spotify_controller.py): `actions/spotify_controller.py`
- [Spotify MCP server](https://github.com/liveatul/brahma-ai-evo/blob/main/actions/spotify_mcp_server/src/server.ts): `actions/spotify_mcp_server/src/server.ts`
- [Android companion](https://github.com/liveatul/brahma-ai-evo/blob/main/brahma-connect-android/app/src/main/java/com/brahma/connect/BrahmaConnectForegroundService.kt): `brahma-connect-android/app/src/main/java/com/brahma/connect/BrahmaConnectForegroundService.kt`
- [Connect gateway](https://github.com/liveatul/brahma-ai-evo/blob/main/brahma_connect/gateway/server.py): `brahma_connect/gateway/server.py`

### Other components

- **User**

## Connections

- User → Desktop interface: sends request
- Desktop interface → Application loop: enters application (evidence: `main.py`)
- Application loop → Desktop interface: updates interface (evidence: `main.py`)
- Application loop → AI client: requests reasoning (evidence: `main.py`)
- Application loop → Long-term memory: uses memory (evidence: `main.py`)
- Application loop → File operations: dispatches tools (evidence: `main.py`)
- Application loop → Desktop control: dispatches tools (evidence: `main.py`)
- User → Circuit guidance: requests guidance
- User → Skill generation: requests new skill
- Skill generation → Automatic repair: sandbox verifies
- User → Office documents: requests documents
- User → Geospatial tools: requests map data
- User → Spotify integration: requests playback
- Spotify MCP server → Spotify integration: provides MCP tools
- User → Smart home hub: requests device control
- Android companion → Connect gateway: connects over WebSocket (evidence: `brahma-connect-android/app/src/main/java/com/brahma/connect/BrahmaConnectForegroundService.kt`)
- User → Local dashboard: uses dashboard (evidence: `dashboard/server.py`)
