# aestheticsuraj234/openhuman architecture

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

- Interactive diagram: https://gitdiagram.com/aestheticsuraj234/openhuman
- Repository: https://github.com/aestheticsuraj234/openhuman

## Overview

OpenHuman is a desktop personal-agent application: users connect accounts, configure the assistant, then chat or use voice while integrations feed personal context into local memory and background intelligence. Its main runtime spans the React/Tauri desktop, Rust core, agent context and inference, memory-tree ingestion, integrations, and ongoing assistant features. The README documents major capabilities; source excerpts and the SOURCE INDEX verify selected calls and subsystem dependencies, but several product branches are represented only at their documented boundary.

Main entry points: [`app/src/AppRoutes.tsx`](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/AppRoutes.tsx) (App routes), [`src/openhuman/inference`](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman/inference) (Model inference), [`src/openhuman/subconscious/engine.rs`](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/subconscious/engine.rs) (Subconscious tasks), [`src/openhuman`](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman) (Memory ingestion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop experience"]
  node_routes["App routes<br/>[AppRoutes.tsx]"]
  node_accounts_ui["Account setup<br/>[Accounts.tsx]"]
  node_channels_ui["Channel setup<br/>[Channels.tsx]"]
  node_human_ui["Assistant UI<br/>[HumanPage.tsx]"]
  node_tauri["Desktop bridge<br/>[server.rs]"]
  node_core_rpc["Core RPC client<br/>[coreRpcClient.ts]"]
end

subgraph group_agent["Agent runtime"]
  node_core["Core runtime<br/>[all.rs]"]
  node_agent_context["Context pipeline<br/>[pipeline.rs]"]
  node_inference["Model inference"]
end

subgraph group_memory["Memory and intelligence"]
  node_memory_ingest["Memory ingestion"]
  node_tree_engine["Tree summarizer<br/>[engine.rs]"]
  node_tree_store[("Memory tree store<br/>[store.rs]")]
  node_subconscious["Subconscious tasks<br/>[engine.rs]"]
  node_heartbeat["Background heartbeat<br/>[engine.rs]"]
end

subgraph group_integrations["Connected services"]
  node_integration_tools["Integration tools"]
  node_messaging["Messaging channels"]
  node_desktop_scanners["Account scanners"]
end

subgraph group_assistant["Assistant capabilities"]
  node_autocomplete["Autocomplete<br/>[engine.rs]"]
  node_screen_intel["Screen intelligence<br/>[engine.rs]"]
  node_voice["Voice services<br/>[server.rs]"]
  node_meet_audio["Meet audio"]
end

node_user(("User"))
node_connected_services{{"Connected services"}}
node_local_files[("Local files")]
node_model_provider{{"Model provider"}}

node_user -->|"uses"| node_routes
node_routes -->|"routes to"| node_human_ui
node_routes -->|"routes to"| node_accounts_ui
node_routes -->|"routes to"| node_channels_ui
node_accounts_ui -.->|"manages accounts"| node_tauri
node_channels_ui -.->|"configures"| node_messaging
node_human_ui -.->|"requests agent"| node_core_rpc
node_core_rpc -->|"dispatches RPC"| node_core
node_core -.->|"prepares context"| node_agent_context
node_agent_context -->|"reduces before call"| node_inference
node_inference -.->|"sends prompts"| node_model_provider
node_integration_tools -->|"fetches data"| node_connected_services
node_connected_services -->|"supplies context"| node_memory_ingest
node_desktop_scanners -.->|"scans accounts"| node_memory_ingest
node_messaging -->|"exchanges messages"| node_connected_services
node_memory_ingest -->|"summarizes data"| node_tree_engine
node_tree_engine -->|"writes nodes"| node_tree_store
node_tree_store -->|"stores locally"| node_local_files
node_subconscious -.->|"reads task state"| node_tree_store
node_subconscious -.->|"evaluates tasks"| node_inference
node_heartbeat -.->|"coordinates tasks"| node_subconscious
node_autocomplete -->|"generates completion"| node_inference
node_screen_intel -.->|"captures locally"| node_local_files
node_voice -.->|"serves meeting voice"| node_meet_audio
node_user -->|"requests suggestions"| node_autocomplete

click node_routes "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/AppRoutes.tsx"
click node_accounts_ui "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/pages/Accounts.tsx"
click node_channels_ui "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/pages/Channels.tsx"
click node_human_ui "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/features/human/HumanPage.tsx"
click node_tauri "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src-tauri/src/webview_apis/server.rs"
click node_core_rpc "https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/services/coreRpcClient.ts"
click node_core "https://github.com/aestheticsuraj234/openhuman/blob/main/src/core/all.rs"
click node_agent_context "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/context/pipeline.rs"
click node_inference "https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman/inference"
click node_integration_tools "https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman"
click node_messaging "https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman/channels"
click node_desktop_scanners "https://github.com/aestheticsuraj234/openhuman/tree/main/app/src-tauri/src/slack_scanner"
click node_memory_ingest "https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman"
click node_tree_engine "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/tree_summarizer/engine.rs"
click node_tree_store "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/tree_summarizer/store.rs"
click node_subconscious "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/subconscious/engine.rs"
click node_heartbeat "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/heartbeat/engine.rs"
click node_autocomplete "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/autocomplete/core/engine.rs"
click node_screen_intel "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/screen_intelligence/engine.rs"
click node_voice "https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/voice/server.rs"
click node_meet_audio "https://github.com/aestheticsuraj234/openhuman/tree/main/app/src-tauri/src/meet_audio"

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_routes,node_accounts_ui,node_channels_ui,node_human_ui,node_tauri,node_core_rpc,node_user toneBlue
class node_core,node_agent_context,node_inference,node_local_files toneAmber
class node_memory_ingest,node_tree_engine,node_tree_store,node_subconscious,node_heartbeat toneMint
class node_integration_tools,node_messaging,node_desktop_scanners toneRose
class node_autocomplete,node_screen_intel,node_voice,node_meet_audio,node_connected_services,node_model_provider toneIndigo
```

## Components

### Desktop experience

- [App routes](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/AppRoutes.tsx): `app/src/AppRoutes.tsx`
- [Account setup](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/pages/Accounts.tsx): `app/src/pages/Accounts.tsx`
- [Channel setup](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/pages/Channels.tsx): `app/src/pages/Channels.tsx`
- [Assistant UI](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/features/human/HumanPage.tsx): `app/src/features/human/HumanPage.tsx`
- [Desktop bridge](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src-tauri/src/webview_apis/server.rs): `app/src-tauri/src/webview_apis/server.rs`
- [Core RPC client](https://github.com/aestheticsuraj234/openhuman/blob/main/app/src/services/coreRpcClient.ts): `app/src/services/coreRpcClient.ts`

### Agent runtime

- [Core runtime](https://github.com/aestheticsuraj234/openhuman/blob/main/src/core/all.rs): `src/core/all.rs`
- [Context pipeline](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/context/pipeline.rs): `src/openhuman/context/pipeline.rs`
- [Model inference](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman/inference): `src/openhuman/inference`

### Memory and intelligence

- [Memory ingestion](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman): `src/openhuman`
- [Tree summarizer](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/tree_summarizer/engine.rs): `src/openhuman/tree_summarizer/engine.rs`
- [Memory tree store](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/tree_summarizer/store.rs): `src/openhuman/tree_summarizer/store.rs`
- [Subconscious tasks](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/subconscious/engine.rs): `src/openhuman/subconscious/engine.rs`
- [Background heartbeat](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/heartbeat/engine.rs): `src/openhuman/heartbeat/engine.rs`

### Connected services

- [Integration tools](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman): `src/openhuman`
- [Messaging channels](https://github.com/aestheticsuraj234/openhuman/tree/main/src/openhuman/channels): `src/openhuman/channels`
- [Account scanners](https://github.com/aestheticsuraj234/openhuman/tree/main/app/src-tauri/src/slack_scanner): `app/src-tauri/src/slack_scanner`

### Assistant capabilities

- [Autocomplete](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/autocomplete/core/engine.rs): `src/openhuman/autocomplete/core/engine.rs`
- [Screen intelligence](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/screen_intelligence/engine.rs): `src/openhuman/screen_intelligence/engine.rs`
- [Voice services](https://github.com/aestheticsuraj234/openhuman/blob/main/src/openhuman/voice/server.rs): `src/openhuman/voice/server.rs`
- [Meet audio](https://github.com/aestheticsuraj234/openhuman/tree/main/app/src-tauri/src/meet_audio): `app/src-tauri/src/meet_audio`

### Other components

- **User**
- **Connected services**
- **Local files**
- **Model provider**

## Connections

- User → App routes: uses (evidence: `README.md`)
- App routes → Assistant UI: routes to (evidence: `app/src/AppRoutes.tsx`)
- App routes → Account setup: routes to (evidence: `app/src/AppRoutes.tsx`)
- App routes → Channel setup: routes to (evidence: `app/src/AppRoutes.tsx`)
- Account setup → Desktop bridge: manages accounts
- Channel setup → Messaging channels: configures
- Assistant UI → Core RPC client: requests agent
- Core RPC client → Core runtime: dispatches RPC (evidence: `app/src/services/coreRpcClient.ts`)
- Core runtime → Context pipeline: prepares context
- Context pipeline → Model inference: reduces before call (evidence: `src/openhuman/context/pipeline.rs`)
- Model inference → Model provider: sends prompts (evidence: `README.md`)
- Integration tools → Connected services: fetches data (evidence: `README.md`)
- Connected services → Memory ingestion: supplies context (evidence: `README.md`)
- Account scanners → Memory ingestion: scans accounts
- Messaging channels → Connected services: exchanges messages (evidence: `README.md`)
- Memory ingestion → Tree summarizer: summarizes data (evidence: `src/openhuman/tree_summarizer/engine.rs`)
- Tree summarizer → Memory tree store: writes nodes (evidence: `src/openhuman/tree_summarizer/engine.rs`)
- Memory tree store → Local files: stores locally (evidence: `README.md`)
- Subconscious tasks → Memory tree store: reads task state
- Subconscious tasks → Model inference: evaluates tasks
- Background heartbeat → Subconscious tasks: coordinates tasks
- Autocomplete → Model inference: generates completion (evidence: `src/openhuman/autocomplete/core/engine.rs`)
- Screen intelligence → Local files: captures locally (evidence: `README.md`)
- Voice services → Meet audio: serves meeting voice (evidence: `README.md`)
- User → Autocomplete: requests suggestions (evidence: `README.md`)
