Repositories / OpenClaw
Focused tour of agent execution, memory search, and tool orchestration; not a whole-project map.
Architecture map
Follow persisted relationships across interface, API, service, persistence, worker, and external boundaries.
Attempt loop
Runtime · service
Returns completed attempts or carries normalized retry state into the next loop iteration.
Attempt preparation
Attempt · service
Builds a runtime plan from model, harness, authentication, configuration, and workspace context.
Pre-call enforcement
Policy · utility
Records blocked hook outcomes and stops denied tool calls before execution.
Embedded attempt execution
Starts execution with prepared bootstrap, tool, session, prompt, and catalog inputs.
Embedded agent entry
Agent API · api
Captures the run lifecycle generation and enters internal orchestration with the selected configuration.
Hybrid result ranking
Ranking · utility
Combines vector relevance with lexical ranking or path relevance using configured weights.
Memory index search
Memory Index · database
Queries bounded vector candidates within the selected source scope.
Memory manager context
Memory Runtime · utility
Loads the manager factory and forwards agent identity, request purpose, and optional host hooks.
Memory backend resolution
Memory Runtime · service
Returns the built-in manager when the configured backend is not QMD.
Memory search tool
Memory API · api
Starts deadline-bounded backend resolution and manager setup for the active agent and purpose.
Prepared run execution
Hands a fully prepared agent request to the controlled execution loop.
Tool base preparation
Tool Runtime · service
Chooses a construction plan from model tool support, raw mode, disabling, and the effective allowlist.
Tool policy pipeline
Filters the current tool list through an expanded policy while recording audit details.
Effective tool surface
Selects base coding, shell, channel, OpenClaw, and plugin categories for the tool inventory.