# lethe044/hermes-life-os architecture

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

- Interactive diagram: https://gitdiagram.com/lethe044/hermes-life-os
- Repository: https://github.com/lethe044/hermes-life-os

## Overview

Hermes Life OS is a local-first personal tracking and planning agent. The documented interaction starts with a user request, routes to a suitable tool, uses personal memory to recall context and detect patterns, then returns a personalized answer or briefing. Separate capabilities cover planning, retrospective insights, data portability, integrations, and optional agent training. The README supports the main workflow and scheduled briefings; source excerpts are limited, so internal calls beyond those documented are not asserted.

Main entry points: [`demo/tools.py`](https://github.com/lethe044/hermes-life-os/blob/main/demo/tools.py) (Life OS Tools), [`demo/demo_life_os.py`](https://github.com/lethe044/hermes-life-os/blob/main/demo/demo_life_os.py) (Life OS Agent), [`demo/scheduler.py`](https://github.com/lethe044/hermes-life-os/blob/main/demo/scheduler.py) (Scheduled Briefings), [`demo/storage.py`](https://github.com/lethe044/hermes-life-os/blob/main/demo/storage.py) (Personal Memory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Agent Interaction"]
  node_agent_app["Life OS Agent<br/>[demo_life_os.py]"]
  node_tool_catalog["Life OS Tools<br/>[tools.py]"]
  node_skill_guide["Life OS Playbook<br/>[SKILL.md]"]
end

subgraph group_personal_data["Personal Data"]
  node_memory[("Personal Memory<br/>[storage.py]")]
  node_tracking["Life Tracking<br/>[entries.py]"]
  node_analytics["Pattern Analytics<br/>[analytics.py]"]
end

subgraph group_planning_insights["Planning Insights"]
  node_planner["Day Planner<br/>[planday.py]"]
  node_tasks["Tasks and Agenda<br/>[tasks.py]"]
  node_life_review["Life Review<br/>[life_review.py]"]
  node_dashboard["Dashboard<br/>[dashboard.py]"]
end

subgraph group_operations["Operations Integrations"]
  node_scheduler["Scheduled Briefings<br/>[scheduler.py]"]
  node_calendar["Calendar Import Export<br/>[calendar_import.py]"]
  node_health_import["Health Data Import<br/>[health_import.py]"]
  node_backup["Backup Restore<br/>[backup.py]"]
  node_data_export["Data Export<br/>[data_export.py]"]
  node_plugins["Plugin System<br/>[plugins.py]"]
  node_local_api["Local REST API<br/>[local_api.py]"]
  node_chat_integrations["Chat Integrations<br/>[telegram_bot.py]"]
end

subgraph group_training["Agent Training"]
  node_rl_environment["RL Environment<br/>[life_os_env.py]"]
end

node_user(("User"))

node_user -->|"asks"| node_agent_app
node_agent_app -->|"selects tool"| node_tool_catalog
node_tool_catalog -->|"recalls context"| node_memory
node_tool_catalog -->|"detects patterns"| node_analytics
node_tool_catalog -->|"records activity"| node_tracking
node_agent_app -->|"answers"| node_user
node_scheduler -->|"recalls context"| node_memory
node_scheduler -->|"detects patterns"| node_analytics
node_scheduler -.->|"briefs user"| node_agent_app
node_agent_app -->|"follows playbook"| node_skill_guide
node_tool_catalog -->|"plans day"| node_planner
node_tool_catalog -->|"manages tasks"| node_tasks
node_tool_catalog -->|"starts review"| node_life_review
node_tool_catalog -->|"shows dashboard"| node_dashboard
node_tool_catalog -->|"imports or exports"| node_calendar
node_tool_catalog -->|"imports health data"| node_health_import
node_tool_catalog -->|"backs up data"| node_backup
node_tool_catalog -->|"exports data"| node_data_export
node_tool_catalog -->|"extends tools"| node_plugins
node_tool_catalog -->|"serves local API"| node_local_api
node_user -.->|"connects through"| node_chat_integrations
node_rl_environment -.->|"scores tool use"| node_tool_catalog

click node_agent_app "https://github.com/lethe044/hermes-life-os/blob/main/demo/demo_life_os.py"
click node_tool_catalog "https://github.com/lethe044/hermes-life-os/blob/main/demo/tools.py"
click node_skill_guide "https://github.com/lethe044/hermes-life-os/blob/main/skills/life-os/SKILL.md"
click node_memory "https://github.com/lethe044/hermes-life-os/blob/main/demo/storage.py"
click node_tracking "https://github.com/lethe044/hermes-life-os/blob/main/demo/entries.py"
click node_analytics "https://github.com/lethe044/hermes-life-os/blob/main/demo/analytics.py"
click node_planner "https://github.com/lethe044/hermes-life-os/blob/main/demo/planday.py"
click node_tasks "https://github.com/lethe044/hermes-life-os/blob/main/demo/tasks.py"
click node_life_review "https://github.com/lethe044/hermes-life-os/blob/main/demo/life_review.py"
click node_dashboard "https://github.com/lethe044/hermes-life-os/blob/main/demo/dashboard.py"
click node_scheduler "https://github.com/lethe044/hermes-life-os/blob/main/demo/scheduler.py"
click node_calendar "https://github.com/lethe044/hermes-life-os/blob/main/demo/calendar_import.py"
click node_health_import "https://github.com/lethe044/hermes-life-os/blob/main/demo/health_import.py"
click node_backup "https://github.com/lethe044/hermes-life-os/blob/main/demo/backup.py"
click node_data_export "https://github.com/lethe044/hermes-life-os/blob/main/demo/data_export.py"
click node_plugins "https://github.com/lethe044/hermes-life-os/blob/main/demo/plugins.py"
click node_local_api "https://github.com/lethe044/hermes-life-os/blob/main/demo/local_api.py"
click node_chat_integrations "https://github.com/lethe044/hermes-life-os/blob/main/demo/telegram_bot.py"
click node_rl_environment "https://github.com/lethe044/hermes-life-os/blob/main/environments/life_os_env.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_agent_app,node_tool_catalog,node_skill_guide,node_user toneBlue
class node_memory,node_tracking,node_analytics toneAmber
class node_planner,node_tasks,node_life_review,node_dashboard toneMint
class node_scheduler,node_calendar,node_health_import,node_backup,node_data_export,node_plugins,node_local_api,node_chat_integrations toneRose
class node_rl_environment toneIndigo
```

## Components

### Agent Interaction

- [Life OS Agent](https://github.com/lethe044/hermes-life-os/blob/main/demo/demo_life_os.py): `demo/demo_life_os.py`
- [Life OS Tools](https://github.com/lethe044/hermes-life-os/blob/main/demo/tools.py): `demo/tools.py`
- [Life OS Playbook](https://github.com/lethe044/hermes-life-os/blob/main/skills/life-os/SKILL.md): `skills/life-os/SKILL.md`

### Personal Data

- [Personal Memory](https://github.com/lethe044/hermes-life-os/blob/main/demo/storage.py): `demo/storage.py`
- [Life Tracking](https://github.com/lethe044/hermes-life-os/blob/main/demo/entries.py): `demo/entries.py`
- [Pattern Analytics](https://github.com/lethe044/hermes-life-os/blob/main/demo/analytics.py): `demo/analytics.py`

### Planning Insights

- [Day Planner](https://github.com/lethe044/hermes-life-os/blob/main/demo/planday.py): `demo/planday.py`
- [Tasks and Agenda](https://github.com/lethe044/hermes-life-os/blob/main/demo/tasks.py): `demo/tasks.py`
- [Life Review](https://github.com/lethe044/hermes-life-os/blob/main/demo/life_review.py): `demo/life_review.py`
- [Dashboard](https://github.com/lethe044/hermes-life-os/blob/main/demo/dashboard.py): `demo/dashboard.py`

### Operations Integrations

- [Scheduled Briefings](https://github.com/lethe044/hermes-life-os/blob/main/demo/scheduler.py): `demo/scheduler.py`
- [Calendar Import Export](https://github.com/lethe044/hermes-life-os/blob/main/demo/calendar_import.py): `demo/calendar_import.py`
- [Health Data Import](https://github.com/lethe044/hermes-life-os/blob/main/demo/health_import.py): `demo/health_import.py`
- [Backup Restore](https://github.com/lethe044/hermes-life-os/blob/main/demo/backup.py): `demo/backup.py`
- [Data Export](https://github.com/lethe044/hermes-life-os/blob/main/demo/data_export.py): `demo/data_export.py`
- [Plugin System](https://github.com/lethe044/hermes-life-os/blob/main/demo/plugins.py): `demo/plugins.py`
- [Local REST API](https://github.com/lethe044/hermes-life-os/blob/main/demo/local_api.py): `demo/local_api.py`
- [Chat Integrations](https://github.com/lethe044/hermes-life-os/blob/main/demo/telegram_bot.py): `demo/telegram_bot.py`

### Agent Training

- [RL Environment](https://github.com/lethe044/hermes-life-os/blob/main/environments/life_os_env.py): `environments/life_os_env.py`

### Other components

- **User**

## Connections

- User → Life OS Agent: asks (evidence: `README.md`)
- Life OS Agent → Life OS Tools: selects tool (evidence: `README.md`)
- Life OS Tools → Personal Memory: recalls context (evidence: `README.md`)
- Life OS Tools → Pattern Analytics: detects patterns (evidence: `README.md`)
- Life OS Tools → Life Tracking: records activity (evidence: `README.md`)
- Life OS Agent → User: answers (evidence: `README.md`)
- Scheduled Briefings → Personal Memory: recalls context (evidence: `README.md`)
- Scheduled Briefings → Pattern Analytics: detects patterns (evidence: `README.md`)
- Scheduled Briefings → Life OS Agent: briefs user (evidence: `README.md`)
- Life OS Agent → Life OS Playbook: follows playbook (evidence: `README.md`)
- Life OS Tools → Day Planner: plans day (evidence: `README.md`)
- Life OS Tools → Tasks and Agenda: manages tasks (evidence: `README.md`)
- Life OS Tools → Life Review: starts review (evidence: `README.md`)
- Life OS Tools → Dashboard: shows dashboard (evidence: `README.md`)
- Life OS Tools → Calendar Import Export: imports or exports (evidence: `README.md`)
- Life OS Tools → Health Data Import: imports health data (evidence: `README.md`)
- Life OS Tools → Backup Restore: backs up data (evidence: `README.md`)
- Life OS Tools → Data Export: exports data (evidence: `README.md`)
- Life OS Tools → Plugin System: extends tools (evidence: `README.md`)
- Life OS Tools → Local REST API: serves local API (evidence: `README.md`)
- User → Chat Integrations: connects through (evidence: `README.md`)
- RL Environment → Life OS Tools: scores tool use
