<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: stephen487</title>
    <description>The latest articles on DEV Community by stephen487 (@stephen487).</description>
    <link>https://dev.to/stephen487</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4012507%2Fffd575e7-d9eb-44ee-98ac-7d6dd33b38b1.PNG</url>
      <title>DEV Community: stephen487</title>
      <link>https://dev.to/stephen487</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stephen487"/>
    <language>en</language>
    <item>
      <title>Why your AI forgets — and how a memory layer fixes it</title>
      <dc:creator>stephen487</dc:creator>
      <pubDate>Thu, 02 Jul 2026 16:15:44 +0000</pubDate>
      <link>https://dev.to/stephen487/why-your-ai-forgets-and-how-a-memory-layer-fixes-it-4og2</link>
      <guid>https://dev.to/stephen487/why-your-ai-forgets-and-how-a-memory-layer-fixes-it-4og2</guid>
      <description>&lt;p&gt;You've felt it. You have a long, useful conversation with an AI assistant — it learns your project, your preferences, the details that matter — and then you open a new chat tomorrow and it's a stranger again. Everything's gone.&lt;/p&gt;

&lt;p&gt;That's not a bug in one product. It's the default state of large language models: &lt;strong&gt;they don't remember.&lt;/strong&gt; A model only "knows" what's in its context window right now. Close the window, start a new session, and the slate is wiped. For a chatbot that's annoying. For an &lt;strong&gt;agent&lt;/strong&gt; — software meant to act on your behalf over days and weeks — it's disqualifying.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two failures, not one
&lt;/h2&gt;

&lt;p&gt;There are actually two distinct memory problems, and most fixes only address the first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. It forgets between sessions.&lt;/strong&gt; No persistence across chats. Every conversation starts from zero.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. It remembers &lt;em&gt;too much&lt;/em&gt;, badly.&lt;/strong&gt; The common fix is to store everything the AI is ever told and retrieve the similar bits later. But real information &lt;em&gt;changes&lt;/em&gt;. A client's budget goes from £5,000 to £8,000. A launch date moves. A contact leaves. If your memory hoards every version, retrieval surfaces the &lt;strong&gt;stale&lt;/strong&gt; one right alongside the current one — and the AI confidently answers with the old value. Store-everything memory doesn't just waste space; it actively serves wrong answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the obvious fix isn't enough
&lt;/h2&gt;

&lt;p&gt;"Just add a cloud memory service" works for some. But it quietly rules out the people who need memory most. If you're building AI for &lt;strong&gt;healthcare, legal, finance, or government&lt;/strong&gt;, your data legally can't leave your walls — so a memory layer that ships every fact to someone else's cloud is a non-starter. The result: the highest-value, most memory-hungry use cases are locked out of the easy option.&lt;/p&gt;

&lt;p&gt;So the real requirement is a memory layer that is &lt;strong&gt;both persistent and private&lt;/strong&gt; — one that remembers across sessions, keeps its answers current, and runs where your data already lives.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a memory layer actually does
&lt;/h2&gt;

&lt;p&gt;A memory layer isn't another chatbot. It sits &lt;em&gt;underneath&lt;/em&gt; whatever model you use and gives it four simple operations: &lt;strong&gt;store, retrieve, update, discard.&lt;/strong&gt; Your agent calls them as tools while it works. The model does the talking; the layer does the remembering.&lt;/p&gt;

&lt;p&gt;The interesting engineering is in &lt;em&gt;how&lt;/em&gt; it remembers. Two choices matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Forget at write-time, not read-time.&lt;/strong&gt; When a new value for something arrives, retire the old one &lt;em&gt;as you store it&lt;/em&gt;, so recall never has to guess which version is current. The current answer is the only answer that comes back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep less, on purpose.&lt;/strong&gt; Deduplicate what the agent re-hears, and don't hoard superseded values in the recall set. In our own benchmark (LongMemEval-S), this kept roughly &lt;strong&gt;half the facts&lt;/strong&gt; of a store-everything baseline at &lt;strong&gt;comparable answer accuracy&lt;/strong&gt; — and it's reproducible, which in a field full of unverifiable claims is the whole point.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Local by design, cloud-compatible by choice
&lt;/h2&gt;

&lt;p&gt;The version we're building, &lt;strong&gt;Enki&lt;/strong&gt;, runs &lt;strong&gt;on your machine&lt;/strong&gt;. The facts you give it never leave the box. But it isn't walled off — it bolts onto any model, local or cloud, through a standard memory-as-tools interface (MCP). You get persistence and privacy &lt;em&gt;and&lt;/em&gt; the freedom to use whatever LLM you want. That combination — sovereign but integratable — is exactly what a cloud-only memory service can't offer.&lt;/p&gt;

&lt;h2&gt;
  
  
  See it, don't take our word for it
&lt;/h2&gt;

&lt;p&gt;There's a live demo you can try in about a minute, no signup: &lt;strong&gt;&lt;a href="https://try.enkilabs.co.uk" rel="noopener noreferrer"&gt;try.enkilabs.co.uk&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tell it a fact, hit &lt;strong&gt;"next day"&lt;/strong&gt; to open a fresh chat, and ask a question only memory could answer. A normal assistant starts blank; the Enki-backed one remembers.&lt;/li&gt;
&lt;li&gt;Then run the storage comparison and watch a keep-everything memory pile up while Enki quietly retires the stale facts — ending at half the footprint, still answering with the current value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Enki runs on your machine, not someone else's cloud — and the head-to-head results are public and reproducible: &lt;strong&gt;&lt;a href="https://github.com/stephen487/enki-benchmarks" rel="noopener noreferrer"&gt;github.com/stephen487/enki-benchmarks&lt;/a&gt;&lt;/strong&gt;. The core has a UK patent application filed. The engine itself is in closed beta right now — there's a waitlist on the demo if you'd like early access.&lt;/p&gt;




&lt;p&gt;If you're building agents that need to remember — especially somewhere the data can't leave — I'd love your feedback. Try the demo, break it, and tell me what's missing: &lt;strong&gt;&lt;a href="mailto:steve@enkilabs.co.uk"&gt;steve@enkilabs.co.uk&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
