๐Ÿฆž OpenClaw System Architecture

Nick's Personal AI Infrastructure

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

High-Level Architecture

graph TB User[๐Ÿ‘ค Nick
Strategic Direction] --> Gateway[๐ŸŒ OpenClaw Gateway] Gateway --> Main[๐Ÿง  Main Agent
Chief of Staff / CEO] Main --> Vaults[(๐Ÿ“š Vaults)] Main --> Specialized[๐Ÿค– Specialized 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] Specialized --> XD[๐ŸŽฏ XD Agent
UX Strategy Partner] Specialized --> Health[๐Ÿ’Š Health Agent
Gut Health Tracking] Specialized --> Founder[๐Ÿ’ผ Founder Agent
ยฃ1M Revenue Target] 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[12hr 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,Founder 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

โ„น๏ธ Operating Model: main agent acts as Chief of Staff / CEO โ€” orchestrates specialized agents (XD, Health, Founder), synthesizes their outputs, and delivers unified briefs. Nick gives strategic direction, Main executes.
๐Ÿง 
Main Agent (CEO)
Chief of Staff โ€” Orchestration & Synthesis

Your executive interface. Receives your strategic goals, routes tasks to specialized agents, synthesizes cross-domain insights, maintains system architecture. Delivers unified CEO briefs (not fragmented updates).

Always On Multi-Vault 4 Agents Orchestrator
๐ŸŽฏ
XD Agent
UX Strategy Partner โ€” Work Domain

Department: UX Strategy. Iceland Foods, stakeholder navigation, design authority. Reports to: Main (CEO). Channel: Telegram group for isolated Work context.

Work Vault โœ… Active -5183181164
๐Ÿ’Š
Health Agent
Health Coach โ€” DeepThought Domain

Department: Health & Wellness. Gut health, hydration tracking, Fybogel, fiber analysis. Reports to: Main (CEO). Channel: Telegram group for health context.

DeepThought โœ… Active -5256326075
๐Ÿ’ผ
Founder Agent
Business Builder โ€” Revenue Domain

Department: Revenue & Ventures. Partyful SaaS, Authority content, UX Audits. Reports to: Main (CEO). Target: ยฃ1M ARR.

DeepThought โœ… Active -5138837071 Mon 9am Standup

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.

โœ… Operational 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 12hr โ€” Vault Backup
    Git add/commit/push for all 3 vaults. Reports failures only.
    โ†’ โœ… Resolved
  • 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
  • 7
    09:00 Mon โ€” Founder Standup
    Revenue snapshot, pipeline review, blockers, weekly priorities
    โ†’ Weekly

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 โ€” Active
LanceDB Memory Enabled

Telegram group operational (-5256326075). Weekly/monthly reports scheduled. Gut health tracking with vector embeddings.

๐Ÿ’ผ
Founder Agent โ€” Active
ยฃ1M Revenue Target Set

Telegram group configured (-5138837071). Weekly standup Mondays 9am. Focus: Partyful, Authority, UX Audits.

๐Ÿ“ฆ
Vault Backups โ€” Resolved
Git Lock Issues Fixed

git gc + memory limits resolved mmap deadlock. Backup schedule: every 12 hours. All vaults syncing.

๐Ÿ“Š
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-23
โœ…
VO2 Max Improving 35.15 โ†’ 36.44 (+3.7%)
๐Ÿซ
Blood Oxygen Stopped 62 days ago
โœ…
Sleep Tracking Fixed Resumed Feb 23 (8.1h)
5,658
Avg Steps
7.1h
Avg Sleep
45ms
Avg HRV
65
Avg Resting HR
โค๏ธ HRV Trend โ†‘ 54ms (+108%)
Heart Rate Variability - Recovery Metric โ†‘
๐Ÿ’“ Resting HR Trend โ†“ 60bpm (-17%)
Fitness Indicator - Lower is better โ†“

๐ŸŽฏ Activity Rings

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

๐Ÿ“‰ VO2 Max Trend

36.44
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

๐Ÿฝ๏ธ Food & Fiber Tracking

Loading food data...
๐Ÿ’Š Medications Due: 6:00 PM
Fybogel
1 sachet with 240ml water
โฐ Evening