# fatihmakes/mark-lviii architecture

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

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

## Overview

Mark LVIII is a cross-platform, real-time personal AI assistant: the user speaks or supplies a request, the assistant interprets it, selects tools or background work, and returns a spoken or visual result. Its major branches include computer and window control, memory, long-running research, plugins, a customizable HUD, and a phone dashboard. The excerpts show the background-task handoff and selected memory, UI, and task behavior; other capability links rely on explicit README statements or the source index, so unsampled implementation details are not inferred.

Main entry points: [`main.py`](https://github.com/fatihmakes/mark-lviii/blob/main/main.py) (Assistant Runtime), [`core/tasks/engine.py`](https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/engine.py) (Task Engine), [`actions/window_control.py`](https://github.com/fatihmakes/mark-lviii/blob/main/actions/window_control.py) (Window Control), [`actions/file_controller.py`](https://github.com/fatihmakes/mark-lviii/blob/main/actions/file_controller.py) (File Control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Voice Assistant"]
  node_assistant["Assistant Runtime<br/>[main.py]"]
  node_live_model["Gemini Live<br/>[gemini.py]"]
  node_providers["Speech and Model Providers<br/>[engine_pipeline.py]"]
end

subgraph group_actions["Tools and Control"]
  node_tool_loader["Action Loader<br/>[action_loader.py]"]
  node_window_tools["Window Control<br/>[window_control.py]"]
  node_file_tools["File Control<br/>[file_controller.py]"]
end

subgraph group_tasks["Background Work"]
  node_task_tool["Background Task Tool"]
  node_task_engine["Task Engine<br/>[engine.py]"]
  node_research["Research Runner<br/>[research.py]"]
  node_task_store[("Task Store<br/>[store.py]")]
end

subgraph group_experience["User Interfaces"]
  node_hud["HUD Window<br/>[window.py]"]
  node_dashboard["Phone Dashboard<br/>[server.py]"]
end

subgraph group_platform["State and Extensions"]
  node_memory[("Personal Memory<br/>[memory_manager.py]")]
  node_configuration[("Settings<br/>[config_manager.py]")]
  node_plugin_loader["Plugin Loader<br/>[plugin_loader.py]"]
end

node_user(("User"))
node_os(("Computer"))

node_user -->|"speaks requests"| node_assistant
node_assistant -->|"sends conversation"| node_live_model
node_assistant -->|"reads and updates"| node_memory
node_assistant -->|"reads settings"| node_configuration
node_assistant -->|"loads actions"| node_tool_loader
node_assistant -->|"dispatches controls"| node_window_tools
node_assistant -->|"dispatches file actions"| node_file_tools
node_assistant -->|"dispatches task requests"| node_task_tool
node_task_tool -->|"starts and manages"| node_task_engine
node_task_engine -->|"runs research"| node_research
node_task_engine -.->|"persists task state"| node_task_store
node_assistant -->|"loads plugins"| node_plugin_loader
node_assistant -->|"uses configurable speech"| node_providers
node_assistant -->|"presents assistant interface"| node_hud
node_user -->|"sends phone commands"| node_dashboard
node_window_tools -->|"controls windows"| node_os
node_file_tools -->|"manages files"| node_os

click node_assistant "https://github.com/fatihmakes/mark-lviii/blob/main/main.py"
click node_live_model "https://github.com/fatihmakes/mark-lviii/blob/main/core/gemini.py"
click node_memory "https://github.com/fatihmakes/mark-lviii/blob/main/memory/memory_manager.py"
click node_configuration "https://github.com/fatihmakes/mark-lviii/blob/main/memory/config_manager.py"
click node_tool_loader "https://github.com/fatihmakes/mark-lviii/blob/main/core/action_loader.py"
click node_window_tools "https://github.com/fatihmakes/mark-lviii/blob/main/actions/window_control.py"
click node_file_tools "https://github.com/fatihmakes/mark-lviii/blob/main/actions/file_controller.py"
click node_task_tool "https://github.com/fatihmakes/mark-lviii/blob/main/actions/background_tasks.py"
click node_task_engine "https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/engine.py"
click node_research "https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/research.py"
click node_task_store "https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/store.py"
click node_hud "https://github.com/fatihmakes/mark-lviii/blob/main/gui/window.py"
click node_dashboard "https://github.com/fatihmakes/mark-lviii/blob/main/dashboard/server.py"
click node_plugin_loader "https://github.com/fatihmakes/mark-lviii/blob/main/core/plugin_loader.py"
click node_providers "https://github.com/fatihmakes/mark-lviii/blob/main/providers/engine_pipeline.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_assistant,node_live_model,node_providers,node_user toneBlue
class node_tool_loader,node_window_tools,node_file_tools toneAmber
class node_task_tool,node_task_engine,node_research,node_task_store toneMint
class node_hud,node_dashboard toneRose
class node_memory,node_configuration,node_plugin_loader,node_os toneIndigo
```

## Components

### Voice Assistant

- [Assistant Runtime](https://github.com/fatihmakes/mark-lviii/blob/main/main.py): `main.py`
- [Gemini Live](https://github.com/fatihmakes/mark-lviii/blob/main/core/gemini.py): `core/gemini.py`
- [Speech and Model Providers](https://github.com/fatihmakes/mark-lviii/blob/main/providers/engine_pipeline.py): `providers/engine_pipeline.py`

### Tools and Control

- [Action Loader](https://github.com/fatihmakes/mark-lviii/blob/main/core/action_loader.py): `core/action_loader.py`
- [Window Control](https://github.com/fatihmakes/mark-lviii/blob/main/actions/window_control.py): `actions/window_control.py`
- [File Control](https://github.com/fatihmakes/mark-lviii/blob/main/actions/file_controller.py): `actions/file_controller.py`

### Background Work

- [Background Task Tool](https://github.com/fatihmakes/mark-lviii/blob/main/actions/background_tasks.py): `actions/background_tasks.py`
- [Task Engine](https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/engine.py): `core/tasks/engine.py`
- [Research Runner](https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/research.py): `core/tasks/research.py`
- [Task Store](https://github.com/fatihmakes/mark-lviii/blob/main/core/tasks/store.py): `core/tasks/store.py`

### User Interfaces

- [HUD Window](https://github.com/fatihmakes/mark-lviii/blob/main/gui/window.py): `gui/window.py`
- [Phone Dashboard](https://github.com/fatihmakes/mark-lviii/blob/main/dashboard/server.py): `dashboard/server.py`

### State and Extensions

- [Personal Memory](https://github.com/fatihmakes/mark-lviii/blob/main/memory/memory_manager.py): `memory/memory_manager.py`
- [Settings](https://github.com/fatihmakes/mark-lviii/blob/main/memory/config_manager.py): `memory/config_manager.py`
- [Plugin Loader](https://github.com/fatihmakes/mark-lviii/blob/main/core/plugin_loader.py): `core/plugin_loader.py`

### Other components

- **User**
- **Computer**

## Connections

- User → Assistant Runtime: speaks requests
- Assistant Runtime → Gemini Live: sends conversation (evidence: `main.py`)
- Assistant Runtime → Personal Memory: reads and updates (evidence: `main.py`)
- Assistant Runtime → Settings: reads settings (evidence: `main.py`)
- Assistant Runtime → Action Loader: loads actions (evidence: `main.py`)
- Assistant Runtime → Window Control: dispatches controls
- Assistant Runtime → File Control: dispatches file actions
- Assistant Runtime → Background Task Tool: dispatches task requests
- Background Task Tool → Task Engine: starts and manages (evidence: `actions/background_tasks.py`)
- Task Engine → Research Runner: runs research (evidence: `core/tasks/engine.py`)
- Task Engine → Task Store: persists task state (evidence: `core/tasks/engine.py`)
- Assistant Runtime → Plugin Loader: loads plugins (evidence: `main.py`)
- Assistant Runtime → Speech and Model Providers: uses configurable speech (evidence: `main.py`)
- Assistant Runtime → HUD Window: presents assistant interface
- User → Phone Dashboard: sends phone commands
- Window Control → Computer: controls windows
- File Control → Computer: manages files (evidence: `actions/file_controller.py`)
