Intel Findings/OpenClaw Architecture Intelligence

OpenClaw Architecture Intelligence

DONE
2026-03|18 sources
InfrastructureArchitectureAgent Gateway

18 sub-pages of DeepWiki fetched. OpenClaw is a multi-channel AI agent GATEWAY — single persistent process routing messages across 7+ platforms to LLM-powered agents.

Key Findings

01

OpenClaw is a multi-channel AI agent GATEWAY (not a framework) — single persistent process routing messages across 7+ platforms

02

4-layer agent execution pipeline: runReplyAgent -> runAgentTurnWithFallback -> runEmbeddedPiAgent -> runEmbeddedAttempt

03

Pi Agent SDK (@mariozechner/pi-agent-core) is the runtime — proprietary, not reusable

04

Dual memory backend: QMD (external process) OR builtin (SQLite+FTS5+sqlite-vec with BM25+cosine hybrid, MMR, temporal decay)

05

WebSocket Protocol v3 with challenge-nonce handshake, RBAC (operator/node/user), rate limiting (3 req/60s on control plane writes)

06

JSONL session transcripts with write locks, compaction (summarization agent), and repair

07

Bootstrap context files (AGENTS.md, SOUL.md, MEMORY.md) auto-injected into system prompt — 20K per file, 150K total caps

08

Plugin system with lifecycle hooks: agent:beforeTurn, agent:afterTurn, message:beforeRoute, etc.

09

Docker sandbox isolation with 3 modes (off/non-main/all) for untrusted agent execution

10

Native iOS/Android/macOS apps as 'nodes' that pair with gateway and expose device capabilities

Action Recommendations

Apply workspace bootstrap pattern (AGENTS.md + SOUL.md + MEMORY.md) to our own ecosystem

Implement context compaction strategy: summarization agent at 80% context threshold

Use JSONL session persistence pattern for agent session transcripts

Apply doctor self-diagnostic pattern to agent health checks

Source

D:/ClaudeDev/00_GITHUB/_working-on/Tools/agent-soul-sync/research/openclaw-deepwiki.md