๐Ÿฆž OpenClaw System Architecture

Nick's Personal AI Infrastructure

Host: Nick's Mac mini
Model: kimi-coding/k2p5
Gateway: v2026.2.21
Updated: 2026-02-21

High-Level Architecture

graph TB User[๐Ÿ‘ค Nick
WhatsApp + Telegram] --> Gateway[๐ŸŒ OpenClaw Gateway] Gateway --> Main[๐Ÿง  Main Agent
Orchestration] Main --> Vaults[(๐Ÿ“š Vaults)] Main --> Agents[๐Ÿค– Spawned Agents] Main --> Skills[โšก Skills] Main --> Cron[โฐ Cron Jobs] Main --> Memory[(๐Ÿ—„๏ธ Memory Systems)] Main --> HealthExport[๐Ÿ“Š Apple Health
Export Pipeline] Vaults --> Clawd[00 Clawd
System/Config] Vaults --> Work[01 Work
Iceland Foods] Vaults --> DeepThought[02 DeepThought
Personal] Agents --> XD[๐ŸŽฏ XD Agent
UX Strategy Partner] Agents --> Health[๐Ÿ’Š Health Agent
Gut Health Tracking] Memory --> LanceDB[LanceDB
Conversation Memory] Memory --> QMD[QMD
Vault Search] Memory --> Files[File-Based
Learnings/MOCs] Skills --> MealPlanner[๐Ÿฅ— Gut Health
Meal Planner] Skills --> MeetingPrep[๐Ÿ“‹ Meeting Prep] Skills --> Weather[๐ŸŒค๏ธ Weather] Skills --> Traffic[๐Ÿš— Traffic Check] Skills --> VisualExp[๐ŸŽจ Visual Explainer] Cron --> Morning[7am Morning Brief] Cron --> Evening[5pm Evening Check] Cron --> HealthCheck[6:30am Health Update] Cron --> VaultBackup[2hr Vault Backups] HealthExport --> ProcessHealth[Process Export
โ†’ Update Dashboard] classDef user fill:#88c0d0,stroke:#5e81ac,color:#2e3440 classDef gateway fill:#b48ead,stroke:#8a6e8a,color:#fff classDef agent fill:#a3be8c,stroke:#6b8e5a,color:#2e3440 classDef vault fill:#ebcb8b,stroke:#c49a4e,color:#2e3440 classDef system fill:#88c0d0,stroke:#5e81ac,color:#2e3440 classDef error fill:#bf616a,stroke:#b84a56,color:#fff class User user class Gateway gateway class Main,XD,Health agent class Clawd,Work,DeepThought vault class Memory,LanceDB,QMD,Files system class HealthExport,ProcessHealth system

Vault Structure (PARA)

๐Ÿง 
00 Clawd
System & Configuration

OpenClaw configuration, agents, skills, cron jobs, and memory systems.

Agents Skills Config Cron
๐Ÿ’ผ
01 Work
Iceland Foods

Proposition, People, Products, Process, Research. UX strategy, CRO, team management.

XD Agent 1-2-1s Research
๐ŸŒฟ
02 DeepThought
Personal Knowledge

Projects, Areas, Resources, Archive. Goals, health, finances, learning.

Health Agent Goals Learning
โš ๏ธ Vault Backup Alert: Automated backups failing on Clawd and DeepThought (8 consecutive failures). Issue: resource deadlock in Archive/_TEMP_SWAP/ โ€” manual cleanup needed.

Active Agents

โ„น๏ธ Architecture Change: Only main agent is permanently configured. Specialized agents (XD, Health) are spawned on-demand for isolated context.
๐Ÿง 
Main (Clawd)
Orchestration & Routing โ€” Always On

Primary interface. Routes messages, manages vaults, coordinates sub-agents, handles system tasks. Lives in main Telegram DM.

Always On Multi-Vault 1 Configured
๐ŸŽฏ
XD Agent
UX Strategy Partner

Role: UX Director-level partnership. Strategic thinking, stakeholder navigation, design authority building. NOT content creation or teardowns.

Work Vault โœ… WhatsApp Fixed Spawned On-Demand
๐Ÿ’Š
Health Agent
Gut Health Tracking

Monitors fiber, hydration, Fybogel adherence. Pattern recognition from daily logs. Separate Telegram group for isolated health context.

DeepThought ๐Ÿ”„ Setup In Progress Spawned On-Demand

Apple Health Export Pipeline

โœ… Status: Event-driven pipeline active. Export files detected automatically โ†’ processed โ†’ dashboard updated.
๐Ÿ“ค Export Detection

File watcher monitors apple_health_export/ directory. New report-*.json files trigger automatic processing.

๐Ÿ“Š Pattern Analysis

Checks steps, HRV, sleep, heart rate. Identifies threshold breaches and recovery patterns.

๐Ÿ“ Dashboard Update

WORKING.md updated with latest metrics, alerts fired for anomalies, recommendations generated.

2
Exports Today
โœ…
Sleep Tracking Fixed
31ms
Low HRV Alert (Feb 19)
4,472
Peak Hour Steps

Memory Systems

๐Ÿงฌ
LanceDB
Conversation Memory

Cross-session persistent memory. Auto-captures facts, auto-recalls relevant context. Vector embeddings via OpenAI text-embedding-3-small.

