# fatihmakes/mark-lvi architecture

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

- Interactive diagram: https://gitdiagram.com/fatihmakes/mark-lvi
- Repository: https://github.com/fatihmakes/mark-lvi

## Overview

Mark LVI is a cross-platform voice assistant: a user speaks or types, the runtime handles a Live Gemini session or an optional assembled STT/LLM/TTS engine, dispatches skill calls, and presents spoken and visual results. Its major branches include memory and recall, computer and file control, vision, web and proactive information, and the HUD/dashboard. The excerpts and SOURCE INDEX support the main runtime, provider, memory, and UI connections; unsampled action internals are represented by their exact paths without inferred call chains.

Main entry points: [`main.py`](https://github.com/fatihmakes/mark-lvi/blob/main/main.py) (Assistant runtime), [`core/action_loader.py`](https://github.com/fatihmakes/mark-lvi/blob/main/core/action_loader.py) (Skill loader), [`ui.py`](https://github.com/fatihmakes/mark-lvi/blob/main/ui.py) (HUD and settings UI), [`providers/engine_pipeline.py`](https://github.com/fatihmakes/mark-lvi/blob/main/providers/engine_pipeline.py) (Engine pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Conversation runtime"]
  node_main["Assistant runtime<br/>[main.py]"]
  node_gemini["Gemini Live<br/>[gemini.py]"]
end

subgraph group_skills["Skills and control"]
  node_action_loader["Skill loader<br/>[action_loader.py]"]
  node_web_search["Web search<br/>[web_search.py]"]
  node_computer["Computer settings"]
  node_app_identity["App identity<br/>[appidentity.py]"]
  node_file_control["File control<br/>[file_controller.py]"]
  node_file_processing["File processing<br/>[file_processor.py]"]
  node_vision["Screen and camera"]
  node_agent["Agent tasks<br/>[dev_agent.py]"]
  node_proactive["Proactive checks<br/>[proactive.py]"]
  node_monitor["Background monitoring"]
  node_reminder["Reminders<br/>[reminder.py]"]
  node_system_monitor["System monitoring<br/>[system_monitor.py]"]
  node_video["HUD video<br/>[video_player.py]"]
  node_plugin_loader["Plugin loader<br/>[plugin_loader.py]"]
end

subgraph group_providers["Engine providers"]
  node_provider_registry["Provider registry<br/>[registry.py]"]
  node_pipeline["Engine pipeline<br/>[engine_pipeline.py]"]
  node_provider_contract["Provider contract<br/>[base.py]"]
  node_openai_provider["OpenAI-compatible LLM<br/>[llm_openai.py]"]
  node_whisper["Whisper speech input<br/>[stt_whisper.py]"]
  node_speech_output["Speech output<br/>[tts_piper.py]"]
end

subgraph group_state["Memory and settings"]
  node_memory[("Persistent memory<br/>[memory_manager.py]")]
  node_config[("Configuration<br/>[config_manager.py]")]
end

subgraph group_surfaces["User interfaces"]
  node_ui["HUD and settings UI<br/>[ui.py]"]
  node_dashboard["Local dashboard<br/>[server.py]"]
end

node_user(("User"))

node_user -->|"speaks or types"| node_ui
node_ui -->|"submits input"| node_main
node_main -->|"runs Live session"| node_gemini
node_main -.->|"selects alternate engine"| node_pipeline
node_pipeline -->|"builds providers"| node_provider_registry
node_provider_registry -->|"validates declarations"| node_provider_contract
node_pipeline -->|"requests model output"| node_openai_provider
node_pipeline -.->|"transcribes speech"| node_whisper
node_pipeline -.->|"synthesizes speech"| node_speech_output
node_main -->|"loads skills"| node_action_loader
node_main -->|"loads and updates"| node_memory
node_main -->|"reads settings"| node_config
node_main -->|"loads plugins"| node_plugin_loader
node_main -->|"dispatches search"| node_web_search
node_web_search -->|"requests grounded search"| node_gemini
node_main -->|"dispatches capture"| node_vision
node_main -->|"starts check-ins"| node_proactive
node_main -->|"starts topic monitoring"| node_monitor
node_proactive -->|"reads context"| node_memory
node_monitor -->|"reads topics"| node_memory
node_action_loader -.->|"discovers skill"| node_computer
node_computer -->|"resolves applications"| node_app_identity
node_action_loader -.->|"discovers skill"| node_file_control
node_action_loader -.->|"discovers skill"| node_file_processing
node_action_loader -.->|"discovers skill"| node_agent
node_action_loader -.->|"discovers skill"| node_reminder
node_action_loader -.->|"discovers skill"| node_system_monitor
node_action_loader -.->|"discovers skill"| node_video
node_main -->|"updates HUD"| node_ui
node_ui -->|"persists preferences"| node_config
node_ui -->|"shows memory"| node_memory
node_ui -->|"configures providers"| node_provider_registry
node_user -->|"sends commands"| node_dashboard
node_dashboard -.->|"queues commands"| node_main

click node_main "https://github.com/fatihmakes/mark-lvi/blob/main/main.py"
click node_gemini "https://github.com/fatihmakes/mark-lvi/blob/main/core/gemini.py"
click node_action_loader "https://github.com/fatihmakes/mark-lvi/blob/main/core/action_loader.py"
click node_web_search "https://github.com/fatihmakes/mark-lvi/blob/main/actions/web_search.py"
click node_computer "https://github.com/fatihmakes/mark-lvi/blob/main/actions/computer_settings.py"
click node_app_identity "https://github.com/fatihmakes/mark-lvi/blob/main/core/appidentity.py"
click node_file_control "https://github.com/fatihmakes/mark-lvi/blob/main/actions/file_controller.py"
click node_file_processing "https://github.com/fatihmakes/mark-lvi/blob/main/actions/file_processor.py"
click node_vision "https://github.com/fatihmakes/mark-lvi/blob/main/actions/screen_processor.py"
click node_agent "https://github.com/fatihmakes/mark-lvi/blob/main/actions/dev_agent.py"
click node_proactive "https://github.com/fatihmakes/mark-lvi/blob/main/actions/proactive.py"
click node_monitor "https://github.com/fatihmakes/mark-lvi/blob/main/actions/background_monitor.py"
click node_reminder "https://github.com/fatihmakes/mark-lvi/blob/main/actions/reminder.py"
click node_system_monitor "https://github.com/fatihmakes/mark-lvi/blob/main/actions/system_monitor.py"
click node_video "https://github.com/fatihmakes/mark-lvi/blob/main/actions/video_player.py"
click node_plugin_loader "https://github.com/fatihmakes/mark-lvi/blob/main/core/plugin_loader.py"
click node_provider_registry "https://github.com/fatihmakes/mark-lvi/blob/main/providers/registry.py"
click node_pipeline "https://github.com/fatihmakes/mark-lvi/blob/main/providers/engine_pipeline.py"
click node_provider_contract "https://github.com/fatihmakes/mark-lvi/blob/main/providers/base.py"
click node_openai_provider "https://github.com/fatihmakes/mark-lvi/blob/main/providers/llm_openai.py"
click node_whisper "https://github.com/fatihmakes/mark-lvi/blob/main/providers/stt_whisper.py"
click node_speech_output "https://github.com/fatihmakes/mark-lvi/blob/main/providers/tts_piper.py"
click node_memory "https://github.com/fatihmakes/mark-lvi/blob/main/memory/memory_manager.py"
click node_config "https://github.com/fatihmakes/mark-lvi/blob/main/memory/config_manager.py"
click node_ui "https://github.com/fatihmakes/mark-lvi/blob/main/ui.py"
click node_dashboard "https://github.com/fatihmakes/mark-lvi/blob/main/dashboard/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_gemini,node_user toneBlue
class node_action_loader,node_web_search,node_computer,node_app_identity,node_file_control,node_file_processing,node_vision,node_agent,node_proactive,node_monitor,node_reminder,node_system_monitor,node_video,node_plugin_loader toneAmber
class node_provider_registry,node_pipeline,node_provider_contract,node_openai_provider,node_whisper,node_speech_output toneMint
class node_memory,node_config toneRose
class node_ui,node_dashboard toneIndigo
```

## Components

### Conversation runtime

- [Assistant runtime](https://github.com/fatihmakes/mark-lvi/blob/main/main.py): `main.py`
- [Gemini Live](https://github.com/fatihmakes/mark-lvi/blob/main/core/gemini.py): `core/gemini.py`

### Skills and control

- [Skill loader](https://github.com/fatihmakes/mark-lvi/blob/main/core/action_loader.py): `core/action_loader.py`
- [Web search](https://github.com/fatihmakes/mark-lvi/blob/main/actions/web_search.py): `actions/web_search.py`
- [Computer settings](https://github.com/fatihmakes/mark-lvi/blob/main/actions/computer_settings.py): `actions/computer_settings.py`
- [App identity](https://github.com/fatihmakes/mark-lvi/blob/main/core/appidentity.py): `core/appidentity.py`
- [File control](https://github.com/fatihmakes/mark-lvi/blob/main/actions/file_controller.py): `actions/file_controller.py`
- [File processing](https://github.com/fatihmakes/mark-lvi/blob/main/actions/file_processor.py): `actions/file_processor.py`
- [Screen and camera](https://github.com/fatihmakes/mark-lvi/blob/main/actions/screen_processor.py): `actions/screen_processor.py`
- [Agent tasks](https://github.com/fatihmakes/mark-lvi/blob/main/actions/dev_agent.py): `actions/dev_agent.py`
- [Proactive checks](https://github.com/fatihmakes/mark-lvi/blob/main/actions/proactive.py): `actions/proactive.py`
- [Background monitoring](https://github.com/fatihmakes/mark-lvi/blob/main/actions/background_monitor.py): `actions/background_monitor.py`
- [Reminders](https://github.com/fatihmakes/mark-lvi/blob/main/actions/reminder.py): `actions/reminder.py`
- [System monitoring](https://github.com/fatihmakes/mark-lvi/blob/main/actions/system_monitor.py): `actions/system_monitor.py`
- [HUD video](https://github.com/fatihmakes/mark-lvi/blob/main/actions/video_player.py): `actions/video_player.py`
- [Plugin loader](https://github.com/fatihmakes/mark-lvi/blob/main/core/plugin_loader.py): `core/plugin_loader.py`

### Engine providers

- [Provider registry](https://github.com/fatihmakes/mark-lvi/blob/main/providers/registry.py): `providers/registry.py`
- [Engine pipeline](https://github.com/fatihmakes/mark-lvi/blob/main/providers/engine_pipeline.py): `providers/engine_pipeline.py`
- [Provider contract](https://github.com/fatihmakes/mark-lvi/blob/main/providers/base.py): `providers/base.py`
- [OpenAI-compatible LLM](https://github.com/fatihmakes/mark-lvi/blob/main/providers/llm_openai.py): `providers/llm_openai.py`
- [Whisper speech input](https://github.com/fatihmakes/mark-lvi/blob/main/providers/stt_whisper.py): `providers/stt_whisper.py`
- [Speech output](https://github.com/fatihmakes/mark-lvi/blob/main/providers/tts_piper.py): `providers/tts_piper.py`

### Memory and settings

- [Persistent memory](https://github.com/fatihmakes/mark-lvi/blob/main/memory/memory_manager.py): `memory/memory_manager.py`
- [Configuration](https://github.com/fatihmakes/mark-lvi/blob/main/memory/config_manager.py): `memory/config_manager.py`

### User interfaces

- [HUD and settings UI](https://github.com/fatihmakes/mark-lvi/blob/main/ui.py): `ui.py`
- [Local dashboard](https://github.com/fatihmakes/mark-lvi/blob/main/dashboard/server.py): `dashboard/server.py`

### Other components

- **User**

## Connections

- User → HUD and settings UI: speaks or types
- HUD and settings UI → Assistant runtime: submits input (evidence: `main.py`)
- Assistant runtime → Gemini Live: runs Live session (evidence: `main.py`)
- Assistant runtime → Engine pipeline: selects alternate engine (evidence: `main.py`)
- Engine pipeline → Provider registry: builds providers (evidence: `providers/engine_pipeline.py`)
- Provider registry → Provider contract: validates declarations (evidence: `providers/registry.py`)
- Engine pipeline → OpenAI-compatible LLM: requests model output (evidence: `providers/engine_pipeline.py`)
- Engine pipeline → Whisper speech input: transcribes speech
- Engine pipeline → Speech output: synthesizes speech
- Assistant runtime → Skill loader: loads skills (evidence: `main.py`)
- Assistant runtime → Persistent memory: loads and updates (evidence: `main.py`)
- Assistant runtime → Configuration: reads settings (evidence: `main.py`)
- Assistant runtime → Plugin loader: loads plugins (evidence: `main.py`)
- Assistant runtime → Web search: dispatches search (evidence: `main.py`)
- Web search → Gemini Live: requests grounded search (evidence: `actions/web_search.py`)
- Assistant runtime → Screen and camera: dispatches capture (evidence: `main.py`)
- Assistant runtime → Proactive checks: starts check-ins (evidence: `main.py`)
- Assistant runtime → Background monitoring: starts topic monitoring (evidence: `main.py`)
- Proactive checks → Persistent memory: reads context (evidence: `actions/proactive.py`)
- Background monitoring → Persistent memory: reads topics (evidence: `actions/background_monitor.py`)
- Skill loader → Computer settings: discovers skill
- Computer settings → App identity: resolves applications (evidence: `actions/computer_settings.py`)
- Skill loader → File control: discovers skill
- Skill loader → File processing: discovers skill
- Skill loader → Agent tasks: discovers skill
- Skill loader → Reminders: discovers skill
- Skill loader → System monitoring: discovers skill
- Skill loader → HUD video: discovers skill
- Assistant runtime → HUD and settings UI: updates HUD (evidence: `main.py`)
- HUD and settings UI → Configuration: persists preferences (evidence: `ui.py`)
- HUD and settings UI → Persistent memory: shows memory (evidence: `ui.py`)
- HUD and settings UI → Provider registry: configures providers (evidence: `ui.py`)
- User → Local dashboard: sends commands
- Local dashboard → Assistant runtime: queues commands (evidence: `main.py`)
