# navzar81-dev/miko architecture

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

- Interactive diagram: https://gitdiagram.com/navzar81-dev/miko
- Repository: https://github.com/navzar81-dev/miko

## Overview

MIKO is a Windows desktop AI companion with a floating chat pill and a six-tab control dashboard. The main workflow is user prompt → Tauri command handling → configured language model, with tool execution routed through permissions and, when selected, native PC actions or MCP connectors; replies can be spoken. Separate dashboard flows manage configuration, skills, memory, permissions, and connectors. The graph reflects documented capabilities as well as sampled calls; some runtime-to-model and voice links are documented rather than visible in the excerpts.

Main entry points: [`src-tauri/src/tools.rs`](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/tools.rs) (Tool permissions and routing), [`src-tauri/src/lib.rs`](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/lib.rs) (Tauri command runtime), [`ui/dashboard.js`](https://github.com/navzar81-dev/miko/blob/main/ui/dashboard.js) (Control dashboard), [`src-tauri/src/voice.rs`](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/voice.rs) (Voice engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_pill["Floating chat pill<br/>[app.js]"]
  node_dashboard["Control dashboard<br/>[dashboard.js]"]
end

subgraph group_runtime["Assistant runtime"]
  node_tauri["Tauri command runtime<br/>[lib.rs]"]
  node_config["Configuration<br/>[config.rs]"]
  node_llm["Language model client<br/>[llm.rs]"]
  node_voice["Voice engine<br/>[voice.rs]"]
  node_skills["Markdown skills<br/>[skills.rs]"]
end

subgraph group_actions["Tools and integrations"]
  node_toolgate["Tool permissions and routing<br/>[tools.rs]"]
  node_pc["Windows PC actions<br/>[hands.rs]"]
  node_mcp["MCP connector hub<br/>[mcp.rs]"]
end

subgraph group_data["Persistent data"]
  node_memory[("History and audit store<br/>[memory.rs]")]
end

node_user(("User"))
node_model_services{{"LLM providers"}}
node_microphone{{"Microphone"}}
node_speech_services{{"Speech services"}}
node_mcp_servers{{"MCP servers"}}

node_user -->|"enters prompt"| node_pill
node_pill -->|"invokes commands"| node_tauri
node_user -->|"manages settings"| node_dashboard
node_dashboard -->|"invokes commands"| node_tauri
node_tauri -->|"executes tools"| node_toolgate
node_toolgate -->|"dispatches actions"| node_pc
node_toolgate -->|"calls MCP tools"| node_mcp
node_toolgate -->|"reads and writes"| node_memory
node_toolgate -.->|"uses skills"| node_skills
node_toolgate -->|"analyzes screens"| node_llm
node_tauri -->|"controls conversation"| node_voice
node_tauri -->|"stores facts"| node_memory
node_dashboard -->|"manages memories"| node_memory
node_dashboard -->|"tests connectors"| node_mcp
node_dashboard -.->|"manages skills"| node_skills
node_tauri -.->|"requests responses"| node_llm
node_llm -->|"sends requests"| node_model_services
node_voice -->|"captures audio"| node_microphone
node_voice -->|"generates speech"| node_speech_services
node_mcp -->|"connects tools"| node_mcp_servers

click node_pill "https://github.com/navzar81-dev/miko/blob/main/ui/app.js"
click node_dashboard "https://github.com/navzar81-dev/miko/blob/main/ui/dashboard.js"
click node_tauri "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/lib.rs"
click node_config "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/config.rs"
click node_llm "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/llm.rs"
click node_voice "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/voice.rs"
click node_toolgate "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/tools.rs"
click node_pc "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/hands.rs"
click node_mcp "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/mcp.rs"
click node_skills "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/skills.rs"
click node_memory "https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/memory.rs"

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_pill,node_dashboard,node_user toneBlue
class node_tauri,node_config,node_llm,node_voice,node_skills toneAmber
class node_toolgate,node_pc,node_mcp,node_mcp_servers toneMint
class node_memory toneRose
class node_model_services,node_microphone,node_speech_services toneIndigo
```

## Components

### User experience

- [Floating chat pill](https://github.com/navzar81-dev/miko/blob/main/ui/app.js): `ui/app.js`
- [Control dashboard](https://github.com/navzar81-dev/miko/blob/main/ui/dashboard.js): `ui/dashboard.js`

### Assistant runtime

- [Tauri command runtime](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/lib.rs): `src-tauri/src/lib.rs`
- [Configuration](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/config.rs): `src-tauri/src/config.rs`
- [Language model client](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/llm.rs): `src-tauri/src/llm.rs`
- [Voice engine](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/voice.rs): `src-tauri/src/voice.rs`
- [Markdown skills](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/skills.rs): `src-tauri/src/skills.rs`

### Tools and integrations

- [Tool permissions and routing](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/tools.rs): `src-tauri/src/tools.rs`
- [Windows PC actions](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/hands.rs): `src-tauri/src/hands.rs`
- [MCP connector hub](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/mcp.rs): `src-tauri/src/mcp.rs`

### Persistent data

- [History and audit store](https://github.com/navzar81-dev/miko/blob/main/src-tauri/src/memory.rs): `src-tauri/src/memory.rs`

### Other components

- **User**
- **LLM providers**
- **Microphone**
- **Speech services**
- **MCP servers**

## Connections

- User → Floating chat pill: enters prompt (evidence: `README.md`)
- Floating chat pill → Tauri command runtime: invokes commands (evidence: `ui/app.js`)
- User → Control dashboard: manages settings (evidence: `README.md`)
- Control dashboard → Tauri command runtime: invokes commands (evidence: `ui/dashboard.js`)
- Tauri command runtime → Tool permissions and routing: executes tools (evidence: `src-tauri/src/lib.rs`)
- Tool permissions and routing → Windows PC actions: dispatches actions (evidence: `src-tauri/src/tools.rs`)
- Tool permissions and routing → MCP connector hub: calls MCP tools (evidence: `src-tauri/src/tools.rs`)
- Tool permissions and routing → History and audit store: reads and writes (evidence: `src-tauri/src/tools.rs`)
- Tool permissions and routing → Markdown skills: uses skills (evidence: `src-tauri/src/tools.rs`)
- Tool permissions and routing → Language model client: analyzes screens (evidence: `src-tauri/src/tools.rs`)
- Tauri command runtime → Voice engine: controls conversation (evidence: `src-tauri/src/lib.rs`)
- Tauri command runtime → History and audit store: stores facts (evidence: `src-tauri/src/lib.rs`)
- Control dashboard → History and audit store: manages memories (evidence: `ui/dashboard.js`)
- Control dashboard → MCP connector hub: tests connectors (evidence: `ui/dashboard.js`)
- Control dashboard → Markdown skills: manages skills
- Tauri command runtime → Language model client: requests responses (evidence: `src-tauri/src/lib.rs`)
- Language model client → LLM providers: sends requests (evidence: `src-tauri/src/llm.rs`)
- Voice engine → Microphone: captures audio (evidence: `README.md`)
- Voice engine → Speech services: generates speech (evidence: `README.md`)
- MCP connector hub → MCP servers: connects tools (evidence: `README.md`)
