Skip to content

Add agent memory benchmark - #362

Merged
tylerhutcherson merged 25 commits into
redis:mainfrom
ichko:add-agent-memory-benchmark
Sep 15, 2026
Merged

tylerhutcherson merged 25 commits into
redis:mainfrom
ichko:add-agent-memory-benchmark

Conversation

@ichko

@ichko ichko commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk
Mostly additive docs and a standalone Python package with CI; production APIs are only touched when operators run benchmarks with credentials, and V0 server code is largely unchanged.

Overview
Introduces agent-memory-benchmark/, an open LongMemEval v1 audit harness exposed as the memory-bench CLI (run, judge, providers). The shared loop ingests haystack sessions per example, waits for provider-specific extraction where needed, retrieves context, answers with a common prompt/model, and scores with official task-specific LLM judge prompts; runs are resumable and write auditable artifacts (answers.jsonl, hypotheses.jsonl, metadata.json, etc.) with sensitive params redacted.

Nine provider adapters plug in behind a MemoryStore contract, including Redis Agent Memory (Iris REST API), Mem0, LangMem, Zep, Graphiti, Supermemory, Google Vertex Memory Bank, AWS Bedrock AgentCore, and Oracle Agent Memory, each with optional uv extras and provider recipe docs.

Repository landing docs are reframed for a two-project root (V0/ research server + benchmark harness), with README updates that center Redis Iris for production, explain the LongMemEval comparison and harness limits, and add citation links. GitHub Actions runs lint, format check, pytest, and package build for the new project under agent-memory-benchmark/.

Reviewed by Cursor Bugbot for commit e25f7cc. Bugbot is set up for automated code reviews on this repo. Configure here.

ichko and others added 4 commits August 31, 2026 14:03
Keep Agent Memory Server history and files at the repository root. The public benchmark package lives in a subdirectory so the two trees can ship together.

Co-authored-by: Cursor <cursoragent@cursor.com>
Landing copy now leads with the managed Iris product and points at the
open-source foundation and benchmark without implying they replace it.

Co-authored-by: Cursor <cursoragent@cursor.com>
The vendor classes lived in one providers.py file behind re-export stubs.
Moving them into the named modules, with shared answering helpers in common.py,
makes it easier to find and change a single provider.

Co-authored-by: Cursor <cursoragent@cursor.com>
Neither exposes a Python API this harness can call, so the classes only ever
raised. Carrying unrunnable providers, docs, and a test costs more than it
explains.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/mem0_store.py Outdated
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/graphiti_store.py Outdated
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/benchmark/runner.py Outdated
Comment thread README.md Outdated
Comment thread agent-memory-benchmark/README.md Outdated
Comment thread agent-memory-benchmark/docs/providers/README.md

@tylerhutcherson tylerhutcherson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks promising. A few of the cursor bug notes might be worth addressing. I also commented on some small readme improvements. Seems like we are still missing the redis implementation afaik

The public Iris REST API is now a first-class provider so runs can target
Redis Agent Memory with an endpoint, store id, and API key.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/prompts/judge.py Outdated
ichko and others added 2 commits September 2, 2026 02:47
Vendor wrappers now match the locked Mem0, Vertex, Graphiti, Zep, and Oracle
APIs. Ingest retries reset first, and per-example user ids cannot be overridden.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stop the judge from crashing on braces, avoid hanging LTM deletes, and clear AgentCore events between examples. Also put Redis first in the harness provider lists.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/base.py Outdated
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/datasets/longmemeval.py Outdated
Comment thread agent-memory-benchmark/LICENSE Outdated
ichko and others added 2 commits September 2, 2026 11:15
Do not query until memory counts stop growing, write answers only after reset succeeds, re-download a truncated LongMemEval cache, and put Redis on the Apache appendix.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match the requested root preamble and make the Iris adapter the first registered provider.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/zep_store.py Outdated
Stop treating a capped search page as extraction complete, walk Supermemory document pages, and stamp haystack dates on Zep, LangMem, and Vertex ingest.

Co-authored-by: Cursor <cursoragent@cursor.com>
ichko and others added 2 commits September 2, 2026 13:26
Wait on real record lists for Bedrock, Graphiti, and Oracle, and stop coercing store_id or project numbers from CLI params.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/datasets/longmemeval.py Outdated
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/base.py Outdated
ichko and others added 2 commits September 4, 2026 11:45
Avoid holding the medium JSON in an HTTP buffer, delete Redis sessions by owner with pagination, and treat an unstable extraction wait as a timeout instead of a scored answer.

Co-authored-by: Cursor <cursoragent@cursor.com>
A failed bulk delete now raises so leftover owner memories cannot mix into the next ingest.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/base.py
Zep and Bedrock inherit a 30-minute wait instead of 120 seconds, and Mem0 ingest includes conversation dates so temporal questions can be answered.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bedrock, LangMem, and Supermemory were calling APIs with the wrong kwargs or a 100-item cap; resume also replaced wall time instead of adding it.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sync adapters were polling as if extraction were async, and Bedrock/Oracle dropped the conversation-date line other providers send.

Co-authored-by: Cursor <cursoragent@cursor.com>
Those adapters extract asynchronously, so the runner must wait; other answering stores still return list_memories immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
ichko and others added 2 commits September 4, 2026 16:34
Co-authored-by: Cursor <cursoragent@cursor.com>
Ruff wanted a shorter Redis delete path check and formatted three files; typos rejected the unparseable metrics key.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread agent-memory-benchmark/src/agent_memory_benchmark/memory/vertex_memory_bank.py Outdated
Unscoped list plus dict equality missed Memory Bank rows, so later examples could see leftover memories.

Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit af09623. Configure here.

The SDK cleanup path is delete_thread, so reset was a no-op when delete_user was missing and leftover memories leaked across examples.

Co-authored-by: Cursor <cursoragent@cursor.com>
ichko and others added 2 commits September 15, 2026 16:09
… file.

Scoring had drifted to paraphrased prompts and a stricter yes/no parser; runs now also write the upstream question_id/hypothesis JSONL.

Co-authored-by: Cursor <cursoragent@cursor.com>
State the benchmark as a best-effort sweep and keep the Remis research score separate from what Iris ships today.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread README.md

@tylerhutcherson tylerhutcherson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for this pass

@tylerhutcherson
tylerhutcherson merged commit 94192c3 into redis:main Sep 15, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants