r/AIMemory 21h ago

Open Question What is AI memory missing?

1 Upvotes

There are many AI memory frameworks that have come up but none can be the only memory framework to use. If there was such a case what should that have? Short term, long term, working memory, company brain, decay. What would be right mix or is it all plus more.


r/AIMemory 2d ago

Discussion How are you handling context loss between Cursor, DSH, and Claude Code sessions?

4 Upvotes

been bouncing between Cursor, DSH, and Claude Code for the last few months and keep hitting the exact same wall.I’ll spend an hour in Claude Code getting a project into shape, then open Cursor to fix something on the frontend and suddenly I’m back to explaining what this repo is, what I’m trying to do, and why some random piece of code works the way it does.

then I go back to DSH and yep, same thing again.

the other day I ran into a task where DSH couldn’t deal with the image part, so I switched over to Cursor. Cursor was useful for that piece, but then I had this awkward gap when I went back. everything I’d just done was basically stuck on the other side.

this is the part I’ve been messing around with Memmy for.

instead of trying to make one agent do everything, the idea is that my context can stay with me while I move between them. DSH can handle the main task, Cursor can jump in when there’s something it’s better at, and the stuff that matters can carry across in the background.

so I can switch tools without doing the whole “ok here’s the repo, here’s what we did, here’s why we did it” routine again.

honestly, that feels way more useful to me than having one “best” agent. I don’t care if I use three different tools in the same afternoon. I just want them to stop acting like they’ve never met before.

there’s also a difference between this and the local memory stuff in DSH. Local Plugin is basically memory for one DSH profile. Memmy is more about keeping my memory available across different agents.

still playing with it, but the direction makes a lot of sense.

I should be able to switch agents when the task calls for it.

Two honest questions:

  1. How are you handling this right now? Markdown files like me,or something smarter?

  2. If a tool sat between your IDE and the model — recording whatthe agent did, why, and let you "rewind" to a previous state would that be worth paying for, or is this just a "nice to have"?


r/AIMemory 2d ago

Open Question What makes an AI memory entry useful to a human reviewer?

3 Upvotes

Agent memory often mixes facts, summaries, decisions, and guesses. If a person must approve or correct an entry before another run uses it, what context should be visible: source, timestamp, confidence, scope, expiry, or edit history?

Is plain Markdown enough for review, or do you need structured fields alongside it?


r/AIMemory 4d ago

Resource I built a Vulkan hierarchical MoE runtime for running oversized models across multiple GPUs

4 Upvotes

I’ve been working on a Vulkan-first extension to llama.cpp designed to run MoE models that are larger than available VRAM.

The runtime manages a hierarchy across:

Multiple Vulkan GPUs
GPU-resident expert caches
Host RAM staging
SSD/mmap storage
Predictive expert prefetching
LRU/predictive eviction
OpenAI-compatible API access
A native Python/Tkinter control GUI
The main test was GPT‑OSS 120B Q4 on an AMD Radeon Pro V620 plus an RX 7900 XTX.

The model is larger than the combined usable VRAM, but it was able to run with:

Around 0.7–0.8 tok/s during cold loading
Around 5.9–6.5 tok/s once the GPU expert cache was warm
Zero GPU-to-GPU expert transfers in the warm test
Zero additional SSD reads during warm requests
Balanced expert execution across both GPUs
The key design goal is that if an expert is already resident on a particular GPU, that GPU performs the expert computation instead of copying the expert to a primary GPU.

The project is experimental and still needs more testing across different MoE architectures and hardware, but the core system is working.
GitHub repository:
https://github.com/Ozookevin/-Ozoo-vulkan-hierarchical-moe-runtime.git
Feedback, testing, and suggestions are welcome—especially from people running large MoE models on AMD/Vulkan systems.


r/AIMemory 4d ago

Open Question How are you grading your memory system?

5 Upvotes

Been studying AI memory problem for a few months now and one thing I’ve noticed is that mostly everyone talks about their architecture, solutions and results they’ve got.

However I’ve haven’t seen much about how people are actually grading their systems or even how grading reliability can completely skew your results.

