# memtensor/omnimemeval architecture

> Architecture diagram of the GitHub repository memtensor/omnimemeval, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/memtensor/omnimemeval
- Repository: https://github.com/memtensor/omnimemeval

## Overview

OmniMemEval evaluates memory backends and memory-enabled agent runtimes through two tracks. The user-memory workflow prepares benchmark data, ingests it through backend adapters, retrieves memories, generates and judges answers, aggregates metrics, and reports results. The agent track runs OpenClaw with a memory plugin across five AgentBench domains and a documented lifecycle protocol. README statements support the high-level flows; sampled source confirms selected ingestion, search, adapter, and shared utility responsibilities, but much of the evaluation and agent implementation was not sampled.

Main entry points: [`scripts/locomo/locomo_ingestion.py`](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_ingestion.py) (Memory Ingestion), [`scripts/agentbench/agents/openclaw.py`](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/agents/openclaw.py) (OpenClaw Runtime), [`scripts/locomo/locomo_search.py`](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_search.py) (Memory Retrieval), [`data`](https://github.com/memtensor/omnimemeval/tree/main/data) (Benchmark Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_user_memory["User Memory"]
  node_benchmarks["Benchmark Data"]
  node_locomo["LoCoMo<br/>[locomo_common.py]"]
  node_longmemeval["LongMemEval<br/>[lme_common.py]"]
  node_beam["BEAM<br/>[beam_common.py]"]
  node_halumem["HaluMem<br/>[hm_common.py]"]
  node_personamem["PersonaMem v2<br/>[pm_common.py]"]
  node_ingestion["Memory Ingestion"]
  node_retrieval["Memory Retrieval<br/>[locomo_search.py]"]
  node_backend["Backend Adapters"]
  node_answer["Answer Generation"]
  node_judge["LLM Judge<br/>[locomo_eval.py]"]
  node_metrics["Metric Aggregation<br/>[locomo_metric.py]"]
end

subgraph group_agent_memory["Agent Memory"]
  node_agent["OpenClaw Runtime<br/>[openclaw.py]"]
  node_plugin["Memory Plugin"]
  node_lifecycle["Plugin Lifecycle"]
  node_reasoning["Reasoning<br/>[evaluate.py]"]
  node_retrieval_domain["Information Retrieval"]
  node_knowledge["Knowledge Work"]
  node_coding["Code Implementation<br/>[livecode.py]"]
  node_software["Software Engineering<br/>[swebench.py]"]
end

subgraph group_shared["Shared Pipeline"]
  node_shared_utils["Pipeline Utilities"]
end

subgraph group_results["Evaluation Results"]
  node_report["Report Generation<br/>[locomo_report.py]"]
  node_results_store["Evaluation Results"]
end

node_user(("Evaluator"))

node_user -->|"selects data"| node_benchmarks
node_benchmarks -->|"feeds sessions"| node_ingestion
node_ingestion -->|"adds memories"| node_backend
node_retrieval -->|"searches memories"| node_backend
node_ingestion -->|"precedes retrieval"| node_retrieval
node_retrieval -->|"provides context"| node_answer
node_answer -->|"supplies answers"| node_judge
node_judge -->|"scores responses"| node_metrics
node_metrics -->|"feeds aggregates"| node_report
node_report -->|"writes reports"| node_results_store
node_locomo -.->|"defines benchmark"| node_ingestion
node_longmemeval -.->|"defines benchmark"| node_ingestion
node_beam -.->|"defines benchmark"| node_ingestion
node_halumem -.->|"defines benchmark"| node_ingestion
node_personamem -.->|"defines benchmark"| node_ingestion
node_user -->|"starts evaluation"| node_agent
node_agent -->|"uses plugin"| node_plugin
node_lifecycle -->|"manages lifecycle"| node_plugin
node_agent -->|"runs tasks"| node_reasoning
node_agent -->|"runs tasks"| node_retrieval_domain
node_agent -->|"runs tasks"| node_knowledge
node_agent -->|"runs tasks"| node_coding
node_agent -->|"runs tasks"| node_software
node_agent -->|"writes results"| node_results_store
node_ingestion -->|"uses helpers"| node_shared_utils
node_retrieval -->|"uses helpers"| node_shared_utils

click node_benchmarks "https://github.com/memtensor/omnimemeval/tree/main/data"
click node_locomo "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_common.py"
click node_longmemeval "https://github.com/memtensor/omnimemeval/blob/main/scripts/longmemeval/lme_common.py"
click node_beam "https://github.com/memtensor/omnimemeval/blob/main/scripts/beam/beam_common.py"
click node_halumem "https://github.com/memtensor/omnimemeval/blob/main/scripts/halumem/hm_common.py"
click node_personamem "https://github.com/memtensor/omnimemeval/blob/main/scripts/personamem_v2/pm_common.py"
click node_ingestion "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_ingestion.py"
click node_retrieval "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_search.py"
click node_backend "https://github.com/memtensor/omnimemeval/tree/main/scripts/client_factory"
click node_answer "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_responses.py"
click node_judge "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_eval.py"
click node_metrics "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_metric.py"
click node_report "https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_report.py"
click node_agent "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/agents/openclaw.py"
click node_plugin "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/plugin_lifecycle/supermemory_node.js"
click node_lifecycle "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/memory_lifecycle.py"
click node_reasoning "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/reasoning/evaluate.py"
click node_retrieval_domain "https://github.com/memtensor/omnimemeval/tree/main/scripts/agentbench/domains/information_retrieval"
click node_knowledge "https://github.com/memtensor/omnimemeval/tree/main/scripts/agentbench/domains/knowledge_work"
click node_coding "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/code_implementation/livecode.py"
click node_software "https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/software_engineering/swebench.py"
click node_shared_utils "https://github.com/memtensor/omnimemeval/tree/main/scripts/utils"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_benchmarks,node_locomo,node_longmemeval,node_beam,node_halumem,node_personamem,node_ingestion,node_retrieval,node_backend,node_answer,node_judge,node_metrics toneBlue
class node_agent,node_plugin,node_lifecycle,node_reasoning,node_retrieval_domain,node_knowledge,node_coding,node_software toneAmber
class node_shared_utils toneMint
class node_report,node_results_store toneRose
class node_user toneIndigo
```

## Components

### User Memory

- [Benchmark Data](https://github.com/memtensor/omnimemeval/tree/main/data): `data`
- [LoCoMo](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_common.py): `scripts/locomo/locomo_common.py`
- [LongMemEval](https://github.com/memtensor/omnimemeval/blob/main/scripts/longmemeval/lme_common.py): `scripts/longmemeval/lme_common.py`
- [BEAM](https://github.com/memtensor/omnimemeval/blob/main/scripts/beam/beam_common.py): `scripts/beam/beam_common.py`
- [HaluMem](https://github.com/memtensor/omnimemeval/blob/main/scripts/halumem/hm_common.py): `scripts/halumem/hm_common.py`
- [PersonaMem v2](https://github.com/memtensor/omnimemeval/blob/main/scripts/personamem_v2/pm_common.py): `scripts/personamem_v2/pm_common.py`
- [Memory Ingestion](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_ingestion.py): `scripts/locomo/locomo_ingestion.py`
- [Memory Retrieval](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_search.py): `scripts/locomo/locomo_search.py`
- [Backend Adapters](https://github.com/memtensor/omnimemeval/tree/main/scripts/client_factory): `scripts/client_factory`
- [Answer Generation](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_responses.py): `scripts/locomo/locomo_responses.py`
- [LLM Judge](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_eval.py): `scripts/locomo/locomo_eval.py`
- [Metric Aggregation](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_metric.py): `scripts/locomo/locomo_metric.py`

### Agent Memory

- [OpenClaw Runtime](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/agents/openclaw.py): `scripts/agentbench/agents/openclaw.py`
- [Memory Plugin](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/plugin_lifecycle/supermemory_node.js): `scripts/agentbench/plugin_lifecycle/supermemory_node.js`
- [Plugin Lifecycle](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/memory_lifecycle.py): `scripts/agentbench/memory_lifecycle.py`
- [Reasoning](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/reasoning/evaluate.py): `scripts/agentbench/domains/reasoning/evaluate.py`
- [Information Retrieval](https://github.com/memtensor/omnimemeval/tree/main/scripts/agentbench/domains/information_retrieval): `scripts/agentbench/domains/information_retrieval`
- [Knowledge Work](https://github.com/memtensor/omnimemeval/tree/main/scripts/agentbench/domains/knowledge_work): `scripts/agentbench/domains/knowledge_work`
- [Code Implementation](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/code_implementation/livecode.py): `scripts/agentbench/domains/code_implementation/livecode.py`
- [Software Engineering](https://github.com/memtensor/omnimemeval/blob/main/scripts/agentbench/domains/software_engineering/swebench.py): `scripts/agentbench/domains/software_engineering/swebench.py`

### Shared Pipeline

- [Pipeline Utilities](https://github.com/memtensor/omnimemeval/tree/main/scripts/utils): `scripts/utils`

### Evaluation Results

- [Report Generation](https://github.com/memtensor/omnimemeval/blob/main/scripts/locomo/locomo_report.py): `scripts/locomo/locomo_report.py`
- **Evaluation Results**

### Other components

- **Evaluator**

## Connections

- Evaluator → Benchmark Data: selects data (evidence: `README.md`)
- Benchmark Data → Memory Ingestion: feeds sessions (evidence: `README.md`)
- Memory Ingestion → Backend Adapters: adds memories (evidence: `scripts/locomo/locomo_ingestion.py`)
- Memory Retrieval → Backend Adapters: searches memories (evidence: `scripts/locomo/locomo_search.py`)
- Memory Ingestion → Memory Retrieval: precedes retrieval (evidence: `README.md`)
- Memory Retrieval → Answer Generation: provides context (evidence: `README.md`)
- Answer Generation → LLM Judge: supplies answers (evidence: `README.md`)
- LLM Judge → Metric Aggregation: scores responses (evidence: `README.md`)
- Metric Aggregation → Report Generation: feeds aggregates (evidence: `README.md`)
- Report Generation → Evaluation Results: writes reports (evidence: `README.md`)
- LoCoMo → Memory Ingestion: defines benchmark
- LongMemEval → Memory Ingestion: defines benchmark
- BEAM → Memory Ingestion: defines benchmark
- HaluMem → Memory Ingestion: defines benchmark
- PersonaMem v2 → Memory Ingestion: defines benchmark
- Evaluator → OpenClaw Runtime: starts evaluation (evidence: `README.md`)
- OpenClaw Runtime → Memory Plugin: uses plugin (evidence: `README.md`)
- Plugin Lifecycle → Memory Plugin: manages lifecycle (evidence: `README.md`)
- OpenClaw Runtime → Reasoning: runs tasks (evidence: `README.md`)
- OpenClaw Runtime → Information Retrieval: runs tasks (evidence: `README.md`)
- OpenClaw Runtime → Knowledge Work: runs tasks (evidence: `README.md`)
- OpenClaw Runtime → Code Implementation: runs tasks (evidence: `README.md`)
- OpenClaw Runtime → Software Engineering: runs tasks (evidence: `README.md`)
- OpenClaw Runtime → Evaluation Results: writes results (evidence: `README.md`)
- Memory Ingestion → Pipeline Utilities: uses helpers (evidence: `scripts/locomo/locomo_ingestion.py`)
- Memory Retrieval → Pipeline Utilities: uses helpers (evidence: `scripts/locomo/locomo_search.py`)
