OpenClaw Core Flow Part 3: Tools, Memory & the Hook Pipeline
Part 1 traced the gateway. Part 2 covered routing and the agent loop. Now we complete the picture: how tools execute in Docker sandboxes, how memory retrieval works, and the exact order of all 13 plugin hooks in the message path.
- Part 1: Gateway — WebSocket to Agent Dispatch
- Part 2: Routing, Prompts & the Agent State Machine
- Part 3 (this post): Tools, Memory & the Hook Pipeline
Tool Policy: Who Gets What
File: src/agents/tool-policy.ts