🧊 IglooBot System Architecture OpenClaw Agent • Mac Mini M4 (16GB) • March 2026 INPUT LAYER 📱 Telegram Sid's messages DM channel ⏱️ Heartbeat Timer Every ~30 min Reads HEARTBEAT.md ⏰ Cron Scheduler 12 active jobs Hourly → Weekly 📬 Completion Events Sub-agent results Push-based delivery GATEWAY OpenClaw Gateway Session management • Message routing • Tool dispatch • Plugin system 🔀 Smart Router Plugin Qwen 3 8B (local) • ~1.3s Intent classification + complexity scoring enriched context ORCHESTRATION 🧠 Orchestrator — Claude Opus 4 Main session • Plans & coordinates • Never executes directly 🎯 Task decomposition ✅ Quality gate (reviews all output) 💬 User communication spawn invoke read/write reply to Sid EXECUTION LAYER ⚡ Sub-Agents Spawned on demand • mode: "run" (one-shot) or "session" (persistent) 📝 Content & Research Claude Sonnet 4 Blog posts, SEO, research competitor analysis, scripts 🔧 Complex API Work Claude Opus 4 Multi-step APIs, campaigns video pipelines, trading 🎨 Creative Generation Sonnet + External APIs Gemini (images), HeyGen (video) ElevenLabs (TTS), Replicate 📋 Simple Crons Qwen 3 8B (local) Vault extraction, file scans doc regen, price monitoring 🛠️ Tools Shell & System exec (btcli, gh, shell) read / write / edit files Web web_search (Brave) web_fetch, browser control Communication message (Telegram send) tts (ElevenLabs voices) Canvas & Media canvas, image, pdf analysis MEMORY & PERSISTENCE 🔗 LCM — Lossless Context Mgmt SQLite DB • Conversation compression lcm_grep Regex/full-text search lcm_expand_query DAG traversal + recall Summaries compacted into directed acyclic graph Auto-compaction at context limits Nightly: LCM → vault/daily/ extraction 🔍 Semantic Memory sqlite-vec index • Local embeddings memory_search Semantic recall memory_get Targeted file read nomic-embed-text (local Ollama) Indexes vault/ + memory/ markdown files Near-zero cost, ~50ms per query 📚 Obsidian Vault Source of truth • [[wikilinks]] 📅 vault/daily/ Raw daily logs 📁 vault/projects/ TAO, GoodBald, etc. 👤 vault/people/ People notes ⚖️ vault/decisions/ Key choices 🔧 vault/infrastructure/ Tools & services 🧠 vault/meta/ Self-knowledge Working Memory Files SOUL.md Personality & identity USER.md / MEMORY.md About Sid + pointer index CONTEXT.md (per project) Auto-gen briefing packets memory/YYYY-MM-DD.md Daily append log indexes nightly extraction → vault/daily/ EXTERNAL SERVICES 📈 Trading Bittensor (btcli on-chain) Taostats API (subnet data) Stake/unstake, price monitoring Stop-loss / take-profit alerts Alpha signals across 99 subnets 📢 Advertising Meta/Facebook Ads API Campaign CRUD, reporting @igloo_ads_bot (delegate) GoodBald DTC brand Spend alerts, ROAS tracking 🎬 Creative Gemini (image generation) HeyGen (talking head video) ElevenLabs (TTS / voice) Replicate (Flux / SDXL) D-ID (backup talking head) 🌐 Web & Data Brave Search API GitHub (gh CLI) AgentCash (x402 micropay) Web scraping, social data Browser automation INFRASTRUCTURE 🖥️ Mac Mini M4 16GB RAM • macOS 25.2 Always-on, local inference 🦙 Ollama 0.15.5 Qwen 3 8B (Q4_K_M, 5.2GB) nomic-embed-text (embeddings) ⚙️ OpenClaw Runtime Gateway daemon • Node.js 22 Plugin system • Session mgmt ☁️ Cloud LLMs Anthropic API (Opus + Sonnet) Google AI (Gemini image gen) MODELS: Opus 4 — orchestration Sonnet 4 — execution Qwen 3 8B — local/fast External APIs — creative gen 3rd-party services