<?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: leho</title>
    <description>The latest articles on DEV Community by leho (@_2340687267e5cacfe32da1).</description>
    <link>https://dev.to/_2340687267e5cacfe32da1</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%2F3825488%2F392a761f-43ae-458e-a543-6fe09f6cac77.jpg</url>
      <title>DEV Community: leho</title>
      <link>https://dev.to/_2340687267e5cacfe32da1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_2340687267e5cacfe32da1"/>
    <language>en</language>
    <item>
      <title>Memorix: Give Your AI Coding Agents Shared, Persistent Project Memory</title>
      <dc:creator>leho</dc:creator>
      <pubDate>Sat, 18 Apr 2026 10:48:37 +0000</pubDate>
      <link>https://dev.to/_2340687267e5cacfe32da1/memorix-give-your-ai-coding-agents-shared-persistent-project-memory-1pk2</link>
      <guid>https://dev.to/_2340687267e5cacfe32da1/memorix-give-your-ai-coding-agents-shared-persistent-project-memory-1pk2</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;TL;DR: Every coding agent forgets between sessions. Memorix is an open-source MCP memory layer that gives Cursor, Claude Code, Windsurf, and 7 other agents shared, persistent project memory — with Git truth and reasoning built in. &lt;code&gt;npm install -g memorix&lt;/code&gt; and you're running.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The problem nobody talks about
&lt;/h2&gt;

&lt;p&gt;You're working in Cursor. You tell it about a tricky database migration pattern. Next session? Gone. You switch to Claude Code to continue. It has no idea what Cursor just learned.&lt;/p&gt;

&lt;p&gt;This isn't a bug — it's the default. Every AI coding agent is stateless between sessions. Each one lives in its own silo.&lt;/p&gt;

&lt;p&gt;Some agents have started adding memory features, but they're all &lt;strong&gt;agent-specific&lt;/strong&gt;. Cursor's memory doesn't help Claude Code. Claude Code's memory doesn't help Windsurf. And none of them know what actually happened in your git history.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would "done right" look like?
&lt;/h2&gt;

&lt;p&gt;I kept running into this problem across projects, so I built something to fix it properly. Here's what I think a cross-agent memory layer needs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Shared, not siloed&lt;/strong&gt; — Any agent can read and write to the same local memory base&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git is ground truth&lt;/strong&gt; — Your commit history is the most reliable record of what actually happened. It should be searchable memory, not just log output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning, not just facts&lt;/strong&gt; — "We chose PostgreSQL over MongoDB because of X" is more valuable than "database config changed"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality control&lt;/strong&gt; — Without retention, deduplication, and formation, memory degrades into noise&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local and private&lt;/strong&gt; — No cloud dependency. Your project memory stays on your machine&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Memorix: a memory layer for coding agents
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/AVIDS2/memorix" rel="noopener noreferrer"&gt;Memorix&lt;/a&gt; is an open-source MCP server that does all of the above. It runs locally, connects to your agents via the Model Context Protocol, and gives them a shared memory layer that persists across sessions and IDEs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; memorix
memorix init
memorix serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Your agent now has persistent project memory.&lt;/p&gt;

&lt;h3&gt;
  
  
  What it stores
&lt;/h3&gt;

&lt;p&gt;Memorix has three memory layers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Observation Memory&lt;/strong&gt; — what changed, how something works, gotchas, problem-solution notes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning Memory&lt;/strong&gt; — why a decision was made, alternatives considered, trade-offs, risks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git Memory&lt;/strong&gt; — immutable engineering facts derived from your commit history, with noise filtering&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How agents use it
&lt;/h3&gt;

&lt;p&gt;Once Memorix is connected via MCP, your agents can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;memorix_store&lt;/code&gt; — save a decision, gotcha, or observation&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;memorix_search&lt;/code&gt; — find relevant past context&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;memorix_detail&lt;/code&gt; — get the full story behind a result&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;memorix_timeline&lt;/code&gt; — see the chronological context around a memory&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;memorix_store_reasoning&lt;/code&gt; — record why a choice was made, not just what changed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And you don't have to manually trigger these — Memorix's hooks can auto-capture git commits, and the memory formation pipeline automatically deduplicates, merges, and scores incoming memories.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Git memory angle
&lt;/h3&gt;

