<?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: EncrEor</title>
    <description>The latest articles on DEV Community by EncrEor (@encreor).</description>
    <link>https://dev.to/encreor</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%2F3744969%2Fc3db1d64-62a0-4a27-ba0d-5e2ed0b2ae32.png</url>
      <title>DEV Community: EncrEor</title>
      <link>https://dev.to/encreor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/encreor"/>
    <language>en</language>
    <item>
      <title>How I Gave Claude Code Infinite Memory (Using MIT's RLM Paper)</title>
      <dc:creator>EncrEor</dc:creator>
      <pubDate>Sun, 01 Feb 2026 08:46:40 +0000</pubDate>
      <link>https://dev.to/encreor/how-i-gave-claude-code-infinite-memory-using-mits-rlm-paper-2hhk</link>
      <guid>https://dev.to/encreor/how-i-gave-claude-code-infinite-memory-using-mits-rlm-paper-2hhk</guid>
      <description>&lt;p&gt;I use Claude Code every day to build my startup — a one-person tech stack with Odoo, n8n, and a lot of Claude. It's incredible, except for one thing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude forgets everything.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every time the context window fills up, you &lt;code&gt;/compact&lt;/code&gt; and poof — decisions, insights, architecture choices, all gone. You explain the same things again. Claude makes mistakes it already corrected. It's like working with a brilliant colleague who has amnesia.&lt;/p&gt;

&lt;h2&gt;
  
  
  The paper that changed everything
&lt;/h2&gt;

&lt;p&gt;In December 2025, MIT CSAIL published a paper called &lt;strong&gt;"Recursive Language Models"&lt;/strong&gt; (&lt;a href="https://arxiv.org/abs/2512.24601" rel="noopener noreferrer"&gt;arXiv:2512.24601&lt;/a&gt;). The core idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Instead of cramming everything into the context window, treat history as an &lt;strong&gt;external object&lt;/strong&gt; that the model navigates with tools — peek, grep, search — rather than loading entirely.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This clicked immediately. That's exactly what Claude Code needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  So I built RLM
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;RLM&lt;/strong&gt; is an MCP server (Model Context Protocol) that plugs into Claude Code and gives it persistent memory. Here's what it does:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Auto-save before context loss
&lt;/h3&gt;

&lt;p&gt;RLM hooks into Claude Code's &lt;code&gt;/compact&lt;/code&gt; event. Before your context is wiped, it automatically saves a snapshot. You never lose context silently again.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Two memory systems
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;System&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Insights&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Key decisions, facts, rules&lt;/td&gt;
&lt;td&gt;"Backend is source of truth"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Chunks&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Full conversation segments&lt;/td&gt;
&lt;td&gt;"Session Jan 18 — API redesign discussion"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  3. Powerful search
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BM25 ranked search&lt;/strong&gt; across all your history (French + English)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fuzzy grep&lt;/strong&gt; that tolerates typos (&lt;code&gt;buisness&lt;/code&gt; → finds &lt;code&gt;business&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-project filtering&lt;/strong&gt; — organize memory by project and domain&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Smart retention
&lt;/h3&gt;

&lt;p&gt;Old, unused chunks get auto-archived (gzip compressed). Important ones are protected by an immunity system (critical tags, frequent access). Archived chunks auto-restore when you need them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/EncrEor/rlm-claude.git
&lt;span class="nb"&gt;cd &lt;/span&gt;rlm-claude
./install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3 lines. Restart Claude Code. 14 tools available immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before vs After
&lt;/h2&gt;

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

&lt;blockquote&gt;
&lt;p&gt;"We discussed this 2 hours ago... the API should use JWT, not sessions. I already explained why."&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;blockquote&gt;
&lt;p&gt;Claude recalls the JWT decision from 3 days ago, cites the reasoning, and builds on it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It genuinely transformed how I work on long-running projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it compares
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature.&lt;/th&gt;
&lt;th&gt;Raw Context&lt;/th&gt;
&lt;th&gt;Letta/MemGPT&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;RLM&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Persistent memory.&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Works with Claude Code&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MCP&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto-save before compact&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fuzzy search.&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-project.&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install complexity&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;Complex&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3 lines&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Free&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;RLM is at v0.9.0. The roadmap includes tests, CI/CD, and PyPI distribution (&lt;code&gt;pip install rlm-claude&lt;/code&gt;). Contributions welcome.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/EncrEor/rlm-claude" rel="noopener noreferrer"&gt;github.com/EncrEor/rlm-claude&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MIT RLM paper&lt;/strong&gt;: &lt;a href="https://arxiv.org/abs/2512.24601" rel="noopener noreferrer"&gt;arxiv.org/abs/2512.24601&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License&lt;/strong&gt;: MIT&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you use Claude Code for anything beyond one-shot tasks, give it a try. Stars and feedback appreciated.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Claude Opus 4.5 — yes, Claude helped build its own memory system.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>opensource</category>
      <category>claudeai</category>
    </item>
  </channel>
</rss>
