<?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: Romain</title>
    <description>The latest articles on DEV Community by Romain (@roamins).</description>
    <link>https://dev.to/roamins</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%2F4267101%2F07a1ab89-243b-45f4-b2ea-c296400e4324.png</url>
      <title>DEV Community: Romain</title>
      <link>https://dev.to/roamins</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roamins"/>
    <language>en</language>
    <item>
      <title>Sharing Local Memory Across Claude Code, Codex, and Cursor Without a Cloud or Hidden LLM</title>
      <dc:creator>Romain</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:33:27 +0000</pubDate>
      <link>https://dev.to/roamins/sharing-local-memory-across-claude-code-codex-and-cursor-without-a-cloud-or-hidden-llm-1c48</link>
      <guid>https://dev.to/roamins/sharing-local-memory-across-claude-code-codex-and-cursor-without-a-cloud-or-hidden-llm-1c48</guid>
      <description>&lt;p&gt;If you use more than one AI coding assistant on the same repository — say &lt;strong&gt;Claude Code&lt;/strong&gt; to implement a feature, &lt;strong&gt;Codex&lt;/strong&gt; to review it, and &lt;strong&gt;Cursor&lt;/strong&gt; or &lt;strong&gt;Gemini CLI&lt;/strong&gt; for quick fixes — you quickly hit the same wall: &lt;strong&gt;each assistant lives in its own memory silo&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You settle on a technical decision with Claude in the morning. Two hours later, Codex suggests the opposite because it has no idea why you ruled that approach out. Shared Markdown files (&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;) work for static rules, but they drift on fast-moving decisions and two sessions can silently overwrite each other's open tasks.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;&lt;a href="https://github.com/RoaminS/Memory-os-ai" rel="noopener noreferrer"&gt;Memory OS AI&lt;/a&gt;&lt;/strong&gt; (&lt;a href="https://pypi.org/project/memory-os-ai/" rel="noopener noreferrer"&gt;PyPI&lt;/a&gt; · Official MCP Registry: &lt;code&gt;io.github.RoaminS/memory-os-ai&lt;/code&gt; · &lt;a href="https://glama.ai/mcp/servers/RoaminS/Memory-os-ai" rel="noopener noreferrer"&gt;Glama&lt;/a&gt;) to solve this locally with four strict constraints:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;100% local loopback (&lt;code&gt;127.0.0.1&lt;/code&gt;), SQLite on disk, zero cloud, zero telemetry.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No hidden LLM inside the memory layer.&lt;/strong&gt; Your coding assistant already runs a frontier model — it extracts the structured facts and calls MCP tools directly. Zero hidden API cost, zero background hallucinations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-agent state semantics.&lt;/strong&gt; Explicit supersession (&lt;code&gt;replaces&lt;/code&gt;), point-in-time queries (&lt;code&gt;at_time&lt;/code&gt;), and SQLite &lt;strong&gt;compare-and-set (CAS)&lt;/strong&gt; on shared tasks so two assistants cannot silently clobber each other's updates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail-closed, reversible ops.&lt;/strong&gt; Dry-run preview before writing, backups of modified client configs, reproducible wheel builds, and &lt;code&gt;uninstall&lt;/code&gt; that never deletes your stored data.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Shared across providers&lt;/th&gt;
