Knowledge Share
Technical articles, tutorials, and insights
OpenClaw Source Deep Dive (3): Agent Execution Engine — How Does the AI Think and Act?
Starting from a message triggering the AI, we dissect OpenClaw's Agent execution engine layer by layer — the Lane serial queue, five phases of a single run, three-layer filtering in the streaming subscriber, four-layer tool policy, and the outer retry loop that handles rate limits and context overflow.
OpenClaw Source Deep Dive (1): Gateway — Why Does a Personal AI Assistant Need a Central Hub?
Starting from real user scenarios, we derive every key design decision in OpenClaw's Gateway — why it exists, why WebSocket was chosen, why three-layer auth was designed, and why a flat handler map was used. Every decision is motivated by a concrete problem, not pulled from thin air.
OpenClaw Source Deep Dive (2): Channels & Routing — How Does a Message Find Its Agent?
Starting from a concrete routing problem, we derive OpenClaw's Channel plugin interface, SessionKey format, seven-tier routing priority, four dmScope isolation modes, and the identityLinks cross-platform identity merging mechanism. Every design is motivated by a specific problem.