Skip to content

Architecture Diagram

Full Topology

                            ┌─────────────────────────────────────┐
                            │           CLOUDFLARE                │
                            │  Domains: dashecorp.com,            │
                            │    invotek.no, stigjohnny.no,       │
                            │    nutrie.app, cutiefeedback.com    │
                            │  Workers: 27 (cutie, nutri-e, etc)  │
                            │  D1: deadline-tracker               │
                            │  KV: INFRA_MONITOR                  │
                            └──────────────┬──────────────────────┘
                            ┌──────────────┴──────────────────────┐
                            │           GITHUB                    │
                            │  Stig-Johnny (54 repos)             │
                            │  cuti-e (4 repos)                   │
                            │  tablez-dev (11 repos)              │
                            │  5 GitHub Apps                      │
                            │  Copilot Code Review                │
                            └──────────────┬──────────────────────┘
                    ┌──────────────────────┼──────────────────────┐
                    │                      │                      │
         ┌──────────────────┐   ┌──────────────────┐   ┌──────────────────┐
         │  DISCORD SERVER  │   │   REVENUECAT     │   │  APP STORE       │
         │  #tasks, #admin  │   │  proj61d576be    │   │  CONNECT         │
         │  #pi-e, #volt-e  │   │  Nutri-E subs    │   │  7 apps          │
         │  #review-e       │   │  Reward-E subs   │   │  Xcode Cloud     │
         └────────┬─────────┘   └──────────────────┘   └──────────────────┘
    ══════════════╪═══════════════════════════════════════════════
                  │         TAILSCALE MESH (100.x.x.x)
    ══════════════╪═══════════════════════════════════════════════
    ┌─────────────┴───────────────────────────────────────────────────────┐
    │                                                                     │
    │                    OSLO (Home Network)                              │
    │                                                                     │
    │  ┌─────────────────────────────┐   ┌─────────────────────────┐     │
    │  │  MacBook Air M4 24GB        │   │  Dell Server             │     │
    │  │  100.126.195.52             │   │  100.95.212.93           │     │
    │  │                             │   │                          │     │
    │  │  Claude Code Workspaces:    │   │  k3s Cluster:            │     │
    │  │  ├── claude-3 (Codi-E/orch) │   │  ├── ARC 0.13.1          │     │
    │  │  ├── claude-4 (executor)    │   │  ├── arc-linux-* runners  │     │
    │  │  ├── claude-5 (executor)    │   │  └── ATL-E CronJob       │     │
    │  │  └── claude-6 (executor)    │   │                          │     │
    │  │                             │   │  GitOps: cluster-gitops   │     │
    │  │  CI Runners (9x macOS):     │   └─────────────────────────┘     │
    │  │  ├── nutri-e, fast-e        │                                    │
    │  │  ├── count-e, drink-e       │   ┌─────────────────────────┐     │
    │  │  ├── heart-e, star-rewards  │   │  Raspberry Pi 4-03 8GB   │     │
    │  │  ├── cutie                  │   │  100.107.48.17           │     │
    │  │  └── ios-sdk, ios-link-sdk  │   │  Pi-E (OpenClaw/Docker)  │     │
    │  │                             │   │  Sonnet 4.6              │     │
    │  │  LaunchAgents:              │   └─────────────────────────┘     │
    │  │  ├── OAuth token push       │                                    │
    │  │  └── GitHub App refresh     │   ┌─────────────────────────┐     │
    │  └─────────────────────────────┘   │  Raspberry Pi 4-02       │     │
    │                                     │  100.77.12.75            │     │
    │  ┌─────────────────────────────┐   │  Review-E (agent-runner) │     │
    │  │  Mac Mini M4               │   │  Sonnet 4.6              │     │
    │  │  100.92.170.124             │   └─────────────────────────┘     │
    │  │  iBuild-E (Claude Code)     │                                    │
    │  │  pf firewall + Tailscale    │   ┌─────────────────────────┐     │
    │  │  ACL tag:sandbox            │   │  Raspberry Pi 4-01       │     │
    │  └─────────────────────────────┘   │  100.73.159.126          │     │
    │                                     │  Tailscale exit node     │     │
    │  ┌─────────────────────────────┐   └─────────────────────────┘     │
    │  │  Synology DS412+            │                                    │
    │  │  100.95.36.122              │                                    │
    │  │  NAS / Storage              │                                    │
    │  └─────────────────────────────┘                                    │
    └─────────────────────────────────────────────────────────────────────┘

    ┌─────────────────────────────────────────────────────────────────────┐
    │                    BOSTON (Hostinger DC)                             │
    │                                                                     │
    │  ┌─────────────────────────────┐                                    │
    │  │  VPS srv1099021             │                                    │
    │  │  100.111.142.118            │                                    │
    │  │  Volt-E (agent-runner)   │                                    │
    │  │  Sonnet 4.6                 │                                    │
    │  │  Host networking + iptables │                                    │
    │  └─────────────────────────────┘                                    │
    └─────────────────────────────────────────────────────────────────────┘

Agent Communication Flow

    User (Stig-Johnny)
    Claude-3 (Orchestrator)
         ├──► GitHub Issues (creates tasks)
         │         │
         │         ├──► Claude-4/5/6 (pick up issues, local)
         │         ├──► Pi-E (picks up via Discord, remote)
         │         └──► Volt-E (picks up via Discord, remote)
         ├──► Discord #tasks (delegates, monitors)
         │         │
         │         └──► All agents read #tasks
         └──► Workspace Messages (~/.claude/workspace-msg.sh)
                   └──► Claude-4/5/6 (local only)


    Any Agent creates PR
    request-review.yml ──► Discord #tasks thread
         │                        │
         ▼                        ▼
    CI (self-hosted) +     Review-E (picks up)
    Copilot (GitHub)              │
         │                        ▼
         ▼                 Approves/requests changes
    auto-merge.yml                │
         │                        ▼
         ▼                 Discord thread updated
    Squash merge to main
    release-please.yml ──► GitHub Release ──► Discord

MCP Server Connections

    Claude Code (any workspace)
         ├── claude-memory ──► SQLite (local)
         ├── appstoreconnect ──► Apple ASC API
         ├── github ──► GitHub API
         ├── cloudflare ──► Cloudflare API
         ├── bitwarden ──► Bitwarden EU vault
         ├── playwright ──► Chromium (local)
         ├── discord ──► Discord API
         ├── revenuecat ──► RevenueCat API (cloud)
         ├── cutie-mcp ──► Cuti-E Workers
         ├── infra-health ──► GitHub + runners
         ├── deadline-tracker ──► D1 database
         ├── submission-checklist ──► local store
         ├── context-layer ──► local index
         ├── pushbullet-sms ──► Pushbullet API
         ├── slack-notifications ──► Slack API
         ├── telegram-notifications ──► Telegram API
         ├── totp ──► local TOTP secrets
         └── context7 ──► Context7 API