<?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: Erik Scott</title>
    <description>The latest articles on DEV Community by Erik Scott (@escott).</description>
    <link>https://dev.to/escott</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3690576%2F60960fc8-1a15-4529-971e-a2385db753a2.jpg</url>
      <title>DEV Community: Erik Scott</title>
      <link>https://dev.to/escott</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/escott"/>
    <language>en</language>
    <item>
      <title>I Got Tired of Re-Explaining My Codebase to AI — So I Built a Memory Layer</title>
      <dc:creator>Erik Scott</dc:creator>
      <pubDate>Tue, 27 Jan 2026 22:33:04 +0000</pubDate>
      <link>https://dev.to/escott/i-got-tired-of-re-explaining-my-codebase-to-ai-so-i-built-a-memory-layer-4dhl</link>
      <guid>https://dev.to/escott/i-got-tired-of-re-explaining-my-codebase-to-ai-so-i-built-a-memory-layer-4dhl</guid>
      <description>&lt;p&gt;It's 9:47 AM. I'm reopening my IDE to continue yesterday's work on an auth system. I ask Claude to pick up where we left off.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What authentication approach are you using? JWT or sessions? Which OAuth provider? What's your database?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We literally discussed this yesterday. For an hour.&lt;/p&gt;

&lt;p&gt;This kept happening to me. Every. Single. Session.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I'm the founder of ContextStream — I built this because I couldn't stand paying this tax anymore.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem nobody budgets for: AI amnesia
&lt;/h2&gt;

&lt;p&gt;AI coding assistants are incredible inside a single chat. They can reason about architecture, write production code, catch bugs.&lt;/p&gt;

&lt;p&gt;But the moment you close the window? Total amnesia.&lt;/p&gt;

&lt;p&gt;After ~18 years of shipping products, I've learned to notice invisible productivity taxes. This one was huge:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Re-explaining my stack&lt;/li&gt;
&lt;li&gt;Re-listing architectural decisions&lt;/li&gt;
&lt;li&gt;Re-attaching the same context files&lt;/li&gt;
&lt;li&gt;Re-arguing patterns we already settled&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I started tracking it. I was spending &lt;strong&gt;10–15 minutes per session&lt;/strong&gt; just getting the assistant back up to speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the obvious "solutions" didn't solve it
&lt;/h2&gt;

&lt;p&gt;I tried all the usual workarounds:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chat history:&lt;/strong&gt; noisy, not portable across tools, and I still had to scroll and re-read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built-in memory toggles:&lt;/strong&gt; tied to one product; I bounce between tools depending on the task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pasting context every time:&lt;/strong&gt; it works, but defeats the point of having an assistant.&lt;/p&gt;

&lt;p&gt;What I actually needed was a memory layer that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Captures decisions as I make them&lt;/li&gt;
&lt;li&gt;Retrieves the right context automatically&lt;/li&gt;
&lt;li&gt;Works across the AI tools I use&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I built: a memory layer behind my AI tools
&lt;/h2&gt;

&lt;p&gt;I spent the last year building ContextStream — a memory layer that sits behind my AI tools via MCP (Model Context Protocol). MCP is a protocol that lets AI clients call "tool servers" to fetch context.&lt;/p&gt;

&lt;p&gt;The core insight is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Storage is cheap. Retrieval is hard.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you dump everything into context, token costs explode and the model gets confused. The only thing that works is delivering the &lt;em&gt;right&lt;/em&gt; context at the &lt;em&gt;right&lt;/em&gt; time.&lt;/p&gt;

&lt;p&gt;So ContextStream captures three kinds of "project memory":&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decisions&lt;/strong&gt; — "We're using JWT with refresh tokens"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context&lt;/strong&gt; — indexed code/docs so the assistant can retrieve what matters&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connections&lt;/strong&gt; — which decisions affect which modules&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A tiny "before → after"
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Before:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"JWT or sessions? Which provider? Which database?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;After:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Last time we chose JWT with refresh tokens. OAuth provider is X. The auth code lives in …. Want me to continue with the refresh rotation + middleware?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the bar I wanted: start where we left off, not at square one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup (the happy path is one command)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx &lt;span class="nt"&gt;-y&lt;/span&gt; @contextstream/mcp-server setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it — it configures MCP for the tool you're using.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually changed for me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The obvious win:&lt;/strong&gt; no more re-explaining.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The surprising win:&lt;/strong&gt; consistency.&lt;/p&gt;

&lt;p&gt;Before, my assistant would suggest camelCase on Monday and snake_case on Wednesday. Now it remembers "this codebase uses camelCase" and stays consistent.&lt;/p&gt;

&lt;p&gt;And when bugs resurface (they always do), it can pull the previous fix back into view:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"We saw this before — the issue was X, and we fixed it by Y."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  If you've felt this too…
&lt;/h2&gt;

&lt;p&gt;The free tier gives you enough operations to see if it clicks.&lt;/p&gt;

&lt;p&gt;If you try it, I'd love one piece of feedback:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's the #1 thing you wish your AI assistant would remember about your project?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Project: &lt;a href="https://contextstream.io?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;contextstream.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MCP server repo: &lt;a href="https://github.com/contextstream/mcp-server" rel="noopener noreferrer"&gt;github.com/contextstream/mcp-server&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>devtools</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
