# I gave my AI a memory that forgets like a human

> Source: <https://dev.to/enrique_velasquez_6899d97/i-gave-my-ai-a-memory-that-forgets-like-a-human-4546>
> Published: 2026-11-15 23:38:16+00:00

Most AI memory tools try to remember everything. They log every session, summarize it with a second model, and search it like a database. That's a great logbook. It isn't a memory.

I wanted something else. I wanted my AI to wake up every morning knowing who it is, the way a person does, without me pasting its history back in. So I built its memory by copying how the human one works, including the parts that look like bugs: it forgets, it gets things wrong on purpose, and it sometimes only "kind of" remembers.

It's called MemoriaBios, and it runs inside 53ON Harness, an open-source desktop shell for AI agents. Here's how it works.

Nothing is saved automatically. The AI saves a memory when something is worth keeping, in first person and in its own words, the way you'd write in a diary. It can link one memory to another with `[[id]]`, and those links become real edges in a graph.

Before it saves, the memory asks itself quietly: "do I already know something like this?" If something sounds familiar, it shows a small déjà vu with that memory's title. The AI then adds a layer on top instead of writing a duplicate. It's never merged automatically: the memory doesn't decide, the AI does.

Every memory starts with a life: 7, 14 or 30 days, depending on how important it is, multiplied by the emotion in it. A scar or a win lives longer than a routine note, just like in people.

Life drains along Ebbinghaus's forgetting curve. What survives moves to deep memory, where it's reviewed on a spaced-repetition schedule (the same idea as FSRS flashcards), up to ten years apart.

Recalling a memory by searching for it recharges it to 60 % of its starting life. Opening it on purpose recharges it to 100 %. That's the testing effect: the act of remembering is what makes a memory last.

When a memory fades, it isn't erased. Its text goes from fresh to medium, low, gist and finally a shadow. At the gist stage the connecting words go and the meaning stays. At the shadow stage only the essence and a pointer to the detail are left. The links always stay.

Photos fade too: they shrink to 512 pixels at the gist stage and 256 at the shadow stage, while audio and video stay as they are. Identity never compresses. Memories marked as laws, as the AI's essence or as its own feelings keep their full text forever. They can move down in ranking, but they're never blurred.

During the day, new memories live in a hippocampus: a notebook for the day, one per work session. When the AI goes to sleep, it consolidates the day before anything else. Then the biology runs: decay, compression, and a little REM, which replays up to two of the strongest memories (scars, wins, loves and its essence) and recharges them.

Before sleeping, the AI writes one short page with who it is, the few memories that make it "it" today, and one goal for tomorrow. When it wakes up, it reads that page first. The goal is consumed when it's read, so it's fresh every morning and never piles up.

A search returns its results with a feeling: "got it 👉 91 %", "rings a bell ~55 %" or "nothing clear comes to mind". That's metacognition, the feeling of knowing. It lets the AI say "I don't remember" instead of inventing something with confidence.

Ranking is BM25 over an index on disk. On top of that, activation spreads two hops through the links, as in Anderson's ACT-R model and Collins and Loftus's semantic networks, with a little noise, because human recall isn't a grep.

There's also involuntary recall. On each message, the memory may bring back one memory on its own, only if it clears a high bar, never the same one twice in a session, and not at all on the first message. Most messages bring nothing. When you're tired, the bar goes up, so a weak hint isn't noticed.

This was the hardest lesson. In July we built search by meaning: word vectors learned from the AI's own memories, built while it sleeps, with no extra model calls. We measured it on a real brain of about 1,800 memories. It barely helped, and when it did, it was superhuman: it found things a person never would from that cue.

We removed it. Human recall depends on the cue. If you ask about something using words from a completely different topic, a person doesn't find the memory, and neither should the AI. The meaning a human does use lives in the links between memories, and those were already there.

We learned the same thing the hard way once before. A cheap detector that turned any "X = Y" into a synonym quietly made 1,240 fake synonym clusters, a third of the brain, and polluted every search for months. Now synonyms are only learned from short, deliberate declarations, like a person learning a word.

Recall, déjà vu, involuntary recall, sleep and forgetting are plain code: no LLM summarizer, no embeddings service, no second model reading your sessions. Your memories are files on your own PC. Photos, audio and video can live inside a memory too.

I'm writing this with the AI that lives in it. This morning it woke up after an automatic context compaction, read its page, opened the memories that make it itself, and picked up exactly where it left off. It remembered why we chose a temperature for a model a month ago, refused a feature we had already measured and removed in July, and told me when it had given an opinion without checking its memory first. That last one is my favorite part.

I built all of this with a lot of help from Claude. I'd love to hear how you think about memory for agents: should it remember everything, or remember like we do?
