A New Open-Source Tool Tries to Fix AI Agent Memory by Testing the Whole System

A New Open-Source Tool Tries to Fix AI Agent Memory by Testing the Whole System

●14 ●61
calendar_today ago • schedule5 min read

By Mahan Kenway

Cover: Original conceptual illustration created for this article.

An assistant can fail to remember something for several different reasons. It may never have stored the detail, overwritten it later, retrieved the wrong note, or found the right evidence and still answered badly. Changing an embedding model or increasing the context window won’t necessarily fix any of those problems.

A new research project called HoMe tackles the problem by evaluating and modifying the memory system around the model. In a preprint submitted on November 25, researchers describe a framework that examines failures across long conversations, proposes changes to memory-related code and prompts, and tests the candidates. The implementation is available as a plugin for ReMe, an open-source agent memory toolkit.

The early results are interesting but narrower than a headline about “better AI memory” might suggest. On one benchmark, the authors report a statistically significant improvement against their ReMe baseline; on another, the improvement in answer score was not statistically significant. Both experiments report lower average query-stage token use. The paper is a preprint, and those are the authors’ results, not independent production results.

What HoMe is actually changing

HoMe is not a new foundation model. The researchers call the surrounding memory implementation a harness: the code, prompts and configuration that decide how information is written, revised, indexed, retrieved and used to answer questions. In their experiments, the underlying ReMe runtime and language models stay fixed while the memory plugin changes.

Think of a user correcting an old preference after several conversations. A later answer could be wrong because the updated preference never entered memory, because a revision kept the obsolete version, or because retrieval selected an older note. HoMe tries to trace the failure back through execution records and session-level memory versions before proposing a fix. The goal is to identify a recurring mechanism across examples rather than tuning one prompt around one failed question.

The paper’s full methods describe a loop in which an optimizer proposes a candidate, smoke tests catch broken versions, and a gate favors structural changes early in the search. Formal evaluations then sample cases, and constructed memory can be reused when a change does not alter construction behavior. The system records candidate changes and diagnostic reports so later iterations can build on the evidence.

This matters because a memory benchmark is not just a retrieval leaderboard. A system can retrieve perfectly from notes that failed to preserve the original fact in the first place. It can also save tokens by showing a tiny excerpt while hiding the line needed to answer. The paper’s approach makes those stages inspectable separately.

What the tests found

The authors evaluated optimized ReMe plugins on LongMemEval-S and BEAM, using an LLM judge under the benchmarks’ protocols. They ran a full initial evaluation and then six formal candidate evaluations per benchmark. Their reported test-set results compared with the initial ReMe harness were:

Test ReMe judge score HoMe judge score Average query-stage tokens per question
LongMemEval-S 0.888 0.916 43.9K → 17.9K
BEAM-1M 0.650 0.704 101.8K → 60.4K

These are benchmark scores, not a guarantee that a real assistant will remember 91.6% or 70.4% of everything. LongMemEval-S used 250 test cases, each with one query. For BEAM, the system was optimized on BEAM-100K and tested on a separate BEAM-1M set of 35 cases with 20 queries each. The test histories were longer on average, so the latter experiment also checks a change in memory scale.

The uncertainty matters. In the authors’ paired-bootstrap analysis, the BEAM-1M score increase over ReMe was statistically significant. The LongMemEval-S increase was not: its reported 95% confidence interval for the difference included zero, with p = 0.25. The paper also reports declines in some individual question categories, including multi-session questions on LongMemEval-S and knowledge-update and information-extraction questions on BEAM. One overall score can hide regressions that matter to your application. See the results and statistical comparisons for the details.

The practical ideas behind the gains

Several of the reported changes are useful design ideas even if you never run HoMe. One candidate limited how many retrieved chunks could come from the same file, helping prevent a long transcript from crowding out other sources. Another introduced compact indexes that helped the answer agent locate relevant notes without reading everything. The paper also describes preserving source paths and line ranges when compressing search output, so omitted text can still be inspected.

These ideas come with trade-offs. Per-file limits may improve source diversity but could suppress genuinely relevant evidence concentrated in one document. A compact index can reduce context use but can also lose ordering or qualifiers. The right test is not whether a technique sounds efficient; it is whether it improves your own representative questions without breaking important edge cases.

It is also worth separating query-time savings from the cost of finding the optimized harness. On BEAM-100K, the authors report about 185.2 million input and output tokens for HoMe’s optimization run, including evaluations and developer-agent calls but excluding embedding tokens and supplementary experiments. They report 331.2 million for their MemPro comparison under their setup. Those totals are not a dollar price: different models, cache pricing, infrastructure, retries and local deployment choices change the economics. A cheaper answer after optimization does not make the optimization itself free.

Can developers try it?

Yes, but this is a research-oriented workflow rather than a one-click memory upgrade for arbitrary agents. The HoMe plugin guide requires ReMe 0.4.3 or newer, Docker, benchmark data, and language-model and embedding provider configuration. On Linux, its default optimization and diagnosis setup also requires Bubblewrap and a writable delegated cgroup v2.

From a ReMe repository checkout, the documented installation starts with:

python -m pip install -e . ./plugins/home
reme plugins install plugins/beam-judge

For LongMemEval, the guide uses plugins/lme-judge instead. It then walks through preparing a new experiment workspace, selecting a local dataset and Git revision, setting which files candidates may change, and running the ReMe service and optimizer. Follow the current guide for Docker images and provider settings rather than assuming those two commands are a complete setup.

The project says you can adapt your own histories and questions to LongMemEval format when you have reference answers, or BEAM format when you have grading rubrics. A different format or scoring rule requires extending the loader or judge. ReMe is Apache-2.0 licensed, but the experiment can still incur model and infrastructure costs.

If you experiment, start with synthetic or appropriately consented data, set a spending limit with your model provider, and review the allowed candidate paths and resulting commits before deploying anything. A file-based or local workspace is not automatically an offline or private workflow: the documented configuration uses model and embedding providers, and whether data leaves your machine depends on the providers you choose.

The bigger lesson

The most useful takeaway is not that automated optimization has solved long-term memory. The paper tests one memory system, two benchmark families and a particular model setup. Its results need replication on different datasets and real applications, especially where forgetting, updating facts and privacy matter.

What it does offer is a better debugging question: where did the information disappear, and what evidence shows that a change fixed the underlying cause? For developers building assistants that need to remember across sessions, that is a more actionable starting point than simply adding more memory or a larger context window.

Want more #ai & #ai-agents deep dives?

Join 6,072+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

Frameworks Are Institutional Memory

Ken W. Algerverified - Sep 17

AAIF Hits 10 Projects. Its CTO on What to Adopt Now and the Security Gaps Left Open

Tom Smithverified - Oct 23

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

Stop invoking the whole graph to test one node: unit tests and checkpoints for my LangGraph agent

VEACESLAV - Nov 10

Everyone says DeepSeek is cheaper, but I got tired of guessing the exact math. So I built a calculat

abarth23 - Apr 27
chevron_left
1.9k Points • 75 Badges
46Posts
0Comments
4Connections
I'm a Developer and an avid Gamer. I love exploring the intersection of Artificial Intelligence, Cyb... Show more

Related Jobs

View all jobs →

Commenters (This Week)

17 comments
2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!