OpenClaw
OpenClaw
An agent framework / gateway that wraps the pi-agent-core runtime. It provides:
- RPC surface:
agent,agent.wait, and other gateway commands. - Session management: serialized per-session runs via session lanes + global queue.
- Hook system: both internal gateway hooks and plugin hooks at fine-grained lifecycle points.
- Streaming: bridges pi-agent-core events to structured
assistant,tool, andlifecycleevent streams. - Skills: loaded as a snapshot and injected into env + system prompt.
Key concepts
- Agent Loop (OpenClaw) — the core execution path
- Command Queue — queue modes (collect/steer/followup) and lane system
- System Prompt — how the model's prompt is assembled
- Streaming — chunking and block reply behavior
- Compaction — long-context summarization
- OpenClaw Hooks — internal gateway hooks
- OpenClaw Plugin Hooks — plugin-level lifecycle hooks