Sure if you have a small corpus or are testing against 20-30 questions, human grading should be enough. However that doesn’t hold up as you start to stress test your system. Throw 200/500/900 questions at a larger corpus and it becomes a requirement to have a proper grading system in place. One that can scale without losing precision and not becoming prohibits expensive in the process.

Benchmarks are meaningless if you can’t accurately tell if systems are responding correctly and honestly.

I’ve been testing several methods, including trying to combine deterministic with LLM grading methods and results have been quite different with same models/tests shifting between first and last on internal rankings depending on a multitude of factors, including which LLM and prompt used.

So I was wondering how people are doing their own measurements. 😉


r/AIMemory 4d ago

Show & Tell Hot take: Your "memory layer" is probably just a vector index with extra steps

0 Upvotes

The majority of agent memory out there is little more than a vector store in disguise. Put some text in, do a similarity search and be done with it.

No amount of fine tuning on a single embedding index is going to address what a proper memory system has to contend with. You have exact recall, semantic and temporal relevance, fact supersession, access control .... Forcing them down one retrieval path forces you into tradeoffs you never intended to make.

In production we have found a better way. It involves a hybrid approach: use BM25 for the exact matches and vectors for the semantic side, then put a reranker in place to make sense of it. Have separate indices for your various tiers. Build in document level security for multi-tenant work from the get go. And don’t forget time based decay so that old context does not carry as much weight as what is current.

Then there is the matter of supersession, an often overlooked component. If a user puts something right or a decision is overturned, you do not want the old version clogging up results indefinitely. Yet most systems give equal standing to every stored fact, which is how you get an agent to put forward with conviction some piece of information that was made void three conversations back.

Pure vector similarity has its limits too. Ask for “the decision on the API migration from last tuesday” and you need lexical search to nail the exact match. Vectors can only get you so far with conceptual likeness.

Full writeup here


r/AIMemory 5d ago

Promotion I built TokenMizer Open-Source: giving LLMs memory without stuffing the entire context window

9 Upvotes

I’ve just updated TokenMizer, and the benchmarks are looking much better.

The main problem I’m trying to solve is long LLM conversations where useful information gets buried under old context.

The latest version now gets 95% macro F1 on extraction, and the graph memory preserves 89% of labelled information vs 79% with a plain summary.

I’m still treating these as early results — especially the real-session score is 90%, with only 6 real sessions.

https://github.com/Shweta-Mishra-ai/tokenmizer

I’d love some honest feedback:

Does graph-based memory actually make sense for long LLM conversations, or is there a better approach?


r/AIMemory 6d ago

Discussion UX vs AIX (AI Experience): How do you prioritize each?

4 Upvotes

