<?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: Awareness</title>
    <description>The latest articles on DEV Community by Awareness (@awarenesscloud).</description>
    <link>https://dev.to/awarenesscloud</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%2F4167022%2F1006305d-e060-409d-b303-a8f05b90de13.png</url>
      <title>DEV Community: Awareness</title>
      <link>https://dev.to/awarenesscloud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/awarenesscloud"/>
    <language>en</language>
    <item>
      <title>Your AI Coding Agent Forgets Everything. I Fixed It With a Local MCP Memory Server</title>
      <dc:creator>Awareness</dc:creator>
      <pubDate>Tue, 06 Oct 2026 17:29:35 +0000</pubDate>
      <link>https://dev.to/awarenesscloud/your-ai-coding-agent-forgets-everything-i-fixed-it-with-a-local-mcp-memory-server-51a4</link>
      <guid>https://dev.to/awarenesscloud/your-ai-coding-agent-forgets-everything-i-fixed-it-with-a-local-mcp-memory-server-51a4</guid>
      <description>&lt;h1&gt;
  
  
  Your AI Coding Agent Forgets Everything. I Fixed It With a Local MCP Memory Server
&lt;/h1&gt;

&lt;p&gt;Every new chat window, you re-explain your own codebase.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"We use PostgreSQL."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"No, the auth middleware is in &lt;code&gt;src/lib/auth&lt;/code&gt;, not &lt;code&gt;src/api&lt;/code&gt;."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"Yes, we already decided against Redux — that was three sessions ago."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It is the single biggest tax on AI-assisted development, and it has a boring name: &lt;strong&gt;agents have no memory&lt;/strong&gt;. Context windows grew, but sessions still start from zero.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Awareness Local&lt;/strong&gt; — a local-first &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;MCP&lt;/a&gt; memory server that gives your coding agent persistent memory across sessions. No cloud account. Works offline. Your memory is stored as plain Markdown.&lt;/p&gt;
&lt;h2&gt;
  
  
  Start in one command
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @awareness.market/setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The installer detects your IDE (13+ supported: Cursor, Claude Code, Windsurf, Cline, Copilot, Codex CLI, Zed, JetBrains Junie, ChatGPT Desktop, …), wires up the MCP server, and starts a local daemon on &lt;code&gt;127.0.0.1:37800&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;From then on your agent has five tools available:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awareness_init&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Loads session context — recent knowledge, open tasks, project rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awareness_recall&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Searches memory with progressive disclosure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awareness_record&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Saves decisions, changes, and insights (with knowledge extraction)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awareness_lookup&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fast lookup of tasks, knowledge cards, risks, session history&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awareness_get_agent_prompt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Agent-specific prompts for multi-agent setups&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  The design decision that matters: it's just files
&lt;/h2&gt;

&lt;p&gt;Memory lives in &lt;code&gt;.awareness/&lt;/code&gt;, as Markdown you can read, edit, diff, and commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.awareness/
├── memories/2026-03-22_decided-to-use-postgresql.md
├── knowledge/decisions/postgresql-over-mysql.md
├── tasks/open/implement-rate-limiting.md
└── index.db   # SQLite FTS5 index, rebuilt automatically
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the whole point of local-first. Your agent's memory is &lt;strong&gt;not&lt;/strong&gt; locked in a vendor's vector store. It is in your repo, in your git history, subject to your review. If the daemon dies, you have lost nothing — you have a folder of Markdown.&lt;/p&gt;

&lt;p&gt;Retrieval is hybrid: &lt;strong&gt;SQLite FTS5 keyword search + local embeddings&lt;/strong&gt;, fused with Reciprocal Rank Fusion. No LLM calls on the retrieval path, so recall costs you nothing per query and stays fully offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  How good is the recall, actually?
&lt;/h2&gt;

&lt;p&gt;I evaluated it on &lt;a href="https://arxiv.org/abs/2410.10813" rel="noopener noreferrer"&gt;LongMemEval&lt;/a&gt; (ICLR 2025) — 500 human-curated questions, ~115k tokens of history per question:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Recall@1    80.2%
Recall@3    92.8%
Recall@5    96.0%   ◀ primary
Recall@10   98.6%
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Method: Hybrid RRF (BM25 + vector), &lt;code&gt;multilingual-e5-small&lt;/code&gt;, &lt;strong&gt;zero LLM calls&lt;/strong&gt; on the retrieval path, run on an Apple M1 / 8GB RAM in ~35 minutes total.&lt;/p&gt;

&lt;p&gt;The ablation is the interesting part — neither method alone gets there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Vector-only:   92.6%
BM25-only:     91.4%
Hybrid RRF:    95.6%   ← +3% over either single method
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Retrieval code and scripts are in the repo, so you can re-run it yourself rather than trust a table in a blog post.&lt;/p&gt;

&lt;h2&gt;
  
  
  Progressive disclosure: the token trick
&lt;/h2&gt;

&lt;p&gt;The naive version of "give the agent memory" is to dump everything into context and watch your token budget evaporate. Awareness does a two-phase recall instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Phase 1  awareness_recall(query, detail="summary")
         → ~80 tokens per hit: title + summary + score
         → the agent picks what is actually relevant

Phase 2  awareness_recall(detail="full", ids=[...])
         → full content, only for the selected items
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent decides what to load. You pay for relevance, not for volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it changes day to day
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Before:&lt;/strong&gt; every session re-opens the same three questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After:&lt;/strong&gt; the agent opens the session already knowing that you migrated MySQL → PostgreSQL, that you chose it for JSON support, and that two TODOs were left open.&lt;/p&gt;

&lt;p&gt;That difference compounds. Long migrations, multi-week refactors, and team handoffs are where it stops being a convenience and starts being the reason the work is tractable at all.&lt;/p&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;npx @awareness.market/setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Repo (MIT): &lt;a href="https://github.com/everest-an/Awareness-Market" rel="noopener noreferrer"&gt;https://github.com/everest-an/Awareness-Market&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://awareness.market/docs" rel="noopener noreferrer"&gt;https://awareness.market/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Discord: &lt;a href="https://discord.com/invite/BMjkCKeqnJ" rel="noopener noreferrer"&gt;https://discord.com/invite/BMjkCKeqnJ&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Telegram: &lt;a href="https://t.me/awarenessmarket" rel="noopener noreferrer"&gt;https://t.me/awarenessmarket&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Python and TypeScript SDKs (&lt;code&gt;wrap_openai()&lt;/code&gt; / &lt;code&gt;wrap_anthropic()&lt;/code&gt; interceptors) and an OpenClaw plugin are in the same ecosystem if you want memory inside your application, not just your IDE.&lt;/p&gt;

&lt;p&gt;If re-explaining your codebase to your agent is getting old, a star helps more developers find it: ⭐ &lt;a href="https://github.com/everest-an/Awareness-Market" rel="noopener noreferrer"&gt;https://github.com/everest-an/Awareness-Market&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
