# dorbygamingoffical-bit/t-rex architecture

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

- Interactive diagram: https://gitdiagram.com/dorbygamingoffical-bit/t-rex
- Repository: https://github.com/dorbygamingoffical-bit/t-rex

## Overview

T-Rex is a desktop multimodal AI assistant. The documented primary workflow is user voice or text input, Gemini Live reasoning and tool dispatch, then spoken or visual results through the HUD; startup also authenticates a user and loads persistent identity memory. The README documents many capability modules whose source is not in the supplied tree, so they are represented only where exact paths are explicitly documented. Edges reflect shown calls or README statements; unsampled subsystem links are omitted rather than inferred.

Main entry points: [`main.py`](https://github.com/dorbygamingoffical-bit/t-rex/blob/main/main.py) (Gemini Live controller), [`ui.py`](https://github.com/dorbygamingoffical-bit/t-rex/blob/main/ui.py) (Desktop HUD)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_hud["Desktop HUD<br/>[ui.py]"]
end

subgraph group_assistant["Assistant runtime"]
  node_live["Gemini Live controller<br/>[main.py]"]
end

subgraph group_capabilities["Assistant capabilities"]
  node_voice["Voice and vision<br/>[main.py]"]
  node_browser["Browser automation"]
  node_documents["Document processing"]
  node_files["File management"]
  node_devagent["Development agent"]
  node_codehelper["Code helper"]
  node_monitor["System telemetry"]
  node_search["Web search"]
  node_briefing["Weather reports"]
  node_games["Game manager"]
  node_travel["Flight search"]
  node_video["YouTube tools"]
  node_images["Image generation"]
  node_desktop["Desktop controls"]
  node_launcher["App launcher"]
  node_settings["Computer settings"]
end

subgraph group_identity["Identity and memory"]
  node_security[("Face ID")]
  node_memory[("Persistent memory")]
end

subgraph group_remote["Remote access"]
  node_dashboard["Remote dashboard"]
end

node_user(("User"))
node_gemini{{"Gemini Live API"}}
node_phone(("Remote user"))

node_user -->|"enters commands"| node_hud
node_hud -->|"sends text"| node_live
node_live -->|"streams dialogue"| node_gemini
node_live -->|"handles audio"| node_voice
node_live -->|"reads and updates"| node_memory
node_live -->|"authenticates user"| node_security
node_live -->|"processes remote commands"| node_dashboard
node_phone -->|"remote controls"| node_dashboard
node_dashboard -->|"queues commands"| node_live
node_live -->|"dispatches tools"| node_browser
node_live -->|"dispatches tools"| node_documents
node_live -->|"dispatches tools"| node_files
node_live -->|"dispatches tools"| node_devagent
node_live -->|"dispatches tools"| node_codehelper
node_live -->|"dispatches tools"| node_monitor
node_live -->|"dispatches tools"| node_search
node_live -->|"dispatches tools"| node_briefing
node_live -->|"dispatches tools"| node_games
node_live -->|"dispatches tools"| node_travel
node_live -->|"dispatches tools"| node_video
node_live -->|"dispatches tools"| node_images
node_live -->|"dispatches tools"| node_desktop
node_live -->|"dispatches tools"| node_launcher
node_live -->|"dispatches tools"| node_settings
node_live -->|"updates interface"| node_hud
node_hud -->|"shows responses"| node_user

click node_hud "https://github.com/dorbygamingoffical-bit/t-rex/blob/main/ui.py"
click node_live "https://github.com/dorbygamingoffical-bit/t-rex/blob/main/main.py"
click node_voice "https://github.com/dorbygamingoffical-bit/t-rex/blob/main/main.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_hud,node_user,node_phone toneBlue
class node_live toneAmber
class node_voice,node_browser,node_documents,node_files,node_devagent,node_codehelper,node_monitor,node_search,node_briefing,node_games,node_travel,node_video,node_images,node_desktop,node_launcher,node_settings,node_gemini toneMint
class node_security,node_memory toneRose
class node_dashboard toneIndigo
```

## Components

### User interaction

- [Desktop HUD](https://github.com/dorbygamingoffical-bit/t-rex/blob/main/ui.py): `ui.py`

### Assistant runtime

- [Gemini Live controller](https://github.com/dorbygamingoffical-bit/t-rex/blob/main/main.py): `main.py`

### Assistant capabilities

- [Voice and vision](https://github.com/dorbygamingoffical-bit/t-rex/blob/main/main.py): `main.py`
- **Browser automation**
- **Document processing**
- **File management**
- **Development agent**
- **Code helper**
- **System telemetry**
- **Web search**
- **Weather reports**
- **Game manager**
- **Flight search**
- **YouTube tools**
- **Image generation**
- **Desktop controls**
- **App launcher**
- **Computer settings**

### Identity and memory

- **Face ID**
- **Persistent memory**

### Remote access

- **Remote dashboard**

### Other components

- **User**
- **Gemini Live API**
- **Remote user**

## Connections

- User → Desktop HUD: enters commands (evidence: `README.md`)
- Desktop HUD → Gemini Live controller: sends text (evidence: `main.py`)
- Gemini Live controller → Gemini Live API: streams dialogue (evidence: `README.md`)
- Gemini Live controller → Voice and vision: handles audio (evidence: `README.md`)
- Gemini Live controller → Persistent memory: reads and updates (evidence: `main.py`)
- Gemini Live controller → Face ID: authenticates user (evidence: `main.py`)
- Gemini Live controller → Remote dashboard: processes remote commands (evidence: `main.py`)
- Remote user → Remote dashboard: remote controls (evidence: `README.md`)
- Remote dashboard → Gemini Live controller: queues commands (evidence: `main.py`)
- Gemini Live controller → Browser automation: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Document processing: dispatches tools (evidence: `README.md`)
- Gemini Live controller → File management: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Development agent: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Code helper: dispatches tools (evidence: `README.md`)
- Gemini Live controller → System telemetry: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Web search: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Weather reports: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Game manager: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Flight search: dispatches tools (evidence: `README.md`)
- Gemini Live controller → YouTube tools: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Image generation: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Desktop controls: dispatches tools (evidence: `README.md`)
- Gemini Live controller → App launcher: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Computer settings: dispatches tools (evidence: `README.md`)
- Gemini Live controller → Desktop HUD: updates interface (evidence: `main.py`)
- Desktop HUD → User: shows responses (evidence: `README.md`)
