๐Ÿ—๏ธ System Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ OPENCLAW GATEWAY โ”‚ โ”‚ (Always-on daemon process) โ”‚ โ”‚ Port 18789 (local) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ–ผ โ–ผ โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ๐Ÿ’ฌ Webchat โ”‚ โ”‚ โœˆ๏ธ Telegram โ”‚ โ”‚ ๐Ÿ“ฑ Signal โ”‚ โ”‚ (Browser) โ”‚ โ”‚ (Bot) โ”‚ โ”‚ (Optional) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ๐Ÿง  BRAIN: Claude Opus 4.6 โ”‚ โ”‚ (Anthropic API - Primary Model) โ”‚ โ”‚ โ”‚ โ”‚ Planning & Reasoning โ”€โ”€โ”€โ”€โ”€โ–บ Opus 4.6 โ”‚ โ”‚ Coding Tasks โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ Codex 5.3 (via CLI) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ–ผ โ–ผ โ–ผ โ–ผ โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ๐Ÿ”ง Tools โ”‚ โ”‚ ๐Ÿ“ Files โ”‚ โ”‚ ๐ŸŒ Web โ”‚ โ”‚ โšก Agents โ”‚ โ”‚ โฐ Cron โ”‚ โ”‚ Layer โ”‚ โ”‚ Memory โ”‚ โ”‚ Layer โ”‚ โ”‚ Layer โ”‚ โ”‚ Scheduler โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”ง Core Components

๐Ÿง  Brain AI

  • Primary: Claude Opus 4.6 (Planning)
  • Coding: Codex 5.3 (Implementation)
  • Vision: Image analysis built-in
  • Voice: Groq Whisper (STT)

๐Ÿ”ง Tools EXEC

  • exec: Shell commands, scripts
  • read/write/edit: File system access
  • browser: Puppeteer automation
  • message: Channel messaging

๐ŸŒ Web SEARCH

  • web_search: Brave Search API
  • web_fetch: URL content extraction
  • browser: Full page control
  • Screenshots: Visual capture

โšก Sub-Agents SPAWN

  • sessions_spawn: Isolated workers
  • sessions_send: Cross-session messaging
  • Parallel: Up to 8 concurrent
  • Isolated: Own context per agent

