Repositories / OpenClaw
Focused tour of agent execution, memory search, and tool orchestration; not a whole-project map.
Defines the memory_search tool and coordinates bounded retrieval, visibility filtering, ranking, and citations.
Stored evidence from this immutable analysis snapshot
await runWithDefaultDeadline(async () => {const { resolveMemoryBackendConfig } = await loadMemoryToolRuntime();const resolvedMemoryBackend = resolveMemoryBackendConfig({ cfg, agentId });const context = trackMemoryManager(await getMemoryManagerContextWithPurpose({cfg,agentId,
purpose: memoryManagerPurpose, acquireLocalService: options.acquireLocalService, withLease: options.withLease, }),