&lt;p&gt;This is the part I'm most excited about. Install the post-commit hook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;memorix git-hook &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now every commit becomes searchable engineering memory — with noise filtering that skips lockfile bumps, merge commits, and typo fixes. When you ask your agent "what changed in the auth module last week?", it can answer from actual git history, not just what someone bothered to write down.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cross-agent in practice
&lt;/h3&gt;

&lt;p&gt;Here's a real workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cursor&lt;/strong&gt; identifies a tricky caching bug and stores the root cause&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code&lt;/strong&gt; picks up the same project next session, searches memory, finds the bug context&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windsurf&lt;/strong&gt; fixes the bug and stores the reasoning behind the fix&lt;/li&gt;
&lt;li&gt;Next week, &lt;strong&gt;Copilot&lt;/strong&gt; encounters a similar pattern and finds the prior reasoning&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No copy-pasting context. No repeating explanations. The memory is just there.&lt;/p&gt;

&lt;h2&gt;
  
  
  10 agents, one memory
&lt;/h2&gt;

&lt;p&gt;Memorix currently supports:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;th&gt;Clients&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;★ Core&lt;/td&gt;
&lt;td&gt;Claude Code, Cursor, Windsurf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;◆ Extended&lt;/td&gt;
&lt;td&gt;GitHub Copilot, Kiro, Codex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;○ Community&lt;/td&gt;
&lt;td&gt;Gemini CLI, OpenCode, Antigravity, Trae&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a client can speak MCP and launch a local command or HTTP endpoint, it can usually connect even if it's not listed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this differs from other memory tools
&lt;/h2&gt;

&lt;p&gt;Most MCP memory servers focus on one thing: storing and retrieving text snippets. Memorix takes a different approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git-grounded, not just user-stored&lt;/strong&gt; — Your commit history is the most reliable record of what actually happened in a project. Memorix turns it into searchable memory automatically, instead of relying entirely on what agents or users manually save&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning, not just facts&lt;/strong&gt; — Storing "database config changed" is easy. Storing "we chose PostgreSQL over MongoDB because of X, Y, Z" is what actually helps future decisions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-agent by design, not by accident&lt;/strong&gt; — The memory layer is shared across all connected agents from day one, not bolted on as an afterthought&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality pipeline, not just storage&lt;/strong&gt; — Without dedup, compaction, and retention, memory degrades into noise over time. Memorix handles this automatically&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's running under the hood
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SQLite&lt;/strong&gt; as the single source of truth — observations, mini-skills, sessions, and archives all share one DB handle&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orama&lt;/strong&gt; for fast full-text and semantic search&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory formation pipeline&lt;/strong&gt; — formation, compaction, retention, and source-aware retrieval work together&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team identity&lt;/strong&gt; — agent registration, heartbeat, task board, handoff artifacts for multi-agent coordination&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP control plane&lt;/strong&gt; — &lt;code&gt;memorix background start&lt;/code&gt; gives you a dashboard + shared HTTP endpoint for multiple agents&lt;/li&gt;
&lt;/ul&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; memorix
memorix init
memorix serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add to your MCP client config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"memorix"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"memorix"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"serve"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/AVIDS2/memorix" rel="noopener noreferrer"&gt;https://github.com/AVIDS2/memorix&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/memorix" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/memorix&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://github.com/AVIDS2/memorix/tree/main/docs" rel="noopener noreferrer"&gt;https://github.com/AVIDS2/memorix/tree/main/docs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Memorix is &lt;a href="https://github.com/AVIDS2/memorix/blob/main/LICENSE" rel="noopener noreferrer"&gt;Apache 2.0&lt;/a&gt;. If you're using multiple coding agents and tired of them forgetting everything, I'd love your feedback.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Tags: #ai #coding #mcp #developer-tools #opensource&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>mcp</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
