Add agent memory benchmark - #362
Open
ichko wants to merge 23 commits into
Open
Conversation
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>
tylerhutcherson
left a comment
Contributor
There was a problem hiding this comment.
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>
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>
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>
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>
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>
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>
…/agent-memory-server into add-agent-memory-benchmark
A failed bulk delete now raises so leftover owner memories cannot mix into the next ingest. Co-authored-by: Cursor <cursoragent@cursor.com>
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>
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>
Unscoped list plus dict equality missed Memory Bank rows, so later examples could see leftover memories. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Low Risk
Adds an isolated benchmark package and documentation/CI; it does not change V0 server code. Operational risk is limited to optional external API credentials when running provider adapters locally or in CI beyond unit tests.
Overview
Introduces
agent-memory-benchmark/, a new Python package with thememory-benchCLI for reproducible LongMemEval v1 runs: load public splits, ingest sessions per example with isolateduser_ids, wait for provider extraction where needed, answer with a shared OpenAI step, and write resumable artifacts (answers.jsonl,metadata.json,errors.jsonl). A separatejudgecommand applies task-specific LLM rubrics and writesmetrics.json(including task-averaged accuracy).The harness ships nine
MemoryStoreadapters (Redis Agent Memory REST, Mem0, LangMem, Zep, Graphiti, Supermemory, Vertex Memory Bank, Bedrock AgentCore, Oracle Agent Memory), optionaluvextras, provider recipes underdocs/providers/, and pytest coverage for CLI, datasets, judge, and runner resume/redaction behavior. GitHub Actions runs ruff, pytest, anduv buildin that directory on push/PR.Root landing narrative is updated so the repo is explicitly two projects:
V0/as the preserved research server and the benchmark as an open audit surface (not a leaderboard).README.md,AGENTS.md,CLAUDE.md, andV0/README.mdemphasize Redis Agent Memory in Iris as the supported product path with clearer quickstart links.Reviewed by Cursor Bugbot for commit 92b7be7. Bugbot is set up for automated code reviews on this repo. Configure here.