<?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: Feng Zhang</title>
    <description>The latest articles on DEV Community by Feng Zhang (@feng_zhang_38696450631765).</description>
    <link>https://dev.to/feng_zhang_38696450631765</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%2F3935431%2Fc34d943f-af54-47cf-870a-2b3053c7c7d5.png</url>
      <title>DEV Community: Feng Zhang</title>
      <link>https://dev.to/feng_zhang_38696450631765</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/feng_zhang_38696450631765"/>
    <language>en</language>
    <item>
      <title>I build Memoir - GIT for AI Memory</title>
      <dc:creator>Feng Zhang</dc:creator>
      <pubDate>Sat, 16 May 2026 19:56:42 +0000</pubDate>
      <link>https://dev.to/feng_zhang_38696450631765/i-build-memoir-git-for-ai-memory-2kbc</link>
      <guid>https://dev.to/feng_zhang_38696450631765/i-build-memoir-git-for-ai-memory-2kbc</guid>
      <description>&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.amazonaws.com%2Fuploads%2Farticles%2Fks3fximvh96zw03sbp9m.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.amazonaws.com%2Fuploads%2Farticles%2Fks3fximvh96zw03sbp9m.png" alt=" " width="800" height="782"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/zhangfengcdt/memoir" rel="noopener noreferrer"&gt;https://github.com/zhangfengcdt/memoir&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AI coding agents are currently built on a "Global Variable" anti-pattern that burns tokens and contaminates context. Memoir is an open-source version control system for agent memory that automatically syncs with your git branches — eliminating "token rent" and ensuring your AI respects your current workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "global variable" anti-pattern
&lt;/h2&gt;

&lt;p&gt;Most developers work in branches to isolate work. But AI memory is usually global and flat.&lt;/p&gt;

&lt;p&gt;The CLAUDE.md trap. Using CLAUDE.md as a permanent memory store is an anti-pattern. It's a giant global variable that grows until it chokes your context window.&lt;/p&gt;

&lt;p&gt;The MEMORY.md cache tax. Claude Code's MEMORY.md is even more expensive. Because it's a flat file injected at the top of your prompt, every time the agent "learns" a new fact and updates the file, it invalidates your entire prefix cache.&lt;/p&gt;

&lt;p&gt;The vector DB mess. "Auto-memory" uses vector search to find "relevant" text based on vibes. It pulls experimental patterns into your stable production hotfix because they "sound" similar, regardless of what branch you are on.&lt;/p&gt;

&lt;p&gt;Memory race conditions&lt;/p&gt;

&lt;p&gt;If you run parallel agents or share an agent across a team, it's like multiple threads writing to the same global variable without a mutex. One agent "commits" a new pattern, instantly corrupting the context for everyone else.&lt;/p&gt;

&lt;p&gt;We are shipping memory "data corruption" as a feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it now
&lt;/h2&gt;

&lt;p&gt;Memoir is Apache 2.0 and free forever. It's built for Claude Code first — head to the install guide on the homepage to get set up in a minute.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>agents</category>
      <category>memory</category>
    </item>
  </channel>
</rss>
