<?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: Fadhlullah Mustapha</title>
    <description>The latest articles on DEV Community by Fadhlullah Mustapha (@blvckninja).</description>
    <link>https://dev.to/blvckninja</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%2F4159693%2Fd9c5ddfb-77c1-4007-bba3-43ec42e3d7fa.png</url>
      <title>DEV Community: Fadhlullah Mustapha</title>
      <link>https://dev.to/blvckninja</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blvckninja"/>
    <language>en</language>
    <item>
      <title>I Built a Chatbot That Remembers You Across Devices — 6 Things I Learned</title>
      <dc:creator>Fadhlullah Mustapha</dc:creator>
      <pubDate>Sat, 03 Oct 2026 13:29:21 +0000</pubDate>
      <link>https://dev.to/blvckninja/i-built-a-chatbot-that-remembers-you-across-devices-6-things-i-learned-3ehp</link>
      <guid>https://dev.to/blvckninja/i-built-a-chatbot-that-remembers-you-across-devices-6-things-i-learned-3ehp</guid>
      <description>&lt;p&gt;I built Pickup, a chatbot that remembers users across browsers and devices using Walrus mainnet.&lt;/p&gt;

&lt;p&gt;I thought the hard part would be storing and retrieving memories.&lt;/p&gt;

&lt;p&gt;It wasn't.&lt;/p&gt;

&lt;p&gt;The real challenge was making decentralized storage work smoothly behind a chatbot. These were the six things I learned.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Memory can't be allowed to freeze the chatbot&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If memory retrieval is slow, the whole chat shouldn't have to wait.&lt;/p&gt;

&lt;p&gt;I added an 8-second timeout. If memory doesn't come back in time, the chatbot answers normally and tells the user that it answered without the latest memory.&lt;/p&gt;

&lt;p&gt;The chatbot should still work when memory doesn't.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don't make users wait for writes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One Walrus mainnet write took 36 seconds in my testing.&lt;/p&gt;

&lt;p&gt;Waiting 36 seconds after every message obviously isn't acceptable.&lt;/p&gt;

&lt;p&gt;So I changed the flow:&lt;/p&gt;

&lt;p&gt;Reply first → save memory afterward.&lt;/p&gt;

&lt;p&gt;The user gets the response immediately while the memory is saved in the background.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don't remember everything&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Saving every message creates a lot of useless memory.&lt;/p&gt;

&lt;p&gt;I added a simple filter that skips short conversations and messages that don't contain useful information about the user.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;"Why does it 429?" → skip&lt;/p&gt;

&lt;p&gt;"I'm running v0.1.8 and getting 429 errors." → save&lt;/p&gt;

&lt;p&gt;The goal isn't to remember everything.&lt;/p&gt;

&lt;p&gt;It's to remember the right things.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A successful write may not be immediately readable&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I ran into an interesting consistency issue.&lt;/p&gt;

&lt;p&gt;A memory could be successfully saved, but the next recall wouldn't find it because the index hadn't caught up yet.&lt;/p&gt;

&lt;p&gt;So I temporarily keep recently saved memories on the client and include them in recall results until the server catches up.&lt;/p&gt;

&lt;p&gt;In other words:&lt;/p&gt;

&lt;p&gt;Written ≠ immediately readable.&lt;/p&gt;

&lt;p&gt;That's something I had to design around.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Queue your writes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sending several writes at once caused rate-limit failures.&lt;/p&gt;

&lt;p&gt;The fix was simple:&lt;/p&gt;

&lt;p&gt;One namespace, one write at a time.&lt;/p&gt;

&lt;p&gt;Instead of firing every write immediately, I queue them.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Show the user what the chatbot remembered&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pickup shows the memories used for each response and how old they are.&lt;/p&gt;

&lt;p&gt;This turned memory from a black box into something I could actually inspect.&lt;/p&gt;

&lt;p&gt;When the chatbot gives an unexpected answer, I can see whether it used the wrong memory, an old memory, or no memory at all.&lt;/p&gt;

&lt;p&gt;One limitation&lt;/p&gt;

&lt;p&gt;The SDK I'm using currently doesn't provide a delete method.&lt;/p&gt;

&lt;p&gt;So I didn't add a fake delete button.&lt;/p&gt;

&lt;p&gt;Instead, the UI warns users not to store secrets or sensitive information in persistent memory.&lt;/p&gt;

&lt;p&gt;I'd rather be honest about the limitation than pretend deletion is guaranteed.&lt;/p&gt;

&lt;p&gt;The main lesson&lt;/p&gt;

&lt;p&gt;Building persistent AI memory taught me that storage is only part of the problem.&lt;/p&gt;

&lt;p&gt;Once storage sits behind a real-time chatbot, you also have to think about:&lt;/p&gt;

&lt;p&gt;Latency. Consistency. Rate limits. Memory quality. Observability.&lt;/p&gt;

&lt;p&gt;That's where most of the interesting engineering happened.&lt;/p&gt;

&lt;p&gt;Pickup was built for Walrus Sessions 8.&lt;/p&gt;

&lt;p&gt;Code:&lt;br&gt;
&lt;a href="https://github.com/JUICEWRLD998/pickup" rel="noopener noreferrer"&gt;https://github.com/JUICEWRLD998/pickup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2lje6oqacklhlodo0704.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2lje6oqacklhlodo0704.png" alt=" " width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>web3</category>
      <category>productivity</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