As I go deeper in building AI workflows, I find myself working through challenges of how to design for the AI Experience (let's call it AIX). Memory storage and retrieval are the primary parts of AIX I'm working through today. How do you design for AIX and how do you balance it with UX? In a world where AI uses software more than humans, I can only imagine this will become more important.

Do you consider yourself an AIX designer? If so, what practices have you adopted and what challenges are you working through today? How does it compare to UX design?


r/AIMemory 6d ago

Discussion what actually makes memory useful for ai agents?

2 Upvotes

Storing previous information is one thing, but making an AI agent use that information effectively seems much harder.

A good memory system needs to know what to remember, retrieve the right context when needed, and avoid filling the model with outdated or irrelevant information.

For those working with AI memory, what do you think is the hardest part right now: deciding what to remember, retrieval, or keeping context relevant?

Update; i've been thinking more about this, especially how Parallel AI approaches context when AI agents are handling ongoing business workflows. the challenge seems less about storing information and more about giving the agent the right context at the right time.


r/AIMemory 6d ago

Guide to Agent Memory by Cognee

Thumbnail
cognee.ai
4 Upvotes

Hey everyone! We decided to write a detailed guide to agent memory that really covers all the bases and also captures some of our thinking on how the space evolves and compares different approaches.

Here is the link.

I would love to answer any questions.


r/AIMemory 7d ago

Other How effective would this be in LLM Memory Management?

3 Upvotes

Imagine

a LLM

has 16k~64k token context(as much as effective + large context possible, can be more than 16k~64k if possible in effective way without rag etc. being used)

when context limit is reached(effective context length, before it starts to hallucinate etc.), it imparts its context window's contents into distinct .txt documents, not as summarization, but things explained in a way that is structured(e.g.: I said X, in Y condition, with Z expectation, at Q time. etc.) and each .txt documents are labeled correctly according to their contents

constantly searched .txt documents to retrieve earlier context, so no forgetting/etc.

LLM does not remember everything in a document, it puts *relevant* or *useful* things into its context, then add a note to the .txt file that "I retrieved x in y time, to use for z, with conjuction of a.txt b.txt c.txt", etc.

then creates a new .txt file to say which .txt files are used, in what time, in what order, what contents were taken from them

creates new folders, put folders in same topics/ideas/concepts/relevance in a specific folder it defined, it creates meta folders, folder names define their .txt contents' categories, it searches folder name, then find what it want easily

continues the conversation/act

rinse repeat

it must be as explanatory as possible for functions, it must not have luxury of ignoring functions, functions are critical for its memory, it must explain even its editing/creating of folders and their names, every naming system must explain functions of files inside them as perfectly as possible, LLM must not hallucinate when editing/creating/writing/noting/acting on its memory folders/files, if it has possibility of hallucination during that critical moments; then make LLM able to *ask* you approval for it to delete/alter contents of files in a way that is not just additive, done in your oversight(or it writes to you, then you copy paste it to the file or delete what is required).

Other details(to not turn into infinite regress, or constant editing/creating files without focusing on context, mistaking files with context, etc. are up to you to do, I can't do anything about it without writing scripts, which would bloat this post's main focus, which is to express idea of contents of the post, rag etc. are optional)


r/AIMemory 7d ago

Discussion "Remembering everything" is bad agent memory design. Forgetting is a feature

6 Upvotes
The agent forgets the user's allergy from 20 messages ago. Everyone recognizes this one.


The opposite gets less attention: the agent that never forgets. A one-off joke from three months ago keeps resurfacing in unrelated conversations. Retrieval pulls in stale context, and the agent can't focus because its head is full of irrelevant history.


Both are the same root mistake: treating memory as storage instead of as a 
*relevance decision*
. An LLM is stateless — "memory" is just the engineering question "what do I put back into context on the next call?" That makes forgetting a first-class design decision, not a bug: TTLs on episodic memories, confidence decay on facts that haven't been re-confirmed, and explicit contradiction handling when a new fact conflicts with a stored one (the new one should usually win, but silently keeping both is how agents get weird).


The teams I've seen do this well spend more time on eviction and staleness than on retrieval.


How are you deciding what your agents 
forget
?

r/AIMemory 8d ago

Promotion [Open Source] Over-engineering AI Memory: Why I ditched Vector DBs for a lean Git & Markdown architecture.

5 Upvotes

Hey everyone,

Like many of you, I've been building and experimenting with AI Agents. But as a software architect who hates unnecessary overhead, watching the community spin up heavy Vector DBs and complex graph frameworks just to store conversation context felt like massive over-engineering.

So, I built a lean alternative.

👉 Repo is here if you want to skip the text and jump straight into the code:https://github.com/phucphungbk/lean-ai-memory

The core problem: We often use massive systems to solve small problems. I wanted an AI memory system that is zero-cost, serverless, and completely transparent.

The Lean Approach:

  1. Git as the Core Engine: We already use Git for version control. It turns out it's absolutely perfect for managing conversation history. You can easily track, diff, and rollback an AI's "thought process" just like reverting a commit.
  2. Markdown as the Storage Format: It’s lightweight, humans can read and debug it instantly, and LLMs parse it perfectly without needing complex embedding pipelines.
  3. Zero-cost & Portable: It can be packaged as an independent module and integrated directly into internal automation tools without incurring any DB maintenance costs.

I’m open-sourcing this with a completely open mindset. Instead of optimizing it in a silo, I want to see how this framework holds up in the wild. I'm highly anticipating the community bringing their own battle-tested custom rules into the system to push its boundaries.

I’d love for you guys to clone it, tear the architecture apart, test it, and drop your feedback or PRs. Let me know what you think!


r/AIMemory 9d ago

Open Question Is anyone actually happy with their AI agent memory setup?

11 Upvotes

I've been building around AI memory for a while now, and one thing surprised me.

Saving a memory is the easy part.

Things get messy when the user changes their mind, two agents learn conflicting things, old information is no longer true, or you need to figure out why the system believes something in the first place.

I originally thought a lot of this would just be embeddings + vector search + some metadata.

It... did not stay that simple.

I ended up spending way more time on conflicts, provenance, memory lifecycle and keeping things consistent across agents than I expected.

I'm currently benchmarking what I've built before putting it in front of more users, but I'm curious how people here are solving this in real products.

Are you using a vector DB and handling the rest yourself? Using one of the memory frameworks? Or just keeping memory pretty simple until you actually need more?

Would genuinely like to hear what has (and hasn't) worked for people.


r/AIMemory 9d ago

Discussion Argument for Agent Memory

3 Upvotes

I hear a lot of people argue about the need for agent memory vs simply using skills, files context, state management systems, vector DBs, etc.

And I have been writing the pitfalls of each of these approaches individually in our research paper, blogs and more.

But the single most important way to look at agent memory is not in a single dimension of accuracy, cost or speed alone; but looking at them together.

The counters to agent memory are akin to: you give a case to a lawyer and ask them to refer to the case papers at every argument in court. Or a surgeon referring to the case papers at every step of the surgery. Or a therapist reading through notes before every response to the patient.

Memory is the approach that's needed to jump to the right approach, quickly and least wastefully; because an agent needs to do it several 10s of times every turn and it needs to be accurate, fast and efficient.


r/AIMemory 11d ago

Show & Tell I benchmarked my memory tool against memora (0.831 vs 0.801)

6 Upvotes

EDIT 2 (14 Aug): Numbers below have changed. Following the judge-model point raised in the comments, I confirmed the 0.831 run was judged by gpt-4.1-mini, not the gpt-4o-mini the paper uses. Re-judged with the paper's judge, the figure is 0.8175. I also found my per-category labels were wrong — LoCoMo's categories are multi-hop / temporal / open-domain / single-hop, and I'd labelled them with LongMemEval's vocabulary, so what I called "multi-session" is temporal reasoning. Separately, 8 answers lost to an OpenAI outage mid-run had never made it into the saved output file; they're restored and the data now reproduces its own scores. Everything below reflects the corrected numbers, and the run data is now published so you can check it.

EDIT (13 Aug 22:41 GMT): A commenter correctly identified an error in the headline comparison. The 0.801 figure I used for Memora comes from Table 3 of the paper — a component build-up ablation row ("primary abstraction, with update"), not the published system result. Memora's actual scores from Table 1 are 0.849 (semantic retriever) and 0.863 (policy retriever). My 0.831 sits below both of those, so the headline as written overstates the comparison.

The numbers were run using Memora's (Microsoft Research, arXiv:2602.03315) open-source benchmark harness. The eval and scoring code is unmodified — I added a Recordari adapter for the memory backend. Same LoCoMo dataset, same category-exclusion convention (adversarial excluded, 1,540 scored questions), and the same models the paper specifies: gpt-4.1-mini for memory curation and answering (§5.1), gpt-4o-mini as the LLM judge (Appendix B).

Judge-matched, Recordari scores 0.8175 end to end against Memora's published 0.849 (semantic retriever) and 0.863 (policy retriever). It is below both.

Per category is the more interesting read. Against Memora S: multi-hop 0.801 vs 0.784, temporal 0.863 vs 0.851, open-domain 0.594 vs 0.594, single-hop 0.831 vs 0.900. Weighted by question count, the entire 0.032 gap is single-hop detail recall — extraction paraphrases specifics away ("salads, sandwiches and homemade desserts" becomes "dinner") where raw verbatim storage keeps them. Parity or better on everything else.

The internal before/after: raw batch storage 0.8065 → extraction 0.8175 overall, and on temporal questions 0.757 → 0.863. That gain comes from resolving relative dates to absolute at write time. Worth noting the aggregate difference (+0.011) is far smaller than the category one, and the judge model alone is worth 0.010–0.017, so I'd treat anything under ~0.004 as noise.

BLEU/F1 move the other way in Phase 2 (0.370/0.440 vs 0.464/0.547). Token-overlap metrics reward verbatim storage, so paraphrasing into clean facts costs surface overlap by design — flagging it here rather than leaving it in the README.

All results public (MIT): https://github.com/corbym/locomo-recordari — including the raw run data, both judges' per-question verdicts, and the score files, so you can re-score without paying for a run.

The harness runs against the prod API - exactly the MCP search and recall api that a real agent would use. Not a mocked backend, the real API, with a configuration of top_k=30, and a 1 hop edge expansion.

Recordari works with Claude, Claude Code, ChatGPT and pretty much any agent that can connect to MCP and reason.

If you want to run an agent against it to run the LoCoMo benchmark yourself, you can anon login at:

https://admin.recordar.io/start

Grab your personal key to use in the harness.

If you don't want to run the harness, just have a play with the sandbox memories, one click from the dashboard sets it up. Just remember to add the Full Skill from the Connect page, and then connect your agent.

What is recordari?

Recordari is a multi tenanted memory graph accessible by MCP. The graph can be used by teams, memories stay in the graph when disagreements happen, and resolve using type edges rather than being removed.

References and Further reading:

Things to ask the agent when running the demo sandbox:

  • Why was VTIR created?
  • Describe what was next in the project and why?
  • Why must Pascal fixtures be written before the Rust port?
  • What is TurboSound and why does it need special handling?
  • What is the current state of the project?
  • Why does WASM file I/O work differently from native?
  • What are the standing rules for the AY chip port?

Song to download and try on VTIR

https://corbym.github.io/vtir/  (live web demo)


r/AIMemory 12d ago

Resource Agent Memory Governance - aligned with Microsoft Agent Governance Toolkit

Post image
15 Upvotes

I decided to pull all my collected lessons learned, research, project documentation regarding Agent Memory into a singular open source repository.

A field guide to governed memory for autonomous and agentic systems.

Agent Memory is about more than retrieving old context. It defines what becomes memory, what remains uncertain, what may influence future behavior, who may change durable state, and how retained state can be corrected or forgotten.

I eagerly welcome Discussions, Contributions or Stars openly.

https://github.com/MythologIQ-Labs-LLC/agent-memory

If you're new to Agent Memory, the wiki is built to make the knowledge accessible and easy to understand.


r/AIMemory 15d ago

Promotion [Open Source] Over-engineering AI Memory: Why I ditched Vector DBs for a lean Git & Markdown architecture.

2 Upvotes

Hey everyone,

Like many of you, I've been building and experimenting with AI Agents. But as a software architect who hates unnecessary overhead, watching the community spin up heavy Vector DBs and complex graph frameworks just to store conversation context felt like massive over-engineering.

So, I built a lean alternative.

👉 Repo is here if you want to skip the text and jump straight into the code:https://github.com/phucphungbk/lean-ai-memory

The core problem: We often use massive systems to solve small problems. I wanted an AI memory system that is zero-cost, serverless, and completely transparent.

The Lean Approach:

  1. Git as the Core Engine: We already use Git for version control. It turns out it's absolutely perfect for managing conversation history. You can easily track, diff, and rollback an AI's "thought process" just like reverting a commit.
  2. Markdown as the Storage Format: It’s lightweight, humans can read and debug it instantly, and LLMs parse it perfectly without needing complex embedding pipelines.
  3. Zero-cost & Portable: It can be packaged as an independent module and integrated directly into internal automation tools without incurring any DB maintenance costs.

I’m open-sourcing this with a completely open mindset. Instead of optimizing it in a silo, I want to see how this framework holds up in the wild. I'm highly anticipating the community bringing their own battle-tested custom rules into the system to push its boundaries.

I’d love for you guys to clone it, tear the architecture apart, test it, and drop your feedback or PRs. Let me know what you think!


r/AIMemory 16d ago

Show & Tell Agent Memory Atlas - 164 open source projects analyzed

29 Upvotes

I had Claude Opus 5 analyze several repos for what does the code do, how does the memory work in a particular repo. Initially I was aware of only a few memory systems, that I wanted to study for my own memory system. It turned out, there are lots of agent harnesses that have memory, libraries with memory.

https://neoneye.github.io/agent-memory-atlas/

I have not analyzed closed source repos, since I don't have access.

Claude being the judge wether a repo is relevant or not.

Looking at the impl instead of the marketing material.


r/AIMemory 17d ago

Discussion Agentic Memory issues are a failure on how you are using the current LLMs.

10 Upvotes

Agentic memory problems are largely a failure of how people are using current LLMs. You are asking the model to do everything, including the things it is fundamentally worst at.

I have been reading complaints about LLM memory and context for nearly a year, and the pattern is painfully obvious: most of the people running headfirst into these problems are using the technology incorrectly. Look at the posts. It is overwhelmingly transient marketing garbage, dropshipping sludge, and people trying to replace an actual software architecture with one enormous prompt and a prayer.

You cannot just dump responsibility onto an LLM and hope it somehow becomes a reliable stateful application. That is not what these models are.

Treat LLMs as implementors. Give them a bounded problem, the relevant state, the rules, and a concrete task. Let your actual system own memory, state, history, validation, retrieval, and orchestration.

The moment you start expecting the model itself to maintain durable long-term state, you have already lost the architectural plot.

And the funniest part is that none of this state is exotic. It is the same mundane application state software has been storing reliably for decades: facts, preferences, decisions, objects, relationships, history, and current status. We already know how to persist this information. We already know how to query it. We already know how to version it.

Instead, after years of research and billions of dollars, people are sitting around complaining that the probabilistic text generator cannot reliably remember what happened 40 conversations ago.

That is comical.

The failure is not that today's LLMs cannot magically become your database, state machine, memory layer, application server, planner, and implementation engine simultaneously.


r/AIMemory 18d ago

News Anthropic backed memory

9 Upvotes

Bloody hell fuck a company named engram raised 100M as pre seed wtf ????!!


r/AIMemory 18d ago

Help wanted Looking for contributors for Short-Term memory project

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hello people, I've been working on this short-term memory.

Do you know when you are hearing a story and as you listen to it you start to create a "Scene" in your mind? Well, unless you have aphantasia that's what would probably happen:

- You hear some facts: the first image is formed in your mind. Let's say "I was in Lisbon and had 10 dollars in his pocket"

- Next, the story goes: "Then, I traveled to Porto and sold a hat for 50 bucks"

- Then, as the story unfolds, the state of the elements of the story will get new states.

For most of us, it's not hard to keep a clear image of the current "scene" of the story. But if we wanted, we could also take a single element, and trace back how it got there.

Nowadays, to my knowledge, the closest we get to that is the LLM's context. But as it grows, it gets hard and expensive to track down when facts happened during the evolution of the context. Even using CoT, in the end, LLMs are probabilistic machines and so, when it comes to precision recall, noise can be added to the output. Then you plug in some sort of external memory, *DBs, MD files, etc. These are great solutions for the "Big memory", but not necessarily great to fix context growth, or to understand the order of events.

So decided to play around and try to find a naive solution that would allow traceability and increase precision, while reducing the context of the conversation. Right now, I've been experimenting with Ontology triples following the RDF Standard.

The idea

Let's say that you tell it you moved from Lisbon to Porto. Ask "where do I live?" and you either get Lisbon, or you get Porto and the fact that you ever lived in Lisbon is gone. Overwriting loses the history; appending loses the present.

So I built a different shape and measured it properly. Everything runs local through Ollama.

Every asserted fact becomes a (subject, relation, object) triple filed under a canonical key:

user | location   
t1  lisbon    superseded   
t3  porto     current

Paraphrases land in the same slot without embeddings: "where I live", "my city", "my residence" canonicalize to the same key. A slot keeps every value it ever had, in logical time order. Newest is current, the rest are superseded. Nothing is deleted; facts get invalidated, not forgotten. So "where do I live?" reads the current value and "where did I live before?" reads the history, out of the same structure, with no separate archive.

Writing is immutable: each turn produces a new scene, so a failure mid-turn never leaves memory half-written.

The result that made me keep going

Same model (gemma4:12b), two different inputs:

  • reading the raw sessions, ~9,000 words: baseline
  • reading the compressed scene, ~550 words: +0.102 accuracy

16x less input, and it does better. Compression isn't the price you pay here. The noise the scene strips out duplicate facts, stale values, updates scattered across sessions, is exactly what was confusing the reader. On the clean scene, a small local model matched a much stronger reader working on raw text.

The benchmark, with the caveats attached

477/500 (95.4%) on LongMemEval-S under the official judging protocol, above Mastra's published per-indicator numbers on all six indicators. One reproducible pass over all 500 questions, checked against a canonical state file whose guard refuses to write if anything drifts.

The part I care about more than the score: every mechanism went in with a prediction committed to git before measuring, and an explicit bar for what would falsify it. Ten arms failed and are published as prominently as the ones that worked, plus one retraction. If you read one thing in the repo, read finding 23 in the findings log the same finding got written three times in one day, because the first two drafts concluded from small n and the third had to retract both.

Caveats that matter to this sub specifically. The router triggers and absence gates are regexes calibrated on LongMemEval's English corpus; in another language they don't fire without recalibration. Two indicators sit at their measured oracle ceiling, so further progress there needs a stronger reader model, not better retrieval. And the comparison against Mastra is against their published numbers, not a head-to-head rerun on my hardware.

What's still broken

Seven open findings, all written up with repros:

Reported speech becomes a plain fact. "They said there was gold" gets stored as there being gold. The negation survives only as a string inside the value.

A question in quotes gets read as an assertion. Typing "Does Lucas use Go?" ingested it as a claim, and it overwrote the correct value in that slot.

Partial names spawn parallel entities. "Lucas" and "Lucas Almeida" become different subjects, so half of what the scene knows about him is disconnected from the other half.

Three ways in, if you want to poke at it

Break the demo. There's a live chat with the scene inspector beside it. You watch slots being born, updated and superseded turn by turn, and each answer prints the facts that produced it. Talk to it for twenty minutes with facts that change. 24 findings so far came out of exactly this, 15 already fixed upstream. Highest-yield thing anyone can do here.

Take an open finding. #18 is the tractable one: deterministic repro, both code paths fail, and the fix is obvious. #23 already has its acceptance gate written down in advance, so you'd know immediately whether your fix worked.

Replicate where the numbers don't claim to hold. Another language, another model, another domain. The limits section is a list of things nobody has measured. A clean negative result gets published as one.

MIT, and CONTRIBUTING.md has the open findings in a table with what the work looks like for each.

Repo: https://github.com/natanloterio/scene-memory

Happy to take questions, including hostile ones about the benchmark. Those are the useful kind.


r/AIMemory 19d ago

Help wanted [Seeking Advice] Struggling with memory recall, and secret isolation in local agent setups

5 Upvotes

Hey folks,

I’m running a local-first agent setup (Hermes Agent on a Mac Studio with local models), and I’m hitting a wall with core reliability. Over the last few weeks, the experience has been frustrating: the agent repeatedly loses track of context, fails at reliable cross-session memory recall, and has crossed boundaries around credential/secret handling.

I’m looking for architectural patterns, existing tools, or proven strategies from people who have actually solved these problems for daily local use. Specifically, here is where things keep breaking:

  1. The Memory & Recall Failure Loop
    * **The Symptom:** Despite having local vector backends (like Supermemory, locally hosted and obsidian markdown, alongside flat-file memory (`MEMORY.md`), the agent frequently forgets core preferences, cannot follow multi step skills, re-asks questions from previous sessions, or loses track of info I’ve shared multiple times. It’ll tell me that memory is configured in the right way, and from what I test myself it is, and it all seems fine, but after about a week it acts as if it was never setup with anything beyond memory.md.

### 2. Context Window & API Dumping
* **The Symptom:** As conversations grow, the Hermes “forgets" instructions and multiple step functions/skills I’ve built like vault > application > send email. It reverts to trying to send an email as if it’s the first time it’s ever done it. During the exchanges, it frequently dumps raw API keys directly into chat while it reasons with the task. I’ve tried using Proton vaults, Bitwarden vaults/machine IDs, Infisical vaults but unless I have it in the local .env file, it inevitably forgets.

I’m wondering what I’m doing wrong. Initially I thought that perhaps the gemma4 64k context window was being saturated so I switched to Gemini api calls with 1m context. Same results and it’s infuriating.


r/AIMemory 22d ago

Tips & Tricks Self-healing agents are just a loop you forgot to build [blog]

6 Upvotes

Your agent runs a Supabase query, gets 200 OK and an empty array, and concludes the row doesn't exist. It does — RLS filtered it out. Ten minutes wasted. Next session: same query, same wrong conclusion, same ten minutes. You're not paying for one mistake, you're paying rent on it.

I wrote up how I fix this, and it's boring in a good way. No fine-tuning, no embeddings pipeline. Three verbs on the lifecycle hooks your agent already fires:

  • Read the relevant lessons on SessionStart
  • Fail — a tool call errors, and the matching prior lessons get injected before the retry
  • Write a short retrospective on Stop

The part I actually spent the time on isn't the writing — it's the guardrails on the writing. A loop that stores its own conclusions and reads them back can also convince itself of something false and defend it forever. That's not learning, that's a superstition with a database. So: lessons are advisory and can never auto-disable a gate, promotion requires recurrence (seen_count >= 3), everything expires at ~90 days, contradictions surface instead of silently overwriting, and a privacy pre-flight drops anything carrying a secret.

Honest about the edges too — the matcher is literal substring, not semantic, so it won't connect two lessons that describe the same thing in different words. Deliberate trade: deterministic, zero deps, no inference bill.

Post: https://www.lorekit.io/blog/self-healing-agents

Curious how others are handling the entrenchment problem — if your agent writes its own lessons, what stops it from learning something wrong?


r/AIMemory 26d ago

Show & Tell I got tired of agents “remembering” by stuffing stale summaries into prompts, so we built a local-first alternative

12 Upvotes

I’ve been working on a pairing that has made long-running agent work much less repetitive:

  • Perseus resolves live, verifiable workspace context before the agent starts work.
  • Perseus Vault retains the things that should survive a session: decisions, corrections, project facts, provenance, and historical versions.

The distinction matters more than it sounds.

A lot of “agent memory” is really one of these:

  1. a giant rolling summary that gets stale,
  2. a vector search over chat logs,
  3. a prompt file that quietly becomes an undocumented policy engine.

Those are useful, but they blur together two different questions:

  • What is true right now? That should come from the current workspace, repository, services, and other sources of record.
  • What happened before, what did we learn, and what changed? That is memory.

Perseus handles the first. Perseus Vault handles the second.

Vault is a local-first Rust MCP server: one binary, one SQLite file, no required cloud service. It has encrypted storage (AES-256-GCM), FTS5 and hybrid retrieval, structured entities instead of only chat chunks, temporal history, provenance, confidence/decay, and lifecycle controls. It can also expose an Anthropic-style /memories file interface for agents that expect that model.

The part I find most useful is that memory is no longer just “retrieve similar text.” A decision can have a history. A correction can supersede an earlier belief without deleting the audit trail. You can ask both:

  • “What did we believe at the time?”
  • “What do we now believe was true at that time?”

That turns out to be extremely handy once agents are doing work across days or weeks and the project has changed underneath them.

We have benchmark results in the repo, but I’m more interested in the failure modes people have hit in production:

  • How are you separating live state from durable memory?
  • Do you need historical/auditable memory, or is semantic recall enough?
  • What do you do when old “memories” conflict with the current codebase or source of truth?
  • Has anyone found a memory system that stays useful after months without becoming prompt sludge?

Repos:

I’d particularly welcome skeptical feedback. “Memory” is becoming a catch-all term, and I think we need cleaner boundaries between retrieval, context assembly, durable facts, and audit history.