# iabhnv19/t.u.e.s.d.a.y architecture

> Architecture diagram of the GitHub repository iabhnv19/t.u.e.s.d.a.y, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iabhnv19/t.u.e.s.d.a.y
- Repository: https://github.com/iabhnv19/t.u.e.s.d.a.y

## Overview

T.U.E.S.D.A.Y is a voice-first Windows desktop assistant. Its main workflow starts with a hotkey and spoken request, then routes the request through local command parsing or the AI brain/planner, executes tools, and returns a spoken response. The graph also preserves memory, mood, ambient monitoring, specialist agents, productivity, screen, browser, and file capabilities documented in the README. Some subsystem links rely on README descriptions because the supplied source excerpts are partial.

Main entry points: [`core/brain.py`](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/brain.py) (AI Brain), [`main.py`](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/main.py) (Assistant Runtime), [`modules/registered_tools.py`](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/registered_tools.py) (Desktop Action Tools), [`core/memory.py`](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/memory.py) (Persistent Memory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice and Interface"]
  node_app["Assistant Runtime<br/>[main.py]"]
  node_voice["Speech I/O<br/>[voice.py]"]
  node_overlay["Floating Overlays<br/>[overlay.py]"]
end

subgraph group_reasoning["Reasoning and Agents"]
  node_parser["Command Parser<br/>[command_parser.py]"]
  node_brain["AI Brain<br/>[brain.py]"]
  node_planner["ReAct Planner<br/>[planner.py]"]
  node_agents["Specialist Swarm<br/>[agents.py]"]
  node_llm["Universal LLM<br/>[llm.py]"]
  node_mood["Mood Engine<br/>[mood.py]"]
end

subgraph group_actions["Tools and Automation"]
  node_tool_dispatch["Tool Registry and Safety<br/>[tools.py]"]
  node_registered["Desktop Action Tools"]
  node_pc["Windows Control<br/>[pc_control.py]"]
  node_utilities["System Utilities<br/>[utilities.py]"]
  node_screen["Screen Understanding<br/>[screen_tools.py]"]
  node_browser["Browser Operations<br/>[browser_tools.py]"]
  node_files["File Operations<br/>[file_tools.py]"]
  node_web["Web Search<br/>[web_search.py]"]
end

subgraph group_context["Memory and Productivity"]
  node_productivity["Productivity Tools"]
  node_memory[("Persistent Memory<br/>[memory.py]")]
end

subgraph group_proactive["Proactive Support"]
  node_scheduler["Reminder Scheduler<br/>[scheduler.py]"]
  node_ambient["Ambient Companion<br/>[ambient.py]"]
end

node_user(("Desktop User"))
node_external_services{{"AI and Web Services"}}

node_user -->|"activates"| node_app
node_app -->|"captures speech"| node_voice
node_voice -->|"transcribes"| node_app
node_app -->|"routes requests"| node_brain
node_app -->|"routes commands"| node_parser
node_parser -->|"executes direct tools"| node_tool_dispatch
node_brain -->|"delegates goals"| node_planner
node_brain -->|"delegates research"| node_agents
node_brain -->|"requests completions"| node_llm
node_planner -->|"generates plans"| node_llm
node_brain -->|"adapts tone"| node_mood
node_brain -->|"reads and records"| node_memory
node_agents -->|"researches with"| node_web
node_brain -->|"invokes tools"| node_tool_dispatch
node_planner -->|"executes steps"| node_tool_dispatch
node_tool_dispatch -->|"loads tool set"| node_registered
node_registered -->|"delegates control"| node_pc
node_registered -->|"uses utilities"| node_utilities
node_registered -->|"uses search"| node_web
node_registered -->|"uses stored context"| node_memory
node_brain -->|"uses screen tools"| node_screen
node_brain -->|"uses browser tools"| node_browser
node_brain -->|"uses file tools"| node_files
node_productivity -->|"stores reminders and notes"| node_memory
node_app -->|"starts scheduler"| node_scheduler
node_scheduler -->|"reads reminders"| node_memory
node_app -->|"starts monitor"| node_ambient
node_ambient -->|"uses memory"| node_memory
node_app -->|"updates interface"| node_overlay
node_brain -->|"streams response"| node_voice
node_llm -->|"calls providers"| node_external_services
node_web -->|"queries online sources"| node_external_services
node_productivity -.->|"optionally accesses Workspace"| node_external_services
node_voice -.->|"optionally uses speech services"| node_external_services

click node_app "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/main.py"
click node_voice "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/voice.py"
click node_overlay "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/overlay.py"
click node_parser "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/command_parser.py"
click node_brain "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/brain.py"
click node_planner "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/planner.py"
click node_agents "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/agents.py"
click node_llm "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/llm.py"
click node_mood "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/mood.py"
click node_tool_dispatch "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/tools.py"
click node_registered "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/registered_tools.py"
click node_pc "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/pc_control.py"
click node_utilities "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/utilities.py"
click node_screen "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/screen_tools.py"
click node_browser "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/browser_tools.py"
click node_files "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/file_tools.py"
click node_web "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/web_search.py"
click node_productivity "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/productivity_tools.py"
click node_memory "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/memory.py"
click node_scheduler "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/scheduler.py"
click node_ambient "https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/ambient.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_app,node_voice,node_overlay,node_user toneBlue
class node_parser,node_brain,node_planner,node_agents,node_llm,node_mood toneAmber
class node_tool_dispatch,node_registered,node_pc,node_utilities,node_screen,node_browser,node_files,node_web toneMint
class node_productivity,node_memory toneRose
class node_scheduler,node_ambient,node_external_services toneIndigo
```

## Components

### Voice and Interface

- [Assistant Runtime](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/main.py): `main.py`
- [Speech I/O](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/voice.py): `core/voice.py`
- [Floating Overlays](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/overlay.py): `modules/overlay.py`

### Reasoning and Agents

- [Command Parser](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/command_parser.py): `modules/command_parser.py`
- [AI Brain](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/brain.py): `core/brain.py`
- [ReAct Planner](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/planner.py): `core/planner.py`
- [Specialist Swarm](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/agents.py): `core/agents.py`
- [Universal LLM](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/llm.py): `core/llm.py`
- [Mood Engine](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/mood.py): `core/mood.py`

### Tools and Automation

- [Tool Registry and Safety](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/tools.py): `core/tools.py`
- [Desktop Action Tools](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/registered_tools.py): `modules/registered_tools.py`
- [Windows Control](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/pc_control.py): `modules/pc_control.py`
- [System Utilities](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/utilities.py): `modules/utilities.py`
- [Screen Understanding](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/screen_tools.py): `modules/screen_tools.py`
- [Browser Operations](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/browser_tools.py): `modules/browser_tools.py`
- [File Operations](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/file_tools.py): `modules/file_tools.py`
- [Web Search](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/web_search.py): `modules/web_search.py`

### Memory and Productivity

- [Productivity Tools](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/modules/productivity_tools.py): `modules/productivity_tools.py`
- [Persistent Memory](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/memory.py): `core/memory.py`

### Proactive Support

- [Reminder Scheduler](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/scheduler.py): `core/scheduler.py`
- [Ambient Companion](https://github.com/iabhnv19/t.u.e.s.d.a.y/blob/main/core/ambient.py): `core/ambient.py`

### Other components

- **Desktop User**
- **AI and Web Services**

## Connections

- Desktop User → Assistant Runtime: activates (evidence: `README.md`)
- Assistant Runtime → Speech I/O: captures speech (evidence: `README.md`)
- Speech I/O → Assistant Runtime: transcribes (evidence: `README.md`)
- Assistant Runtime → AI Brain: routes requests (evidence: `main.py`)
- Assistant Runtime → Command Parser: routes commands (evidence: `main.py`)
- Command Parser → Tool Registry and Safety: executes direct tools (evidence: `modules/command_parser.py`)
- AI Brain → ReAct Planner: delegates goals (evidence: `core/brain.py`)
- AI Brain → Specialist Swarm: delegates research (evidence: `core/brain.py`)
- AI Brain → Universal LLM: requests completions (evidence: `core/brain.py`)
- ReAct Planner → Universal LLM: generates plans (evidence: `core/planner.py`)
- AI Brain → Mood Engine: adapts tone (evidence: `README.md`)
- AI Brain → Persistent Memory: reads and records (evidence: `core/brain.py`)
- Specialist Swarm → Web Search: researches with (evidence: `core/agents.py`)
- AI Brain → Tool Registry and Safety: invokes tools (evidence: `README.md`)
- ReAct Planner → Tool Registry and Safety: executes steps (evidence: `core/planner.py`)
- Tool Registry and Safety → Desktop Action Tools: loads tool set (evidence: `core/tools.py`)
- Desktop Action Tools → Windows Control: delegates control (evidence: `modules/registered_tools.py`)
- Desktop Action Tools → System Utilities: uses utilities (evidence: `modules/registered_tools.py`)
- Desktop Action Tools → Web Search: uses search (evidence: `modules/registered_tools.py`)
- Desktop Action Tools → Persistent Memory: uses stored context (evidence: `modules/registered_tools.py`)
- AI Brain → Screen Understanding: uses screen tools (evidence: `README.md`)
- AI Brain → Browser Operations: uses browser tools (evidence: `README.md`)
- AI Brain → File Operations: uses file tools (evidence: `README.md`)
- Productivity Tools → Persistent Memory: stores reminders and notes (evidence: `modules/productivity_tools.py`)
- Assistant Runtime → Reminder Scheduler: starts scheduler (evidence: `main.py`)
- Reminder Scheduler → Persistent Memory: reads reminders (evidence: `core/scheduler.py`)
- Assistant Runtime → Ambient Companion: starts monitor (evidence: `main.py`)
- Ambient Companion → Persistent Memory: uses memory (evidence: `core/ambient.py`)
- Assistant Runtime → Floating Overlays: updates interface (evidence: `main.py`)
- AI Brain → Speech I/O: streams response (evidence: `README.md`)
- Universal LLM → AI and Web Services: calls providers (evidence: `core/llm.py`)
- Web Search → AI and Web Services: queries online sources (evidence: `modules/web_search.py`)
- Productivity Tools → AI and Web Services: optionally accesses Workspace (evidence: `README.md`)
- Speech I/O → AI and Web Services: optionally uses speech services (evidence: `README.md`)