๐Ÿ“ Memory PERSIST

  • MEMORY.md: Long-term knowledge
  • memory/*.md: Daily session logs
  • SOUL.md: Personality/identity
  • USER.md: User preferences

โฐ Scheduling CRON

  • Heartbeats: Periodic checks (~30m)
  • Reminders: One-shot at time
  • Recurring: Cron expressions
  • Background: Overnight processing

๐Ÿ”„ Request Flow

1
Message Received
Gateway receives message from Webchat, Telegram, or other channel
2
Context Loaded
SOUL.md, USER.md, MEMORY.md, and recent memory files loaded
3
Brain Processing
Claude Opus 4.6 analyzes request, decides on tools/approach
4
Tool Execution
exec, browser, web_search, or other tools called as needed
5
Response Sent
Reply routed back through originating channel
6
Memory Updated
Important context written to daily log (memory/YYYY-MM-DD.md)

๐ŸŽฏ Model Routing

Task Type Model Provider Status
Planning & Reasoning Claude Opus 4.6 Anthropic Active
Coding & Implementation Codex 5.3 OpenAI Active
Speech-to-Text Whisper Groq Active
Text-to-Speech ElevenLabs ElevenLabs Available
Fast Inference Llama 3 Groq/Cerebras Available
Image Generation GPT-Image / DALL-E 3 OpenAI Needs Key

๐Ÿ“ Workspace Structure

~/.openclaw/workspace/ # Main workspace โ”œโ”€โ”€ MEMORY.md # Long-term curated knowledge โ”œโ”€โ”€ SOUL.md # Personality & identity โ”œโ”€โ”€ USER.md # User preferences โ”œโ”€โ”€ AGENTS.md # Operating instructions โ”œโ”€โ”€ TOOLS.md # Local tool notes โ”œโ”€โ”€ HEARTBEAT.md # Periodic check tasks โ”‚ โ”œโ”€โ”€ memory/ # Daily session logs โ”‚ โ””โ”€โ”€ 2026-02-09.md โ”‚ โ”œโ”€โ”€ brain-dumps/ # Raw ideas to process โ”œโ”€โ”€ overnight/ # Tasks for while you sleep โ”‚ โ”œโ”€โ”€ in-progress/ โ”‚ โ””โ”€โ”€ completed/ โ”‚ โ””โ”€โ”€ github-projects/ # Active code projects โ”œโ”€โ”€ interview-buddy/ โ”œโ”€โ”€ mission-control/ โ”œโ”€โ”€ omni-trader/ โ””โ”€โ”€ security-lab/

๐ŸŽฏ Skills (Modular Capabilities)

๐Ÿ’ป Development

  • coding-agent: Spawn Claude Code, Codex
  • github: gh CLI wrapper
  • gemini: Google Gemini CLI

๐ŸŽค Media

  • video-frames: ffmpeg extraction
  • openai-whisper: Speech recognition
  • sag: ElevenLabs TTS

๐Ÿ” Security

  • healthcheck: System hardening
  • 1password: Secrets management

๐Ÿ› ๏ธ Utilities

  • weather: Forecasts (no API)
  • skill-creator: Build new skills
  • nano-banana-pro: Diagram generation

๐Ÿง  Multi-Agent Coordination (Symlink Architecture)

Agents don't send messages to each other. They read from the same page.
One brain, many hands.

๐Ÿ”— Symlink-Based Shared Context

Inspired by Eric Osiu's multi-agent architecture. All agents have /home/pato/clawd/shared-context/ symlinked into their workspace.

shared-context/
โ”œโ”€โ”€ priorities.md          # Current focus (from voice standups)
โ”œโ”€โ”€ agent-outputs/         # Each agent drops work here
โ”‚   โ”œโ”€โ”€ orchestration/     # Pato, Ops coordination
โ”‚   โ”œโ”€โ”€ security/          # Sentinel findings
โ”‚   โ”œโ”€โ”€ content/           # Scribe drafts
โ”‚   โ”œโ”€โ”€ development/       # Code changes
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ feedback/             # Ionu's approvals/rejections
โ”‚   โ””โ”€โ”€ feedback-2026-Wxx.json
โ”œโ”€โ”€ kpis/                 # Live metrics
โ”‚   โ””โ”€โ”€ current.json
โ”œโ”€โ”€ calendar/             # Today's meetings
โ”œโ”€โ”€ content-calendar/     # Content planning
โ””โ”€โ”€ roundtable/          # Cross-agent synthesis

๐Ÿ“– Agent Workflow

  • Before every action:
  • 1. Read priorities.md
  • 2. Check agent-outputs/
  • 3. Review feedback/
  • After completing work:
  • 4. Write to agent-outputs/{domain}/

๐ŸŽฏ Coordination Example

  • Sentinel (7 AM): Finds security issue
  • โ†’ Writes to agent-outputs/security/
  • Ops (7:30 AM): Reads Sentinel output
  • โ†’ Creates action item
  • Atlas (8 AM): Reads Ops item
  • โ†’ Implements fix
  • Result: Zero human coordination

โœ… Benefits

  • Simple: No APIs, just files
  • Observable: ls agent-outputs/ shows activity
  • Recoverable: Messages persist
  • Fast: Same inode = instant sync
  • Scalable: Add agent = ln -s + done
  • Language-agnostic: Any process can read/write

๐Ÿ’ก Feedback Loop

When Ionu approves/rejects something:

  • Decision โ†’ feedback/feedback-{week}.json
  • ALL agents read feedback in next run
  • One decision teaches entire team

"Ionu prefers simple, file-based solutions over complex frameworks" โ€” Pattern learned by all agents

๐Ÿ“Š Current Status

  • Agents linked: 11/21
  • Pato ๐Ÿฆ†, Ops ๐ŸŽฏ, Sentinel ๐Ÿ”’, Oracle ๐Ÿ“ˆ, Watchdog ๐Ÿงช
  • Blueprint ๐Ÿ , Scribe โœ๏ธ, Radar ๐Ÿ“ก, Spark ๐ŸŽ“, Atlas ๐Ÿ—๏ธ, North ๐Ÿงญ
  • Shared inode: 9196302 (priorities.md)
  • Implementation: ~20 minutes
  • Lines of code: 0 (just symlinks)
  • Test status: โœ… All passed