&lt;th&gt;Local-only (no cloud)&lt;/th&gt;
&lt;th&gt;No hidden LLM calls&lt;/th&gt;
&lt;th&gt;Point-in-time (&lt;code&gt;at_time&lt;/code&gt;) &amp;amp; CAS tasks&lt;/th&gt;
&lt;th&gt;When to prefer it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory OS AI (v4)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes (one local MCP server)&lt;/td&gt;
&lt;td&gt;Yes (SQLite on disk)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Multi-assistant local dev; Alpha (4 retained arm64 cells today)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Shared Markdown (&lt;code&gt;AGENTS.md&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Manual (git)&lt;/td&gt;
&lt;td&gt;Small repos or static conventions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Single-vendor native memory&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Depends&lt;/td&gt;
&lt;td&gt;Vendor-managed&lt;/td&gt;
&lt;td&gt;Opaque&lt;/td&gt;
&lt;td&gt;You only ever use one assistant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cloud / LLM memory layers&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Depends&lt;/td&gt;
&lt;td&gt;Hosted or external LLM API&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Varies&lt;/td&gt;
&lt;td&gt;You need multi-device cloud sync or remote agents today&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  What a real Claude Code → Codex handoff looks like
&lt;/h2&gt;

&lt;p&gt;We ran an isolated cross-client test against the published &lt;code&gt;memory-os-ai==4.1.2&lt;/code&gt; wheel on a fictitious project (&lt;code&gt;pg-demo&lt;/code&gt;), with zero shared config between clients:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Step 1 — Claude Code (fresh session)&lt;/strong&gt; called &lt;code&gt;memory_session_brief&lt;/code&gt;, recorded &lt;code&gt;"PostgreSQL 17 for staging (pgvector compatibility)"&lt;/code&gt;, and opened the task &lt;code&gt;"Verify staging database backups"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Step 2 — Codex (fresh session, with neither "postgres", "16", nor "17" anywhere in its prompt)&lt;/strong&gt; called &lt;code&gt;memory_session_brief&lt;/code&gt;, &lt;code&gt;memory_search&lt;/code&gt;, and &lt;code&gt;memory_task_list&lt;/code&gt;, and answered verbatim:
&amp;gt; &lt;em&gt;"The current decision for &lt;code&gt;pg-demo&lt;/code&gt; staging is **PostgreSQL 17&lt;/em&gt;&lt;em&gt;, chosen for **pgvector compatibility&lt;/em&gt;* … One task is open: &lt;strong&gt;Verify staging database backups&lt;/strong&gt; — next action: 'Run a restore test on Friday.'"*&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Step 3 — Codex (same thread)&lt;/strong&gt; ran the controlled &lt;code&gt;preview → apply&lt;/code&gt; supersession flow to replace PostgreSQL 17 with PostgreSQL 16 (&lt;code&gt;replaces&lt;/code&gt;) and close the task.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;In the spirit of radical honesty&lt;/strong&gt;, that real-client run also surfaced &lt;strong&gt;two real UX/engine rough edges&lt;/strong&gt; we are fixing right now in &lt;code&gt;4.1.3&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The compact brief requires an attested local &lt;code&gt;cl100k_base&lt;/code&gt; table (1.68 MB, MIT) on both service and relay; embedding it directly in the &lt;code&gt;4.1.3&lt;/code&gt; wheel removes the &lt;code&gt;tokenizer_unavailable&lt;/code&gt; trap on fresh installs.&lt;/li&gt;
&lt;li&gt;Date-only naive strings (&lt;code&gt;"2026-11-26"&lt;/code&gt;) were parsed in local time on explicit tool arguments vs UTC when extracted from text — causing a 1-hour offset on UTC+1 machines during same-day replacements. Unifying this to UTC everywhere in &lt;code&gt;4.1.3&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Two explicit profiles: 36-package lexical vs local semantic
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;lexical&lt;/code&gt; (light)&lt;/strong&gt;: SQLite FTS5 / BM25, &lt;strong&gt;36 locked Python packages&lt;/strong&gt;, zero PyTorch, zero embedding model. Retained on macOS Apple Silicon (Python 3.11 / 3.12 / 3.13) and Ubuntu 24.04 arm64 (Python 3.11 under &lt;code&gt;systemd --user&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;semantic&lt;/code&gt; (recommended on macOS arm64 Python 3.11)&lt;/strong&gt;: hybrid BM25 + a pinned local 97M-parameter embedding model (~1.2 GB total).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;(On our retrospective BEAM 100K comparison, &lt;code&gt;lexical&lt;/code&gt; was −1.675 percentage points behind &lt;code&gt;semantic&lt;/code&gt; on Recall@10, 95% CI [−3.747, +0.404], missing our pre-registered joint parity threshold — so &lt;code&gt;semantic&lt;/code&gt; stays recommended where supported and &lt;code&gt;lexical&lt;/code&gt; is clearly documented as the light profile.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Try a 5-minute preview (writes nothing)
&lt;/h2&gt;

&lt;p&gt;On macOS Apple Silicon (Python 3.11, SQLite ≥ 3.51.3):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3.11 -m venv ~/.memory-os/venv
&lt;span class="nv"&gt;V&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.memory-os/venv/bin
&lt;span class="nv"&gt;$V&lt;/span&gt;/pip install --no-deps &lt;span class="s2"&gt;"memory-os-ai==4.1.2"&lt;/span&gt;
&lt;span class="nv"&gt;$V&lt;/span&gt;/pip install -c &lt;span class="s2"&gt;"$($V/memory-os-constraints lexical)"&lt;/span&gt; &lt;span class="s2"&gt;"memory-os-ai[ops,brief]==4.1.2"&lt;/span&gt;

&lt;span class="c"&gt;# Dry-run preview — writes nothing:&lt;/span&gt;
&lt;span class="nv"&gt;$V&lt;/span&gt;/memory-os-admin quickstart --profile lexical --clients claude-code,codex

&lt;span class="c"&gt;# Apply when the preview looks right:&lt;/span&gt;
&lt;span class="nv"&gt;$V&lt;/span&gt;/memory-os-admin quickstart --profile lexical --clients claude-code,codex --apply --download-approved --demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Honest Alpha limits &amp;amp; what comes next
&lt;/h2&gt;

&lt;p&gt;Memory OS AI &lt;code&gt;4.1.2&lt;/code&gt; is &lt;strong&gt;Alpha&lt;/strong&gt; and explicitly refuses platforms outside its 4 retained cells (macOS Apple Silicon + Ubuntu 24.04 arm64) before writing anything.&lt;/p&gt;

&lt;p&gt;Coming next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;4.1.3&lt;/code&gt;&lt;/strong&gt; (in progress): &lt;strong&gt;Linux &lt;code&gt;x86_64&lt;/code&gt;&lt;/strong&gt;, Docker v4, VS Code on Linux, embedded &lt;code&gt;cl100k_base&lt;/code&gt;, unified UTC naive dates, &lt;code&gt;--allow-unqualified-platform&lt;/code&gt; (lexical), and 1-command install.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;4.2.0&lt;/code&gt;&lt;/strong&gt;: native &lt;strong&gt;Windows&lt;/strong&gt; + public reproducible benchmark report (&lt;code&gt;v4/bench/&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;4.3.0&lt;/code&gt;&lt;/strong&gt;: opt-in &lt;strong&gt;Remote MCP (HTTPS + OAuth 2.1)&lt;/strong&gt; for cloud agents &amp;amp; self-hosted team mode.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run Claude Code + Codex/Cursor on Apple Silicon or Ubuntu arm64 and want to test a 5-minute handoff — or want to vote on Linux &lt;code&gt;x86_64&lt;/code&gt; / Windows / Docker priorities — drop blunt feedback here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/RoaminS/Memory-os-ai" rel="noopener noreferrer"&gt;https://github.com/RoaminS/Memory-os-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feedback &amp;amp; platform votes (Issue #1):&lt;/strong&gt; &lt;a href="https://github.com/RoaminS/Memory-os-ai/issues/1" rel="noopener noreferrer"&gt;https://github.com/RoaminS/Memory-os-ai/issues/1&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;a href="https://pypi.org/project/memory-os-ai/" rel="noopener noreferrer"&gt;https://pypi.org/project/memory-os-ai/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Official MCP Registry:&lt;/strong&gt; &lt;code&gt;io.github.RoaminS/memory-os-ai&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mcp</category>
      <category>claudecode</category>
      <category>sqilte</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