~10p/year Auto-Capture
๐Ÿ”
QMD
Vault Search

Semantic search across 640+ vault files. 60-70% token savings vs full scans. Indexed at ~/.cache/qmd/index.sqlite.

640+ Files Semantic
๐Ÿ“
File-Based
Structured Memory

Explicit memory files: learnings.md, knowledge-graph.md, weekly-recaps, MOCs. Manual updates with structured knowledge.

Learnings MOCs

Active Skills

30+
Total Skills
25+
Cron Jobs
1
Configured Agent
640+
Vault Files
๐Ÿฅ— Gut Health Meal Planner

High-fiber meal planning, shopping lists, fiber analysis, meal logging to Obsidian.

๐Ÿ“‹ Meeting Prep

Contextual meeting briefs from vault data. People context, political dynamics, suggested openings.

๐Ÿš— Traffic Check

Google Maps integration for commute timing. Auto-checks on office days.

๐ŸŽจ Visual Explainer

Generates styled HTML diagrams instead of ASCII art. Mermaid, CSS Grid, data tables.

๐ŸŒค๏ธ Weather

Current weather and forecasts via wttr.in or Open-Meteo. No API key needed.

๐Ÿ“ง Gmail Triage

Automated email organization with labeling and calendar integration.

Key Cron Jobs

  • 1
    07:00 โ€” Morning Brief
    Traffic check, calendar review, gut health reminder, L1-L4 focus
    โ†’ Weekdays
  • 2
    06:30 โ€” Health Dashboard Update
    Process Apple Health exports, check for anomalies, update dashboard
    โ†’ Daily
  • 3
    06:30 โ€” Email Triage
    Process unread emails, apply labels, extract calendar events
    โ†’ Daily
  • 4
    Every 2hr โ€” Vault Backup
    Git add/commit/push for all 3 vaults. Reports failures only.
    โ†’ 8 Failures
  • 5
    12:00 โ€” Midday Hydration
    Hydration check-in, 1.5L progress reminder
    โ†’ Daily
  • 6
    20:30 โ€” Evening Health Check
    Fybogel reminder, daily gut log review, pattern detection
    โ†’ Daily

Current Status

โœ…
XD Agent โ€” WhatsApp Fixed
Resolved 2026-02-19

Group messages now routing correctly. Scope clarified: UX Director partnership, not content creation.

๐Ÿ”„
Health Agent โ€” Setup in Progress
Telegram Group Created

Separate "Health ๐Ÿ’Š" Telegram group created. Bot permissions configured. /activation always enabled.

โš ๏ธ
Vault Backups โ€” Failing
8 Consecutive Failures

Resource deadlock in Clawd/Archive/_TEMP_SWAP/. Work repo unaffected. Manual cleanup needed.

๐Ÿ“Š
Apple Health Pipeline โ€” Active
Event-Driven Processing

2 exports processed today. Sleep tracking confirmed working (6h 46m recorded). HRV/HR alerts operational.

Data Flow Summary

sequenceDiagram participant U as ๐Ÿ‘ค Nick participant G as ๐ŸŒ Gateway participant M as ๐Ÿง  Main Agent participant X as ๐ŸŽฏ XD Agent
(spawned) participant H as ๐Ÿ’Š Health Agent
(spawned) participant V as ๐Ÿ“š Vaults participant C as โฐ Cron participant AH as ๐Ÿ“Š Health Export U->>G: WhatsApp/Telegram G->>M: Route by context alt UX Strategy M->>X: Spawn XD Agent X->>V: Work Vault research X-->>M: Strategic guidance Note over X: Evidence-based
NOT content creation else Health Tracking M->>H: Spawn Health Agent H->>V: DeepThought logs H-->>M: Patterns + alerts else General/System M->>V: Query vaults M->>C: Queue tasks end M-->>G: Response G-->>U: Reply AH->>M: New export detected M->>V: Update WORKING.md M->>U: Alert if thresholds breached C->>M: Scheduled trigger M->>V: Background sync
๐Ÿฅ Health Dashboard
Last updated: 2026-02-21 12:20 UTC
โš ๏ธ
VO2 Max Declining 37.6 โ†’ 35.1 (-6.5%)
๐Ÿซ
Blood Oxygen Stopped 62 days ago
โœ…
Sleep Tracking Fixed Resumed Feb 19 (6.8h)
โค๏ธ HRV Trend โ†‘ 45ms (+45%)
Heart Rate Variability - Recovery Metric โ†‘
๐Ÿ’“ Resting HR Trend โ†“ 65bpm (-10%)
Fitness Indicator - Lower is better โ†“

๐ŸŽฏ Activity Rings

85%
Move
680 / 800 kcal
60%
Exercise
18 / 30 min
100%
Stand
12 / 12 hours
7-Day Average: Move 78% | Exercise 45% | Stand 95%

๐Ÿ“‰ VO2 Max Trend

35.1
Current
42+
Target (Athletic)
-6.5%
Trend (2mo)

๐Ÿ˜ด Sleep Trend

๐Ÿ’ก Hover over chart points to see sleep breakdown: Total, Deep, REM, Awake, Efficiency, Avg HR

๐Ÿ“Š Last 7 Days Summary

5,199
Avg Steps
6.5h
Avg Sleep
45ms
Avg HRV
65
Avg Resting HR